/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;
|
H A D | powertec.c | 140 int bufs, map_dir, dma_dir; local 142 bufs = copy_SCp_to_sg(&info->sg[0], SCp, NR_SG); 151 dma_map_sg(dev, info->sg, bufs, map_dir); 154 set_dma_sg(dmach, info->sg, bufs);
|
H A D | cumana_2.c | 168 int bufs, map_dir, dma_dir, alatch_dir; local 170 bufs = copy_SCp_to_sg(&info->sg[0], SCp, NR_SG); 181 dma_map_sg(dev, info->sg, bufs, map_dir); 184 set_dma_sg(dmach, info->sg, bufs);
|
H A D | eesox.c | 167 int bufs, map_dir, dma_dir; local 169 bufs = copy_SCp_to_sg(&info->sg[0], SCp, NR_SG); 178 dma_map_sg(dev, info->sg, bufs, map_dir); 181 set_dma_sg(dmach, info->sg, bufs);
|
/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
|
/drivers/video/adf/ |
H A D | adf_fops32.h | 23 compat_uptr_t bufs; member in struct:adf_post_config32
|
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_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/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/media/usb/usbtv/ |
H A D | usbtv.h | 82 struct list_head bufs; member in struct:usbtv
|
/drivers/net/ethernet/cisco/enic/ |
H A D | vnic_wq.h | 84 struct vnic_wq_buf *bufs[VNIC_WQ_BUF_BLKS_MAX]; member in struct:vnic_wq
|
H A D | vnic_rq.h | 83 struct vnic_rq_buf *bufs[VNIC_RQ_BUF_BLKS_MAX]; member in struct:vnic_rq
|
/drivers/scsi/fnic/ |
H A D | vnic_wq.h | 90 struct vnic_wq_buf *bufs[VNIC_WQ_BUF_BLKS_MAX]; member in struct:vnic_wq
|
H A D | vnic_rq.h | 97 struct vnic_rq_buf *bufs[VNIC_RQ_BUF_BLKS_MAX]; member in struct:vnic_rq
|
/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/virtio/ |
H A D | virtio_ring.c | 627 u16 bufs; local 638 bufs = (u16)(vq->vring.avail->idx - vq->last_used_idx) * 3 / 4; 639 vring_used_event(&vq->vring) = vq->last_used_idx + bufs; 641 if (unlikely((u16)(vq->vring.used->idx - vq->last_used_idx) > bufs)) {
|
/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/staging/lustre/lustre/ptlrpc/ |
H A D | import.c | 633 char *bufs[] = { NULL, local 698 imp->imp_connect_op, bufs, NULL);
|
/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/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++) {
|
/drivers/media/pci/pt1/ |
H A D | pt1.c | 66 struct pt1_buffer bufs[PT1_NR_BUFS]; member in struct:pt1_table 328 page = pt1->tables[pt1->table_index].bufs[pt1->buf_index].page; 395 pt1_cleanup_buffer(pt1, &table->bufs[i]); 413 ret = pt1_init_buffer(pt1, &table->bufs[i], &buf_pfn); 427 pt1_cleanup_buffer(pt1, &table->bufs[i]);
|
/drivers/staging/lustre/lustre/mgc/ |
H A D | mgc_request.c | 1110 struct lustre_cfg_bufs bufs; local 1229 lustre_cfg_bufs_reset(&bufs, obdname); 1274 lustre_cfg_bufs_set_string(&bufs, 1, params); 1277 lcfg = lustre_cfg_new(LCFG_PARAM, &bufs);
|
/drivers/media/usb/dvb-usb/ |
H A D | cxusb.c | 308 u8 buf, bufs[] = { local 321 for (i = 0; i < sizeof(bufs)/sizeof(u8); i += 4/sizeof(u8)) { 323 bufs+i, 4, &buf, 1);
|
/drivers/media/v4l2-core/ |
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...] |