Lines Matching refs:msg

11 int hns_roce_fill_res_cq_entry(struct sk_buff *msg, struct ib_cq *ib_cq)
16 table_attr = nla_nest_start(msg, RDMA_NLDEV_ATTR_DRIVER);
20 if (rdma_nl_put_driver_u32(msg, "cq_depth", hr_cq->cq_depth))
23 if (rdma_nl_put_driver_u32(msg, "cons_index", hr_cq->cons_index))
26 if (rdma_nl_put_driver_u32(msg, "cqe_size", hr_cq->cqe_size))
29 if (rdma_nl_put_driver_u32(msg, "arm_sn", hr_cq->arm_sn))
32 nla_nest_end(msg, table_attr);
37 nla_nest_cancel(msg, table_attr);
42 int hns_roce_fill_res_cq_entry_raw(struct sk_buff *msg, struct ib_cq *ib_cq)
56 ret = nla_put(msg, RDMA_NLDEV_ATTR_RES_RAW, sizeof(context), &context);
61 int hns_roce_fill_res_qp_entry(struct sk_buff *msg, struct ib_qp *ib_qp)
66 table_attr = nla_nest_start(msg, RDMA_NLDEV_ATTR_DRIVER);
70 if (rdma_nl_put_driver_u32_hex(msg, "sq_wqe_cnt", hr_qp->sq.wqe_cnt))
73 if (rdma_nl_put_driver_u32_hex(msg, "sq_max_gs", hr_qp->sq.max_gs))
76 if (rdma_nl_put_driver_u32_hex(msg, "rq_wqe_cnt", hr_qp->rq.wqe_cnt))
79 if (rdma_nl_put_driver_u32_hex(msg, "rq_max_gs", hr_qp->rq.max_gs))
82 if (rdma_nl_put_driver_u32_hex(msg, "ext_sge_sge_cnt", hr_qp->sge.sge_cnt))
85 nla_nest_end(msg, table_attr);
90 nla_nest_cancel(msg, table_attr);
95 int hns_roce_fill_res_qp_entry_raw(struct sk_buff *msg, struct ib_qp *ib_qp)
126 ret = nla_put(msg, RDMA_NLDEV_ATTR_RES_RAW, sizeof(context), &context);
131 int hns_roce_fill_res_mr_entry(struct sk_buff *msg, struct ib_mr *ib_mr)
136 table_attr = nla_nest_start(msg, RDMA_NLDEV_ATTR_DRIVER);
140 if (rdma_nl_put_driver_u32_hex(msg, "pbl_hop_num", hr_mr->pbl_hop_num))
143 if (rdma_nl_put_driver_u32_hex(msg, "ba_pg_shift",
147 if (rdma_nl_put_driver_u32_hex(msg, "buf_pg_shift",
151 nla_nest_end(msg, table_attr);
156 nla_nest_cancel(msg, table_attr);
161 int hns_roce_fill_res_mr_entry_raw(struct sk_buff *msg, struct ib_mr *ib_mr)
175 ret = nla_put(msg, RDMA_NLDEV_ATTR_RES_RAW, sizeof(context), &context);
180 int hns_roce_fill_res_srq_entry(struct sk_buff *msg, struct ib_srq *ib_srq)
185 table_attr = nla_nest_start(msg, RDMA_NLDEV_ATTR_DRIVER);
189 if (rdma_nl_put_driver_u32_hex(msg, "srqn", hr_srq->srqn))
192 if (rdma_nl_put_driver_u32_hex(msg, "wqe_cnt", hr_srq->wqe_cnt))
195 if (rdma_nl_put_driver_u32_hex(msg, "max_gs", hr_srq->max_gs))
198 if (rdma_nl_put_driver_u32_hex(msg, "xrcdn", hr_srq->xrcdn))
201 nla_nest_end(msg, table_attr);
206 nla_nest_cancel(msg, table_attr);
210 int hns_roce_fill_res_srq_entry_raw(struct sk_buff *msg, struct ib_srq *ib_srq)
224 ret = nla_put(msg, RDMA_NLDEV_ATTR_RES_RAW, sizeof(context), &context);