Lines Matching refs:mlx5_core_dev
207 struct mlx5_core_dev *dev;
399 struct mlx5_core_dev *mdev;
475 struct mlx5_core_dev *dev;
562 struct mlx5_core_dev *mdev;
634 struct mlx5_core_dev *parent_mdev;
758 struct mlx5_core_dev { struct
897 static inline u16 fw_rev_maj(struct mlx5_core_dev *dev) in fw_rev_maj()
902 static inline u16 fw_rev_min(struct mlx5_core_dev *dev) in fw_rev_min()
907 static inline u16 fw_rev_sub(struct mlx5_core_dev *dev) in fw_rev_sub()
966 void mlx5_cmd_use_events(struct mlx5_core_dev *dev);
967 void mlx5_cmd_use_polling(struct mlx5_core_dev *dev);
968 void mlx5_cmd_allowed_opcode(struct mlx5_core_dev *dev, u16 opcode);
971 struct mlx5_core_dev *dev;
988 void mlx5_cmd_init_async_ctx(struct mlx5_core_dev *dev,
994 void mlx5_cmd_out_err(struct mlx5_core_dev *dev, u16 opcode, u16 op_mod, void *out);
995 int mlx5_cmd_do(struct mlx5_core_dev *dev, void *in, int in_size, void *out, int out_size);
996 int mlx5_cmd_check(struct mlx5_core_dev *dev, int err, void *in, void *out);
997 int mlx5_cmd_exec(struct mlx5_core_dev *dev, void *in, int in_size, void *out,
1012 int mlx5_cmd_exec_polling(struct mlx5_core_dev *dev, void *in, int in_size,
1014 bool mlx5_cmd_is_down(struct mlx5_core_dev *dev);
1016 int mlx5_core_get_caps(struct mlx5_core_dev *dev, enum mlx5_cap_type cap_type);
1017 void mlx5_health_cleanup(struct mlx5_core_dev *dev);
1018 int mlx5_health_init(struct mlx5_core_dev *dev);
1019 void mlx5_start_health_poll(struct mlx5_core_dev *dev);
1020 void mlx5_stop_health_poll(struct mlx5_core_dev *dev, bool disable_health);
1021 void mlx5_start_health_fw_log_up(struct mlx5_core_dev *dev);
1022 void mlx5_drain_health_wq(struct mlx5_core_dev *dev);
1023 void mlx5_trigger_health_work(struct mlx5_core_dev *dev);
1024 int mlx5_frag_buf_alloc_node(struct mlx5_core_dev *dev, int size,
1026 void mlx5_frag_buf_free(struct mlx5_core_dev *dev, struct mlx5_frag_buf *buf);
1027 struct mlx5_cmd_mailbox *mlx5_alloc_cmd_mailbox_chain(struct mlx5_core_dev *dev,
1029 void mlx5_free_cmd_mailbox_chain(struct mlx5_core_dev *dev,
1031 int mlx5_core_create_mkey(struct mlx5_core_dev *dev, u32 *mkey, u32 *in,
1033 int mlx5_core_destroy_mkey(struct mlx5_core_dev *dev, u32 mkey);
1034 int mlx5_core_query_mkey(struct mlx5_core_dev *dev, u32 mkey, u32 *out,
1036 int mlx5_core_alloc_pd(struct mlx5_core_dev *dev, u32 *pdn);
1037 int mlx5_core_dealloc_pd(struct mlx5_core_dev *dev, u32 pdn);
1038 int mlx5_pagealloc_init(struct mlx5_core_dev *dev);
1039 void mlx5_pagealloc_cleanup(struct mlx5_core_dev *dev);
1040 void mlx5_pagealloc_start(struct mlx5_core_dev *dev);
1041 void mlx5_pagealloc_stop(struct mlx5_core_dev *dev);
1042 void mlx5_pages_debugfs_init(struct mlx5_core_dev *dev);
1043 void mlx5_pages_debugfs_cleanup(struct mlx5_core_dev *dev);
1044 void mlx5_core_req_pages_handler(struct mlx5_core_dev *dev, u16 func_id,
1046 int mlx5_satisfy_startup_pages(struct mlx5_core_dev *dev, int boot);
1047 int mlx5_reclaim_startup_pages(struct mlx5_core_dev *dev);
1053 int mlx5_vector2eqn(struct mlx5_core_dev *dev, int vector, int *eqn);
1054 int mlx5_core_attach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn);
1055 int mlx5_core_detach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn);
1057 struct dentry *mlx5_debugfs_get_dev_root(struct mlx5_core_dev *dev);
1058 void mlx5_qp_debugfs_init(struct mlx5_core_dev *dev);
1059 void mlx5_qp_debugfs_cleanup(struct mlx5_core_dev *dev);
1060 int mlx5_access_reg(struct mlx5_core_dev *dev, void *data_in, int size_in,
1063 int mlx5_core_access_reg(struct mlx5_core_dev *dev, void *data_in,
1067 int mlx5_db_alloc_node(struct mlx5_core_dev *dev, struct mlx5_db *db,
1070 static inline int mlx5_db_alloc(struct mlx5_core_dev *dev, struct mlx5_db *db) in mlx5_db_alloc()
1075 void mlx5_db_free(struct mlx5_core_dev *dev, struct mlx5_db *db);
1078 void mlx5_cmdif_debugfs_init(struct mlx5_core_dev *dev);
1079 void mlx5_cmdif_debugfs_cleanup(struct mlx5_core_dev *dev);
1080 int mlx5_core_create_psv(struct mlx5_core_dev *dev, u32 pdn,
1082 int mlx5_core_destroy_psv(struct mlx5_core_dev *dev, int psv_num);
1084 int mlx5_query_odp_caps(struct mlx5_core_dev *dev,
1087 int mlx5_init_rl_table(struct mlx5_core_dev *dev);
1088 void mlx5_cleanup_rl_table(struct mlx5_core_dev *dev);
1089 int mlx5_rl_add_rate(struct mlx5_core_dev *dev, u16 *index,
1091 void mlx5_rl_remove_rate(struct mlx5_core_dev *dev, struct mlx5_rate_limit *rl);
1092 bool mlx5_rl_is_in_range(struct mlx5_core_dev *dev, u32 rate);
1093 int mlx5_rl_add_rate_raw(struct mlx5_core_dev *dev, void *rl_in, u16 uid,
1095 void mlx5_rl_remove_rate_raw(struct mlx5_core_dev *dev, u16 index);
1098 int mlx5_alloc_bfreg(struct mlx5_core_dev *mdev, struct mlx5_sq_bfreg *bfreg,
1100 void mlx5_free_bfreg(struct mlx5_core_dev *mdev, struct mlx5_sq_bfreg *bfreg);
1102 unsigned int mlx5_comp_vectors_count(struct mlx5_core_dev *dev);
1104 mlx5_comp_irq_get_affinity_mask(struct mlx5_core_dev *dev, int vector);
1105 unsigned int mlx5_core_reserved_gids_count(struct mlx5_core_dev *dev);
1106 int mlx5_core_roce_gid_set(struct mlx5_core_dev *dev, unsigned int index,
1129 int mlx5_notifier_register(struct mlx5_core_dev *dev, struct notifier_block *nb);
1130 int mlx5_notifier_unregister(struct mlx5_core_dev *dev, struct notifier_block *nb);
1136 int mlx5_eq_notifier_register(struct mlx5_core_dev *dev, struct mlx5_nb *nb);
1137 int mlx5_eq_notifier_unregister(struct mlx5_core_dev *dev, struct mlx5_nb *nb);
1140 int mlx5_blocking_notifier_register(struct mlx5_core_dev *dev, struct notifier_block *nb);
1141 int mlx5_blocking_notifier_unregister(struct mlx5_core_dev *dev, struct notifier_block *nb);
1142 int mlx5_blocking_notifier_call_chain(struct mlx5_core_dev *dev, unsigned int event,
1145 int mlx5_core_query_vendor_id(struct mlx5_core_dev *mdev, u32 *vendor_id);
1147 int mlx5_cmd_create_vport_lag(struct mlx5_core_dev *dev);
1148 int mlx5_cmd_destroy_vport_lag(struct mlx5_core_dev *dev);
1149 bool mlx5_lag_is_roce(struct mlx5_core_dev *dev);
1150 bool mlx5_lag_is_sriov(struct mlx5_core_dev *dev);
1151 bool mlx5_lag_is_active(struct mlx5_core_dev *dev);
1152 bool mlx5_lag_mode_is_hash(struct mlx5_core_dev *dev);
1153 bool mlx5_lag_is_master(struct mlx5_core_dev *dev);
1154 bool mlx5_lag_is_shared_fdb(struct mlx5_core_dev *dev);
1155 struct net_device *mlx5_lag_get_roce_netdev(struct mlx5_core_dev *dev);
1156 u8 mlx5_lag_get_slave_port(struct mlx5_core_dev *dev,
1158 int mlx5_lag_query_cong_counters(struct mlx5_core_dev *dev,
1162 struct mlx5_core_dev *mlx5_lag_get_peer_mdev(struct mlx5_core_dev *dev);
1163 u8 mlx5_lag_get_num_ports(struct mlx5_core_dev *dev);
1164 struct mlx5_uars_page *mlx5_get_uars_page(struct mlx5_core_dev *mdev);
1165 void mlx5_put_uars_page(struct mlx5_core_dev *mdev, struct mlx5_uars_page *up);
1166 int mlx5_dm_sw_icm_alloc(struct mlx5_core_dev *dev, enum mlx5_sw_icm_type type,
1169 int mlx5_dm_sw_icm_dealloc(struct mlx5_core_dev *dev, enum mlx5_sw_icm_type type,
1172 struct mlx5_core_dev *mlx5_vf_get_core_dev(struct pci_dev *pdev);
1173 void mlx5_vf_put_core_dev(struct mlx5_core_dev *mdev);
1175 int mlx5_sriov_blocking_notifier_register(struct mlx5_core_dev *mdev,
1178 void mlx5_sriov_blocking_notifier_unregister(struct mlx5_core_dev *mdev,
1182 struct net_device *mlx5_rdma_netdev_alloc(struct mlx5_core_dev *mdev,
1187 int mlx5_rdma_rn_get_params(struct mlx5_core_dev *mdev,
1195 static inline bool mlx5_core_is_pf(const struct mlx5_core_dev *dev) in mlx5_core_is_pf()
1200 static inline bool mlx5_core_is_vf(const struct mlx5_core_dev *dev) in mlx5_core_is_vf()
1205 static inline bool mlx5_core_is_ecpf(const struct mlx5_core_dev *dev) in mlx5_core_is_ecpf()
1211 mlx5_core_is_ecpf_esw_manager(const struct mlx5_core_dev *dev) in mlx5_core_is_ecpf_esw_manager()
1216 static inline bool mlx5_ecpf_vport_exists(const struct mlx5_core_dev *dev) in mlx5_ecpf_vport_exists()
1221 static inline u16 mlx5_core_max_vfs(const struct mlx5_core_dev *dev) in mlx5_core_max_vfs()
1236 static inline bool mlx5_rl_is_supported(struct mlx5_core_dev *dev) in mlx5_rl_is_supported()
1241 static inline int mlx5_core_is_mp_slave(struct mlx5_core_dev *dev) in mlx5_core_is_mp_slave()
1247 static inline int mlx5_core_is_mp_master(struct mlx5_core_dev *dev) in mlx5_core_is_mp_master()
1252 static inline int mlx5_core_mp_enabled(struct mlx5_core_dev *dev) in mlx5_core_mp_enabled()
1258 static inline int mlx5_core_native_port_num(struct mlx5_core_dev *dev) in mlx5_core_native_port_num()
1266 static inline int mlx5_get_dev_index(struct mlx5_core_dev *dev) in mlx5_get_dev_index()
1280 bool mlx5_is_roce_on(struct mlx5_core_dev *dev);
1282 static inline bool mlx5_get_roce_state(struct mlx5_core_dev *dev) in mlx5_get_roce_state()