Lines Matching refs:msg

60 static int fill_res_raw(struct sk_buff *msg, struct mlx5_ib_dev *dev,  in fill_res_raw()  argument
75 err = nla_put(msg, RDMA_NLDEV_ATTR_RES_RAW, len, data); in fill_res_raw()
81 static int fill_stat_mr_entry(struct sk_buff *msg, struct ib_mr *ibmr) in fill_stat_mr_entry() argument
89 table_attr = nla_nest_start(msg, in fill_stat_mr_entry()
95 if (rdma_nl_stat_hwcounter_entry(msg, "page_faults", in fill_stat_mr_entry()
99 msg, "page_invalidations", in fill_stat_mr_entry()
102 if (rdma_nl_stat_hwcounter_entry(msg, "page_prefetch", in fill_stat_mr_entry()
106 nla_nest_end(msg, table_attr); in fill_stat_mr_entry()
110 nla_nest_cancel(msg, table_attr); in fill_stat_mr_entry()
115 static int fill_res_mr_entry_raw(struct sk_buff *msg, struct ib_mr *ibmr) in fill_res_mr_entry_raw() argument
119 return fill_res_raw(msg, mr_to_mdev(mr), MLX5_SGMT_TYPE_PRM_QUERY_MKEY, in fill_res_mr_entry_raw()
123 static int fill_res_mr_entry(struct sk_buff *msg, struct ib_mr *ibmr) in fill_res_mr_entry() argument
131 table_attr = nla_nest_start(msg, RDMA_NLDEV_ATTR_DRIVER); in fill_res_mr_entry()
136 if (rdma_nl_put_driver_string(msg, "odp", "implicit")) in fill_res_mr_entry()
139 if (rdma_nl_put_driver_string(msg, "odp", "explicit")) in fill_res_mr_entry()
143 nla_nest_end(msg, table_attr); in fill_res_mr_entry()
147 nla_nest_cancel(msg, table_attr); in fill_res_mr_entry()
151 static int fill_res_cq_entry_raw(struct sk_buff *msg, struct ib_cq *ibcq) in fill_res_cq_entry_raw() argument
156 return fill_res_raw(msg, dev, MLX5_SGMT_TYPE_PRM_QUERY_CQ, cq->mcq.cqn); in fill_res_cq_entry_raw()
159 static int fill_res_qp_entry_raw(struct sk_buff *msg, struct ib_qp *ibqp) in fill_res_qp_entry_raw() argument
163 return fill_res_raw(msg, dev, MLX5_SGMT_TYPE_PRM_QUERY_QP, in fill_res_qp_entry_raw()