Home
last modified time | relevance | path

Searched refs:mlx5_ib_dev (Results 1 – 25 of 38) sorted by relevance

12

/Linux-v6.6/drivers/infiniband/hw/mlx5/
Dqp.h9 struct mlx5_ib_dev;
21 int mlx5_init_qp_table(struct mlx5_ib_dev *dev);
22 void mlx5_cleanup_qp_table(struct mlx5_ib_dev *dev);
24 int mlx5_core_create_dct(struct mlx5_ib_dev *dev, struct mlx5_core_dct *qp,
26 int mlx5_qpc_create_qp(struct mlx5_ib_dev *dev, struct mlx5_core_qp *qp,
28 int mlx5_core_qp_modify(struct mlx5_ib_dev *dev, u16 opcode, u32 opt_param_mask,
30 int mlx5_core_destroy_qp(struct mlx5_ib_dev *dev, struct mlx5_core_qp *qp);
31 int mlx5_core_destroy_dct(struct mlx5_ib_dev *dev, struct mlx5_core_dct *dct);
32 int mlx5_core_qp_query(struct mlx5_ib_dev *dev, struct mlx5_core_qp *qp,
34 int mlx5_core_dct_query(struct mlx5_ib_dev *dev, struct mlx5_core_dct *dct,
[all …]
Ddevx.h13 struct mlx5_ib_dev *ib_dev;
27 int mlx5_ib_devx_create(struct mlx5_ib_dev *dev, bool is_user);
28 void mlx5_ib_devx_destroy(struct mlx5_ib_dev *dev, u16 uid);
29 int mlx5_ib_devx_init(struct mlx5_ib_dev *dev);
30 void mlx5_ib_devx_cleanup(struct mlx5_ib_dev *dev);
32 static inline int mlx5_ib_devx_create(struct mlx5_ib_dev *dev, bool is_user) in mlx5_ib_devx_create()
36 static inline void mlx5_ib_devx_destroy(struct mlx5_ib_dev *dev, u16 uid) {} in mlx5_ib_devx_destroy()
37 static inline int mlx5_ib_devx_init(struct mlx5_ib_dev *dev) in mlx5_ib_devx_init()
41 static inline void mlx5_ib_devx_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_devx_cleanup()
Dmacsec.h17 int mlx5r_macsec_init_gids_and_devlist(struct mlx5_ib_dev *dev);
18 void mlx5r_macsec_dealloc_gids(struct mlx5_ib_dev *dev);
19 void mlx5r_macsec_event_register(struct mlx5_ib_dev *dev);
20 void mlx5r_macsec_event_unregister(struct mlx5_ib_dev *dev);
24 static inline int mlx5r_macsec_init_gids_and_devlist(struct mlx5_ib_dev *dev) { return 0; } in mlx5r_macsec_init_gids_and_devlist()
25 static inline void mlx5r_macsec_dealloc_gids(struct mlx5_ib_dev *dev) {} in mlx5r_macsec_dealloc_gids()
26 static inline void mlx5r_macsec_event_register(struct mlx5_ib_dev *dev) {} in mlx5r_macsec_event_register()
27 static inline void mlx5r_macsec_event_unregister(struct mlx5_ib_dev *dev) {} in mlx5r_macsec_event_unregister()
Dsrq.h39 struct mlx5_ib_dev;
58 int mlx5_cmd_create_srq(struct mlx5_ib_dev *dev, struct mlx5_core_srq *srq,
60 int mlx5_cmd_destroy_srq(struct mlx5_ib_dev *dev, struct mlx5_core_srq *srq);
61 int mlx5_cmd_query_srq(struct mlx5_ib_dev *dev, struct mlx5_core_srq *srq,
63 int mlx5_cmd_arm_srq(struct mlx5_ib_dev *dev, struct mlx5_core_srq *srq,
65 struct mlx5_core_srq *mlx5_cmd_get_srq(struct mlx5_ib_dev *dev, u32 srqn);
67 int mlx5_init_srq_table(struct mlx5_ib_dev *dev);
68 void mlx5_cleanup_srq_table(struct mlx5_ib_dev *dev);
Dmlx5_ib.h264 struct mlx5_ib_dev *dev;
281 struct mlx5_ib_dev *dev;
780 struct mlx5_ib_dev *dev;
836 int mlx5_ib_fs_add_op_fc(struct mlx5_ib_dev *dev, u32 port_num,
840 void mlx5_ib_fs_remove_op_fc(struct mlx5_ib_dev *dev,
864 struct mlx5_ib_dev *dev;
881 struct mlx5_ib_dev *dev;
922 struct mlx5_ib_dev *dev;
958 int (*init)(struct mlx5_ib_dev *dev);
959 void (*cleanup)(struct mlx5_ib_dev *dev);
[all …]
Dfs.h12 int mlx5_ib_fs_init(struct mlx5_ib_dev *dev);
13 void mlx5_ib_fs_cleanup_anchor(struct mlx5_ib_dev *dev);
15 static inline int mlx5_ib_fs_init(struct mlx5_ib_dev *dev) in mlx5_ib_fs_init()
26 inline void mlx5_ib_fs_cleanup_anchor(struct mlx5_ib_dev *dev) {} in mlx5_ib_fs_cleanup_anchor()
29 static inline void mlx5_ib_fs_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_fs_cleanup()
Dqpc.c12 static int mlx5_core_drain_dct(struct mlx5_ib_dev *dev,
91 static int dct_event_notifier(struct mlx5_ib_dev *dev, struct mlx5_eqe *eqe) in dct_event_notifier()
109 struct mlx5_ib_dev *dev = in rsc_event_notifier()
110 container_of(nb, struct mlx5_ib_dev, qp_table.nb); in rsc_event_notifier()
159 static int create_resource_common(struct mlx5_ib_dev *dev, in create_resource_common()
181 static void destroy_resource_common(struct mlx5_ib_dev *dev, in destroy_resource_common()
195 static int _mlx5_core_destroy_dct(struct mlx5_ib_dev *dev, in _mlx5_core_destroy_dct()
207 int mlx5_core_create_dct(struct mlx5_ib_dev *dev, struct mlx5_core_dct *dct, in mlx5_core_create_dct()
232 int mlx5_qpc_create_qp(struct mlx5_ib_dev *dev, struct mlx5_core_qp *qp, in mlx5_qpc_create_qp()
264 static int mlx5_core_drain_dct(struct mlx5_ib_dev *dev, in mlx5_core_drain_dct()
[all …]
Dmain.c61 struct mlx5_ib_dev *dev;
81 struct mlx5_ib_dev *mlx5_ib_get_ibdev_from_mpi(struct mlx5_ib_multiport_info *mpi) in mlx5_ib_get_ibdev_from_mpi()
83 struct mlx5_ib_dev *dev; in mlx5_ib_get_ibdev_from_mpi()
107 struct mlx5_ib_dev *dev = to_mdev(device); in mlx5_ib_port_link_layer()
127 static struct mlx5_roce *mlx5_get_rep_roce(struct mlx5_ib_dev *dev, in mlx5_get_rep_roce()
170 struct mlx5_ib_dev *ibdev; in mlx5_netdev_event()
250 struct mlx5_ib_dev *ibdev = to_mdev(device); in mlx5_ib_get_netdev()
275 struct mlx5_core_dev *mlx5_ib_get_native_port_mdev(struct mlx5_ib_dev *ibdev, in mlx5_ib_get_native_port_mdev()
311 void mlx5_ib_put_native_port_mdev(struct mlx5_ib_dev *ibdev, u32 port_num) in mlx5_ib_put_native_port_mdev()
474 struct mlx5_ib_dev *dev = to_mdev(device); in mlx5_query_port_roce()
[all …]
Dsrq_cmd.c81 struct mlx5_core_srq *mlx5_cmd_get_srq(struct mlx5_ib_dev *dev, u32 srqn) in mlx5_cmd_get_srq()
114 static int create_srq_cmd(struct mlx5_ib_dev *dev, struct mlx5_core_srq *srq, in create_srq_cmd()
164 static int destroy_srq_cmd(struct mlx5_ib_dev *dev, struct mlx5_core_srq *srq) in destroy_srq_cmd()
175 static int arm_srq_cmd(struct mlx5_ib_dev *dev, struct mlx5_core_srq *srq, in arm_srq_cmd()
189 static int query_srq_cmd(struct mlx5_ib_dev *dev, struct mlx5_core_srq *srq, in query_srq_cmd()
216 static int create_xrc_srq_cmd(struct mlx5_ib_dev *dev, in create_xrc_srq_cmd()
270 static int destroy_xrc_srq_cmd(struct mlx5_ib_dev *dev, in destroy_xrc_srq_cmd()
282 static int arm_xrc_srq_cmd(struct mlx5_ib_dev *dev, struct mlx5_core_srq *srq, in arm_xrc_srq_cmd()
297 static int query_xrc_srq_cmd(struct mlx5_ib_dev *dev, in query_xrc_srq_cmd()
328 static int create_rmp_cmd(struct mlx5_ib_dev *dev, struct mlx5_core_srq *srq, in create_rmp_cmd()
[all …]
Dcounters.h11 int mlx5_ib_counters_init(struct mlx5_ib_dev *dev);
12 void mlx5_ib_counters_cleanup(struct mlx5_ib_dev *dev);
16 u16 mlx5_ib_get_counters_id(struct mlx5_ib_dev *dev, u32 port_num);
Dumr.h16 int mlx5r_umr_resource_init(struct mlx5_ib_dev *dev);
17 void mlx5r_umr_resource_cleanup(struct mlx5_ib_dev *dev);
19 static inline bool mlx5r_umr_can_load_pas(struct mlx5_ib_dev *dev, in mlx5r_umr_can_load_pas()
48 static inline bool mlx5r_umr_can_reconfig(struct mlx5_ib_dev *dev, in mlx5r_umr_can_reconfig()
Dumr.c46 static __be64 get_umr_update_access_mask(struct mlx5_ib_dev *dev) in get_umr_update_access_mask()
76 static int umr_check_mkey_mask(struct mlx5_ib_dev *dev, u64 mask) in umr_check_mkey_mask()
101 static int mlx5r_umr_qp_rst2rts(struct mlx5_ib_dev *dev, struct ib_qp *qp) in mlx5r_umr_qp_rst2rts()
135 int mlx5r_umr_resource_init(struct mlx5_ib_dev *dev) in mlx5r_umr_resource_init()
193 void mlx5r_umr_resource_cleanup(struct mlx5_ib_dev *dev) in mlx5r_umr_resource_cleanup()
202 static int mlx5r_umr_recover(struct mlx5_ib_dev *dev) in mlx5r_umr_recover()
234 struct mlx5_ib_dev *dev = to_mdev(ibqp->device); in mlx5r_umr_post_send()
288 static int mlx5r_umr_post_send_wait(struct mlx5_ib_dev *dev, u32 mkey, in mlx5r_umr_post_send_wait()
360 struct mlx5_ib_dev *dev = mr_to_mdev(mr); in mlx5r_umr_revoke_mr()
379 static void mlx5r_umr_set_access_flags(struct mlx5_ib_dev *dev, in mlx5r_umr_set_access_flags()
[all …]
Dcounters.c201 static bool vport_qcounters_supported(struct mlx5_ib_dev *dev) in vport_qcounters_supported()
207 static const struct mlx5_ib_counters *get_counters(struct mlx5_ib_dev *dev, in get_counters()
227 u16 mlx5_ib_get_counters_id(struct mlx5_ib_dev *dev, u32 port_num) in mlx5_ib_get_counters_id()
258 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_alloc_hw_device_stats()
267 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_alloc_hw_port_stats()
297 static int mlx5_ib_query_ext_ppcnt_counters(struct mlx5_ib_dev *dev, in mlx5_ib_query_ext_ppcnt_counters()
327 static int mlx5_ib_query_q_counters_vport(struct mlx5_ib_dev *dev, in mlx5_ib_query_q_counters_vport()
368 struct mlx5_ib_dev *dev = to_mdev(ibdev); in do_get_hw_stats()
430 struct mlx5_ib_dev *dev = to_mdev(ibdev); in do_get_op_stat()
461 struct mlx5_ib_dev *dev = to_mdev(ibdev); in do_get_op_stats()
[all …]
Dib_virt.c53 struct mlx5_ib_dev *dev = to_mdev(device); in mlx5_ib_get_vf_config()
95 struct mlx5_ib_dev *dev = to_mdev(device); in mlx5_ib_set_vf_link_state()
125 struct mlx5_ib_dev *dev; in mlx5_ib_get_vf_stats()
154 struct mlx5_ib_dev *dev = to_mdev(device); in set_vf_node_guid()
178 struct mlx5_ib_dev *dev = to_mdev(device); in set_vf_port_guid()
214 struct mlx5_ib_dev *dev = to_mdev(device); in mlx5_ib_get_vf_guid()
Dmr.c62 struct mlx5_ib_dev *dev = to_mdev(pd->device); in set_mkc_access_pd_addr_fields()
86 static void assign_mkey_variant(struct mlx5_ib_dev *dev, u32 *mkey, u32 *in) in assign_mkey_variant()
96 static int mlx5_ib_create_mkey(struct mlx5_ib_dev *dev, in mlx5_ib_create_mkey()
111 struct mlx5_ib_dev *dev = async_create->ent->dev; in mlx5_ib_create_mkey_cb()
123 static int mkey_cache_max_order(struct mlx5_ib_dev *dev);
126 static int destroy_mkey(struct mlx5_ib_dev *dev, struct mlx5_ib_mr *mr) in destroy_mkey()
133 static void create_mkey_warn(struct mlx5_ib_dev *dev, int status, void *out) in create_mkey_warn()
257 struct mlx5_ib_dev *dev = ent->dev; in create_mkey_callback()
588 struct mlx5_ib_dev *dev = ent->dev; in __cache_work_func()
714 mkey_cache_ent_from_rb_key(struct mlx5_ib_dev *dev, in mkey_cache_ent_from_rb_key()
[all …]
Dqp.c319 struct mlx5_ib_dev *dev = to_mdev(ibqp->device); in mlx5_ib_qp_err_syndrome()
433 static int set_rq_size(struct mlx5_ib_dev *dev, struct ib_qp_cap *cap, in set_rq_size()
591 static int calc_sq_size(struct mlx5_ib_dev *dev, struct ib_qp_init_attr *attr, in calc_sq_size()
636 static int set_user_buf_size(struct mlx5_ib_dev *dev, in set_user_buf_size()
697 static int max_bfregs(struct mlx5_ib_dev *dev, struct mlx5_bfreg_info *bfregi) in max_bfregs()
703 static int num_med_bfreg(struct mlx5_ib_dev *dev, in num_med_bfreg()
714 static int first_med_bfreg(struct mlx5_ib_dev *dev, in first_med_bfreg()
720 static int first_hi_bfreg(struct mlx5_ib_dev *dev, in first_hi_bfreg()
729 static int alloc_high_class_bfreg(struct mlx5_ib_dev *dev, in alloc_high_class_bfreg()
744 static int alloc_med_class_bfreg(struct mlx5_ib_dev *dev, in alloc_med_class_bfreg()
[all …]
Drestrack.c60 static int fill_res_raw(struct sk_buff *msg, struct mlx5_ib_dev *dev, in fill_res_raw()
153 struct mlx5_ib_dev *dev = to_mdev(ibcq->device); in fill_res_cq_entry_raw()
161 struct mlx5_ib_dev *dev = to_mdev(ibqp->device); in fill_res_qp_entry_raw()
175 int mlx5_ib_restrack_init(struct mlx5_ib_dev *dev) in mlx5_ib_restrack_init()
Dib_rep.c15 struct mlx5_ib_dev *ibdev; in mlx5_ib_set_vport_rep()
56 struct mlx5_ib_dev *ibdev; in mlx5_ib_vport_rep_load()
93 ibdev = ib_alloc_device(mlx5_ib_dev, ib_dev); in mlx5_ib_vport_rep_load()
138 struct mlx5_ib_dev *dev = mlx5_ib_rep_to_dev(rep); in mlx5_ib_vport_rep_unload()
211 struct mlx5_flow_handle *create_flow_rule_vport_sq(struct mlx5_ib_dev *dev, in create_flow_rule_vport_sq()
Dib_rep.h17 struct mlx5_flow_handle *create_flow_rule_vport_sq(struct mlx5_ib_dev *dev,
26 struct mlx5_flow_handle *create_flow_rule_vport_sq(struct mlx5_ib_dev *dev, in create_flow_rule_vport_sq()
Dgsi.c41 static bool mlx5_ib_deth_sqpn_cap(struct mlx5_ib_dev *dev) in mlx5_ib_deth_sqpn_cap()
91 struct mlx5_ib_dev *dev = to_mdev(pd->device); in mlx5_ib_create_gsi()
170 struct mlx5_ib_dev *dev = to_mdev(mqp->ibqp.device); in mlx5_ib_destroy_gsi()
222 struct mlx5_ib_dev *dev = to_mdev(qp->device); in modify_to_rts()
262 struct mlx5_ib_dev *dev = to_mdev(device); in setup_qp()
323 struct mlx5_ib_dev *dev = to_mdev(qp->device); in mlx5_ib_gsi_modify_qp()
363 struct mlx5_ib_dev *dev = to_mdev(gsi->rx_qp->device); in mlx5_ib_add_outstanding_wr()
413 struct mlx5_ib_dev *dev = to_mdev(gsi->rx_qp->device); in get_tx_qp()
Dmacsec.c149 void mlx5r_macsec_event_register(struct mlx5_ib_dev *dev) in mlx5r_macsec_event_register()
161 void mlx5r_macsec_event_unregister(struct mlx5_ib_dev *dev) in mlx5r_macsec_event_unregister()
172 int mlx5r_macsec_init_gids_and_devlist(struct mlx5_ib_dev *dev) in mlx5r_macsec_init_gids_and_devlist()
205 void mlx5r_macsec_dealloc_gids(struct mlx5_ib_dev *dev) in mlx5r_macsec_dealloc_gids()
220 struct mlx5_ib_dev *dev = to_mdev(attr->device); in mlx5r_add_gid_macsec_operations()
304 struct mlx5_ib_dev *dev = to_mdev(attr->device); in mlx5r_del_gid_macsec_operations()
Dcq.c51 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in mlx5_ib_cq_event()
170 struct mlx5_ib_dev *dev = to_mdev(qp->ibqp.device); in handle_responder()
270 static void dump_cqe(struct mlx5_ib_dev *dev, struct mlx5_err_cqe *cqe, in dump_cqe()
279 static void mlx5_handle_error_cqe(struct mlx5_ib_dev *dev, in mlx5_handle_error_cqe()
357 static void free_cq_buf(struct mlx5_ib_dev *dev, struct mlx5_ib_cq_buf *buf) in free_cq_buf()
451 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in mlx5_poll_one()
584 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in poll_soft_wc()
611 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in mlx5_ib_poll_cq()
668 static int alloc_cq_frag_buf(struct mlx5_ib_dev *dev, in alloc_cq_frag_buf()
699 static int mini_cqe_res_format_to_hw(struct mlx5_ib_dev *dev, u8 format) in mini_cqe_res_format_to_hw()
[all …]
Dsrq.c47 struct mlx5_ib_dev *dev = to_mdev(pd->device); in create_srq_user()
105 static int create_srq_kernel(struct mlx5_ib_dev *dev, struct mlx5_ib_srq *srq, in create_srq_kernel()
184 static void destroy_srq_kernel(struct mlx5_ib_dev *dev, struct mlx5_ib_srq *srq) in destroy_srq_kernel()
195 struct mlx5_ib_dev *dev = to_mdev(ib_srq->device); in mlx5_ib_create_srq()
324 struct mlx5_ib_dev *dev = to_mdev(ibsrq->device); in mlx5_ib_modify_srq()
349 struct mlx5_ib_dev *dev = to_mdev(ibsrq->device); in mlx5_ib_query_srq()
373 struct mlx5_ib_dev *dev = to_mdev(srq->device); in mlx5_ib_destroy_srq()
408 struct mlx5_ib_dev *dev = to_mdev(ibsrq->device); in mlx5_ib_post_srq_recv()
Dfs.c627 static void put_flow_table(struct mlx5_ib_dev *dev, in put_flow_table()
643 struct mlx5_ib_dev *dev = handler->dev; in mlx5_ib_destroy_flow()
683 struct mlx5_ib_dev *dev = to_mdev(device); in mlx5_ib_shared_ft_allowed()
688 static struct mlx5_ib_flow_prio *_get_prio(struct mlx5_ib_dev *dev, in _get_prio()
711 static struct mlx5_ib_flow_prio *get_flow_table(struct mlx5_ib_dev *dev, in get_flow_table()
809 static int set_vhca_port_spec(struct mlx5_ib_dev *dev, u32 port_num, in set_vhca_port_spec()
826 static int set_ecn_ce_spec(struct mlx5_ib_dev *dev, u32 port_num, in set_ecn_ce_spec()
852 static int set_cnp_spec(struct mlx5_ib_dev *dev, u32 port_num, in set_cnp_spec()
870 int mlx5_ib_fs_add_op_fc(struct mlx5_ib_dev *dev, u32 port_num, in mlx5_ib_fs_add_op_fc()
973 void mlx5_ib_fs_remove_op_fc(struct mlx5_ib_dev *dev, in mlx5_ib_fs_remove_op_fc()
[all …]
Ddevx.c33 struct mlx5_ib_dev *mdev;
87 struct mlx5_ib_dev *dev;
112 int mlx5_ib_devx_create(struct mlx5_ib_dev *dev, bool is_user) in mlx5_ib_devx_create()
145 void mlx5_ib_devx_destroy(struct mlx5_ib_dev *dev, u16 uid) in mlx5_ib_devx_destroy()
594 struct mlx5_ib_dev *dev = mlx5_udata_to_mdev(&attrs->driver_udata); in devx_is_valid_obj_id()
934 struct mlx5_ib_dev *dev; in devx_get_uid()
952 static bool devx_is_general_cmd(void *in, struct mlx5_ib_dev *dev) in devx_is_general_cmd()
991 struct mlx5_ib_dev *dev; in UVERBS_HANDLER()
1040 struct mlx5_ib_dev *dev; in UVERBS_HANDLER()
1068 struct mlx5_ib_dev *dev; in UVERBS_HANDLER()
[all …]

12