/drivers/gpu/drm/ |
H A D | drm_dma.c | 65 memset(&dev->dma->bufs[i], 0, sizeof(dev->dma->bufs[0])); 93 if (dma->bufs[i].seg_count) { 97 dma->bufs[i].buf_count, 98 dma->bufs[i].seg_count); 99 for (j = 0; j < dma->bufs[i].seg_count; j++) { 100 if (dma->bufs[i].seglist[j]) { 101 drm_pci_free(dev, dma->bufs[i].seglist[j]); 104 kfree(dma->bufs[i].seglist); 106 if (dma->bufs[ [all...] |
H A D | drm_info.c | 114 * Called when "/proc/dri/.../bufs" is read. 132 if (dma->bufs[i].buf_count) { 133 seg_pages = dma->bufs[i].seg_count * (1 << dma->bufs[i].page_order); 136 dma->bufs[i].buf_size, 137 dma->bufs[i].buf_count, 139 dma->bufs[i].seg_count,
|
/drivers/staging/lustre/lustre/include/ |
H A D | lustre_cfg.h | 124 static inline void lustre_cfg_bufs_set(struct lustre_cfg_bufs *bufs, argument 131 if (bufs == NULL) 134 if (bufs->lcfg_bufcount <= index) 135 bufs->lcfg_bufcount = index + 1; 137 bufs->lcfg_buf[index] = buf; 138 bufs->lcfg_buflen[index] = buflen; 141 static inline void lustre_cfg_bufs_set_string(struct lustre_cfg_bufs *bufs, argument 145 lustre_cfg_bufs_set(bufs, index, str, str ? strlen(str) + 1 : 0); 148 static inline void lustre_cfg_bufs_reset(struct lustre_cfg_bufs *bufs, char *name) argument 150 memset((bufs), 173 lustre_cfg_bufs_init(struct lustre_cfg_bufs *bufs, struct lustre_cfg *lcfg) argument 227 lustre_cfg_new(int cmd, struct lustre_cfg_bufs *bufs) argument [all...] |
/drivers/scsi/fnic/ |
H A D | vnic_wq.c | 37 wq->bufs[i] = kzalloc(VNIC_WQ_BUF_BLK_SZ, GFP_ATOMIC); 38 if (!wq->bufs[i]) { 45 buf = wq->bufs[i]; 51 buf->next = wq->bufs[0]; 54 buf->next = wq->bufs[i + 1]; 62 wq->to_use = wq->to_clean = wq->bufs[0]; 77 kfree(wq->bufs[i]); 78 wq->bufs[i] = NULL; 176 wq->to_use = wq->to_clean = wq->bufs[0];
|
H A D | vnic_rq.c | 37 rq->bufs[i] = kzalloc(VNIC_RQ_BUF_BLK_SZ, GFP_ATOMIC); 38 if (!rq->bufs[i]) { 45 buf = rq->bufs[i]; 51 buf->next = rq->bufs[0]; 54 buf->next = rq->bufs[i + 1]; 62 rq->to_use = rq->to_clean = rq->bufs[0]; 78 kfree(rq->bufs[i]); 79 rq->bufs[i] = NULL; 133 &rq->bufs[fetch_index / VNIC_RQ_BUF_BLK_ENTRIES] 189 &rq->bufs[fetch_inde [all...] |
/drivers/scsi/arm/ |
H A D | scsi.h | 29 int bufs = SCp->buffers_residual; local 34 BUG_ON(bufs + 1 > max); 38 if (bufs) { 42 for_each_sg(sg_next(SCp->buffer), src_sg, bufs, i) 47 return bufs + 1;
|
/drivers/net/ethernet/cisco/enic/ |
H A D | vnic_rq.c | 37 rq->bufs[i] = kzalloc(VNIC_RQ_BUF_BLK_SZ(count), GFP_ATOMIC); 38 if (!rq->bufs[i]) 43 buf = rq->bufs[i]; 49 buf->next = rq->bufs[0]; 52 buf->next = rq->bufs[i + 1]; 60 rq->to_use = rq->to_clean = rq->bufs[0]; 75 if (rq->bufs[i]) { 76 kfree(rq->bufs[i]); 77 rq->bufs[i] = NULL; 133 &rq->bufs[fetch_inde [all...] |
H A D | vnic_wq.c | 37 wq->bufs[i] = kzalloc(VNIC_WQ_BUF_BLK_SZ(count), GFP_ATOMIC); 38 if (!wq->bufs[i]) 43 buf = wq->bufs[i]; 49 buf->next = wq->bufs[0]; 52 buf->next = wq->bufs[i + 1]; 60 wq->to_use = wq->to_clean = wq->bufs[0]; 75 if (wq->bufs[i]) { 76 kfree(wq->bufs[i]); 77 wq->bufs[i] = NULL; 132 &wq->bufs[fetch_inde [all...] |
/drivers/media/v4l2-core/ |
H A D | videobuf-core.c | 202 if (NULL == q->bufs[i]) 204 if (q->bufs[i]->map) { 208 if (q->bufs[i]->state == VIDEOBUF_QUEUED) { 212 if (q->bufs[i]->state == VIDEOBUF_ACTIVE) { 244 if (q->bufs[i] && q->bufs[i]->map) { 250 if (NULL == q->bufs[i]) 252 q->ops->buf_release(q, q->bufs[i]); 253 kfree(q->bufs[i]); 254 q->bufs[ [all...] |
H A D | videobuf-vmalloc.c | 85 if (NULL == q->bufs[i]) 88 if (q->bufs[i]->map != map) 91 mem = q->bufs[i]->priv; 111 q->bufs[i]->map = NULL; 112 q->bufs[i]->baddr = 0;
|
H A D | videobuf-dma-sg.c | 414 if (NULL == q->bufs[i]) 416 mem = q->bufs[i]->priv; 422 if (q->bufs[i]->map != map) 424 q->bufs[i]->map = NULL; 425 q->bufs[i]->baddr = 0; 426 q->ops->buf_release(q, q->bufs[i]); 608 if (buf == q->bufs[first]) { 609 size = PAGE_ALIGN(q->bufs[first]->bsize); 631 if (NULL == q->bufs[i]) 633 q->bufs[ [all...] |
H A D | videobuf-dma-contig.c | 97 if (NULL == q->bufs[i]) 100 if (q->bufs[i]->map != map) 103 mem = q->bufs[i]->priv; 123 q->bufs[i]->map = NULL; 124 q->bufs[i]->baddr = 0;
|
H A D | videobuf2-core.c | 292 vb = q->bufs[buffer]; 313 vb = q->bufs[q->num_buffers - 1]; 321 vb = q->bufs[buffer]; 394 q->bufs[q->num_buffers + buffer] = vb; 417 vb = q->bufs[buffer]; 450 if (q->bufs[buffer] == NULL) 452 if (q->bufs[buffer]->state == VB2_BUF_STATE_PREPARING) { 461 struct vb2_buffer *vb = q->bufs[buffer]; 496 struct vb2_buffer *vb = q->bufs[buffer]; 535 kfree(q->bufs[buffe 2754 struct vb2_fileio_buf bufs[VIDEO_MAX_FRAME]; member in struct:vb2_fileio_data [all...] |
/drivers/net/ethernet/atheros/alx/ |
H A D | alx.h | 59 struct alx_buffer *bufs; member in struct:alx_rx_queue 69 struct alx_buffer *bufs; member in struct:alx_tx_queue
|
H A D | main.c | 57 struct alx_buffer *txb = &alx->txq.bufs[entry]; 84 cur_buf = &rxq->bufs[cur]; 116 cur_buf = &rxq->bufs[cur]; 153 skb = txq->bufs[sw_read_idx].skb; 209 rxb = &rxq->bufs[rxq->read_idx]; 389 if (!txq->bufs) 395 memset(txq->bufs, 0, alx->tx_ringsz * sizeof(struct alx_buffer)); 413 cur_buf = rxq->bufs + i; 510 alx->txq.bufs = kcalloc(alx->tx_ringsz, 513 if (!alx->txq.bufs) [all...] |
/drivers/crypto/caam/ |
H A D | caamrng.c | 76 struct buf_data bufs[2]; member in struct:caam_rng_ctx 95 rng_unmap_buf(jrdev, &ctx->bufs[0]); 96 rng_unmap_buf(jrdev, &ctx->bufs[1]); 119 struct buf_data *bd = &ctx->bufs[!(to_current ^ ctx->current_buf)]; 138 struct buf_data *bd = &ctx->bufs[ctx->current_buf]; 220 struct buf_data *bd = &ctx->bufs[buf_id]; 247 bd = &rng_ctx->bufs[i]; 257 struct buf_data *bd = &ctx->bufs[buf_id];
|
/drivers/staging/lustre/lustre/obdclass/ |
H A D | obd_mount.c | 79 struct lustre_cfg_bufs *bufs; local 87 OBD_ALLOC_PTR(bufs); 88 if (bufs == NULL) 92 lustre_cfg_bufs_reset(bufs, mgc->obd_name); 93 lustre_cfg_bufs_set_string(bufs, 1, logname); 94 lustre_cfg_bufs_set(bufs, 2, cfg, sizeof(*cfg)); 95 lustre_cfg_bufs_set(bufs, 3, &sb, sizeof(sb)); 96 lcfg = lustre_cfg_new(LCFG_LOG_START, bufs); 100 OBD_FREE_PTR(bufs); 128 struct lustre_cfg_bufs bufs; local 156 struct lustre_cfg_bufs bufs; local [all...] |
H A D | obd_config.c | 991 struct lustre_cfg_bufs *bufs = NULL; local 1022 OBD_ALLOC_PTR(bufs); 1023 if (bufs == NULL) { 1028 lustre_cfg_bufs_reset(bufs, NULL); 1029 lustre_cfg_bufs_init(bufs, cfg); 1030 lustre_cfg_bufs_set_string(bufs, 1, new_param); 1032 new_cfg = lustre_cfg_new(cfg->lcfg_command, bufs); 1035 OBD_FREE_PTR(bufs); 1400 struct lustre_cfg_bufs bufs; local 1492 lustre_cfg_bufs_init(&bufs, lcf 1725 struct lustre_cfg_bufs bufs; local [all...] |
/drivers/crypto/qat/qat_common/ |
H A D | qat_algs.c | 557 int i, bufs = bl->num_bufs; local 567 int bufless = bufs - blout->num_mapped_bufs; 569 for (i = bufless; i < bufs; i++) { 587 int i, bufs = 0, n = sg_nents(sgl), assoc_n = sg_nents(assoc); local 611 bufl->bufers[bufs].addr = dma_map_single(dev, 615 bufl->bufers[bufs].len = sg->length; 616 if (unlikely(dma_mapping_error(dev, bufl->bufers[bufs].addr))) 618 bufs++; 620 bufl->bufers[bufs].addr = dma_map_single(dev, iv, ivlen, 622 bufl->bufers[bufs] [all...] |
/drivers/video/adf/ |
H A D | adf_client.c | 349 * @bufs: description of buffers displayed 354 * adf_device_post() will copy @intfs, @bufs, and @custom_data, so they may 356 * reference on each of the dma-bufs in @bufs. The adf_device_post_nocopy() 364 struct adf_buffer *bufs, size_t n_bufs, void *custom_data, 391 for (j = 0; j < bufs[i].n_planes; j++) 392 get_dma_buf(bufs[i].dma_bufs[j]); 396 memcpy(bufs_copy, bufs, sizeof(bufs_copy[0]) * n_bufs); 409 for (j = 0; j < bufs[i].n_planes; j++) 410 dma_buf_put(bufs[ 362 adf_device_post(struct adf_device *dev, struct adf_interface **intfs, size_t n_intfs, struct adf_buffer *bufs, size_t n_bufs, void *custom_data, size_t custom_data_size) argument 437 adf_device_post_nocopy(struct adf_device *dev, struct adf_interface **intfs, size_t n_intfs, struct adf_buffer *bufs, size_t n_bufs, void *custom_data, size_t custom_data_size) argument [all...] |
H A D | adf_fops32.h | 23 compat_uptr_t bufs; member in struct:adf_post_config32
|
H A D | adf_fops.c | 221 struct adf_buffer *bufs = NULL; local 285 bufs = kzalloc(sizeof(bufs[0]) * n_bufs, GFP_KERNEL); 286 if (!bufs) { 293 ret = adf_buffer_import(dev, &arg->bufs[i], &bufs[i]); 295 memset(&bufs[i], 0, sizeof(bufs[i])); 319 complete_fence = adf_device_post_nocopy(dev, intfs, n_intfs, bufs, 331 adf_buffer_cleanup(&bufs[ [all...] |
/drivers/media/usb/usbtv/ |
H A D | usbtv.h | 82 struct list_head bufs; member in struct:usbtv
|
/drivers/staging/media/omap24xx/ |
H A D | omap24xxcam.c | 264 if (NULL == vbq->bufs[i]) 266 if (V4L2_MEMORY_MMAP != vbq->bufs[i]->memory) 268 vbq->ops->buf_release(vbq, vbq->bufs[i]); 269 omap24xxcam_vbq_free_mmap_buffer(vbq->bufs[i]); 270 kfree(vbq->bufs[i]); 271 vbq->bufs[i] = NULL; 363 err = omap24xxcam_vbq_alloc_mmap_buffer(vbq->bufs[i]); 367 videobuf_to_dma(vbq->bufs[i])->sglen, i); 376 omap24xxcam_vbq_free_mmap_buffer(vbq->bufs[i]); 1128 vb = ofh->vbq.bufs[ [all...] |
/drivers/dma/ |
H A D | dmatest.c | 229 static void dmatest_init_srcs(u8 **bufs, unsigned int start, unsigned int len, argument 235 for (; (buf = *bufs); bufs++) { 247 static void dmatest_init_dsts(u8 **bufs, unsigned int start, unsigned int len, argument 253 for (; (buf = *bufs); bufs++) { 286 static unsigned int dmatest_verify(u8 **bufs, unsigned int start, argument 297 for (; (buf = *bufs); bufs++) {
|