Lines Matching refs:mlx5_core_dev

183 	struct mlx5_core_dev   *dev;
233 struct mlx5_core_dev *dev;
274 struct mlx5_core_dev *dev;
364 struct mlx5_core_dev *dev;
383 struct mlx5_core_dev *dev;
459 struct mlx5_core_dev *mdev;
504 bool (*cb)(struct mlx5_core_dev *mdev,
692 struct mlx5_core_dev { struct
714 void (*event) (struct mlx5_core_dev *dev, argument
912 static inline struct mlx5_core_dev *pci2mlx5_core_dev(struct pci_dev *pdev) in pci2mlx5_core_dev()
917 static inline u16 fw_rev_maj(struct mlx5_core_dev *dev) in fw_rev_maj()
922 static inline u16 fw_rev_min(struct mlx5_core_dev *dev) in fw_rev_min()
927 static inline u16 fw_rev_sub(struct mlx5_core_dev *dev) in fw_rev_sub()
932 static inline u16 cmdif_rev_get(struct mlx5_core_dev *dev) in cmdif_rev_get()
970 int mlx5_cmd_init(struct mlx5_core_dev *dev);
971 void mlx5_cmd_cleanup(struct mlx5_core_dev *dev);
972 void mlx5_cmd_use_events(struct mlx5_core_dev *dev);
973 void mlx5_cmd_use_polling(struct mlx5_core_dev *dev);
975 int mlx5_core_get_caps(struct mlx5_core_dev *dev, enum mlx5_cap_type cap_type);
978 struct mlx5_core_dev *dev;
992 void mlx5_cmd_init_async_ctx(struct mlx5_core_dev *dev,
998 int mlx5_cmd_exec(struct mlx5_core_dev *dev, void *in, int in_size, void *out,
1011 int mlx5_cmd_exec_polling(struct mlx5_core_dev *dev, void *in, int in_size,
1013 int mlx5_cmd_alloc_uar(struct mlx5_core_dev *dev, u32 *uarn);
1014 int mlx5_cmd_free_uar(struct mlx5_core_dev *dev, u32 uarn);
1015 int mlx5_alloc_bfreg(struct mlx5_core_dev *mdev, struct mlx5_sq_bfreg *bfreg,
1017 void mlx5_free_bfreg(struct mlx5_core_dev *mdev, struct mlx5_sq_bfreg *bfreg);
1018 struct mlx5_uars_page *mlx5_get_uars_page(struct mlx5_core_dev *mdev);
1019 void mlx5_put_uars_page(struct mlx5_core_dev *mdev, struct mlx5_uars_page *up);
1020 void mlx5_health_cleanup(struct mlx5_core_dev *dev);
1021 int mlx5_health_init(struct mlx5_core_dev *dev);
1022 void mlx5_start_health_poll(struct mlx5_core_dev *dev);
1023 void mlx5_stop_health_poll(struct mlx5_core_dev *dev, bool disable_health);
1024 void mlx5_drain_health_wq(struct mlx5_core_dev *dev);
1025 void mlx5_drain_health_recovery(struct mlx5_core_dev *dev);
1026 void mlx5_trigger_health_work(struct mlx5_core_dev *dev);
1027 void mlx5_trigger_health_watchdog(struct mlx5_core_dev *dev);
1029 int mlx5_buf_alloc(struct mlx5_core_dev *dev, int size, int max_direct,
1031 void mlx5_buf_free(struct mlx5_core_dev *dev, struct mlx5_buf *buf);
1032 int mlx5_core_create_srq(struct mlx5_core_dev *dev, struct mlx5_core_srq *srq,
1034 int mlx5_core_destroy_srq(struct mlx5_core_dev *dev, struct mlx5_core_srq *srq);
1035 int mlx5_core_query_srq(struct mlx5_core_dev *dev, struct mlx5_core_srq *srq,
1037 int mlx5_core_query_vendor_id(struct mlx5_core_dev *mdev, u32 *vendor_id);
1038 int mlx5_core_arm_srq(struct mlx5_core_dev *dev, struct mlx5_core_srq *srq,
1040 void mlx5_init_mr_table(struct mlx5_core_dev *dev);
1041 void mlx5_cleanup_mr_table(struct mlx5_core_dev *dev);
1042 int mlx5_core_create_mkey_cb(struct mlx5_core_dev *dev,
1048 int mlx5_core_create_mkey(struct mlx5_core_dev *dev,
1051 int mlx5_core_destroy_mkey(struct mlx5_core_dev *dev, struct mlx5_core_mkey *mkey);
1052 int mlx5_core_query_mkey(struct mlx5_core_dev *dev, struct mlx5_core_mkey *mkey,
1054 int mlx5_core_dump_fill_mkey(struct mlx5_core_dev *dev, struct mlx5_core_mkey *mr,
1056 int mlx5_core_alloc_pd(struct mlx5_core_dev *dev, u32 *pdn, u16 uid);
1057 int mlx5_core_dealloc_pd(struct mlx5_core_dev *dev, u32 pdn, u16 uid);
1058 int mlx5_core_mad_ifc(struct mlx5_core_dev *dev, const void *inb, void *outb,
1062 struct mlx5_fw_page *mlx5_fwp_alloc(struct mlx5_core_dev *dev, gfp_t flags, unsigned num);
1066 void mlx5_pagealloc_init(struct mlx5_core_dev *dev);
1067 void mlx5_pagealloc_cleanup(struct mlx5_core_dev *dev);
1068 int mlx5_pagealloc_start(struct mlx5_core_dev *dev);
1069 void mlx5_pagealloc_stop(struct mlx5_core_dev *dev);
1070 void mlx5_core_req_pages_handler(struct mlx5_core_dev *dev, u16 func_id,
1072 int mlx5_satisfy_startup_pages(struct mlx5_core_dev *dev, int boot);
1073 int mlx5_reclaim_startup_pages(struct mlx5_core_dev *dev);
1074 s64 mlx5_wait_for_reclaim_vfs_pages(struct mlx5_core_dev *dev);
1077 int mlx5_eq_init(struct mlx5_core_dev *dev);
1078 void mlx5_eq_cleanup(struct mlx5_core_dev *dev);
1080 void mlx5_cq_completion(struct mlx5_core_dev *dev, struct mlx5_eqe *eqe);
1081 void mlx5_rsc_event(struct mlx5_core_dev *dev, u32 rsn, int event_type);
1082 void mlx5_srq_event(struct mlx5_core_dev *dev, u32 srqn, int event_type);
1083 struct mlx5_core_srq *mlx5_core_get_srq(struct mlx5_core_dev *dev, u32 srqn);
1084 void mlx5_cmd_comp_handler(struct mlx5_core_dev *dev, u64 vector, enum mlx5_cmd_mode mode);
1085 void mlx5_cq_event(struct mlx5_core_dev *dev, u32 cqn, int event_type);
1086 int mlx5_create_map_eq(struct mlx5_core_dev *dev, struct mlx5_eq *eq, u8 vecidx,
1088 int mlx5_destroy_unmap_eq(struct mlx5_core_dev *dev, struct mlx5_eq *eq);
1089 int mlx5_start_eqs(struct mlx5_core_dev *dev);
1090 int mlx5_stop_eqs(struct mlx5_core_dev *dev);
1091 int mlx5_vector2eqn(struct mlx5_core_dev *dev, int vector, int *eqn, int *irqn);
1092 int mlx5_core_attach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn);
1093 int mlx5_core_detach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn);
1094 int mlx5_core_set_dc_cnak_trace(struct mlx5_core_dev *dev, int enable,
1097 int mlx5_qp_debugfs_init(struct mlx5_core_dev *dev);
1098 void mlx5_qp_debugfs_cleanup(struct mlx5_core_dev *dev);
1099 int mlx5_core_access_reg(struct mlx5_core_dev *dev, void *data_in,
1103 void mlx5_toggle_port_link(struct mlx5_core_dev *dev);
1105 int mlx5_debug_eq_add(struct mlx5_core_dev *dev, struct mlx5_eq *eq);
1106 void mlx5_debug_eq_remove(struct mlx5_core_dev *dev, struct mlx5_eq *eq);
1107 int mlx5_core_eq_query(struct mlx5_core_dev *dev, struct mlx5_eq *eq,
1109 int mlx5_eq_debugfs_init(struct mlx5_core_dev *dev);
1110 void mlx5_eq_debugfs_cleanup(struct mlx5_core_dev *dev);
1111 int mlx5_cq_debugfs_init(struct mlx5_core_dev *dev);
1112 void mlx5_cq_debugfs_cleanup(struct mlx5_core_dev *dev);
1113 int mlx5_db_alloc(struct mlx5_core_dev *dev, struct mlx5_db *db);
1114 void mlx5_db_free(struct mlx5_core_dev *dev, struct mlx5_db *db);
1117 mlx5_dev_domainset(struct mlx5_core_dev *mdev) in mlx5_dev_domainset()
1123 int mlx5_cmdif_debugfs_init(struct mlx5_core_dev *dev);
1124 void mlx5_cmdif_debugfs_cleanup(struct mlx5_core_dev *dev);
1125 int mlx5_core_create_psv(struct mlx5_core_dev *dev, u32 pdn,
1127 int mlx5_core_destroy_psv(struct mlx5_core_dev *dev, int psv_num);
1129 u8 mlx5_is_wol_supported(struct mlx5_core_dev *dev);
1130 int mlx5_set_wol(struct mlx5_core_dev *dev, u8 wol_mode);
1131 int mlx5_set_dropless_mode(struct mlx5_core_dev *dev, u16 timeout);
1132 int mlx5_query_dropless_mode(struct mlx5_core_dev *dev, u16 *timeout);
1133 int mlx5_query_wol(struct mlx5_core_dev *dev, u8 *wol_mode);
1134 int mlx5_core_access_pvlc(struct mlx5_core_dev *dev,
1136 int mlx5_core_access_ptys(struct mlx5_core_dev *dev,
1138 int mlx5_core_access_pmtu(struct mlx5_core_dev *dev,
1140 int mlx5_vxlan_udp_port_add(struct mlx5_core_dev *dev, u16 port);
1141 int mlx5_vxlan_udp_port_delete(struct mlx5_core_dev *dev, u16 port);
1142 int mlx5_query_port_cong_status(struct mlx5_core_dev *mdev, int protocol,
1144 int mlx5_modify_port_cong_status(struct mlx5_core_dev *mdev, int protocol,
1146 int mlx5_query_port_cong_params(struct mlx5_core_dev *mdev, int protocol,
1148 int mlx5_modify_port_cong_params(struct mlx5_core_dev *mdev,
1150 int mlx5_query_port_cong_statistics(struct mlx5_core_dev *mdev, int clear,
1152 int mlx5_set_diagnostic_params(struct mlx5_core_dev *mdev, void *in,
1154 int mlx5_query_diagnostic_counters(struct mlx5_core_dev *mdev,
1157 int mlx5_vsc_find_cap(struct mlx5_core_dev *mdev);
1158 int mlx5_vsc_lock(struct mlx5_core_dev *mdev);
1159 void mlx5_vsc_unlock(struct mlx5_core_dev *mdev);
1160 int mlx5_vsc_set_space(struct mlx5_core_dev *mdev, u16 space);
1161 int mlx5_vsc_wait_on_flag(struct mlx5_core_dev *mdev, u32 expected);
1162 int mlx5_vsc_write(struct mlx5_core_dev *mdev, u32 addr, const u32 *data);
1163 int mlx5_vsc_read(struct mlx5_core_dev *mdev, u32 addr, u32 *data);
1164 int mlx5_vsc_lock_addr_space(struct mlx5_core_dev *mdev, u32 addr);
1165 int mlx5_vsc_unlock_addr_space(struct mlx5_core_dev *mdev, u32 addr);
1166 int mlx5_pci_read_power_status(struct mlx5_core_dev *mdev,
1194 void * (*add)(struct mlx5_core_dev *dev);
1195 void (*remove)(struct mlx5_core_dev *dev, void *context);
1196 void (*event)(struct mlx5_core_dev *dev, void *context,
1203 void *mlx5_get_protocol_dev(struct mlx5_core_dev *mdev, int protocol);
1207 unsigned int mlx5_core_reserved_gids_count(struct mlx5_core_dev *dev);
1208 int mlx5_core_roce_gid_set(struct mlx5_core_dev *dev, unsigned int index,
1229 static inline int mlx5_core_is_pf(struct mlx5_core_dev *dev) in mlx5_core_is_pf()
1234 int mlx5_init_rl_table(struct mlx5_core_dev *dev);
1235 void mlx5_cleanup_rl_table(struct mlx5_core_dev *dev);
1236 int mlx5_rl_add_rate(struct mlx5_core_dev *dev, u32 rate, u32 burst, u16 *index);
1237 void mlx5_rl_remove_rate(struct mlx5_core_dev *dev, u32 rate, u32 burst);
1238 bool mlx5_rl_is_in_range(const struct mlx5_core_dev *dev, u32 rate, u32 burst);
1239 int mlx5e_query_rate_limit_cmd(struct mlx5_core_dev *dev, u16 index, u32 *scq_handle);
1241 static inline u32 mlx5_rl_get_scq_handle(struct mlx5_core_dev *dev, uint16_t index) in mlx5_rl_get_scq_handle()
1249 static inline bool mlx5_rl_is_supported(struct mlx5_core_dev *dev) in mlx5_rl_is_supported()
1255 void mlx5_disable_interrupts(struct mlx5_core_dev *);
1256 void mlx5_poll_interrupts(struct mlx5_core_dev *);
1258 static inline int mlx5_get_qp_default_ts(struct mlx5_core_dev *dev) in mlx5_get_qp_default_ts()
1265 static inline int mlx5_get_rq_default_ts(struct mlx5_core_dev *dev) in mlx5_get_rq_default_ts()
1272 static inline int mlx5_get_sq_default_ts(struct mlx5_core_dev *dev) in mlx5_get_sq_default_ts()