/linux-6.6.21/drivers/gpu/drm/lima/ |
D | lima_vm.c | 94 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.6.21/drivers/gpu/drm/ |
D | drm_cache.c | 132 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.6.21/drivers/infiniband/sw/rxe/ |
D | rxe_mr.c | 97 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.6.21/drivers/usb/gadget/udc/cdns2/ |
D | cdns2-gadget.c | 514 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.6.21/drivers/usb/cdns3/ |
D | cdns3-gadget.c | 1125 int sg_iter = 0; in cdns3_ep_run_transfer() local 1233 if (!(sg_iter % num_trb_req) && sg_supported) in cdns3_ep_run_transfer() 1287 if (sg_iter != 0) in cdns3_ep_run_transfer() 1294 if (sg_iter == (num_trb - 1) && sg_iter != 0) in cdns3_ep_run_transfer() 1298 if (sg_iter) in cdns3_ep_run_transfer() 1306 if ((sg_iter % num_trb_req) < num_trb_req - 1) in cdns3_ep_run_transfer() 1313 ++sg_iter; in cdns3_ep_run_transfer() 1318 } while (sg_iter < num_trb); in cdns3_ep_run_transfer() 1325 if (sg_iter == 1) in cdns3_ep_run_transfer()
|
/linux-6.6.21/drivers/xen/ |
D | gntdev-dmabuf.c | 573 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.6.21/drivers/infiniband/sw/rdmavt/ |
D | mr.c | 342 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.6.21/drivers/gpu/drm/radeon/ |
D | radeon_ttm.c | 396 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-6.6.21/drivers/target/ |
D | target_core_user.c | 711 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.6.21/drivers/media/pci/intel/ipu3/ |
D | ipu3-cio2.c | 841 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-6.6.21/drivers/vfio/pci/mlx5/ |
D | cmd.c | 377 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()
|