Home
last modified time | relevance | path

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

/drivers/xen/
Dswiotlb-xen.c482 int nelems, enum dma_data_direction dir, in xen_swiotlb_map_sg_attrs() argument
490 for_each_sg(sgl, sg, nelems, i) { in xen_swiotlb_map_sg_attrs()
515 return nelems; in xen_swiotlb_map_sg_attrs()
525 int nelems, enum dma_data_direction dir, in xen_swiotlb_unmap_sg_attrs() argument
533 for_each_sg(sgl, sg, nelems, i) in xen_swiotlb_unmap_sg_attrs()
548 int nelems, enum dma_data_direction dir, in xen_swiotlb_sync_sg() argument
554 for_each_sg(sgl, sg, nelems, i) in xen_swiotlb_sync_sg()
561 int nelems, enum dma_data_direction dir) in xen_swiotlb_sync_sg_for_cpu() argument
563 xen_swiotlb_sync_sg(hwdev, sg, nelems, dir, SYNC_FOR_CPU); in xen_swiotlb_sync_sg_for_cpu()
569 int nelems, enum dma_data_direction dir) in xen_swiotlb_sync_sg_for_device() argument
[all …]
/drivers/block/
Dcciss_scsi.c115 int nelems; member
189 if (stk->top >= stk->nelems) { in scsi_cmd_free()
205 stk->nelems = cciss_tape_cmds + 2; in scsi_cmd_stack_setup()
207 h->chainsize, stk->nelems); in scsi_cmd_stack_setup()
211 size = sizeof(struct cciss_scsi_cmd_stack_elem_t) * stk->nelems; in scsi_cmd_stack_setup()
220 cciss_free_sg_chain_blocks(sa->cmd_sg_list, stk->nelems); in scsi_cmd_stack_setup()
224 stk->elem = kmalloc(sizeof(stk->elem[0]) * stk->nelems, GFP_KERNEL); in scsi_cmd_stack_setup()
230 for (i = 0; i < stk->nelems; i++) { in scsi_cmd_stack_setup()
236 stk->top = stk->nelems-1; in scsi_cmd_stack_setup()
249 if (stk->top != stk->nelems-1) { in scsi_cmd_stack_free()
[all …]
/drivers/iommu/
Dintel-iommu.c3051 int nelems, enum dma_data_direction dir, in intel_unmap_sg() argument
3097 struct scatterlist *sglist, int nelems, int dir) in intel_nontranslate_map_sg() argument
3102 for_each_sg(sglist, sg, nelems, i) { in intel_nontranslate_map_sg()
3107 return nelems; in intel_nontranslate_map_sg()
3110 static int intel_map_sg(struct device *hwdev, struct scatterlist *sglist, int nelems, in intel_map_sg() argument
3126 return intel_nontranslate_map_sg(hwdev, sglist, nelems, dir); in intel_map_sg()
3134 for_each_sg(sglist, sg, nelems, i) in intel_map_sg()
3175 return nelems; in intel_map_sg()
Damd_iommu.c2846 int nelems, enum dma_data_direction dir, in map_sg() argument
2867 for_each_sg(sglist, s, nelems, i) { in map_sg()
2905 int nelems, enum dma_data_direction dir, in unmap_sg() argument
2921 for_each_sg(sglist, s, nelems, i) { in unmap_sg()