/linux-6.1.9/drivers/infiniband/hw/mlx5/ |
D | qp.h | 11 int mlx5_init_qp_table(struct mlx5_ib_dev *dev); 12 void mlx5_cleanup_qp_table(struct mlx5_ib_dev *dev); 14 int mlx5_core_create_dct(struct mlx5_ib_dev *dev, struct mlx5_core_dct *qp, 16 int mlx5_qpc_create_qp(struct mlx5_ib_dev *dev, struct mlx5_core_qp *qp, 18 int mlx5_core_qp_modify(struct mlx5_ib_dev *dev, u16 opcode, u32 opt_param_mask, 20 int mlx5_core_destroy_qp(struct mlx5_ib_dev *dev, struct mlx5_core_qp *qp); 21 int mlx5_core_destroy_dct(struct mlx5_ib_dev *dev, struct mlx5_core_dct *dct); 22 int mlx5_core_qp_query(struct mlx5_ib_dev *dev, struct mlx5_core_qp *qp, 24 int mlx5_core_dct_query(struct mlx5_ib_dev *dev, struct mlx5_core_dct *dct, 27 int mlx5_core_set_delay_drop(struct mlx5_ib_dev *dev, u32 timeout_usec); [all …]
|
D | devx.h | 13 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()
|
D | srq.h | 39 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);
|
D | mlx5_ib.h | 247 struct mlx5_ib_dev *dev; 264 struct mlx5_ib_dev *dev; 754 struct mlx5_ib_dev *dev; 808 int mlx5_ib_fs_add_op_fc(struct mlx5_ib_dev *dev, u32 port_num, 812 void mlx5_ib_fs_remove_op_fc(struct mlx5_ib_dev *dev, 833 struct mlx5_ib_dev *dev; 847 struct mlx5_ib_dev *dev; 886 struct mlx5_ib_dev *dev; 922 int (*init)(struct mlx5_ib_dev *dev); 923 void (*cleanup)(struct mlx5_ib_dev *dev); [all …]
|
D | qpc.c | 12 static int mlx5_core_drain_dct(struct mlx5_ib_dev *dev, 153 static int create_resource_common(struct mlx5_ib_dev *dev, in create_resource_common() 175 static void destroy_resource_common(struct mlx5_ib_dev *dev, in destroy_resource_common() 189 static int _mlx5_core_destroy_dct(struct mlx5_ib_dev *dev, in _mlx5_core_destroy_dct() 214 int mlx5_core_create_dct(struct mlx5_ib_dev *dev, struct mlx5_core_dct *dct, in mlx5_core_create_dct() 239 int mlx5_qpc_create_qp(struct mlx5_ib_dev *dev, struct mlx5_core_qp *qp, in mlx5_qpc_create_qp() 271 static int mlx5_core_drain_dct(struct mlx5_ib_dev *dev, in mlx5_core_drain_dct() 283 int mlx5_core_destroy_dct(struct mlx5_ib_dev *dev, in mlx5_core_destroy_dct() 289 int mlx5_core_destroy_qp(struct mlx5_ib_dev *dev, struct mlx5_core_qp *qp) in mlx5_core_destroy_qp() 304 int mlx5_core_set_delay_drop(struct mlx5_ib_dev *dev, in mlx5_core_set_delay_drop() [all …]
|
D | main.c | 60 struct mlx5_ib_dev *dev; 80 struct mlx5_ib_dev *mlx5_ib_get_ibdev_from_mpi(struct mlx5_ib_multiport_info *mpi) in mlx5_ib_get_ibdev_from_mpi() 82 struct mlx5_ib_dev *dev; in mlx5_ib_get_ibdev_from_mpi() 106 struct mlx5_ib_dev *dev = to_mdev(device); in mlx5_ib_port_link_layer() 126 static struct mlx5_roce *mlx5_get_rep_roce(struct mlx5_ib_dev *dev, in mlx5_get_rep_roce() 169 struct mlx5_ib_dev *ibdev; in mlx5_netdev_event() 249 struct mlx5_ib_dev *ibdev = to_mdev(device); in mlx5_ib_get_netdev() 274 struct mlx5_core_dev *mlx5_ib_get_native_port_mdev(struct mlx5_ib_dev *ibdev, in mlx5_ib_get_native_port_mdev() 310 void mlx5_ib_put_native_port_mdev(struct mlx5_ib_dev *ibdev, u32 port_num) in mlx5_ib_put_native_port_mdev() 469 struct mlx5_ib_dev *dev = to_mdev(device); in mlx5_query_port_roce() [all …]
|
D | srq_cmd.c | 81 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 …]
|
D | counters.h | 11 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);
|
D | umr.h | 16 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()
|
D | fs.h | 12 int mlx5_ib_fs_init(struct mlx5_ib_dev *dev); 14 static inline int mlx5_ib_fs_init(struct mlx5_ib_dev *dev) in mlx5_ib_fs_init() 25 static inline void mlx5_ib_fs_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_fs_cleanup()
|
D | counters.c | 157 static const struct mlx5_ib_counters *get_counters(struct mlx5_ib_dev *dev, in get_counters() 173 u16 mlx5_ib_get_counters_id(struct mlx5_ib_dev *dev, u32 port_num) in mlx5_ib_get_counters_id() 204 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_alloc_hw_device_stats() 213 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_alloc_hw_port_stats() 243 static int mlx5_ib_query_ext_ppcnt_counters(struct mlx5_ib_dev *dev, in mlx5_ib_query_ext_ppcnt_counters() 277 struct mlx5_ib_dev *dev = to_mdev(ibdev); in do_get_hw_stats() 331 struct mlx5_ib_dev *dev = to_mdev(ibdev); in do_get_op_stat() 361 struct mlx5_ib_dev *dev = to_mdev(ibdev); in do_get_op_stats() 383 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_get_hw_stats() 412 struct mlx5_ib_dev *dev = to_mdev(counter->device); in mlx5_ib_counter_alloc_stats() [all …]
|
D | umr.c | 46 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 …]
|
D | ib_virt.c | 53 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()
|
D | mr.c | 62 struct mlx5_ib_dev *dev = to_mdev(pd->device); in set_mkc_access_pd_addr_fields() 83 static void assign_mkey_variant(struct mlx5_ib_dev *dev, u32 *mkey, u32 *in) in assign_mkey_variant() 93 static int mlx5_ib_create_mkey(struct mlx5_ib_dev *dev, in mlx5_ib_create_mkey() 108 struct mlx5_ib_dev *dev = async_create->ent->dev; in mlx5_ib_create_mkey_cb() 120 static int mkey_cache_max_order(struct mlx5_ib_dev *dev); 123 static int destroy_mkey(struct mlx5_ib_dev *dev, struct mlx5_ib_mr *mr) in destroy_mkey() 130 static void create_mkey_warn(struct mlx5_ib_dev *dev, int status, void *out) in create_mkey_warn() 245 struct mlx5_ib_dev *dev = ent->dev; in create_mkey_callback() 569 struct mlx5_ib_dev *dev = ent->dev; in __cache_work_func() 640 struct mlx5_ib_mr *mlx5_mr_cache_alloc(struct mlx5_ib_dev *dev, in mlx5_mr_cache_alloc() [all …]
|
D | ib_rep.c | 15 struct mlx5_ib_dev *ibdev; in mlx5_ib_set_vport_rep() 39 struct mlx5_ib_dev *ibdev; in mlx5_ib_vport_rep_load() 65 ibdev = ib_alloc_device(mlx5_ib_dev, ib_dev); in mlx5_ib_vport_rep_load() 110 struct mlx5_ib_dev *dev = mlx5_ib_rep_to_dev(rep); in mlx5_ib_vport_rep_unload() 174 struct mlx5_flow_handle *create_flow_rule_vport_sq(struct mlx5_ib_dev *dev, in create_flow_rule_vport_sq()
|
D | restrack.c | 60 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()
|
D | qp.c | 352 static int set_rq_size(struct mlx5_ib_dev *dev, struct ib_qp_cap *cap, in set_rq_size() 510 static int calc_sq_size(struct mlx5_ib_dev *dev, struct ib_qp_init_attr *attr, in calc_sq_size() 555 static int set_user_buf_size(struct mlx5_ib_dev *dev, in set_user_buf_size() 616 static int max_bfregs(struct mlx5_ib_dev *dev, struct mlx5_bfreg_info *bfregi) in max_bfregs() 622 static int num_med_bfreg(struct mlx5_ib_dev *dev, in num_med_bfreg() 633 static int first_med_bfreg(struct mlx5_ib_dev *dev, in first_med_bfreg() 639 static int first_hi_bfreg(struct mlx5_ib_dev *dev, in first_hi_bfreg() 648 static int alloc_high_class_bfreg(struct mlx5_ib_dev *dev, in alloc_high_class_bfreg() 663 static int alloc_med_class_bfreg(struct mlx5_ib_dev *dev, in alloc_med_class_bfreg() 683 static int alloc_bfreg(struct mlx5_ib_dev *dev, in alloc_bfreg() [all …]
|
D | ib_rep.h | 17 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()
|
D | gsi.c | 41 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()
|
D | cq.c | 51 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() 276 static void mlx5_handle_error_cqe(struct mlx5_ib_dev *dev, in mlx5_handle_error_cqe() 354 static void free_cq_buf(struct mlx5_ib_dev *dev, struct mlx5_ib_cq_buf *buf) in free_cq_buf() 448 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in mlx5_poll_one() 581 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in poll_soft_wc() 608 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in mlx5_ib_poll_cq() 665 static int alloc_cq_frag_buf(struct mlx5_ib_dev *dev, in alloc_cq_frag_buf() 696 static int mini_cqe_res_format_to_hw(struct mlx5_ib_dev *dev, u8 format) in mini_cqe_res_format_to_hw() [all …]
|
D | srq.c | 47 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()
|
D | fs.c | 628 static void put_flow_table(struct mlx5_ib_dev *dev, in put_flow_table() 644 struct mlx5_ib_dev *dev = handler->dev; in mlx5_ib_destroy_flow() 684 struct mlx5_ib_dev *dev = to_mdev(device); in mlx5_ib_shared_ft_allowed() 689 static struct mlx5_ib_flow_prio *_get_prio(struct mlx5_ib_dev *dev, in _get_prio() 714 static struct mlx5_ib_flow_prio *get_flow_table(struct mlx5_ib_dev *dev, in get_flow_table() 812 static int set_vhca_port_spec(struct mlx5_ib_dev *dev, u32 port_num, in set_vhca_port_spec() 829 static int set_ecn_ce_spec(struct mlx5_ib_dev *dev, u32 port_num, in set_ecn_ce_spec() 855 static int set_cnp_spec(struct mlx5_ib_dev *dev, u32 port_num, in set_cnp_spec() 873 int mlx5_ib_fs_add_op_fc(struct mlx5_ib_dev *dev, u32 port_num, in mlx5_ib_fs_add_op_fc() 976 void mlx5_ib_fs_remove_op_fc(struct mlx5_ib_dev *dev, in mlx5_ib_fs_remove_op_fc() [all …]
|
D | devx.c | 33 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() 920 struct mlx5_ib_dev *dev; in devx_get_uid() 938 static bool devx_is_general_cmd(void *in, struct mlx5_ib_dev *dev) in devx_is_general_cmd() 977 struct mlx5_ib_dev *dev; in UVERBS_HANDLER() 1026 struct mlx5_ib_dev *dev; in UVERBS_HANDLER() 1054 struct mlx5_ib_dev *dev; in UVERBS_HANDLER() [all …]
|
D | mad.c | 45 static bool can_do_mad_ifc(struct mlx5_ib_dev *dev, u32 port_num, in can_do_mad_ifc() 54 static int mlx5_MAD_IFC(struct mlx5_ib_dev *dev, int ignore_mkey, in mlx5_MAD_IFC() 172 static int process_pma_cmd(struct mlx5_ib_dev *dev, u32 port_num, in process_pma_cmd() 251 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_process_mad() 309 int mlx5_query_ext_port_caps(struct mlx5_ib_dev *dev, unsigned int port) in mlx5_query_ext_port_caps() 424 int mlx5_query_mad_ifc_node_desc(struct mlx5_ib_dev *dev, char *node_desc) in mlx5_query_mad_ifc_node_desc() 449 int mlx5_query_mad_ifc_node_guid(struct mlx5_ib_dev *dev, __be64 *node_guid) in mlx5_query_mad_ifc_node_guid() 546 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_query_mad_ifc_port()
|
D | ah.c | 35 static __be16 mlx5_ah_get_udp_sport(const struct mlx5_ib_dev *dev, in mlx5_ah_get_udp_sport() 53 static void create_ib_ah(struct mlx5_ib_dev *dev, struct mlx5_ib_ah *ah, in create_ib_ah() 99 struct mlx5_ib_dev *dev = to_mdev(ibah->device); in mlx5_ib_create_ah()
|