Home
last modified time | relevance | path

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

/Linux-v6.6/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-v6.6/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-v6.6/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-v6.6/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-v6.6/drivers/xen/
Dgntdev-dmabuf.c579 struct sg_page_iter sg_iter; in dmabuf_imp_to_refs() local
629 for_each_sgtable_page(sgt, &sg_iter, 0) { in dmabuf_imp_to_refs()
630 struct page *page = sg_page_iter_page(&sg_iter); in dmabuf_imp_to_refs()
/Linux-v6.6/drivers/usb/cdns3/
Dcdns3-gadget.c1121 int sg_iter = 0; in cdns3_ep_run_transfer() local
1234 if (sg_iter != 0) in cdns3_ep_run_transfer()
1241 if (sg_iter == (num_trb - 1) && sg_iter != 0) in cdns3_ep_run_transfer()
1245 if (sg_iter) in cdns3_ep_run_transfer()
1253 if (sg_iter < num_trb - 1) in cdns3_ep_run_transfer()
1260 ++sg_iter; in cdns3_ep_run_transfer()
1265 } while (sg_iter < num_trb); in cdns3_ep_run_transfer()
1272 if (sg_iter == 1) in cdns3_ep_run_transfer()
/Linux-v6.6/drivers/gpu/drm/radeon/
Dradeon_ttm.c396 struct sg_page_iter sg_iter; in radeon_ttm_tt_unpin_userptr() local
409 for_each_sgtable_page(ttm->sg, &sg_iter, 0) { in radeon_ttm_tt_unpin_userptr()
410 struct page *page = sg_page_iter_page(&sg_iter); in radeon_ttm_tt_unpin_userptr()
/Linux-v6.6/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-v6.6/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-v6.6/drivers/media/pci/intel/ipu3/
Dipu3-cio2.c841 struct sg_dma_page_iter sg_iter; in cio2_vb2_buf_init() local
868 for_each_sg_dma_page(sg->sgl, &sg_iter, sg->nents, 0) { in cio2_vb2_buf_init()
871 b->lop[i][j] = PFN_DOWN(sg_page_iter_dma_address(&sg_iter)); in cio2_vb2_buf_init()
/Linux-v6.6/drivers/vfio/pci/mlx5/
Dcmd.c377 struct sg_page_iter sg_iter; in mlx5vf_free_data_buffer() local
389 for_each_sgtable_page(&buf->table.sgt, &sg_iter, 0) in mlx5vf_free_data_buffer()
390 __free_page(sg_page_iter_page(&sg_iter)); in mlx5vf_free_data_buffer()