Lines Matching refs:dseg

51 static void set_data_seg_v2(struct hns_roce_v2_wqe_data_seg *dseg,  in set_data_seg_v2()  argument
54 dseg->lkey = cpu_to_le32(sg->lkey); in set_data_seg_v2()
55 dseg->addr = cpu_to_le64(sg->addr); in set_data_seg_v2()
56 dseg->len = cpu_to_le32(sg->length); in set_data_seg_v2()
136 struct hns_roce_v2_wqe_data_seg *dseg = in set_atomic_seg() local
139 (void *)dseg + sizeof(struct hns_roce_v2_wqe_data_seg); in set_atomic_seg()
141 set_data_seg_v2(dseg, wr->sg_list); in set_atomic_seg()
168 void *dseg; in fill_ext_sge_inl_data() local
176 dseg = hns_roce_get_extend_sge(qp, idx & (qp->sge.sge_cnt - 1)); in fill_ext_sge_inl_data()
177 left_len_in_pg = hr_hw_page_align((uintptr_t)dseg) - (uintptr_t)dseg; in fill_ext_sge_inl_data()
188 memcpy(dseg, addr, len); in fill_ext_sge_inl_data()
199 dseg += len; in fill_ext_sge_inl_data()
201 memcpy(dseg, addr, left_len_in_pg); in fill_ext_sge_inl_data()
206 dseg = hns_roce_get_extend_sge(qp, in fill_ext_sge_inl_data()
220 struct hns_roce_v2_wqe_data_seg *dseg; in set_extend_sge() local
231 dseg = hns_roce_get_extend_sge(qp, idx & (qp->sge.sge_cnt - 1)); in set_extend_sge()
232 set_data_seg_v2(dseg, sge); in set_extend_sge()
264 void *dseg = rc_sq_wqe; in set_rc_inl() local
276 dseg += sizeof(struct hns_roce_v2_rc_send_wqe); in set_rc_inl()
285 memcpy(dseg, ((void *)wr->sg_list[i].addr), in set_rc_inl()
287 dseg += wr->sg_list[i].length; in set_rc_inl()
313 struct hns_roce_v2_wqe_data_seg *dseg = in set_rwqe_data_seg() local
330 set_data_seg_v2(dseg, wr->sg_list + i); in set_rwqe_data_seg()
331 dseg++; in set_rwqe_data_seg()
337 set_data_seg_v2(dseg, wr->sg_list + i); in set_rwqe_data_seg()
338 dseg++; in set_rwqe_data_seg()
732 struct hns_roce_v2_wqe_data_seg *dseg; in hns_roce_v2_post_recv() local
769 dseg = (struct hns_roce_v2_wqe_data_seg *)wqe; in hns_roce_v2_post_recv()
773 set_data_seg_v2(dseg, wr->sg_list + i); in hns_roce_v2_post_recv()
774 dseg++; in hns_roce_v2_post_recv()
778 dseg->lkey = cpu_to_le32(HNS_ROCE_INVALID_LKEY); in hns_roce_v2_post_recv()
779 dseg->addr = 0; in hns_roce_v2_post_recv()
868 struct hns_roce_v2_wqe_data_seg *dseg; in hns_roce_v2_post_srq_recv() local
904 dseg = (struct hns_roce_v2_wqe_data_seg *)wqe; in hns_roce_v2_post_srq_recv()
907 dseg[i].len = cpu_to_le32(wr->sg_list[i].length); in hns_roce_v2_post_srq_recv()
908 dseg[i].lkey = cpu_to_le32(wr->sg_list[i].lkey); in hns_roce_v2_post_srq_recv()
909 dseg[i].addr = cpu_to_le64(wr->sg_list[i].addr); in hns_roce_v2_post_srq_recv()
913 dseg[i].len = 0; in hns_roce_v2_post_srq_recv()
914 dseg[i].lkey = cpu_to_le32(0x100); in hns_roce_v2_post_srq_recv()
915 dseg[i].addr = 0; in hns_roce_v2_post_srq_recv()