Lines Matching refs:sgt
96 struct sg_table *sgt) in fpga_mgr_write_sg() argument
99 return mgr->mops->write_sg(mgr, sgt); in fpga_mgr_write_sg()
182 struct sg_table *sgt) in fpga_mgr_parse_header_sg_first() argument
189 sg_miter_start(&miter, sgt->sgl, sgt->nents, SG_MITER_FROM_SG); in fpga_mgr_parse_header_sg_first()
214 struct sg_table *sgt, size_t *ret_size) in fpga_mgr_parse_header_sg() argument
236 len = sg_pcopy_to_buffer(sgt->sgl, sgt->nents, in fpga_mgr_parse_header_sg()
295 struct sg_table *sgt) in fpga_mgr_prepare_sg() argument
310 ret = fpga_mgr_parse_header_sg_first(mgr, info, sgt); in fpga_mgr_prepare_sg()
313 sg_miter_start(&miter, sgt->sgl, sgt->nents, SG_MITER_FROM_SG); in fpga_mgr_prepare_sg()
333 buf = fpga_mgr_parse_header_sg(mgr, info, sgt, &len); in fpga_mgr_prepare_sg()
363 struct sg_table *sgt) in fpga_mgr_buf_load_sg() argument
367 ret = fpga_mgr_prepare_sg(mgr, info, sgt); in fpga_mgr_buf_load_sg()
374 ret = fpga_mgr_write_sg(mgr, sgt); in fpga_mgr_buf_load_sg()
379 sg_miter_start(&miter, sgt->sgl, sgt->nents, SG_MITER_FROM_SG); in fpga_mgr_buf_load_sg()
469 struct sg_table sgt; in fpga_mgr_buf_load() local
510 rc = sg_alloc_table_from_pages(&sgt, pages, index, offset_in_page(buf), in fpga_mgr_buf_load()
516 rc = fpga_mgr_buf_load_sg(mgr, info, &sgt); in fpga_mgr_buf_load()
517 sg_free_table(&sgt); in fpga_mgr_buf_load()
576 if (info->sgt) in fpga_mgr_load()
577 return fpga_mgr_buf_load_sg(mgr, info, info->sgt); in fpga_mgr_load()