/freebsd/contrib/ofed/libcxgb4/ |
H A D | qp.c | 112 for (i = 0; i < wr->num_sge; i++) { in build_immd() 134 int num_sge, u32 *plenp) in build_isgl() argument 140 for (i = 0; i < num_sge; i++) { in build_isgl() 151 isglp->nsge = htobe16(num_sge); in build_isgl() 165 if (wr->num_sge > T4_MAX_SEND_SGE) in build_rdma_send() 178 if (wr->num_sge) { in build_rdma_send() 188 wr->sg_list, wr->num_sge, &plen); in build_rdma_send() 192 wr->num_sge * sizeof (struct fw_ri_sge); in build_rdma_send() 214 if (wr->num_sge > T4_MAX_SEND_SGE) in build_rdma_write() 219 if (wr->num_sge) { in build_rdma_write() [all …]
|
/freebsd/sys/ofed/drivers/infiniband/core/ |
H A D | ib_uverbs_std_types_mr.c | 53 int num_sge; in UVERBS_HANDLER() local 70 num_sge = uverbs_attr_ptr_get_array_size( in UVERBS_HANDLER() 72 if (num_sge < 0) in UVERBS_HANDLER() 73 return num_sge; in UVERBS_HANDLER() 77 return ib_dev->advise_mr(pd, advice, flags, sg_list, num_sge, in UVERBS_HANDLER()
|
H A D | ib_uverbs_cmd.c | 1990 static void *alloc_wr(size_t wr_size, __u32 num_sge) in alloc_wr() argument 1992 if (num_sge >= (U32_MAX - ALIGN(wr_size, sizeof (struct ib_sge))) / in alloc_wr() 1997 num_sge * sizeof (struct ib_sge), GFP_KERNEL); in alloc_wr() 2050 if (user_wr->num_sge + sg_ind > cmd.sge_count) { in ib_uverbs_post_send() 2065 ud = alloc_wr(next_size, user_wr->num_sge); in ib_uverbs_post_send() 2088 rdma = alloc_wr(next_size, user_wr->num_sge); in ib_uverbs_post_send() 2103 atomic = alloc_wr(next_size, user_wr->num_sge); in ib_uverbs_post_send() 2119 next = alloc_wr(next_size, user_wr->num_sge); in ib_uverbs_post_send() 2145 next->num_sge = user_wr->num_sge; in ib_uverbs_post_send() 2149 if (next->num_sge) { in ib_uverbs_post_send() [all …]
|
/freebsd/sys/ofed/include/rdma/ |
H A D | rdmavt_mr.h | 118 u8 num_sge; member 134 while (ss->num_sge) { in rvt_put_ss() 136 if (--ss->num_sge) in rvt_put_ss()
|
/freebsd/contrib/ofed/librdmacm/ |
H A D | rdma_verbs.h | 107 wr.num_sge = nsge; in rdma_post_recvv() 124 wr.num_sge = nsge; in rdma_post_sendv() 140 wr.num_sge = nsge; in rdma_post_readv() 158 wr.num_sge = nsge; in rdma_post_writev() 241 wr.num_sge = 1; in rdma_post_ud_send()
|
/freebsd/contrib/ofed/libmlx5/ |
H A D | qp.c | 284 for (i = sg_copy_ptr->index; i < wr->num_sge; ++i) { in set_data_inl_seg() 368 if (unlikely(wr->num_sge < 1)) { in copy_eth_inline_headers() 370 wr->num_sge); in copy_eth_inline_headers() 380 for (j = 0; j < wr->num_sge && inl_hdr_size > 0; ++j) { in copy_eth_inline_headers() 659 if (unlikely(wr->num_sge > qp->sq.max_gs)) { in _mlx5_post_send() 661 wr->num_sge, qp->sq.max_gs); in _mlx5_post_send() 856 if (wr->send_flags & IBV_SEND_INLINE && wr->num_sge) { in _mlx5_post_send() 870 for (i = sg_copy_ptr.index; i < wr->num_sge; ++i) { in _mlx5_post_send() 1084 if (unlikely(wr->num_sge > rwq->rq.max_gs)) { in mlx5_post_wq_recv() 1097 for (i = 0, j = 0; i < wr->num_sge; ++i) { in mlx5_post_wq_recv() [all …]
|
H A D | srq.c | 100 if (wr->num_sge > srq->max_gs) { in mlx5_post_srq_recv() 119 for (i = 0; i < wr->num_sge; ++i) { in mlx5_post_srq_recv()
|
/freebsd/contrib/ofed/libmlx4/ |
H A D | qp.c | 240 if (wr->num_sge > qp->sq.max_gs) { in mlx4_post_send() 296 if (!wr->num_sge) in mlx4_post_send() 367 if (wr->send_flags & IBV_SEND_INLINE && wr->num_sge) { in mlx4_post_send() 382 for (i = 0; i < wr->num_sge; ++i) { in mlx4_post_send() 437 for (i = wr->num_sge - 1; i >= 0 ; --i) in mlx4_post_send() 440 size += wr->num_sge * (sizeof *seg / 16); in mlx4_post_send() 535 if (wr->num_sge > qp->rq.max_gs) { in mlx4_post_recv() 543 for (i = 0; i < wr->num_sge; ++i) in mlx4_post_recv()
|
H A D | srq.c | 76 if (wr->num_sge > srq->max_gs) { in mlx4_post_srq_recv() 95 for (i = 0; i < wr->num_sge; ++i) { in mlx4_post_srq_recv()
|
/freebsd/contrib/ofed/libibverbs/ |
H A D | compat-1_0.c | 87 int num_sge; member 114 int num_sge; member 378 real_wr->num_sge = w->num_sge; in post_srq_recv_wrapper_1_0() 439 real_wr->num_sge = w->num_sge; in post_send_wrapper_1_0() 496 real_wr->num_sge = w->num_sge; in post_recv_wrapper_1_0()
|
H A D | cmd.c | 1464 sge_count += i->num_sge; in ibv_cmd_post_send() 1482 tmp->num_sge = i->num_sge; in ibv_cmd_post_send() 1513 if (tmp->num_sge) { in ibv_cmd_post_send() 1514 memcpy(s, i->sg_list, tmp->num_sge * sizeof *s); in ibv_cmd_post_send() 1515 s += tmp->num_sge; in ibv_cmd_post_send() 1554 sge_count += i->num_sge; in ibv_cmd_post_recv() 1572 tmp->num_sge = i->num_sge; in ibv_cmd_post_recv() 1574 if (tmp->num_sge) { in ibv_cmd_post_recv() 1575 memcpy(s, i->sg_list, tmp->num_sge * sizeof *s); in ibv_cmd_post_recv() 1576 s += tmp->num_sge; in ibv_cmd_post_recv() [all …]
|
/freebsd/sys/dev/cxgbe/iw_cxgbe/ |
H A D | qp.c | 347 for (i = 0; i < wr->num_sge; i++) { in build_immd() 379 int num_sge, u32 *plenp) in build_isgl() argument 386 for (i = 0; i < num_sge; i++) { in build_isgl() 401 isglp->nsge = cpu_to_be16(num_sge); in build_isgl() 415 if (wr->num_sge > T4_MAX_SEND_SGE) in build_rdma_send() 444 if (wr->num_sge) { in build_rdma_send() 456 wr->sg_list, wr->num_sge, &plen); in build_rdma_send() 460 wr->num_sge * sizeof(struct fw_ri_sge); in build_rdma_send() 482 if (wr->num_sge > T4_MAX_SEND_SGE) in build_rdma_write() 487 if (wr->num_sge) { in build_rdma_write() [all …]
|
/freebsd/sys/dev/mthca/ |
H A D | mthca_srq.c | 516 if (unlikely(wr->num_sge > srq->max_gs)) { in mthca_tavor_post_srq_recv() 523 for (i = 0; i < wr->num_sge; ++i) { in mthca_tavor_post_srq_recv() 609 if (unlikely(wr->num_sge > srq->max_gs)) { in mthca_arbel_post_srq_recv() 615 for (i = 0; i < wr->num_sge; ++i) { in mthca_arbel_post_srq_recv()
|
H A D | mthca_qp.c | 1735 if (wr->num_sge > qp->sq.max_gs) { in mthca_tavor_post_send() 1742 for (i = 0; i < wr->num_sge; ++i) { in mthca_tavor_post_send() 1861 if (unlikely(wr->num_sge > qp->rq.max_gs)) { in mthca_tavor_post_receive() 1867 for (i = 0; i < wr->num_sge; ++i) { in mthca_tavor_post_receive() 2076 if (wr->num_sge > qp->sq.max_gs) { in mthca_arbel_post_send() 2083 for (i = 0; i < wr->num_sge; ++i) { in mthca_arbel_post_send() 2197 if (unlikely(wr->num_sge > qp->rq.max_gs)) { in mthca_arbel_post_receive() 2203 for (i = 0; i < wr->num_sge; ++i) { in mthca_arbel_post_receive()
|
/freebsd/sys/dev/iser/ |
H A D | iser_verbs.c | 863 rx_wr.num_sge = 1; in iser_post_recvl() 890 rx_wr->num_sge = 1; in iser_post_recvm() 928 send_wr.num_sge = tx_desc->num_sge; in iser_post_send()
|
H A D | iser_initiator.c | 113 tx_desc->num_sge = 1; in iser_create_send_desc() 440 mdesc->num_sge = 2; in iser_send_control()
|
/freebsd/contrib/ofed/librdmacm/examples/ |
H A D | rdma_xclient.c | 63 wr.num_sge = 1; in post_send()
|
H A D | mckey.c | 186 recv_wr.num_sge = 1; in post_recvs() 214 send_wr.num_sge = 1; in post_sends()
|
/freebsd/sys/dev/qlnx/qlnxr/ |
H A D | qlnxr_cm.c | 502 for (i = 0; i < swr->num_sge; ++i) in qlnxr_gsi_build_header() 650 packet->n_seg = swr->num_sge; in qlnxr_gsi_build_packet() 688 if (wr->num_sge > RDMA_MAX_SGE_PER_SQ_WQE) { in qlnxr_gsi_post_send() 764 if (wr->num_sge > QLNXR_GSI_MAX_RECV_SGE) { in qlnxr_gsi_post_recv()
|
H A D | qlnxr_verbs.c | 52 #define SRQ_HDR_SET(hdr, vwr_id, num_sge) \ argument 55 (hdr)->num_sges = num_sge; \ 393 u32 num_sge, offset; in qlnxr_post_srq_recv() local 409 wr->num_sge > srq->hw_srq.max_sges) { in qlnxr_post_srq_recv() 413 wr->num_sge, srq->hw_srq.max_sges); in qlnxr_post_srq_recv() 420 num_sge = wr->num_sge; in qlnxr_post_srq_recv() 422 SRQ_HDR_SET(hdr, wr->wr_id, num_sge); in qlnxr_post_srq_recv() 432 wr->num_sge, hw_srq->wqe_prod, wr->wr_id); in qlnxr_post_srq_recv() 434 for (i = 0; i < wr->num_sge; i++) { in qlnxr_post_srq_recv() 3917 sge_data_len(struct ib_sge *sg_list, int num_sge) in sge_data_len() argument [all …]
|
/freebsd/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_srq.c | 327 if (unlikely(wr->num_sge > srq->msrq.max_gs)) { in mlx4_ib_post_srq_recv() 345 for (i = 0; i < wr->num_sge; ++i) { in mlx4_ib_post_srq_recv()
|
/freebsd/sys/ofed/drivers/infiniband/ulp/sdp/ |
H A D | sdp_tx.c | 141 tx_wr.num_sge = i; in sdp_post_send() 403 wr.num_sge = 0; in sdp_post_keepalive()
|
/freebsd/sys/dev/mana/ |
H A D | gdma.h | 227 uint32_t num_sge; member 482 uint32_t num_sge :8; member
|
H A D | gdma_main.c | 1256 header->num_sge = wqe_req->num_sge; in mana_gd_write_client_oob() 1260 if (!pad_data || wqe_req->num_sge < 2) { in mana_gd_write_client_oob() 1295 uint32_t sgl_size = sizeof(struct gdma_sge) * wqe_req->num_sge; in mana_gd_write_sgl() 1327 if (wqe_req->num_sge == 0) in mana_gd_post_work_request() 1345 sgl_data_size = sizeof(struct gdma_sge) * wqe_req->num_sge; in mana_gd_post_work_request()
|
/freebsd/contrib/ofed/libirdma/ |
H A D | irdma_uverbs.c | 1715 info.op.send.num_sges = ib_wr->num_sge; in irdma_upost_send() 1746 info.op.rdma_write.num_lo_sges = ib_wr->num_sge; in irdma_upost_send() 1756 if (ib_wr->num_sge > uk_attrs->max_hw_read_sges) { in irdma_upost_send() 1765 info.op.rdma_read.num_lo_sges = ib_wr->num_sge; in irdma_upost_send() 1860 if (ib_wr->num_sge > iwuqp->qp.max_rq_frag_cnt) { in irdma_upost_recv() 1865 post_recv.num_sges = ib_wr->num_sge; in irdma_upost_recv()
|