Home
last modified time | relevance | path

Searched refs:sg_iter (Results 1 – 12 of 12) sorted by relevance

/linux-6.12.1/drivers/gpu/drm/lima/
Dlima_vm.c94 struct sg_dma_page_iter sg_iter; in lima_vm_bo_add() local
127 for_each_sgtable_dma_page(bo->base.sgt, &sg_iter, 0) { in lima_vm_bo_add()
128 err = lima_vm_map_page(vm, sg_page_iter_dma_address(&sg_iter), in lima_vm_bo_add()
286 struct sg_dma_page_iter sg_iter; in lima_vm_map_bo() local
301 for_each_sgtable_dma_page(bo->base.sgt, &sg_iter, pageoff) { in lima_vm_map_bo()
302 err = lima_vm_map_page(vm, sg_page_iter_dma_address(&sg_iter), in lima_vm_map_bo()
/linux-6.12.1/drivers/infiniband/sw/siw/
Dsiw_mem.c362 struct sg_page_iter sg_iter; in siw_umem_get() local
394 __sg_page_iter_start(&sg_iter, sgt->sgl, sgt->orig_nents, 0); in siw_umem_get()
396 if (!__sg_page_iter_next(&sg_iter)) { in siw_umem_get()
411 *plist = sg_page_iter_page(&sg_iter); in siw_umem_get()
415 if (!__sg_page_iter_next(&sg_iter)) in siw_umem_get()
/linux-6.12.1/drivers/gpu/drm/
Ddrm_cache.c132 struct sg_page_iter sg_iter; in drm_clflush_sg() local
135 for_each_sgtable_page(st, &sg_iter, 0) in drm_clflush_sg()
136 drm_clflush_page(sg_page_iter_page(&sg_iter)); in drm_clflush_sg()
/linux-6.12.1/drivers/infiniband/sw/rxe/
Drxe_mr.c97 struct sg_page_iter sg_iter; in rxe_mr_fill_pages_from_sgt() local
101 __sg_page_iter_start(&sg_iter, sgt->sgl, sgt->orig_nents, 0); in rxe_mr_fill_pages_from_sgt()
102 if (!__sg_page_iter_next(&sg_iter)) in rxe_mr_fill_pages_from_sgt()
108 page = sg_page_iter_page(&sg_iter); in rxe_mr_fill_pages_from_sgt()
120 if (!__sg_page_iter_next(&sg_iter)) in rxe_mr_fill_pages_from_sgt()
/linux-6.12.1/drivers/usb/gadget/udc/cdns2/
Dcdns2-gadget.c514 int sg_iter; in cdns2_ep_tx_isoc() local
537 sg_iter = preq->request.num_sgs ? preq->request.num_sgs : 1; in cdns2_ep_tx_isoc()
596 --sg_iter; in cdns2_ep_tx_isoc()
598 if (sg_iter != 0) { in cdns2_ep_tx_isoc()
622 int sg_iter = 0; in cdns2_ep_tx_bulk() local
637 for (sg_iter = 0; sg_iter < trbs_per_td; sg_iter++) { in cdns2_ep_tx_bulk()
641 if (pep->dir && sg_iter == trbs_per_td - 1) { in cdns2_ep_tx_bulk()
663 if (sg_iter == 0) in cdns2_ep_tx_bulk()
667 if (sg_iter == (trbs_per_td - (pep->dir ? 2 : 1))) in cdns2_ep_tx_bulk()
677 if (sg && sg_iter < (trbs_per_td - 1)) { in cdns2_ep_tx_bulk()
/linux-6.12.1/drivers/usb/cdns3/
Dcdns3-gadget.c1125 int sg_iter = 0; in cdns3_ep_run_transfer() local
1234 if (!(sg_iter % num_trb_req) && sg_supported) in cdns3_ep_run_transfer()
1288 if (sg_iter != 0) in cdns3_ep_run_transfer()
1295 if (sg_iter == (num_trb - 1) && sg_iter != 0) in cdns3_ep_run_transfer()
1299 if (sg_iter) in cdns3_ep_run_transfer()
1307 if ((sg_iter % num_trb_req) < num_trb_req - 1) in cdns3_ep_run_transfer()
1314 ++sg_iter; in cdns3_ep_run_transfer()
1319 } while (sg_iter < num_trb); in cdns3_ep_run_transfer()
1326 if (sg_iter == 1) in cdns3_ep_run_transfer()
/linux-6.12.1/drivers/xen/
Dgntdev-dmabuf.c573 struct sg_dma_page_iter sg_iter; in dmabuf_imp_to_refs() local
636 for_each_sgtable_dma_page(sgt, &sg_iter, 0) { in dmabuf_imp_to_refs()
637 dma_addr_t addr = sg_page_iter_dma_address(&sg_iter); in dmabuf_imp_to_refs()
/linux-6.12.1/drivers/infiniband/sw/rdmavt/
Dmr.c342 struct sg_page_iter sg_iter; in rvt_reg_user_mr() local
371 for_each_sgtable_page (&umem->sgt_append.sgt, &sg_iter, 0) { in rvt_reg_user_mr()
374 vaddr = page_address(sg_page_iter_page(&sg_iter)); in rvt_reg_user_mr()
/linux-6.12.1/drivers/gpu/drm/radeon/
Dradeon_ttm.c389 struct sg_page_iter sg_iter; in radeon_ttm_tt_unpin_userptr() local
402 for_each_sgtable_page(ttm->sg, &sg_iter, 0) { in radeon_ttm_tt_unpin_userptr()
403 struct page *page = sg_page_iter_page(&sg_iter); in radeon_ttm_tt_unpin_userptr()
/linux-6.12.1/drivers/target/
Dtarget_core_user.c711 struct sg_mapping_iter sg_iter; in tcmu_copy_data() local
720 sg_miter_start(&sg_iter, sg, sg_nents, sg_flags); in tcmu_copy_data()
744 if (!sg_miter_next(&sg_iter)) { in tcmu_copy_data()
751 cp_len = min3(sg_iter.length, page_remaining, in tcmu_copy_data()
757 memcpy(data_addr, sg_iter.addr, cp_len); in tcmu_copy_data()
759 memcpy(sg_iter.addr, data_addr, cp_len); in tcmu_copy_data()
763 sg_iter.consumed = cp_len; in tcmu_copy_data()
765 sg_miter_stop(&sg_iter); in tcmu_copy_data()
/linux-6.12.1/drivers/media/pci/intel/ipu3/
Dipu3-cio2.c842 struct sg_dma_page_iter sg_iter; in cio2_vb2_buf_init() local
869 for_each_sg_dma_page(sg->sgl, &sg_iter, sg->nents, 0) { in cio2_vb2_buf_init()
872 b->lop[i][j] = PFN_DOWN(sg_page_iter_dma_address(&sg_iter)); in cio2_vb2_buf_init()
/linux-6.12.1/drivers/vfio/pci/mlx5/
Dcmd.c400 struct sg_page_iter sg_iter; in mlx5vf_free_data_buffer() local
412 for_each_sgtable_page(&buf->table.sgt, &sg_iter, 0) in mlx5vf_free_data_buffer()
413 __free_page(sg_page_iter_page(&sg_iter)); in mlx5vf_free_data_buffer()