Lines Matching refs:mlx5_core_dev

210 	struct mlx5_core_dev   *dev;
404 struct mlx5_core_dev *mdev;
478 struct mlx5_core_dev *dev;
562 struct mlx5_core_dev *mdev;
639 struct mlx5_core_dev *parent_mdev;
763 struct mlx5_core_dev { struct
902 static inline u16 fw_rev_maj(struct mlx5_core_dev *dev) in fw_rev_maj()
907 static inline u16 fw_rev_min(struct mlx5_core_dev *dev) in fw_rev_min()
912 static inline u16 fw_rev_sub(struct mlx5_core_dev *dev) in fw_rev_sub()
971 void mlx5_cmd_use_events(struct mlx5_core_dev *dev);
972 void mlx5_cmd_use_polling(struct mlx5_core_dev *dev);
973 void mlx5_cmd_allowed_opcode(struct mlx5_core_dev *dev, u16 opcode);
976 struct mlx5_core_dev *dev;
993 void mlx5_cmd_init_async_ctx(struct mlx5_core_dev *dev,
999 void mlx5_cmd_out_err(struct mlx5_core_dev *dev, u16 opcode, u16 op_mod, void *out);
1000 int mlx5_cmd_do(struct mlx5_core_dev *dev, void *in, int in_size, void *out, int out_size);
1001 int mlx5_cmd_check(struct mlx5_core_dev *dev, int err, void *in, void *out);
1002 int mlx5_cmd_exec(struct mlx5_core_dev *dev, void *in, int in_size, void *out,
1017 int mlx5_cmd_exec_polling(struct mlx5_core_dev *dev, void *in, int in_size,
1019 bool mlx5_cmd_is_down(struct mlx5_core_dev *dev);
1021 void mlx5_core_uplink_netdev_set(struct mlx5_core_dev *mdev, struct net_device *netdev);
1022 void mlx5_core_uplink_netdev_event_replay(struct mlx5_core_dev *mdev);
1024 int mlx5_core_get_caps(struct mlx5_core_dev *dev, enum mlx5_cap_type cap_type);
1025 void mlx5_health_cleanup(struct mlx5_core_dev *dev);
1026 int mlx5_health_init(struct mlx5_core_dev *dev);
1027 void mlx5_start_health_poll(struct mlx5_core_dev *dev);
1028 void mlx5_stop_health_poll(struct mlx5_core_dev *dev, bool disable_health);
1029 void mlx5_start_health_fw_log_up(struct mlx5_core_dev *dev);
1030 void mlx5_drain_health_wq(struct mlx5_core_dev *dev);
1031 void mlx5_trigger_health_work(struct mlx5_core_dev *dev);
1032 int mlx5_frag_buf_alloc_node(struct mlx5_core_dev *dev, int size,
1034 void mlx5_frag_buf_free(struct mlx5_core_dev *dev, struct mlx5_frag_buf *buf);
1035 struct mlx5_cmd_mailbox *mlx5_alloc_cmd_mailbox_chain(struct mlx5_core_dev *dev,
1037 void mlx5_free_cmd_mailbox_chain(struct mlx5_core_dev *dev,
1039 int mlx5_core_create_mkey(struct mlx5_core_dev *dev, u32 *mkey, u32 *in,
1041 int mlx5_core_destroy_mkey(struct mlx5_core_dev *dev, u32 mkey);
1042 int mlx5_core_query_mkey(struct mlx5_core_dev *dev, u32 mkey, u32 *out,
1044 int mlx5_core_alloc_pd(struct mlx5_core_dev *dev, u32 *pdn);
1045 int mlx5_core_dealloc_pd(struct mlx5_core_dev *dev, u32 pdn);
1046 int mlx5_pagealloc_init(struct mlx5_core_dev *dev);
1047 void mlx5_pagealloc_cleanup(struct mlx5_core_dev *dev);
1048 void mlx5_pagealloc_start(struct mlx5_core_dev *dev);
1049 void mlx5_pagealloc_stop(struct mlx5_core_dev *dev);
1050 void mlx5_pages_debugfs_init(struct mlx5_core_dev *dev);
1051 void mlx5_pages_debugfs_cleanup(struct mlx5_core_dev *dev);
1052 void mlx5_core_req_pages_handler(struct mlx5_core_dev *dev, u16 func_id,
1054 int mlx5_satisfy_startup_pages(struct mlx5_core_dev *dev, int boot);
1055 int mlx5_reclaim_startup_pages(struct mlx5_core_dev *dev);
1061 int mlx5_vector2eqn(struct mlx5_core_dev *dev, int vector, int *eqn);
1062 int mlx5_core_attach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn);
1063 int mlx5_core_detach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn);
1065 struct dentry *mlx5_debugfs_get_dev_root(struct mlx5_core_dev *dev);
1066 void mlx5_qp_debugfs_init(struct mlx5_core_dev *dev);
1067 void mlx5_qp_debugfs_cleanup(struct mlx5_core_dev *dev);
1068 int mlx5_access_reg(struct mlx5_core_dev *dev, void *data_in, int size_in,
1071 int mlx5_core_access_reg(struct mlx5_core_dev *dev, void *data_in,
1075 int mlx5_db_alloc_node(struct mlx5_core_dev *dev, struct mlx5_db *db,
1078 static inline int mlx5_db_alloc(struct mlx5_core_dev *dev, struct mlx5_db *db) in mlx5_db_alloc()
1083 void mlx5_db_free(struct mlx5_core_dev *dev, struct mlx5_db *db);
1086 void mlx5_cmdif_debugfs_init(struct mlx5_core_dev *dev);
1087 void mlx5_cmdif_debugfs_cleanup(struct mlx5_core_dev *dev);
1088 int mlx5_core_create_psv(struct mlx5_core_dev *dev, u32 pdn,
1090 int mlx5_core_destroy_psv(struct mlx5_core_dev *dev, int psv_num);
1092 int mlx5_query_odp_caps(struct mlx5_core_dev *dev,
1095 int mlx5_init_rl_table(struct mlx5_core_dev *dev);
1096 void mlx5_cleanup_rl_table(struct mlx5_core_dev *dev);
1097 int mlx5_rl_add_rate(struct mlx5_core_dev *dev, u16 *index,
1099 void mlx5_rl_remove_rate(struct mlx5_core_dev *dev, struct mlx5_rate_limit *rl);
1100 bool mlx5_rl_is_in_range(struct mlx5_core_dev *dev, u32 rate);
1101 int mlx5_rl_add_rate_raw(struct mlx5_core_dev *dev, void *rl_in, u16 uid,
1103 void mlx5_rl_remove_rate_raw(struct mlx5_core_dev *dev, u16 index);
1106 int mlx5_alloc_bfreg(struct mlx5_core_dev *mdev, struct mlx5_sq_bfreg *bfreg,
1108 void mlx5_free_bfreg(struct mlx5_core_dev *mdev, struct mlx5_sq_bfreg *bfreg);
1110 unsigned int mlx5_comp_vectors_count(struct mlx5_core_dev *dev);
1112 mlx5_comp_irq_get_affinity_mask(struct mlx5_core_dev *dev, int vector);
1113 unsigned int mlx5_core_reserved_gids_count(struct mlx5_core_dev *dev);
1114 int mlx5_core_roce_gid_set(struct mlx5_core_dev *dev, unsigned int index,
1137 int mlx5_notifier_register(struct mlx5_core_dev *dev, struct notifier_block *nb);
1138 int mlx5_notifier_unregister(struct mlx5_core_dev *dev, struct notifier_block *nb);
1144 int mlx5_eq_notifier_register(struct mlx5_core_dev *dev, struct mlx5_nb *nb);
1145 int mlx5_eq_notifier_unregister(struct mlx5_core_dev *dev, struct mlx5_nb *nb);
1148 int mlx5_blocking_notifier_register(struct mlx5_core_dev *dev, struct notifier_block *nb);
1149 int mlx5_blocking_notifier_unregister(struct mlx5_core_dev *dev, struct notifier_block *nb);
1150 int mlx5_blocking_notifier_call_chain(struct mlx5_core_dev *dev, unsigned int event,
1153 int mlx5_core_query_vendor_id(struct mlx5_core_dev *mdev, u32 *vendor_id);
1155 int mlx5_cmd_create_vport_lag(struct mlx5_core_dev *dev);
1156 int mlx5_cmd_destroy_vport_lag(struct mlx5_core_dev *dev);
1157 bool mlx5_lag_is_roce(struct mlx5_core_dev *dev);
1158 bool mlx5_lag_is_sriov(struct mlx5_core_dev *dev);
1159 bool mlx5_lag_is_active(struct mlx5_core_dev *dev);
1160 bool mlx5_lag_mode_is_hash(struct mlx5_core_dev *dev);
1161 bool mlx5_lag_is_master(struct mlx5_core_dev *dev);
1162 bool mlx5_lag_is_shared_fdb(struct mlx5_core_dev *dev);
1163 bool mlx5_lag_is_mpesw(struct mlx5_core_dev *dev);
1164 struct net_device *mlx5_lag_get_roce_netdev(struct mlx5_core_dev *dev);
1165 u8 mlx5_lag_get_slave_port(struct mlx5_core_dev *dev,
1167 int mlx5_lag_query_cong_counters(struct mlx5_core_dev *dev,
1171 struct mlx5_core_dev *mlx5_lag_get_peer_mdev(struct mlx5_core_dev *dev);
1172 u8 mlx5_lag_get_num_ports(struct mlx5_core_dev *dev);
1173 struct mlx5_uars_page *mlx5_get_uars_page(struct mlx5_core_dev *mdev);
1174 void mlx5_put_uars_page(struct mlx5_core_dev *mdev, struct mlx5_uars_page *up);
1175 int mlx5_dm_sw_icm_alloc(struct mlx5_core_dev *dev, enum mlx5_sw_icm_type type,
1178 int mlx5_dm_sw_icm_dealloc(struct mlx5_core_dev *dev, enum mlx5_sw_icm_type type,
1181 struct mlx5_core_dev *mlx5_vf_get_core_dev(struct pci_dev *pdev);
1182 void mlx5_vf_put_core_dev(struct mlx5_core_dev *mdev);
1184 int mlx5_sriov_blocking_notifier_register(struct mlx5_core_dev *mdev,
1187 void mlx5_sriov_blocking_notifier_unregister(struct mlx5_core_dev *mdev,
1191 struct net_device *mlx5_rdma_netdev_alloc(struct mlx5_core_dev *mdev,
1196 int mlx5_rdma_rn_get_params(struct mlx5_core_dev *mdev,
1204 static inline bool mlx5_core_is_pf(const struct mlx5_core_dev *dev) in mlx5_core_is_pf()
1209 static inline bool mlx5_core_is_vf(const struct mlx5_core_dev *dev) in mlx5_core_is_vf()
1214 static inline bool mlx5_core_is_management_pf(const struct mlx5_core_dev *dev) in mlx5_core_is_management_pf()
1219 static inline bool mlx5_core_is_ecpf(const struct mlx5_core_dev *dev) in mlx5_core_is_ecpf()
1225 mlx5_core_is_ecpf_esw_manager(const struct mlx5_core_dev *dev) in mlx5_core_is_ecpf_esw_manager()
1230 static inline bool mlx5_ecpf_vport_exists(const struct mlx5_core_dev *dev) in mlx5_ecpf_vport_exists()
1235 static inline u16 mlx5_core_max_vfs(const struct mlx5_core_dev *dev) in mlx5_core_max_vfs()
1250 static inline bool mlx5_rl_is_supported(struct mlx5_core_dev *dev) in mlx5_rl_is_supported()
1255 static inline int mlx5_core_is_mp_slave(struct mlx5_core_dev *dev) in mlx5_core_is_mp_slave()
1261 static inline int mlx5_core_is_mp_master(struct mlx5_core_dev *dev) in mlx5_core_is_mp_master()
1266 static inline int mlx5_core_mp_enabled(struct mlx5_core_dev *dev) in mlx5_core_mp_enabled()
1272 static inline int mlx5_core_native_port_num(struct mlx5_core_dev *dev) in mlx5_core_native_port_num()
1280 static inline int mlx5_get_dev_index(struct mlx5_core_dev *dev) in mlx5_get_dev_index()
1294 bool mlx5_is_roce_on(struct mlx5_core_dev *dev);
1296 static inline bool mlx5_get_roce_state(struct mlx5_core_dev *dev) in mlx5_get_roce_state()