Home
last modified time | relevance | path

Searched refs:sg_list (Results 1 – 25 of 130) sorted by relevance

123456

/Linux-v4.19/drivers/virt/
Dfsl_hypervisor.c153 struct fh_sg_list *sg_list = NULL; in ioctl_memcpy() local
243 sg_list = PTR_ALIGN(sg_list_unaligned, sizeof(struct fh_sg_list)); in ioctl_memcpy()
261 sg_list[0].source = page_to_phys(pages[0]) + lb_offset; in ioctl_memcpy()
262 sg_list[0].target = param.remote_paddr; in ioctl_memcpy()
264 sg_list[0].source = param.remote_paddr; in ioctl_memcpy()
265 sg_list[0].target = page_to_phys(pages[0]) + lb_offset; in ioctl_memcpy()
267 sg_list[0].size = min_t(uint64_t, param.count, PAGE_SIZE - lb_offset); in ioctl_memcpy()
269 remote_paddr = param.remote_paddr + sg_list[0].size; in ioctl_memcpy()
270 count = param.count - sg_list[0].size; in ioctl_memcpy()
275 sg_list[i].source = page_to_phys(pages[i]); in ioctl_memcpy()
[all …]
/Linux-v4.19/drivers/infiniband/hw/cxgb3/
Diwch_qp.c73 if ((plen + wr->sg_list[i].length) < plen) in build_rdma_send()
76 plen += wr->sg_list[i].length; in build_rdma_send()
77 wqe->send.sgl[i].stag = cpu_to_be32(wr->sg_list[i].lkey); in build_rdma_send()
78 wqe->send.sgl[i].len = cpu_to_be32(wr->sg_list[i].length); in build_rdma_send()
79 wqe->send.sgl[i].to = cpu_to_be64(wr->sg_list[i].addr); in build_rdma_send()
110 if ((plen + wr->sg_list[i].length) < plen) { in build_rdma_write()
113 plen += wr->sg_list[i].length; in build_rdma_write()
115 cpu_to_be32(wr->sg_list[i].lkey); in build_rdma_write()
117 cpu_to_be32(wr->sg_list[i].length); in build_rdma_write()
119 cpu_to_be64(wr->sg_list[i].addr); in build_rdma_write()
[all …]
/Linux-v4.19/drivers/scsi/qla2xxx/
Dqla_bsg.c43 bsg_job->request_payload.sg_list, in qla2x00_bsg_sp_free()
48 bsg_job->reply_payload.sg_list, in qla2x00_bsg_sp_free()
51 dma_unmap_sg(&ha->pdev->dev, bsg_job->request_payload.sg_list, in qla2x00_bsg_sp_free()
54 dma_unmap_sg(&ha->pdev->dev, bsg_job->reply_payload.sg_list, in qla2x00_bsg_sp_free()
187 bsg_job->reply_payload.sg_list, in qla24xx_proc_fcp_prio_cfg_cmd()
214 sg_copy_to_buffer(bsg_job->request_payload.sg_list, in qla24xx_proc_fcp_prio_cfg_cmd()
342 dma_map_sg(&ha->pdev->dev, bsg_job->request_payload.sg_list, in qla2x00_process_els()
349 rsp_sg_cnt = dma_map_sg(&ha->pdev->dev, bsg_job->reply_payload.sg_list, in qla2x00_process_els()
401 dma_unmap_sg(&ha->pdev->dev, bsg_job->request_payload.sg_list, in qla2x00_process_els()
403 dma_unmap_sg(&ha->pdev->dev, bsg_job->reply_payload.sg_list, in qla2x00_process_els()
[all …]
/Linux-v4.19/block/
Dbsg-lib.c129 kfree(job->request_payload.sg_list); in bsg_teardown_job()
130 kfree(job->reply_payload.sg_list); in bsg_teardown_job()
181 buf->sg_list = kzalloc(sz, GFP_KERNEL); in bsg_map_buffer()
182 if (!buf->sg_list) in bsg_map_buffer()
184 sg_init_table(buf->sg_list, req->nr_phys_segments); in bsg_map_buffer()
185 buf->sg_cnt = blk_rq_map_sg(req->q, req, buf->sg_list); in bsg_map_buffer()
220 kfree(job->request_payload.sg_list); in bsg_prepare_job()
/Linux-v4.19/include/rdma/
Drdmavt_mr.h119 struct rvt_sge *sg_list; /* next SGE to be used if any */ member
140 ss->sge = *ss->sg_list++; in rvt_put_ss()
168 *sge = *ss->sg_list++; in rvt_update_sge()
Drdmavt_qp.h177 struct rvt_sge sg_list[0]; member
188 struct ib_sge sg_list[0]; member
520 struct rvt_sge *sge = &wqe->sg_list[i]; in rvt_put_swqe()
/Linux-v4.19/drivers/dma/
Dimx-dma.c159 struct scatterlist *sg_list; member
800 kfree(imxdmac->sg_list); in imxdma_free_chan_resources()
801 imxdmac->sg_list = NULL; in imxdma_free_chan_resources()
875 kfree(imxdmac->sg_list); in imxdma_prep_dma_cyclic()
877 imxdmac->sg_list = kcalloc(periods + 1, in imxdma_prep_dma_cyclic()
879 if (!imxdmac->sg_list) in imxdma_prep_dma_cyclic()
882 sg_init_table(imxdmac->sg_list, periods); in imxdma_prep_dma_cyclic()
885 sg_assign_page(&imxdmac->sg_list[i], NULL); in imxdma_prep_dma_cyclic()
886 imxdmac->sg_list[i].offset = 0; in imxdma_prep_dma_cyclic()
887 imxdmac->sg_list[i].dma_address = dma_addr; in imxdma_prep_dma_cyclic()
[all …]
/Linux-v4.19/drivers/infiniband/hw/qib/
Dqib_ruc.c262 sqp->s_sge.sge = wqe->sg_list[0]; in qib_ruc_loopback()
263 sqp->s_sge.sg_list = wqe->sg_list + 1; in qib_ruc_loopback()
300 qp->r_sge.sg_list = NULL; in qib_ruc_loopback()
314 sqp->s_sge.sg_list = NULL; in qib_ruc_loopback()
316 qp->r_sge.sge = wqe->sg_list[0]; in qib_ruc_loopback()
317 qp->r_sge.sg_list = wqe->sg_list + 1; in qib_ruc_loopback()
365 *sge = *sqp->s_sge.sg_list++; in qib_ruc_loopback()
Dqib_ud.c170 ssge.sg_list = swqe->sg_list + 1; in qib_ud_loopback()
171 ssge.sge = *swqe->sg_list; in qib_ud_loopback()
188 *sge = *ssge.sg_list++; in qib_ud_loopback()
322 qp->s_sge.sge = wqe->sg_list[0]; in qib_make_ud_req()
323 qp->s_sge.sg_list = wqe->sg_list + 1; in qib_make_ud_req()
Dqib_uc.c98 qp->s_sge.sge = wqe->sg_list[0]; in qib_make_uc_req()
99 qp->s_sge.sg_list = wqe->sg_list + 1; in qib_make_uc_req()
419 qp->r_sge.sg_list = NULL; in qib_uc_rcv()
/Linux-v4.19/drivers/infiniband/hw/qedr/
Dqedr_roce_cm.c110 qp->rqe_wr_id[qp->rq.gsi_cons].sg_list[0].length = in qedr_ll2_complete_rx_packet()
402 send_size += swr->sg_list[i].length; in qedr_gsi_build_header()
531 packet->payload[i].baddr = swr->sg_list[i].addr; in qedr_gsi_build_packet()
532 packet->payload[i].len = swr->sg_list[i].length; in qedr_gsi_build_packet()
639 wr->sg_list[0].addr, in qedr_gsi_post_recv()
640 wr->sg_list[0].length, in qedr_gsi_post_recv()
652 qp->rqe_wr_id[qp->rq.prod].sg_list[0] = wr->sg_list[0]; in qedr_gsi_post_recv()
690 wc[i].byte_len = qp->rqe_wr_id[qp->rq.cons].sg_list[0].length; in qedr_gsi_poll_cq()
/Linux-v4.19/drivers/scsi/aacraid/
Dcommctrl.c493 void *sg_list[HBA_MAX_SG_EMBEDDED]; in aac_send_raw_srb() local
518 memset(sg_list, 0, sizeof(sg_list)); /* cleanup may take issue */ in aac_send_raw_srb()
557 if (user_srbcmd->sg.count > ARRAY_SIZE(sg_list)) { in aac_send_raw_srb()
685 sg_list[i] = p; // save so we can clean up later in aac_send_raw_srb()
746 sg_list[i] = p; // save so we can clean up later in aac_send_raw_srb()
801 sg_list[i] = p; // save so we can clean up later in aac_send_raw_srb()
858 sg_list[i] = p; // save so we can clean up later in aac_send_raw_srb()
897 sg_list[i] = p; // save so we can clean up later in aac_send_raw_srb()
937 if (copy_to_user(sg_user[i], sg_list[i], sg_count[i])) { in aac_send_raw_srb()
992 kfree(sg_list[i]); in aac_send_raw_srb()
/Linux-v4.19/drivers/infiniband/hw/bnxt_re/
Dib_verbs.c107 struct bnxt_qplib_sge *sg_list, int num) in bnxt_re_build_sgl() argument
112 sg_list[i].addr = ib_sg_list[i].addr; in bnxt_re_build_sgl()
113 sg_list[i].lkey = ib_sg_list[i].lkey; in bnxt_re_build_sgl()
114 sg_list[i].size = ib_sg_list[i].length; in bnxt_re_build_sgl()
115 total += sg_list[i].size; in bnxt_re_build_sgl()
1537 bnxt_re_build_sgl(wr->sg_list, wqe.sg_list, wr->num_sge); in bnxt_re_post_srq_recv()
2008 wqe->sg_list[i].addr = wqe->sg_list[i - 1].addr; in bnxt_re_build_qp1_send_v2()
2009 wqe->sg_list[i].lkey = wqe->sg_list[i - 1].lkey; in bnxt_re_build_qp1_send_v2()
2010 wqe->sg_list[i].size = wqe->sg_list[i - 1].size; in bnxt_re_build_qp1_send_v2()
2034 wqe->sg_list[0].addr = sge.addr; in bnxt_re_build_qp1_send_v2()
[all …]
/Linux-v4.19/drivers/infiniband/hw/hfi1/
Druc.c246 sqp->s_sge.sge = wqe->sg_list[0]; in ruc_loopback()
247 sqp->s_sge.sg_list = wqe->sg_list + 1; in ruc_loopback()
307 qp->r_sge.sg_list = NULL; in ruc_loopback()
321 sqp->s_sge.sg_list = NULL; in ruc_loopback()
323 qp->r_sge.sge = wqe->sg_list[0]; in ruc_loopback()
324 qp->r_sge.sg_list = wqe->sg_list + 1; in ruc_loopback()
372 *sge = *sqp->s_sge.sg_list++; in ruc_loopback()
Duc.c153 qp->s_sge.sge = wqe->sg_list[0]; in hfi1_make_uc_req()
154 qp->s_sge.sg_list = wqe->sg_list + 1; in hfi1_make_uc_req()
493 qp->r_sge.sg_list = NULL; in hfi1_uc_rcv()
/Linux-v4.19/drivers/infiniband/sw/rdmavt/
Dqp.c483 struct rvt_sge *sge = &wqe->sg_list[i]; in rvt_swqe_has_lkey()
1589 wqe->sg_list[i] = wr->sg_list[i]; in rvt_post_recv()
1636 wr->sg_list[0].length < sizeof(u64) || in rvt_qp_valid_operation()
1637 wr->sg_list[0].addr & (sizeof(u64) - 1))) in rvt_qp_valid_operation()
1810 u32 length = wr->sg_list[i].length; in rvt_post_one_wr()
1814 ret = rvt_lkey_ok(rkt, pd, &wqe->sg_list[j], last_sge, in rvt_post_one_wr()
1815 &wr->sg_list[i], acc); in rvt_post_one_wr()
1820 last_sge = &wqe->sg_list[j]; in rvt_post_one_wr()
1877 struct rvt_sge *sge = &wqe->sg_list[--j]; in rvt_post_one_wr()
1983 wqe->sg_list[i] = wr->sg_list[i]; in rvt_post_srq_recv()
[all …]
/Linux-v4.19/drivers/infiniband/hw/cxgb4/
Dqp.c422 if ((plen + wr->sg_list[i].length) > max) in build_immd()
424 srcp = (u8 *)(unsigned long)wr->sg_list[i].addr; in build_immd()
425 plen += wr->sg_list[i].length; in build_immd()
426 rem = wr->sg_list[i].length; in build_immd()
452 struct fw_ri_isgl *isglp, struct ib_sge *sg_list, in build_isgl() argument
466 if ((plen + sg_list[i].length) < plen) in build_isgl()
468 plen += sg_list[i].length; in build_isgl()
469 *flitp = cpu_to_be64(((u64)sg_list[i].lkey << 32) | in build_isgl()
470 sg_list[i].length); in build_isgl()
473 *flitp = cpu_to_be64(sg_list[i].addr); in build_isgl()
[all …]
/Linux-v4.19/drivers/net/ethernet/ibm/ehea/
Dehea_qmr.h120 struct ehea_vsgentry sg_list[EHEA_MAX_WQE_SG_ENTRIES]; member
129 struct ehea_vsgentry sg_list[EHEA_MAX_WQE_SG_ENTRIES-1]; member
146 struct ehea_vsgentry sg_list[EHEA_MAX_WQE_SG_ENTRIES]; member
/Linux-v4.19/arch/powerpc/include/asm/
Dfsl_hcalls.h358 unsigned int target, phys_addr_t sg_list, unsigned int count) in fh_partition_memcpy() argument
370 r5 = (uint32_t) sg_list; in fh_partition_memcpy()
373 r6 = sg_list >> 32; in fh_partition_memcpy()
/Linux-v4.19/drivers/xen/
Defi.c226 unsigned long count, unsigned long sg_list) in xen_efi_update_capsule() argument
236 efi_data(op).u.update_capsule.sg_list = sg_list; in xen_efi_update_capsule()
/Linux-v4.19/include/linux/
Dbsg-lib.h37 struct scatterlist *sg_list; member
Dagp_backend.h85 struct scatterlist *sg_list; member
/Linux-v4.19/drivers/infiniband/hw/i40iw/
Di40iw_verbs.c2186 static void i40iw_copy_sg_list(struct i40iw_sge *sg_list, struct ib_sge *sgl, int num_sges) in i40iw_copy_sg_list() argument
2191 sg_list[i].tag_off = sgl[i].addr; in i40iw_copy_sg_list()
2192 sg_list[i].len = sgl[i].length; in i40iw_copy_sg_list()
2193 sg_list[i].stag = sgl[i].lkey; in i40iw_copy_sg_list()
2251 info.op.inline_send.data = (void *)(unsigned long)ib_wr->sg_list[0].addr; in i40iw_post_send()
2252 info.op.inline_send.len = ib_wr->sg_list[0].length; in i40iw_post_send()
2256 info.op.send.sg_list = (struct i40iw_sge *)ib_wr->sg_list; in i40iw_post_send()
2271 info.op.inline_rdma_write.data = (void *)(unsigned long)ib_wr->sg_list[0].addr; in i40iw_post_send()
2272 info.op.inline_rdma_write.len = ib_wr->sg_list[0].length; in i40iw_post_send()
2277 info.op.rdma_write.lo_sg_list = (void *)ib_wr->sg_list; in i40iw_post_send()
[all …]
/Linux-v4.19/drivers/infiniband/hw/mlx4/
Dsrq.c350 scat[i].byte_count = cpu_to_be32(wr->sg_list[i].length); in mlx4_ib_post_srq_recv()
351 scat[i].lkey = cpu_to_be32(wr->sg_list[i].lkey); in mlx4_ib_post_srq_recv()
352 scat[i].addr = cpu_to_be64(wr->sg_list[i].addr); in mlx4_ib_post_srq_recv()
/Linux-v4.19/drivers/scsi/qla4xxx/
Dql4_bsg.c63 sg_copy_from_buffer(bsg_job->reply_payload.sg_list, in qla4xxx_read_flash()
123 sg_copy_to_buffer(bsg_job->request_payload.sg_list, in qla4xxx_update_flash()
187 sg_copy_from_buffer(bsg_job->reply_payload.sg_list, in qla4xxx_get_acb_state()
258 sg_copy_from_buffer(bsg_job->reply_payload.sg_list, in qla4xxx_read_nvram()
322 sg_copy_to_buffer(bsg_job->request_payload.sg_list, in qla4xxx_update_nvram()
436 sg_copy_from_buffer(bsg_job->reply_payload.sg_list, in qla4xxx_bsg_get_acb()

123456