Lines Matching refs:mlx5_core_dev

200 	struct mlx5_core_dev   *dev;
392 struct mlx5_core_dev *dev;
506 struct mlx5_core_dev *mdev;
707 void (*pfault)(struct mlx5_core_dev *dev,
813 struct mlx5_core_dev *mdev;
822 struct mlx5_core_dev { struct
845 void (*event) (struct mlx5_core_dev *dev, argument
965 static inline struct mlx5_core_dev *pci2mlx5_core_dev(struct pci_dev *pdev) in pci2mlx5_core_dev()
972 static inline u16 fw_rev_maj(struct mlx5_core_dev *dev) in fw_rev_maj()
977 static inline u16 fw_rev_min(struct mlx5_core_dev *dev) in fw_rev_min()
982 static inline u16 fw_rev_sub(struct mlx5_core_dev *dev) in fw_rev_sub()
987 static inline u16 cmdif_rev(struct mlx5_core_dev *dev) in cmdif_rev()
1043 int mlx5_cmd_init(struct mlx5_core_dev *dev);
1044 void mlx5_cmd_cleanup(struct mlx5_core_dev *dev);
1045 void mlx5_cmd_use_events(struct mlx5_core_dev *dev);
1046 void mlx5_cmd_use_polling(struct mlx5_core_dev *dev);
1048 int mlx5_cmd_exec(struct mlx5_core_dev *dev, void *in, int in_size, void *out,
1050 int mlx5_cmd_exec_cb(struct mlx5_core_dev *dev, void *in, int in_size,
1053 int mlx5_cmd_exec_polling(struct mlx5_core_dev *dev, void *in, int in_size,
1057 int mlx5_core_get_caps(struct mlx5_core_dev *dev, enum mlx5_cap_type cap_type);
1058 int mlx5_cmd_alloc_uar(struct mlx5_core_dev *dev, u32 *uarn);
1059 int mlx5_cmd_free_uar(struct mlx5_core_dev *dev, u32 uarn);
1060 void mlx5_health_cleanup(struct mlx5_core_dev *dev);
1061 int mlx5_health_init(struct mlx5_core_dev *dev);
1062 void mlx5_start_health_poll(struct mlx5_core_dev *dev);
1063 void mlx5_stop_health_poll(struct mlx5_core_dev *dev, bool disable_health);
1064 void mlx5_drain_health_wq(struct mlx5_core_dev *dev);
1065 void mlx5_trigger_health_work(struct mlx5_core_dev *dev);
1066 void mlx5_drain_health_recovery(struct mlx5_core_dev *dev);
1067 int mlx5_buf_alloc_node(struct mlx5_core_dev *dev, int size,
1069 int mlx5_buf_alloc(struct mlx5_core_dev *dev,
1071 void mlx5_buf_free(struct mlx5_core_dev *dev, struct mlx5_frag_buf *buf);
1072 int mlx5_frag_buf_alloc_node(struct mlx5_core_dev *dev, int size,
1074 void mlx5_frag_buf_free(struct mlx5_core_dev *dev, struct mlx5_frag_buf *buf);
1075 struct mlx5_cmd_mailbox *mlx5_alloc_cmd_mailbox_chain(struct mlx5_core_dev *dev,
1077 void mlx5_free_cmd_mailbox_chain(struct mlx5_core_dev *dev,
1079 int mlx5_core_create_srq(struct mlx5_core_dev *dev, struct mlx5_core_srq *srq,
1081 int mlx5_core_destroy_srq(struct mlx5_core_dev *dev, struct mlx5_core_srq *srq);
1082 int mlx5_core_query_srq(struct mlx5_core_dev *dev, struct mlx5_core_srq *srq,
1084 int mlx5_core_arm_srq(struct mlx5_core_dev *dev, struct mlx5_core_srq *srq,
1086 void mlx5_init_mkey_table(struct mlx5_core_dev *dev);
1087 void mlx5_cleanup_mkey_table(struct mlx5_core_dev *dev);
1088 int mlx5_core_create_mkey_cb(struct mlx5_core_dev *dev,
1093 int mlx5_core_create_mkey(struct mlx5_core_dev *dev,
1096 int mlx5_core_destroy_mkey(struct mlx5_core_dev *dev,
1098 int mlx5_core_query_mkey(struct mlx5_core_dev *dev, struct mlx5_core_mkey *mkey,
1100 int mlx5_core_alloc_pd(struct mlx5_core_dev *dev, u32 *pdn);
1101 int mlx5_core_dealloc_pd(struct mlx5_core_dev *dev, u32 pdn);
1102 int mlx5_core_mad_ifc(struct mlx5_core_dev *dev, const void *inb, void *outb,
1104 void mlx5_pagealloc_init(struct mlx5_core_dev *dev);
1105 void mlx5_pagealloc_cleanup(struct mlx5_core_dev *dev);
1106 int mlx5_pagealloc_start(struct mlx5_core_dev *dev);
1107 void mlx5_pagealloc_stop(struct mlx5_core_dev *dev);
1108 void mlx5_core_req_pages_handler(struct mlx5_core_dev *dev, u16 func_id,
1110 int mlx5_satisfy_startup_pages(struct mlx5_core_dev *dev, int boot);
1111 int mlx5_reclaim_startup_pages(struct mlx5_core_dev *dev);
1117 void mlx5_rsc_event(struct mlx5_core_dev *dev, u32 rsn, int event_type);
1118 void mlx5_srq_event(struct mlx5_core_dev *dev, u32 srqn, int event_type);
1119 struct mlx5_core_srq *mlx5_core_get_srq(struct mlx5_core_dev *dev, u32 srqn);
1120 int mlx5_vector2eqn(struct mlx5_core_dev *dev, int vector, int *eqn,
1122 int mlx5_core_attach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn);
1123 int mlx5_core_detach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn);
1125 int mlx5_qp_debugfs_init(struct mlx5_core_dev *dev);
1126 void mlx5_qp_debugfs_cleanup(struct mlx5_core_dev *dev);
1127 int mlx5_core_access_reg(struct mlx5_core_dev *dev, void *data_in,
1131 int mlx5_db_alloc(struct mlx5_core_dev *dev, struct mlx5_db *db);
1132 int mlx5_db_alloc_node(struct mlx5_core_dev *dev, struct mlx5_db *db,
1134 void mlx5_db_free(struct mlx5_core_dev *dev, struct mlx5_db *db);
1137 int mlx5_cmdif_debugfs_init(struct mlx5_core_dev *dev);
1138 void mlx5_cmdif_debugfs_cleanup(struct mlx5_core_dev *dev);
1139 int mlx5_core_create_psv(struct mlx5_core_dev *dev, u32 pdn,
1141 int mlx5_core_destroy_psv(struct mlx5_core_dev *dev, int psv_num);
1143 int mlx5_query_odp_caps(struct mlx5_core_dev *dev,
1145 int mlx5_core_query_ib_ppcnt(struct mlx5_core_dev *dev,
1148 int mlx5_core_page_fault_resume(struct mlx5_core_dev *dev, u32 token,
1152 int mlx5_init_rl_table(struct mlx5_core_dev *dev);
1153 void mlx5_cleanup_rl_table(struct mlx5_core_dev *dev);
1154 int mlx5_rl_add_rate(struct mlx5_core_dev *dev, u16 *index,
1156 void mlx5_rl_remove_rate(struct mlx5_core_dev *dev, struct mlx5_rate_limit *rl);
1157 bool mlx5_rl_is_in_range(struct mlx5_core_dev *dev, u32 rate);
1160 int mlx5_alloc_bfreg(struct mlx5_core_dev *mdev, struct mlx5_sq_bfreg *bfreg,
1162 void mlx5_free_bfreg(struct mlx5_core_dev *mdev, struct mlx5_sq_bfreg *bfreg);
1164 unsigned int mlx5_core_reserved_gids_count(struct mlx5_core_dev *dev);
1165 int mlx5_core_roce_gid_set(struct mlx5_core_dev *dev, unsigned int index,
1169 static inline int fw_initializing(struct mlx5_core_dev *dev) in fw_initializing()
1207 void * (*add)(struct mlx5_core_dev *dev);
1208 void (*remove)(struct mlx5_core_dev *dev, void *context);
1209 int (*attach)(struct mlx5_core_dev *dev, void *context);
1210 void (*detach)(struct mlx5_core_dev *dev, void *context);
1211 void (*event)(struct mlx5_core_dev *dev, void *context,
1213 void (*pfault)(struct mlx5_core_dev *dev,
1221 void *mlx5_get_protocol_dev(struct mlx5_core_dev *mdev, int protocol);
1224 int mlx5_core_query_vendor_id(struct mlx5_core_dev *mdev, u32 *vendor_id);
1226 int mlx5_cmd_create_vport_lag(struct mlx5_core_dev *dev);
1227 int mlx5_cmd_destroy_vport_lag(struct mlx5_core_dev *dev);
1228 bool mlx5_lag_is_active(struct mlx5_core_dev *dev);
1229 struct net_device *mlx5_lag_get_roce_netdev(struct mlx5_core_dev *dev);
1230 int mlx5_lag_query_cong_counters(struct mlx5_core_dev *dev,
1234 struct mlx5_uars_page *mlx5_get_uars_page(struct mlx5_core_dev *mdev);
1235 void mlx5_put_uars_page(struct mlx5_core_dev *mdev, struct mlx5_uars_page *up);
1239 struct net_device *mlx5_rdma_netdev_alloc(struct mlx5_core_dev *mdev, in mlx5_rdma_netdev_alloc()
1247 struct net_device *mlx5_rdma_netdev_alloc(struct mlx5_core_dev *mdev,
1266 static inline int mlx5_core_is_pf(struct mlx5_core_dev *dev) in mlx5_core_is_pf()
1287 static inline bool mlx5_rl_is_supported(struct mlx5_core_dev *dev) in mlx5_rl_is_supported()
1292 static inline int mlx5_core_is_mp_slave(struct mlx5_core_dev *dev) in mlx5_core_is_mp_slave()
1298 static inline int mlx5_core_is_mp_master(struct mlx5_core_dev *dev) in mlx5_core_is_mp_master()
1303 static inline int mlx5_core_mp_enabled(struct mlx5_core_dev *dev) in mlx5_core_mp_enabled()
1309 static inline int mlx5_core_native_port_num(struct mlx5_core_dev *dev) in mlx5_core_native_port_num()
1322 mlx5_get_vector_affinity_hint(struct mlx5_core_dev *dev, int vector) in mlx5_get_vector_affinity_hint()