Lines Matching refs:sge
44 * @sge: sge length and stag
48 irdma_set_fragment(__le64 * wqe, u32 offset, struct ibv_sge *sge,
51 if (sge) {
53 FIELD_PREP(IRDMAQPSQ_FRAG_TO, sge->addr));
56 FIELD_PREP(IRDMAQPSQ_FRAG_LEN, sge->length) |
57 FIELD_PREP(IRDMAQPSQ_FRAG_STAG, sge->lkey));
69 * @sge: sge length and stag
74 struct ibv_sge *sge, u8 valid)
76 if (sge) {
78 FIELD_PREP(IRDMAQPSQ_FRAG_TO, sge->addr));
80 FIELD_PREP(IRDMAQPSQ_GEN1_FRAG_LEN, sge->length) |
81 FIELD_PREP(IRDMAQPSQ_GEN1_FRAG_STAG, sge->lkey));
913 struct ibv_sge sge = {0};
924 sge.lkey = op_info->target_stag;
925 qp->wqe_ops.iw_set_fragment(wqe, IRDMA_BYTE_0, &sge, 0);
1554 * @sge: Maximum Scatter Gather Elements wqe
1556 * @shift: Returns the shift needed based on sge
1566 irdma_get_wqe_shift(struct irdma_uk_attrs *uk_attrs, u32 sge,
1571 if (sge > 1 || inline_data > 8) {
1572 if (sge < 4 && inline_data <= 39)
1574 else if (sge < 8 && inline_data <= 101)
1579 } else if (sge > 1 || inline_data > 16) {
1580 *shift = (sge < 4 && inline_data <= 48) ? 1 : 2;