Home
last modified time | relevance | path

Searched refs:nelems (Results 1 – 6 of 6) sorted by relevance

/drivers/xen/
Dswiotlb-xen.c546 int nelems, enum dma_data_direction dir, in xen_swiotlb_map_sg_attrs() argument
554 for_each_sg(sgl, sg, nelems, i) { in xen_swiotlb_map_sg_attrs()
598 return nelems; in xen_swiotlb_map_sg_attrs()
608 int nelems, enum dma_data_direction dir, in xen_swiotlb_unmap_sg_attrs() argument
616 for_each_sg(sgl, sg, nelems, i) in xen_swiotlb_unmap_sg_attrs()
631 int nelems, enum dma_data_direction dir, in xen_swiotlb_sync_sg() argument
637 for_each_sg(sgl, sg, nelems, i) in xen_swiotlb_sync_sg()
644 int nelems, enum dma_data_direction dir) in xen_swiotlb_sync_sg_for_cpu() argument
646 xen_swiotlb_sync_sg(hwdev, sg, nelems, dir, SYNC_FOR_CPU); in xen_swiotlb_sync_sg_for_cpu()
652 int nelems, enum dma_data_direction dir) in xen_swiotlb_sync_sg_for_device() argument
[all …]
/drivers/block/
Dcciss_scsi.c114 int nelems; member
188 if (stk->top >= stk->nelems) { in scsi_cmd_free()
204 stk->nelems = cciss_tape_cmds + 2; in scsi_cmd_stack_setup()
206 h->chainsize, stk->nelems); in scsi_cmd_stack_setup()
210 size = sizeof(struct cciss_scsi_cmd_stack_elem_t) * stk->nelems; in scsi_cmd_stack_setup()
219 cciss_free_sg_chain_blocks(sa->cmd_sg_list, stk->nelems); in scsi_cmd_stack_setup()
223 stk->elem = kmalloc(sizeof(stk->elem[0]) * stk->nelems, GFP_KERNEL); in scsi_cmd_stack_setup()
229 for (i = 0; i < stk->nelems; i++) { in scsi_cmd_stack_setup()
235 stk->top = stk->nelems-1; in scsi_cmd_stack_setup()
248 if (stk->top != stk->nelems-1) { in scsi_cmd_stack_free()
[all …]
/drivers/iommu/
Dintel-iommu.c3770 int nelems, enum dma_data_direction dir, in intel_unmap_sg() argument
3777 struct scatterlist *sglist, int nelems, int dir) in intel_nontranslate_map_sg() argument
3782 for_each_sg(sglist, sg, nelems, i) { in intel_nontranslate_map_sg()
3787 return nelems; in intel_nontranslate_map_sg()
3790 static int intel_map_sg(struct device *dev, struct scatterlist *sglist, int nelems, in intel_map_sg() argument
3805 return intel_nontranslate_map_sg(dev, sglist, nelems, dir); in intel_map_sg()
3813 for_each_sg(sglist, sg, nelems, i) in intel_map_sg()
3849 return nelems; in intel_map_sg()
Damd_iommu.c2642 int nelems, enum dma_data_direction dir, in map_sg() argument
2663 for_each_sg(sglist, s, nelems, i) { in map_sg()
2701 int nelems, enum dma_data_direction dir, in unmap_sg() argument
2717 for_each_sg(sglist, s, nelems, i) { in unmap_sg()
/drivers/scsi/
Dhpsa.c577 static int board_id_in_array(u32 a[], int nelems, u32 board_id) in board_id_in_array() argument
581 for (i = 0; i < nelems; i++) in board_id_in_array()
/drivers/staging/rdma/hfi1/
Dchip.c7025 static void get_vlarb_preempt(struct hfi1_devdata *dd, u32 nelems, in get_vlarb_preempt() argument
7030 for (i = 0; i < nelems; i++, vl++) { in get_vlarb_preempt()