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