num_sge          1112 drivers/infiniband/core/mad.c 	mad_send_wr->send_wr.wr.num_sge = 2;
num_sge          2941 drivers/infiniband/core/mad.c 	recv_wr.num_sge = 1;
num_sge           154 drivers/infiniband/core/rw.c 		reg->wr.wr.num_sge = 1;
num_sge           218 drivers/infiniband/core/rw.c 		rdma_wr->wr.num_sge = nr_sge;
num_sge           263 drivers/infiniband/core/rw.c 	rdma_wr->wr.num_sge = 1;
num_sge           430 drivers/infiniband/core/rw.c 	ctx->reg->reg_wr.wr.num_sge = 0;
num_sge           446 drivers/infiniband/core/rw.c 	rdma_wr->wr.num_sge = 1;
num_sge          1989 drivers/infiniband/core/uverbs_cmd.c static void *alloc_wr(size_t wr_size, __u32 num_sge)
num_sge          1991 drivers/infiniband/core/uverbs_cmd.c 	if (num_sge >= (U32_MAX - ALIGN(wr_size, sizeof (struct ib_sge))) /
num_sge          1996 drivers/infiniband/core/uverbs_cmd.c 			 num_sge * sizeof (struct ib_sge), GFP_KERNEL);
num_sge          2049 drivers/infiniband/core/uverbs_cmd.c 		if (user_wr->num_sge + sg_ind > cmd.sge_count) {
num_sge          2064 drivers/infiniband/core/uverbs_cmd.c 			ud = alloc_wr(next_size, user_wr->num_sge);
num_sge          2087 drivers/infiniband/core/uverbs_cmd.c 			rdma = alloc_wr(next_size, user_wr->num_sge);
num_sge          2102 drivers/infiniband/core/uverbs_cmd.c 			atomic = alloc_wr(next_size, user_wr->num_sge);
num_sge          2118 drivers/infiniband/core/uverbs_cmd.c 			next = alloc_wr(next_size, user_wr->num_sge);
num_sge          2144 drivers/infiniband/core/uverbs_cmd.c 		next->num_sge    = user_wr->num_sge;
num_sge          2148 drivers/infiniband/core/uverbs_cmd.c 		if (next->num_sge) {
num_sge          2152 drivers/infiniband/core/uverbs_cmd.c 					   next->num_sge *
num_sge          2157 drivers/infiniband/core/uverbs_cmd.c 			sg_ind += next->num_sge;
num_sge          2231 drivers/infiniband/core/uverbs_cmd.c 		if (user_wr->num_sge + sg_ind > sge_count) {
num_sge          2236 drivers/infiniband/core/uverbs_cmd.c 		if (user_wr->num_sge >=
num_sge          2244 drivers/infiniband/core/uverbs_cmd.c 			       user_wr->num_sge * sizeof (struct ib_sge),
num_sge          2259 drivers/infiniband/core/uverbs_cmd.c 		next->num_sge    = user_wr->num_sge;
num_sge          2261 drivers/infiniband/core/uverbs_cmd.c 		if (next->num_sge) {
num_sge          2265 drivers/infiniband/core/uverbs_cmd.c 					   next->num_sge *
num_sge          2270 drivers/infiniband/core/uverbs_cmd.c 			sg_ind += next->num_sge;
num_sge            53 drivers/infiniband/core/uverbs_std_types_mr.c 	int num_sge;
num_sge            70 drivers/infiniband/core/uverbs_std_types_mr.c 	num_sge = uverbs_attr_ptr_get_array_size(
num_sge            72 drivers/infiniband/core/uverbs_std_types_mr.c 	if (num_sge < 0)
num_sge            73 drivers/infiniband/core/uverbs_std_types_mr.c 		return num_sge;
num_sge            77 drivers/infiniband/core/uverbs_std_types_mr.c 	return ib_dev->ops.advise_mr(pd, advice, flags, sg_list, num_sge,
num_sge          1486 drivers/infiniband/hw/bnxt_re/ib_verbs.c 		wqe.num_sge = wr->num_sge;
num_sge          1487 drivers/infiniband/hw/bnxt_re/ib_verbs.c 		bnxt_re_build_sgl(wr->sg_list, wqe.sg_list, wr->num_sge);
num_sge          1964 drivers/infiniband/hw/bnxt_re/ib_verbs.c 		for (i = wqe->num_sge; i; i--) {
num_sge          1994 drivers/infiniband/hw/bnxt_re/ib_verbs.c 		wqe->num_sge++;
num_sge          2223 drivers/infiniband/hw/bnxt_re/ib_verbs.c 	for (i = 0; i < wr->num_sge; i++) {
num_sge          2253 drivers/infiniband/hw/bnxt_re/ib_verbs.c 					       wqe->num_sge);
num_sge          2289 drivers/infiniband/hw/bnxt_re/ib_verbs.c 		wqe.num_sge = wr->num_sge;
num_sge          2290 drivers/infiniband/hw/bnxt_re/ib_verbs.c 		if (wr->num_sge > qp->qplib_qp.sq.max_sge) {
num_sge          2338 drivers/infiniband/hw/bnxt_re/ib_verbs.c 		wqe.num_sge = wr->num_sge;
num_sge          2339 drivers/infiniband/hw/bnxt_re/ib_verbs.c 		if (wr->num_sge > qp->qplib_qp.sq.max_sge) {
num_sge          2435 drivers/infiniband/hw/bnxt_re/ib_verbs.c 		wqe.num_sge = wr->num_sge;
num_sge          2436 drivers/infiniband/hw/bnxt_re/ib_verbs.c 		if (wr->num_sge > qp->qplib_qp.rq.max_sge) {
num_sge          2442 drivers/infiniband/hw/bnxt_re/ib_verbs.c 		bnxt_re_build_sgl(wr->sg_list, wqe.sg_list, wr->num_sge);
num_sge          2472 drivers/infiniband/hw/bnxt_re/ib_verbs.c 		wqe.num_sge = wr->num_sge;
num_sge          2473 drivers/infiniband/hw/bnxt_re/ib_verbs.c 		if (wr->num_sge > qp->qplib_qp.rq.max_sge) {
num_sge          2482 drivers/infiniband/hw/bnxt_re/ib_verbs.c 					       wr->num_sge);
num_sge          2940 drivers/infiniband/hw/bnxt_re/ib_verbs.c 	rwr.num_sge = 2;
num_sge          2952 drivers/infiniband/hw/bnxt_re/ib_verbs.c 	swr->num_sge = 2;
num_sge           687 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	     i < wqe->num_sge; i++, hw_sge++) {
num_sge           694 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	srqe->wqe_size = wqe->num_sge +
num_sge          1581 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		     i < wqe->num_sge; i++, hw_sge++) {
num_sge          1588 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		wqe_size16 = wqe->num_sge;
num_sge          1592 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		if (!wqe->num_sge)
num_sge          1855 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	     i < wqe->num_sge; i++, hw_sge++) {
num_sge          1862 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	rqe->wqe_size = wqe->num_sge +
num_sge          1867 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	if (!wqe->num_sge)
num_sge           138 drivers/infiniband/hw/bnxt_re/qplib_fp.h 	int				num_sge;
num_sge            66 drivers/infiniband/hw/cxgb3/iwch_qp.c 	if (wr->num_sge > T3_MAX_SGE)
num_sge            72 drivers/infiniband/hw/cxgb3/iwch_qp.c 	for (i = 0; i < wr->num_sge; i++) {
num_sge            81 drivers/infiniband/hw/cxgb3/iwch_qp.c 	wqe->send.num_sgle = cpu_to_be32(wr->num_sge);
num_sge            82 drivers/infiniband/hw/cxgb3/iwch_qp.c 	*flit_cnt = 4 + ((wr->num_sge) << 1);
num_sge            92 drivers/infiniband/hw/cxgb3/iwch_qp.c 	if (wr->num_sge > T3_MAX_SGE)
num_sge           109 drivers/infiniband/hw/cxgb3/iwch_qp.c 		for (i = 0; i < wr->num_sge; i++) {
num_sge           121 drivers/infiniband/hw/cxgb3/iwch_qp.c 		wqe->write.num_sgle = cpu_to_be32(wr->num_sge);
num_sge           122 drivers/infiniband/hw/cxgb3/iwch_qp.c 		*flit_cnt = 5 + ((wr->num_sge) << 1);
num_sge           131 drivers/infiniband/hw/cxgb3/iwch_qp.c 	if (wr->num_sge > 1)
num_sge           255 drivers/infiniband/hw/cxgb3/iwch_qp.c 	err = iwch_sgl2pbl_map(qhp->rhp, wr->sg_list, wr->num_sge, pbl_addr,
num_sge           263 drivers/infiniband/hw/cxgb3/iwch_qp.c 	wqe->recv.num_sgle = cpu_to_be32(wr->num_sge);
num_sge           264 drivers/infiniband/hw/cxgb3/iwch_qp.c 	for (i = 0; i < wr->num_sge; i++) {
num_sge           311 drivers/infiniband/hw/cxgb3/iwch_qp.c 	wqe->recv.num_sgle = cpu_to_be32(wr->num_sge);
num_sge           313 drivers/infiniband/hw/cxgb3/iwch_qp.c 	for (i = 0; i < wr->num_sge; i++) {
num_sge           491 drivers/infiniband/hw/cxgb3/iwch_qp.c 		if (wr->num_sge > T3_MAX_SGE) {
num_sge           422 drivers/infiniband/hw/cxgb4/qp.c 	for (i = 0; i < wr->num_sge; i++) {
num_sge           454 drivers/infiniband/hw/cxgb4/qp.c 		      int num_sge, u32 *plenp)
num_sge           466 drivers/infiniband/hw/cxgb4/qp.c 	for (i = 0; i < num_sge; i++) {
num_sge           481 drivers/infiniband/hw/cxgb4/qp.c 	isglp->nsge = cpu_to_be16(num_sge);
num_sge           495 drivers/infiniband/hw/cxgb4/qp.c 	if (wr->num_sge > T4_MAX_SEND_SGE)
num_sge           524 drivers/infiniband/hw/cxgb4/qp.c 	if (wr->num_sge) {
num_sge           536 drivers/infiniband/hw/cxgb4/qp.c 					 wr->sg_list, wr->num_sge, &plen);
num_sge           540 drivers/infiniband/hw/cxgb4/qp.c 			       wr->num_sge * sizeof(struct fw_ri_sge);
num_sge           562 drivers/infiniband/hw/cxgb4/qp.c 	if (wr->num_sge > T4_MAX_SEND_SGE)
num_sge           575 drivers/infiniband/hw/cxgb4/qp.c 	if (wr->num_sge) {
num_sge           587 drivers/infiniband/hw/cxgb4/qp.c 					 wr->sg_list, wr->num_sge, &plen);
num_sge           591 drivers/infiniband/hw/cxgb4/qp.c 			       wr->num_sge * sizeof(struct fw_ri_sge);
num_sge           651 drivers/infiniband/hw/cxgb4/qp.c 		   wcwr->u.isgl_src, wr->sg_list, wr->num_sge, &plen);
num_sge           654 drivers/infiniband/hw/cxgb4/qp.c 		wr->num_sge * sizeof(struct fw_ri_sge);
num_sge           662 drivers/infiniband/hw/cxgb4/qp.c 	if (wr->num_sge > 1)
num_sge           664 drivers/infiniband/hw/cxgb4/qp.c 	if (wr->num_sge && wr->sg_list[0].length) {
num_sge           765 drivers/infiniband/hw/cxgb4/qp.c 			 &wqe->recv.isgl, wr->sg_list, wr->num_sge, NULL);
num_sge           769 drivers/infiniband/hw/cxgb4/qp.c 		sizeof(wqe->recv) + wr->num_sge * sizeof(struct fw_ri_sge), 16);
num_sge           779 drivers/infiniband/hw/cxgb4/qp.c 			 &wqe->recv.isgl, wr->sg_list, wr->num_sge, NULL);
num_sge           783 drivers/infiniband/hw/cxgb4/qp.c 			      wr->num_sge * sizeof(struct fw_ri_sge), 16);
num_sge          1125 drivers/infiniband/hw/cxgb4/qp.c 	    wr->sg_list[0].length && wr->num_sge <= T4_WRITE_CMPL_MAX_SGL &&
num_sge          1129 drivers/infiniband/hw/cxgb4/qp.c 	    wr->next->num_sge == 1 && num_wrs >= 2) {
num_sge          1290 drivers/infiniband/hw/cxgb4/qp.c 		if (wr->num_sge > T4_MAX_RECV_SGE) {
num_sge          1375 drivers/infiniband/hw/cxgb4/qp.c 		if (wr->num_sge > T4_MAX_RECV_SGE) {
num_sge           201 drivers/infiniband/hw/hfi1/rc.c 			qp->s_ack_rdma_sge.num_sge = 1;
num_sge           250 drivers/infiniband/hw/hfi1/rc.c 			qp->s_ack_rdma_sge.num_sge = 1;
num_sge           835 drivers/infiniband/hw/hfi1/rc.c 					qp->s_sge.num_sge = wqe->wr.num_sge;
num_sge           920 drivers/infiniband/hw/hfi1/rc.c 			qp->s_sge.num_sge = wqe->wr.num_sge;
num_sge          2499 drivers/infiniband/hw/hfi1/rc.c 		WARN_ON(qp->s_rdma_read_sge.num_sge);
num_sge          3033 drivers/infiniband/hw/hfi1/rc.c 			qp->r_sge.num_sge = 1;
num_sge          3035 drivers/infiniband/hw/hfi1/rc.c 			qp->r_sge.num_sge = 0;
num_sge          3173 drivers/infiniband/hw/hfi1/rc.c 		qp->r_sge.num_sge = 0;
num_sge          1090 drivers/infiniband/hw/hfi1/tid_rdma.c 	while (length && req->isge < ss->num_sge) {
num_sge          1097 drivers/infiniband/hw/hfi1/tid_rdma.c 			if (++req->isge < ss->num_sge)
num_sge          1111 drivers/infiniband/hw/hfi1/tid_rdma.c 	*last = req->isge == ss->num_sge ? false : true;
num_sge          1733 drivers/infiniband/hw/hfi1/tid_rdma.c 	wpriv->ss.num_sge = 1;
num_sge          3256 drivers/infiniband/hw/hfi1/tid_rdma.c 					struct rvt_sge *sge, int num_sge)
num_sge          3260 drivers/infiniband/hw/hfi1/tid_rdma.c 	for (i = 0; i < num_sge; i++, sge++) {
num_sge          3295 drivers/infiniband/hw/hfi1/tid_rdma.c 					 wqe->wr.num_sge)) {
num_sge          3756 drivers/infiniband/hw/hfi1/tid_rdma.c 	req->ss.num_sge = 1;
num_sge          3894 drivers/infiniband/hw/hfi1/tid_rdma.c 	epriv->ss.num_sge = 1;
num_sge          4322 drivers/infiniband/hw/hfi1/tid_rdma.c 			ss.num_sge = 1;
num_sge          5064 drivers/infiniband/hw/hfi1/tid_rdma.c 		priv->tid_ss.num_sge = wqe->wr.num_sge;
num_sge           155 drivers/infiniband/hw/hfi1/uc.c 		qp->s_sge.num_sge = wqe->wr.num_sge;
num_sge           339 drivers/infiniband/hw/hfi1/uc.c 			qp->r_sge.num_sge = 0;
num_sge           504 drivers/infiniband/hw/hfi1/uc.c 			qp->r_sge.num_sge = 1;
num_sge           506 drivers/infiniband/hw/hfi1/uc.c 			qp->r_sge.num_sge = 0;
num_sge           581 drivers/infiniband/hw/hfi1/uc.c 	qp->r_sge.num_sge = 0;
num_sge           222 drivers/infiniband/hw/hfi1/ud.c 	ssge.num_sge = swqe->wr.num_sge;
num_sge           557 drivers/infiniband/hw/hfi1/ud.c 	qp->s_sge.num_sge = wqe->wr.num_sge;
num_sge           703 drivers/infiniband/hw/hfi1/verbs.c 	u8 num_sge = ss->num_sge;
num_sge           724 drivers/infiniband/hw/hfi1/verbs.c 	ss->num_sge = num_sge;
num_sge           101 drivers/infiniband/hw/hns/hns_roce_hw_v1.c 		if (unlikely(wr->num_sge > qp->sq.max_gs)) {
num_sge           103 drivers/infiniband/hw/hns/hns_roce_hw_v1.c 				wr->num_sge, qp->sq.max_gs);
num_sge           219 drivers/infiniband/hw/hns/hns_roce_hw_v1.c 			for (i = 0; i < wr->num_sge; i++)
num_sge           286 drivers/infiniband/hw/hns/hns_roce_hw_v1.c 			if (wr->send_flags & IB_SEND_INLINE && wr->num_sge) {
num_sge           296 drivers/infiniband/hw/hns/hns_roce_hw_v1.c 				for (i = 0; i < wr->num_sge; i++) {
num_sge           305 drivers/infiniband/hw/hns/hns_roce_hw_v1.c 				for (i = 0; i < wr->num_sge; i++)
num_sge           308 drivers/infiniband/hw/hns/hns_roce_hw_v1.c 				ctrl->flag |= cpu_to_le32(wr->num_sge <<
num_sge           375 drivers/infiniband/hw/hns/hns_roce_hw_v1.c 		if (unlikely(wr->num_sge > hr_qp->rq.max_gs)) {
num_sge           377 drivers/infiniband/hw/hns/hns_roce_hw_v1.c 				wr->num_sge, hr_qp->rq.max_gs);
num_sge           388 drivers/infiniband/hw/hns/hns_roce_hw_v1.c 			       wr->num_sge);
num_sge           392 drivers/infiniband/hw/hns/hns_roce_hw_v1.c 		for (i = 0; i < wr->num_sge; i++)
num_sge          1012 drivers/infiniband/hw/hns/hns_roce_hw_v1.c 	send_wr.num_sge	= 0;
num_sge           186 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 		for (i = 0; i < wr->num_sge; i++) {
num_sge           196 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 			for (i = 0; i < wr->num_sge; i++) {
num_sge           208 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 			for (i = 0; i < wr->num_sge &&
num_sge           288 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 		if (unlikely(wr->num_sge > qp->sq.max_gs)) {
num_sge           290 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 				wr->num_sge, qp->sq.max_gs);
num_sge           303 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 		for (i = 0; i < wr->num_sge; i++) {
num_sge           653 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 		if (unlikely(wr->num_sge > hr_qp->rq.max_gs)) {
num_sge           655 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 				wr->num_sge, hr_qp->rq.max_gs);
num_sge           663 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 		for (i = 0; i < wr->num_sge; i++) {
num_sge           679 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 							       (u32)wr->num_sge;
num_sge           680 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 			for (i = 0; i < wr->num_sge; i++) {
num_sge          6250 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 		if (unlikely(wr->num_sge > srq->max_gs)) {
num_sge          6273 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 		for (i = 0; i < wr->num_sge; ++i) {
num_sge          2167 drivers/infiniband/hw/i40iw/i40iw_verbs.c 				info.op.send.num_sges = ib_wr->num_sge;
num_sge          2190 drivers/infiniband/hw/i40iw/i40iw_verbs.c 				info.op.rdma_write.num_lo_sges = ib_wr->num_sge;
num_sge          2207 drivers/infiniband/hw/i40iw/i40iw_verbs.c 			if (ib_wr->num_sge > I40IW_MAX_SGE_RD) {
num_sge          2315 drivers/infiniband/hw/i40iw/i40iw_verbs.c 		post_recv.num_sges = ib_wr->num_sge;
num_sge          2317 drivers/infiniband/hw/i40iw/i40iw_verbs.c 		i40iw_copy_sg_list(sg_list, ib_wr->sg_list, ib_wr->num_sge);
num_sge           647 drivers/infiniband/hw/mlx4/mad.c 	wr.wr.num_sge = 1;
num_sge          1328 drivers/infiniband/hw/mlx4/mad.c 	recv_wr.num_sge = 1;
num_sge          1447 drivers/infiniband/hw/mlx4/mad.c 	wr.wr.num_sge = 1;
num_sge          2902 drivers/infiniband/hw/mlx4/qp.c 	for (i = 0; i < wr->wr.num_sge; ++i)
num_sge          3056 drivers/infiniband/hw/mlx4/qp.c 	for (i = 0; i < wr->wr.num_sge; ++i)
num_sge          3501 drivers/infiniband/hw/mlx4/qp.c 		     wr->wr.num_sge > qp->sq.max_gs - (halign >> 4)))
num_sge          3593 drivers/infiniband/hw/mlx4/qp.c 		if (unlikely(wr->num_sge > qp->sq.max_gs)) {
num_sge          3774 drivers/infiniband/hw/mlx4/qp.c 		dseg += wr->num_sge - 1;
num_sge          3775 drivers/infiniband/hw/mlx4/qp.c 		size += wr->num_sge * (sizeof (struct mlx4_wqe_data_seg) / 16);
num_sge          3786 drivers/infiniband/hw/mlx4/qp.c 		for (i = wr->num_sge - 1; i >= 0; --i, --dseg)
num_sge          3888 drivers/infiniband/hw/mlx4/qp.c 		if (unlikely(wr->num_sge > qp->rq.max_gs)) {
num_sge          3911 drivers/infiniband/hw/mlx4/qp.c 		for (i = 0; i < wr->num_sge; ++i)
num_sge           321 drivers/infiniband/hw/mlx4/srq.c 		if (unlikely(wr->num_sge > srq->msrq.max_gs)) {
num_sge           339 drivers/infiniband/hw/mlx4/srq.c 		for (i = 0; i < wr->num_sge; ++i) {
num_sge          1155 drivers/infiniband/hw/mlx5/mlx5_ib.h 		      u32 num_sge,
num_sge          1263 drivers/infiniband/hw/mlx5/mlx5_ib.h 			       u32 flags, struct ib_sge *sg_list, u32 num_sge);
num_sge          1282 drivers/infiniband/hw/mlx5/mlx5_ib.h 			   struct ib_sge *sg_list, u32 num_sge)
num_sge           992 drivers/infiniband/hw/mlx5/mr.c 	wr.wr.num_sge = 1;
num_sge          1207 drivers/infiniband/hw/mlx5/mr.c 		      u32 num_sge,
num_sge          1215 drivers/infiniband/hw/mlx5/mr.c 					 sg_list, num_sge);
num_sge          1629 drivers/infiniband/hw/mlx5/odp.c 	u32 num_sge;
num_sge          1634 drivers/infiniband/hw/mlx5/odp.c 				     struct ib_sge *sg_list, u32 num_sge,
num_sge          1642 drivers/infiniband/hw/mlx5/odp.c 	for (i = from; i < num_sge; ++i) {
num_sge          1656 drivers/infiniband/hw/mlx5/odp.c 				     struct ib_sge *sg_list, u32 num_sge)
num_sge          1662 drivers/infiniband/hw/mlx5/odp.c 	for (i = 0; i < num_sge; ++i) {
num_sge          1700 drivers/infiniband/hw/mlx5/odp.c 				    struct ib_sge *sg_list, u32 num_sge)
num_sge          1706 drivers/infiniband/hw/mlx5/odp.c 	for (i = 0; i < num_sge; ++i) {
num_sge          1728 drivers/infiniband/hw/mlx5/odp.c 					 w->num_sge);
num_sge          1733 drivers/infiniband/hw/mlx5/odp.c 				 w->num_sge, 0);
num_sge          1739 drivers/infiniband/hw/mlx5/odp.c 			       u32 flags, struct ib_sge *sg_list, u32 num_sge)
num_sge          1752 drivers/infiniband/hw/mlx5/odp.c 						num_sge);
num_sge          1754 drivers/infiniband/hw/mlx5/odp.c 	work = kvzalloc(struct_size(work, sg_list, num_sge), GFP_KERNEL);
num_sge          1758 drivers/infiniband/hw/mlx5/odp.c 	memcpy(work->sg_list, sg_list, num_sge * sizeof(struct ib_sge));
num_sge          1766 drivers/infiniband/hw/mlx5/odp.c 	work->num_sge = num_sge;
num_sge          1772 drivers/infiniband/hw/mlx5/odp.c 	valid_req = num_pending_prefetch_inc(pd, sg_list, num_sge);
num_sge          4326 drivers/infiniband/hw/mlx5/qp.c 	if (!wr->num_sge)
num_sge          4447 drivers/infiniband/hw/mlx5/qp.c 	for (i = 0; i < wr->num_sge; i++) {
num_sge          4742 drivers/infiniband/hw/mlx5/qp.c 	if (unlikely(send_wr->num_sge != 0) ||
num_sge          4981 drivers/infiniband/hw/mlx5/qp.c 	int num_sge;
num_sge          5010 drivers/infiniband/hw/mlx5/qp.c 		num_sge = wr->num_sge;
num_sge          5011 drivers/infiniband/hw/mlx5/qp.c 		if (unlikely(num_sge > qp->sq.max_gs)) {
num_sge          5071 drivers/infiniband/hw/mlx5/qp.c 				num_sge = 0;
num_sge          5083 drivers/infiniband/hw/mlx5/qp.c 				num_sge = 0;
num_sge          5206 drivers/infiniband/hw/mlx5/qp.c 				num_sge = 0;
num_sge          5287 drivers/infiniband/hw/mlx5/qp.c 		if (wr->send_flags & IB_SEND_INLINE && num_sge) {
num_sge          5295 drivers/infiniband/hw/mlx5/qp.c 			for (i = 0; i < num_sge; i++) {
num_sge          5389 drivers/infiniband/hw/mlx5/qp.c 		if (unlikely(wr->num_sge > qp->rq.max_gs)) {
num_sge          5399 drivers/infiniband/hw/mlx5/qp.c 		for (i = 0; i < wr->num_sge; i++)
num_sge           442 drivers/infiniband/hw/mlx5/srq.c 		if (unlikely(wr->num_sge > srq->msrq.max_gs)) {
num_sge           460 drivers/infiniband/hw/mlx5/srq.c 		for (i = 0; i < wr->num_sge; i++) {
num_sge          1750 drivers/infiniband/hw/mthca/mthca_qp.c 		if (wr->num_sge > qp->sq.max_gs) {
num_sge          1757 drivers/infiniband/hw/mthca/mthca_qp.c 		for (i = 0; i < wr->num_sge; ++i) {
num_sge          1871 drivers/infiniband/hw/mthca/mthca_qp.c 		if (unlikely(wr->num_sge > qp->rq.max_gs)) {
num_sge          1877 drivers/infiniband/hw/mthca/mthca_qp.c 		for (i = 0; i < wr->num_sge; ++i) {
num_sge          2080 drivers/infiniband/hw/mthca/mthca_qp.c 		if (wr->num_sge > qp->sq.max_gs) {
num_sge          2087 drivers/infiniband/hw/mthca/mthca_qp.c 		for (i = 0; i < wr->num_sge; ++i) {
num_sge          2195 drivers/infiniband/hw/mthca/mthca_qp.c 		if (unlikely(wr->num_sge > qp->rq.max_gs)) {
num_sge          2201 drivers/infiniband/hw/mthca/mthca_qp.c 		for (i = 0; i < wr->num_sge; ++i) {
num_sge           522 drivers/infiniband/hw/mthca/mthca_srq.c 		if (unlikely(wr->num_sge > srq->max_gs)) {
num_sge           529 drivers/infiniband/hw/mthca/mthca_srq.c 		for (i = 0; i < wr->num_sge; ++i) {
num_sge           609 drivers/infiniband/hw/mthca/mthca_srq.c 		if (unlikely(wr->num_sge > srq->max_gs)) {
num_sge           615 drivers/infiniband/hw/mthca/mthca_srq.c 		for (i = 0; i < wr->num_sge; ++i) {
num_sge          1906 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c 			      struct ocrdma_sge *sge, int num_sge,
num_sge          1911 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c 	for (i = 0; i < num_sge; i++) {
num_sge          1918 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c 	if (num_sge == 0)
num_sge          1922 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c static inline uint32_t ocrdma_sglist_len(struct ib_sge *sg_list, int num_sge)
num_sge          1926 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c 	for (i = 0; i < num_sge; i++)
num_sge          1941 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c 		hdr->total_len = ocrdma_sglist_len(wr->sg_list, wr->num_sge);
num_sge          1949 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c 		for (i = 0; i < wr->num_sge; i++) {
num_sge          1961 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c 		ocrdma_build_sges(hdr, sge, wr->num_sge, wr->sg_list);
num_sge          1962 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c 		if (wr->num_sge)
num_sge          1963 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c 			wqe_size += (wr->num_sge * sizeof(struct ocrdma_sge));
num_sge          2014 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c 	u32 wqe_size = ((wr->num_sge + 1) * sizeof(struct ocrdma_sge)) +
num_sge          2017 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c 	ocrdma_build_sges(hdr, sge, wr->num_sge, wr->sg_list);
num_sge          2125 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c 		    wr->num_sge > qp->sq.max_sges) {
num_sge          2218 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c 	if (wr->num_sge)
num_sge          2219 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c 		wqe_size = (wr->num_sge * sizeof(*sge)) + sizeof(*rqe);
num_sge          2230 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c 	ocrdma_build_sges(rqe, sge, wr->num_sge, wr->sg_list);
num_sge          2250 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c 		    wr->num_sge > qp->rq.max_sges) {
num_sge          2318 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c 		    wr->num_sge > srq->rq.max_sges) {
num_sge           408 drivers/infiniband/hw/qedr/qedr_roce_cm.c 	for (i = 0; i < swr->num_sge; ++i)
num_sge           532 drivers/infiniband/hw/qedr/qedr_roce_cm.c 	packet->n_seg = swr->num_sge;
num_sge           560 drivers/infiniband/hw/qedr/qedr_roce_cm.c 	if (wr->num_sge > RDMA_MAX_SGE_PER_SQ_WQE) {
num_sge           562 drivers/infiniband/hw/qedr/qedr_roce_cm.c 		       wr->num_sge, RDMA_MAX_SGE_PER_SQ_WQE);
num_sge           633 drivers/infiniband/hw/qedr/qedr_roce_cm.c 		if (wr->num_sge > QEDR_GSI_MAX_RECV_SGE) {
num_sge           636 drivers/infiniband/hw/qedr/qedr_roce_cm.c 			       wr->num_sge, QEDR_GSI_MAX_RECV_SGE);
num_sge          2908 drivers/infiniband/hw/qedr/verbs.c static int sge_data_len(struct ib_sge *sg_list, int num_sge)
num_sge          2912 drivers/infiniband/hw/qedr/verbs.c 	for (i = 0; i < num_sge; i++)
num_sge          2932 drivers/infiniband/hw/qedr/verbs.c 	u32 data_size = sge_data_len(wr->sg_list, wr->num_sge);
num_sge          2952 drivers/infiniband/hw/qedr/verbs.c 	for (i = 0; i < wr->num_sge; i++) {
num_sge          2999 drivers/infiniband/hw/qedr/verbs.c #define SRQ_HDR_SET(hdr, vwr_id, num_sge)			\
num_sge          3002 drivers/infiniband/hw/qedr/verbs.c 		(hdr)->num_sges = num_sge;			\
num_sge          3018 drivers/infiniband/hw/qedr/verbs.c 	for (i = 0; i < wr->num_sge; i++) {
num_sge          3028 drivers/infiniband/hw/qedr/verbs.c 		*wqe_size += wr->num_sge;
num_sge          3146 drivers/infiniband/hw/qedr/verbs.c 	err_wr = wr->num_sge > qp->sq.max_sges;
num_sge          3477 drivers/infiniband/hw/qedr/verbs.c 	u32 num_sge;
num_sge          3489 drivers/infiniband/hw/qedr/verbs.c 		    wr->num_sge > srq->hw_srq.max_sges) {
num_sge          3492 drivers/infiniband/hw/qedr/verbs.c 			       wr->num_sge, srq->hw_srq.max_sges);
num_sge          3499 drivers/infiniband/hw/qedr/verbs.c 		num_sge = wr->num_sge;
num_sge          3501 drivers/infiniband/hw/qedr/verbs.c 		SRQ_HDR_SET(hdr, wr->wr_id, num_sge);
num_sge          3509 drivers/infiniband/hw/qedr/verbs.c 			 wr->num_sge, hw_srq->wqe_prod, wr->wr_id);
num_sge          3511 drivers/infiniband/hw/qedr/verbs.c 		for (i = 0; i < wr->num_sge; i++) {
num_sge          3575 drivers/infiniband/hw/qedr/verbs.c 		    wr->num_sge > qp->rq.max_sges) {
num_sge          3578 drivers/infiniband/hw/qedr/verbs.c 			       QEDR_MAX_RQE_ELEMENTS_PER_RQE, wr->num_sge,
num_sge          3584 drivers/infiniband/hw/qedr/verbs.c 		for (i = 0; i < wr->num_sge; i++) {
num_sge          3594 drivers/infiniband/hw/qedr/verbs.c 					  wr->num_sge);
num_sge          3607 drivers/infiniband/hw/qedr/verbs.c 		if (!wr->num_sge) {
num_sge           123 drivers/infiniband/hw/qib/qib_rc.c 			qp->s_ack_rdma_sge.num_sge = 1;
num_sge           449 drivers/infiniband/hw/qib/qib_rc.c 		qp->s_sge.num_sge = wqe->wr.num_sge;
num_sge          1448 drivers/infiniband/hw/qib/qib_rc.c 		WARN_ON(qp->s_rdma_read_sge.num_sge);
num_sge          1912 drivers/infiniband/hw/qib/qib_rc.c 			qp->r_sge.num_sge = 1;
num_sge          1914 drivers/infiniband/hw/qib/qib_rc.c 			qp->r_sge.num_sge = 0;
num_sge          2048 drivers/infiniband/hw/qib/qib_rc.c 		qp->r_sge.num_sge = 0;
num_sge           100 drivers/infiniband/hw/qib/qib_uc.c 		qp->s_sge.num_sge = wqe->wr.num_sge;
num_sge           277 drivers/infiniband/hw/qib/qib_uc.c 			qp->r_sge.num_sge = 0;
num_sge           429 drivers/infiniband/hw/qib/qib_uc.c 			qp->r_sge.num_sge = 1;
num_sge           431 drivers/infiniband/hw/qib/qib_uc.c 			qp->r_sge.num_sge = 0;
num_sge           511 drivers/infiniband/hw/qib/qib_uc.c 	qp->r_sge.num_sge = 0;
num_sge           173 drivers/infiniband/hw/qib/qib_ud.c 	ssge.num_sge = swqe->wr.num_sge;
num_sge           183 drivers/infiniband/hw/qib/qib_ud.c 			if (--ssge.num_sge)
num_sge           319 drivers/infiniband/hw/qib/qib_ud.c 	qp->s_sge.num_sge = wqe->wr.num_sge;
num_sge           143 drivers/infiniband/hw/qib/qib_verbs.c 	u8 num_sge = ss->num_sge;
num_sge           159 drivers/infiniband/hw/qib/qib_verbs.c 			if (--num_sge)
num_sge           192 drivers/infiniband/hw/qib/qib_verbs.c 			if (--ss->num_sge)
num_sge           962 drivers/infiniband/hw/qib/qib_verbs.c 	if (likely(ss->num_sge == 1 && len <= ss->sge.length &&
num_sge           651 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 		if (unlikely(wr->num_sge > qp->sq.max_sg || wr->num_sge < 0)) {
num_sge           708 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 		wqe_hdr->num_sge = wr->num_sge;
num_sge           791 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 		for (i = 0; i < wr->num_sge; i++) {
num_sge           859 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 		if (unlikely(wr->num_sge > qp->rq.max_sg ||
num_sge           860 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 			     wr->num_sge < 0)) {
num_sge           879 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 		wqe_hdr->num_sge = wr->num_sge;
num_sge           883 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 		for (i = 0; i < wr->num_sge; i++) {
num_sge           533 drivers/infiniband/sw/rdmavt/mr.c 	if (!ss->num_sge)
num_sge           538 drivers/infiniband/sw/rdmavt/mr.c 	for (i = 0; !rval && i < ss->num_sge - 1; i++)
num_sge           664 drivers/infiniband/sw/rdmavt/qp.c 	for (i = 0; i < wqe->wr.num_sge; i++) {
num_sge           903 drivers/infiniband/sw/rdmavt/qp.c 	qp->r_sge.num_sge = 0;
num_sge          1841 drivers/infiniband/sw/rdmavt/qp.c 		if ((unsigned)wr->num_sge > qp->r_rq.max_sge) {
num_sge          1867 drivers/infiniband/sw/rdmavt/qp.c 			wqe->num_sge = wr->num_sge;
num_sge          1868 drivers/infiniband/sw/rdmavt/qp.c 			for (i = 0; i < wr->num_sge; i++) {
num_sge          1917 drivers/infiniband/sw/rdmavt/qp.c 	    (wr->num_sge == 0 ||
num_sge          2020 drivers/infiniband/sw/rdmavt/qp.c 	if (unlikely(wr->num_sge > qp->s_max_sge))
num_sge          2084 drivers/infiniband/sw/rdmavt/qp.c 	if (wr->num_sge) {
num_sge          2089 drivers/infiniband/sw/rdmavt/qp.c 		for (i = 0; i < wr->num_sge; i++) {
num_sge          2103 drivers/infiniband/sw/rdmavt/qp.c 		wqe->wr.num_sge = j;
num_sge          2153 drivers/infiniband/sw/rdmavt/qp.c 	trace_rvt_post_one_wr(qp, wqe, wr->num_sge);
num_sge          2255 drivers/infiniband/sw/rdmavt/qp.c 		if ((unsigned)wr->num_sge > srq->rq.max_sge) {
num_sge          2273 drivers/infiniband/sw/rdmavt/qp.c 		wqe->num_sge = wr->num_sge;
num_sge          2274 drivers/infiniband/sw/rdmavt/qp.c 		for (i = 0; i < wr->num_sge; i++) {
num_sge          2320 drivers/infiniband/sw/rdmavt/qp.c 	for (i = j = 0; i < wqe->num_sge; i++) {
num_sge          2332 drivers/infiniband/sw/rdmavt/qp.c 	ss->num_sge = j;
num_sge          2342 drivers/infiniband/sw/rdmavt/qp.c 	ss->num_sge = 0;
num_sge          3043 drivers/infiniband/sw/rdmavt/qp.c 	sqp->s_sge.num_sge = wqe->wr.num_sge;
num_sge          3111 drivers/infiniband/sw/rdmavt/qp.c 		qp->r_sge.num_sge = 1;
num_sge          3125 drivers/infiniband/sw/rdmavt/qp.c 		sqp->s_sge.num_sge = 1;
num_sge          3128 drivers/infiniband/sw/rdmavt/qp.c 		qp->r_sge.num_sge = wqe->wr.num_sge;
num_sge          3150 drivers/infiniband/sw/rdmavt/qp.c 		qp->r_sge.num_sge = 0;
num_sge           203 drivers/infiniband/sw/rdmavt/rc.c 	ss->num_sge = wqe->wr.num_sge;
num_sge           244 drivers/infiniband/sw/rdmavt/srq.c 			p->num_sge = wqe->num_sge;
num_sge           245 drivers/infiniband/sw/rdmavt/srq.c 			for (i = 0; i < wqe->num_sge; i++)
num_sge           110 drivers/infiniband/sw/rdmavt/trace_tx.h 		__field(int, num_sge)
num_sge           130 drivers/infiniband/sw/rdmavt/trace_tx.h 		__entry->num_sge = wqe->wr.num_sge;
num_sge           151 drivers/infiniband/sw/rdmavt/trace_tx.h 		__entry->num_sge,
num_sge           480 drivers/infiniband/sw/rxe/rxe_mr.c 			if (dma->cur_sge >= dma->num_sge) {
num_sge           542 drivers/infiniband/sw/rxe/rxe_mr.c 			if (dma->cur_sge >= dma->num_sge)
num_sge           251 drivers/infiniband/sw/rxe/rxe_verbs.c 	int num_sge = ibwr->num_sge;
num_sge           258 drivers/infiniband/sw/rxe/rxe_verbs.c 	if (unlikely(num_sge > rq->max_sge)) {
num_sge           264 drivers/infiniband/sw/rxe/rxe_verbs.c 	for (i = 0; i < num_sge; i++)
num_sge           269 drivers/infiniband/sw/rxe/rxe_verbs.c 	recv_wqe->num_sge = num_sge;
num_sge           272 drivers/infiniband/sw/rxe/rxe_verbs.c 	       num_sge * sizeof(struct ib_sge));
num_sge           276 drivers/infiniband/sw/rxe/rxe_verbs.c 	recv_wqe->dma.num_sge		= num_sge;
num_sge           506 drivers/infiniband/sw/rxe/rxe_verbs.c 	int num_sge = ibwr->num_sge;
num_sge           509 drivers/infiniband/sw/rxe/rxe_verbs.c 	if (unlikely(num_sge > sq->max_sge))
num_sge           534 drivers/infiniband/sw/rxe/rxe_verbs.c 	wr->num_sge = ibwr->num_sge;
num_sge           590 drivers/infiniband/sw/rxe/rxe_verbs.c 	int num_sge = ibwr->num_sge;
num_sge           606 drivers/infiniband/sw/rxe/rxe_verbs.c 		for (i = 0; i < num_sge; i++, sge++) {
num_sge           618 drivers/infiniband/sw/rxe/rxe_verbs.c 		       num_sge * sizeof(struct ib_sge));
num_sge           625 drivers/infiniband/sw/rxe/rxe_verbs.c 	wqe->dma.num_sge	= num_sge;
num_sge           699 drivers/infiniband/sw/rxe/rxe_verbs.c 		for (i = 0; i < wr->num_sge; i++)
num_sge           272 drivers/infiniband/sw/siw/siw_mem.c 			siw_unref_mem_sgl(wqe->mem, wqe->sqe.num_sge);
num_sge           276 drivers/infiniband/sw/siw/siw_mem.c 		siw_unref_mem_sgl(wqe->mem, wqe->rqe.num_sge);
num_sge            37 drivers/infiniband/sw/siw/siw_mem.h static inline void siw_unref_mem_sgl(struct siw_mem **mem, unsigned int num_sge)
num_sge            39 drivers/infiniband/sw/siw/siw_mem.h 	while (num_sge) {
num_sge            46 drivers/infiniband/sw/siw/siw_mem.h 		num_sge--;
num_sge           276 drivers/infiniband/sw/siw/siw_qp.c 	wqe->sqe.num_sge = 1;
num_sge           877 drivers/infiniband/sw/siw/siw_qp.c 	rreq->num_sge = 1;
num_sge           911 drivers/infiniband/sw/siw/siw_qp.c 		if (irqe->num_sge) {
num_sge           912 drivers/infiniband/sw/siw/siw_qp.c 			wqe->sqe.num_sge = 1;
num_sge           917 drivers/infiniband/sw/siw/siw_qp.c 			wqe->sqe.num_sge = 0;
num_sge           961 drivers/infiniband/sw/siw/siw_qp.c 			wqe->sqe.num_sge = 1;
num_sge           984 drivers/infiniband/sw/siw/siw_qp.c 			wqe->sqe.num_sge = 1;
num_sge           351 drivers/infiniband/sw/siw/siw_qp_rx.c 		int num_sge = rqe->num_sge;
num_sge           353 drivers/infiniband/sw/siw/siw_qp_rx.c 		if (likely(num_sge <= SIW_MAX_SGE)) {
num_sge           363 drivers/infiniband/sw/siw/siw_qp_rx.c 			wqe->rqe.num_sge = num_sge;
num_sge           365 drivers/infiniband/sw/siw/siw_qp_rx.c 			while (i < num_sge) {
num_sge           376 drivers/infiniband/sw/siw/siw_qp_rx.c 			siw_dbg_qp(qp, "too many sge's: %d\n", rqe->num_sge);
num_sge           572 drivers/infiniband/sw/siw/siw_qp_rx.c 		wqe->rqe.num_sge = 1;
num_sge           709 drivers/infiniband/sw/siw/siw_qp_rx.c 		resp->num_sge = length ? 1 : 0;
num_sge           755 drivers/infiniband/sw/siw/siw_qp_rx.c 		wqe->sqe.num_sge = 1;
num_sge            46 drivers/infiniband/sw/siw/siw_qp_tx.c 	if (bytes > MAX_HDR_INLINE || wqe->sqe.num_sge != 1)
num_sge           755 drivers/infiniband/sw/siw/siw_qp_tx.c 	int i, len, num_sge = wqe->sqe.num_sge;
num_sge           757 drivers/infiniband/sw/siw/siw_qp_tx.c 	if (unlikely(num_sge > SIW_MAX_SGE))
num_sge           760 drivers/infiniband/sw/siw/siw_qp_tx.c 	for (i = 0, len = 0; num_sge; num_sge--, i++, sge++) {
num_sge           797 drivers/infiniband/sw/siw/siw_qp_tx.c 				wqe->sqe.num_sge = 1;
num_sge           661 drivers/infiniband/sw/siw/siw_verbs.c 	int num_sge = core_wr->num_sge, bytes = 0;
num_sge           666 drivers/infiniband/sw/siw/siw_verbs.c 	while (num_sge--) {
num_sge           683 drivers/infiniband/sw/siw/siw_verbs.c 	sqe->num_sge = bytes > 0 ? 1 : 0;
num_sge           807 drivers/infiniband/sw/siw/siw_verbs.c 		if (wr->num_sge > qp->attrs.sq_max_sges) {
num_sge           808 drivers/infiniband/sw/siw/siw_verbs.c 			siw_dbg_qp(qp, "too many sge's: %d\n", wr->num_sge);
num_sge           829 drivers/infiniband/sw/siw/siw_verbs.c 					     wr->num_sge);
num_sge           830 drivers/infiniband/sw/siw/siw_verbs.c 				sqe->num_sge = wr->num_sge;
num_sge           838 drivers/infiniband/sw/siw/siw_verbs.c 				sqe->num_sge = 1;
num_sge           857 drivers/infiniband/sw/siw/siw_verbs.c 			if (unlikely(wr->num_sge != 1)) {
num_sge           867 drivers/infiniband/sw/siw/siw_verbs.c 			sqe->num_sge = 1;
num_sge           878 drivers/infiniband/sw/siw/siw_verbs.c 					     wr->num_sge);
num_sge           879 drivers/infiniband/sw/siw/siw_verbs.c 				sqe->num_sge = wr->num_sge;
num_sge           887 drivers/infiniband/sw/siw/siw_verbs.c 				sqe->num_sge = 1;
num_sge          1053 drivers/infiniband/sw/siw/siw_verbs.c 		if (wr->num_sge > qp->attrs.rq_max_sges) {
num_sge          1054 drivers/infiniband/sw/siw/siw_verbs.c 			siw_dbg_qp(qp, "too many sge's: %d\n", wr->num_sge);
num_sge          1059 drivers/infiniband/sw/siw/siw_verbs.c 		rqe->num_sge = wr->num_sge;
num_sge          1060 drivers/infiniband/sw/siw/siw_verbs.c 		siw_copy_sgl(wr->sg_list, rqe->sge, wr->num_sge);
num_sge          1773 drivers/infiniband/sw/siw/siw_verbs.c 		if (unlikely(wr->num_sge > srq->max_sge)) {
num_sge          1775 drivers/infiniband/sw/siw/siw_verbs.c 				   "[SRQ]: too many sge's: %d\n", wr->num_sge);
num_sge          1780 drivers/infiniband/sw/siw/siw_verbs.c 		rqe->num_sge = wr->num_sge;
num_sge          1781 drivers/infiniband/sw/siw/siw_verbs.c 		siw_copy_sgl(wr->sg_list, rqe->sge, wr->num_sge);
num_sge            25 drivers/infiniband/sw/siw/siw_verbs.h 				int num_sge)
num_sge            27 drivers/infiniband/sw/siw/siw_verbs.h 	while (num_sge--) {
num_sge           561 drivers/infiniband/ulp/ipoib/ipoib.h 	priv->tx_wr.wr.num_sge	     = nr_frags + off;
num_sge           344 drivers/infiniband/ulp/ipoib/ipoib_cm.c 	wr->num_sge = priv->cm.num_frags;
num_sge           228 drivers/infiniband/ulp/ipoib/ipoib_verbs.c 	priv->rx_wr.num_sge = 1;
num_sge           251 drivers/infiniband/ulp/iser/iscsi_iser.h 	int                          num_sge;
num_sge           156 drivers/infiniband/ulp/iser/iser_initiator.c 		iser_task->desc.num_sge = 2;
num_sge           173 drivers/infiniband/ulp/iser/iser_initiator.c 	tx_desc->num_sge = 1;
num_sge           473 drivers/infiniband/ulp/iser/iser_initiator.c 	tx_desc->num_sge = 2;
num_sge           535 drivers/infiniband/ulp/iser/iser_initiator.c 		mdesc->num_sge = 2;
num_sge           375 drivers/infiniband/ulp/iser/iser_memory.c 	inv_wr->num_sge = 0;
num_sge           417 drivers/infiniband/ulp/iser/iser_memory.c 	wr->wr.num_sge = 0;
num_sge           465 drivers/infiniband/ulp/iser/iser_memory.c 	wr->wr.num_sge = 0;
num_sge           986 drivers/infiniband/ulp/iser/iser_verbs.c 	wr.num_sge = 1;
num_sge          1012 drivers/infiniband/ulp/iser/iser_verbs.c 		wr->num_sge = 1;
num_sge          1051 drivers/infiniband/ulp/iser/iser_verbs.c 	wr->num_sge = tx_desc->num_sge;
num_sge           814 drivers/infiniband/ulp/isert/ib_isert.c 		rx_wr->num_sge = 1;
num_sge           845 drivers/infiniband/ulp/isert/ib_isert.c 	rx_wr.num_sge = 1;
num_sge           870 drivers/infiniband/ulp/isert/ib_isert.c 	send_wr.num_sge	= tx_desc->num_sge;
num_sge           889 drivers/infiniband/ulp/isert/ib_isert.c 	tx_desc->num_sge = 1;
num_sge           955 drivers/infiniband/ulp/isert/ib_isert.c 	send_wr->num_sge = isert_cmd->tx_desc.num_sge;
num_sge           979 drivers/infiniband/ulp/isert/ib_isert.c 	rx_wr.num_sge = 1;
num_sge          1019 drivers/infiniband/ulp/isert/ib_isert.c 		tx_desc->num_sge = 2;
num_sge          1881 drivers/infiniband/ulp/isert/ib_isert.c 		isert_cmd->tx_desc.num_sge = 2;
num_sge          2009 drivers/infiniband/ulp/isert/ib_isert.c 	isert_cmd->tx_desc.num_sge = 2;
num_sge          2052 drivers/infiniband/ulp/isert/ib_isert.c 		isert_cmd->tx_desc.num_sge = 2;
num_sge           105 drivers/infiniband/ulp/isert/ib_isert.h 	int		num_sge;
num_sge          1232 drivers/infiniband/ulp/srp/ib_srp.c 		.num_sge	    = 0,
num_sge          1576 drivers/infiniband/ulp/srp/ib_srp.c 	wr.wr.num_sge = 0;
num_sge          1816 drivers/infiniband/ulp/srp/ib_srp.c 	req->cmd->num_sge = 1;
num_sge          1858 drivers/infiniband/ulp/srp/ib_srp.c 		req->cmd->num_sge += count;
num_sge          2076 drivers/infiniband/ulp/srp/ib_srp.c 	if (WARN_ON_ONCE(iu->num_sge > SRP_MAX_SGE))
num_sge          2088 drivers/infiniband/ulp/srp/ib_srp.c 	wr.num_sge    = iu->num_sge;
num_sge          2110 drivers/infiniband/ulp/srp/ib_srp.c 	wr.num_sge  = 1;
num_sge          2201 drivers/infiniband/ulp/srp/ib_srp.c 	iu->num_sge = 1;
num_sge          2937 drivers/infiniband/ulp/srp/ib_srp.c 	iu->num_sge = 1;
num_sge           276 drivers/infiniband/ulp/srp/ib_srp.h 	u32			num_sge;
num_sge           836 drivers/infiniband/ulp/srpt/ib_srpt.c 	wr.num_sge = 1;
num_sge          2866 drivers/infiniband/ulp/srpt/ib_srpt.c 	send_wr.num_sge = 1;
num_sge          4329 drivers/message/fusion/mptbase.c 	int 		scale, num_sge, numSGE;
num_sge          4367 drivers/message/fusion/mptbase.c 		num_sge =  scale + (ioc->req_sz - 60) / ioc->SGE_size;
num_sge          4369 drivers/message/fusion/mptbase.c 		num_sge =  1 + scale + (ioc->req_sz - 64) / ioc->SGE_size;
num_sge          4379 drivers/message/fusion/mptbase.c 		ioc->name, num_sge, numSGE));
num_sge          4390 drivers/message/fusion/mptbase.c 	while (numSGE - num_sge > 0) {
num_sge          4392 drivers/message/fusion/mptbase.c 		num_sge += (scale - 1);
num_sge          4397 drivers/message/fusion/mptbase.c 		ioc->name, numSGE, num_sge, num_chain));
num_sge            60 drivers/nvme/host/rdma.c 	u32			num_sge;
num_sge          1138 drivers/nvme/host/rdma.c 		.num_sge	    = 0,
num_sge          1202 drivers/nvme/host/rdma.c 	req->num_sge += count;
num_sge          1248 drivers/nvme/host/rdma.c 	req->reg_wr.wr.num_sge = 0;
num_sge          1272 drivers/nvme/host/rdma.c 	req->num_sge = 1;
num_sge          1343 drivers/nvme/host/rdma.c 		struct nvme_rdma_qe *qe, struct ib_sge *sge, u32 num_sge,
num_sge          1356 drivers/nvme/host/rdma.c 	wr.num_sge    = num_sge;
num_sge          1389 drivers/nvme/host/rdma.c 	wr.num_sge  = 1;
num_sge          1782 drivers/nvme/host/rdma.c 	err = nvme_rdma_post_send(queue, sqe, req->sge, req->num_sge,
num_sge           302 drivers/nvme/target/rdma.c 	c->wr.num_sge = admin ? 1 : ndev->inline_page_count + 1;
num_sge           384 drivers/nvme/target/rdma.c 	r->send_wr.num_sge = 1;
num_sge          1953 drivers/scsi/lpfc/lpfc_scsi.c 	int i = 0, num_sge = 0, status;
num_sge          2020 drivers/scsi/lpfc/lpfc_scsi.c 	num_sge++;
num_sge          2067 drivers/scsi/lpfc/lpfc_scsi.c 			num_sge++;
num_sge          2085 drivers/scsi/lpfc/lpfc_scsi.c 	return num_sge;
num_sge          2150 drivers/scsi/lpfc/lpfc_scsi.c 	int num_sge = 0, j = 2;
num_sge          2184 drivers/scsi/lpfc/lpfc_scsi.c 		if ((num_sge >= (phba->cfg_total_seg_cnt - 2)) &&
num_sge          2186 drivers/scsi/lpfc/lpfc_scsi.c 			return num_sge + 3;
num_sge          2260 drivers/scsi/lpfc/lpfc_scsi.c 		num_sge++;
num_sge          2294 drivers/scsi/lpfc/lpfc_scsi.c 		num_sge++;
num_sge          2305 drivers/scsi/lpfc/lpfc_scsi.c 			if ((num_sge >= phba->cfg_total_seg_cnt) &&
num_sge          2307 drivers/scsi/lpfc/lpfc_scsi.c 				return num_sge + 1;
num_sge          2377 drivers/scsi/lpfc/lpfc_scsi.c 				num_sge++;
num_sge          2423 drivers/scsi/lpfc/lpfc_scsi.c 	return num_sge;
num_sge          3263 drivers/scsi/lpfc/lpfc_scsi.c 	uint32_t num_sge = 0;
num_sge          3316 drivers/scsi/lpfc/lpfc_scsi.c 			num_sge = lpfc_bg_setup_sgl(phba, scsi_cmnd, sgl,
num_sge          3320 drivers/scsi/lpfc/lpfc_scsi.c 			if (num_sge < 2) {
num_sge          3352 drivers/scsi/lpfc/lpfc_scsi.c 			num_sge = lpfc_bg_setup_sgl_prot(phba, scsi_cmnd, sgl,
num_sge          3356 drivers/scsi/lpfc/lpfc_scsi.c 			if (num_sge < 3 ||
num_sge          3357 drivers/scsi/lpfc/lpfc_scsi.c 			    (num_sge > phba->cfg_total_seg_cnt &&
num_sge          3430 drivers/scsi/lpfc/lpfc_scsi.c 			prot_group_type, num_sge);
num_sge          3285 drivers/scsi/megaraid/megaraid_sas_fusion.c 		io_request->RaidContext.raid_context.num_sge = sge_count;
num_sge           122 drivers/scsi/megaraid/megaraid_sas_fusion.h 	u8 num_sge;
num_sge           180 drivers/scsi/megaraid/megaraid_sas_fusion.h 			u16 num_sge:12;
num_sge           182 drivers/scsi/megaraid/megaraid_sas_fusion.h 			u16 num_sge:12;
num_sge           281 fs/cifs/smbdirect.c 	for (i = 0; i < request->num_sge; i++)
num_sge           730 fs/cifs/smbdirect.c 	request->num_sge = 1;
num_sge           751 fs/cifs/smbdirect.c 	send_wr.num_sge = request->num_sge;
num_sge           893 fs/cifs/smbdirect.c 	request->num_sge = 1;
num_sge           934 fs/cifs/smbdirect.c 	for (i = 0; i < request->num_sge; i++) {
num_sge           950 fs/cifs/smbdirect.c 	send_wr.num_sge = request->num_sge;
num_sge          1008 fs/cifs/smbdirect.c 		request->num_sge++;
num_sge          1016 fs/cifs/smbdirect.c 	for (i = 1; i < request->num_sge; i++)
num_sge          1109 fs/cifs/smbdirect.c 	recv_wr.num_sge = 1;
num_sge          2514 fs/cifs/smbdirect.c 	reg_wr->wr.num_sge = 0;
num_sge          2582 fs/cifs/smbdirect.c 		wr->num_sge = 0;
num_sge           243 fs/cifs/smbdirect.h 	int num_sge;
num_sge          1331 include/rdma/ib_verbs.h 	int			num_sge;
num_sge          1402 include/rdma/ib_verbs.h 	int			num_sge;
num_sge          2409 include/rdma/ib_verbs.h 			 struct ib_sge *sg_list, u32 num_sge,
num_sge           122 include/rdma/rdmavt_mr.h 	u8 num_sge;
num_sge           137 include/rdma/rdmavt_mr.h 	while (ss->num_sge) {
num_sge           139 include/rdma/rdmavt_mr.h 		if (--ss->num_sge)
num_sge           167 include/rdma/rdmavt_mr.h 		if (--ss->num_sge)
num_sge           586 include/rdma/rdmavt_qp.h 	for (i = 0; i < wqe->wr.num_sge; i++) {
num_sge           658 include/trace/events/rpcrdma.h 		__field(int, num_sge)
num_sge           670 include/trace/events/rpcrdma.h 		__entry->num_sge = req->rl_sendctx->sc_wr.num_sge;
num_sge           678 include/trace/events/rpcrdma.h 		__entry->req, __entry->num_sge,
num_sge           679 include/trace/events/rpcrdma.h 		(__entry->num_sge == 1 ? "" : "s"),
num_sge          1648 include/trace/events/rpcrdma.h 		__field(unsigned int, num_sge)
num_sge          1654 include/trace/events/rpcrdma.h 		__entry->num_sge = wr->num_sge;
num_sge          1660 include/trace/events/rpcrdma.h 		__entry->cqe, __entry->num_sge,
num_sge           795 include/uapi/rdma/ib_user_verbs.h 	__u32 num_sge;
num_sge           839 include/uapi/rdma/ib_user_verbs.h 	__u32 num_sge;
num_sge            71 include/uapi/rdma/rdma_user_rxe.h 	__u32			num_sge;
num_sge           124 include/uapi/rdma/rdma_user_rxe.h 	__u32			num_sge;
num_sge           150 include/uapi/rdma/rdma_user_rxe.h 	__u32			num_sge;
num_sge            45 include/uapi/rdma/rvt-abi.h 	__u8 num_sge;
num_sge           110 include/uapi/rdma/siw-abi.h 	__u8 num_sge;
num_sge           128 include/uapi/rdma/siw-abi.h 	__u8 num_sge;
num_sge           219 include/uapi/rdma/vmw_pvrdma-abi.h 	__u32 num_sge;		/* size of s/g array */
num_sge           227 include/uapi/rdma/vmw_pvrdma-abi.h 	__u32 num_sge;		/* size of s/g array */
num_sge           404 net/9p/trans_rdma.c 	wr.num_sge = 1;
num_sge           498 net/9p/trans_rdma.c 	wr.num_sge = 1;
num_sge           402 net/core/skmsg.c 	int copied = 0, num_sge;
num_sge           414 net/core/skmsg.c 	num_sge = skb_to_sgvec(skb, msg->sg.data, 0, skb->len);
num_sge           415 net/core/skmsg.c 	if (unlikely(num_sge < 0)) {
num_sge           417 net/core/skmsg.c 		return num_sge;
num_sge           424 net/core/skmsg.c 	msg->sg.end = num_sge;
num_sge           156 net/rds/ib_frmr.c 	reg_wr.wr.num_sge = 0;
num_sge            61 net/rds/ib_recv.c 		recv->r_wr.num_sge = RDS_IB_RECV_SGE;
num_sge           583 net/rds/ib_recv.c 	wr->num_sge = 1;
num_sge           629 net/rds/ib_send.c 		send->s_wr.num_sge = 1;
num_sge           645 net/rds/ib_send.c 			send->s_wr.num_sge = 2;
num_sge           674 net/rds/ib_send.c 			 &send->s_wr, send->s_wr.num_sge, send->s_wr.next);
num_sge           789 net/rds/ib_send.c 	send->s_atomic_wr.wr.num_sge = 1;
num_sge           856 net/rds/ib_send.c 	int num_sge;
num_sge           893 net/rds/ib_send.c 	num_sge = op->op_count;
num_sge           908 net/rds/ib_send.c 		if (num_sge > max_sge) {
num_sge           909 net/rds/ib_send.c 			send->s_rdma_wr.wr.num_sge = max_sge;
num_sge           910 net/rds/ib_send.c 			num_sge -= max_sge;
num_sge           912 net/rds/ib_send.c 			send->s_rdma_wr.wr.num_sge = num_sge;
num_sge           920 net/rds/ib_send.c 		for (j = 0; j < send->s_rdma_wr.wr.num_sge &&
num_sge           936 net/rds/ib_send.c 			send->s_rdma_wr.wr.num_sge,
num_sge           276 net/smc/smc_tx.c 	rdma_wr->wr.num_sge = num_sges;
num_sge           482 net/smc/smc_wr.c 		lnk->wr_tx_ibs[i].num_sge = 1;
num_sge           500 net/smc/smc_wr.c 		lnk->wr_rx_ibs[i].num_sge = 1;
num_sge           503 net/smc/smc_wr.c 	lnk->wr_reg.wr.num_sge = 0;
num_sge           437 net/sunrpc/xprtrdma/frwr_ops.c 		frwr->fr_regwr.wr.num_sge = 0;
num_sge           552 net/sunrpc/xprtrdma/frwr_ops.c 		last->num_sge = 0;
num_sge           655 net/sunrpc/xprtrdma/frwr_ops.c 		last->num_sge = 0;
num_sge           602 net/sunrpc/xprtrdma/rpc_rdma.c 	sc->sc_wr.num_sge++;
num_sge           715 net/sunrpc/xprtrdma/rpc_rdma.c 	sc->sc_wr.num_sge += sge_no;
num_sge           756 net/sunrpc/xprtrdma/rpc_rdma.c 	req->rl_sendctx->sc_wr.num_sge = 0;
num_sge           141 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c 	ctxt->rc_recv_wr.num_sge = 1;
num_sge           207 net/sunrpc/xprtrdma/svc_rdma_sendto.c 	ctxt->sc_send_wr.num_sge = 0;
num_sge           236 net/sunrpc/xprtrdma/svc_rdma_sendto.c 	for (i = 1; i < ctxt->sc_send_wr.num_sge; i++)
num_sge           500 net/sunrpc/xprtrdma/svc_rdma_sendto.c 	ctxt->sc_send_wr.num_sge++;
num_sge           532 net/sunrpc/xprtrdma/svc_rdma_sendto.c 	ctxt->sc_send_wr.num_sge++;
num_sge           771 net/sunrpc/xprtrdma/svc_rdma_sendto.c 		sctxt->sc_send_wr.num_sge);
num_sge          1087 net/sunrpc/xprtrdma/verbs.c 	rep->rr_recv_wr.num_sge = 1;