Lines Matching refs:mlx5_core_dev

184 	struct mlx5_core_dev   *dev;
235 struct mlx5_core_dev *dev;
345 struct mlx5_core_dev *dev;
364 struct mlx5_core_dev *dev;
446 struct mlx5_core_dev *mdev;
660 struct mlx5_core_dev { struct
682 void (*event) (struct mlx5_core_dev *dev, argument
881 static inline struct mlx5_core_dev *pci2mlx5_core_dev(struct pci_dev *pdev) in pci2mlx5_core_dev()
888 static inline u16 fw_rev_maj(struct mlx5_core_dev *dev) in fw_rev_maj()
893 static inline u16 fw_rev_min(struct mlx5_core_dev *dev) in fw_rev_min()
898 static inline u16 fw_rev_sub(struct mlx5_core_dev *dev) in fw_rev_sub()
903 static inline u16 cmdif_rev_get(struct mlx5_core_dev *dev) in cmdif_rev_get()
941 int mlx5_cmd_init(struct mlx5_core_dev *dev);
942 void mlx5_cmd_cleanup(struct mlx5_core_dev *dev);
943 void mlx5_cmd_use_events(struct mlx5_core_dev *dev);
944 void mlx5_cmd_use_polling(struct mlx5_core_dev *dev);
946 int mlx5_core_get_caps(struct mlx5_core_dev *dev, enum mlx5_cap_type cap_type);
949 struct mlx5_core_dev *dev;
963 void mlx5_cmd_init_async_ctx(struct mlx5_core_dev *dev,
969 int mlx5_cmd_exec(struct mlx5_core_dev *dev, void *in, int in_size, void *out,
971 int mlx5_cmd_exec_polling(struct mlx5_core_dev *dev, void *in, int in_size,
973 int mlx5_cmd_alloc_uar(struct mlx5_core_dev *dev, u32 *uarn);
974 int mlx5_cmd_free_uar(struct mlx5_core_dev *dev, u32 uarn);
975 int mlx5_alloc_bfreg(struct mlx5_core_dev *mdev, struct mlx5_sq_bfreg *bfreg,
977 void mlx5_free_bfreg(struct mlx5_core_dev *mdev, struct mlx5_sq_bfreg *bfreg);
978 struct mlx5_uars_page *mlx5_get_uars_page(struct mlx5_core_dev *mdev);
979 void mlx5_put_uars_page(struct mlx5_core_dev *mdev, struct mlx5_uars_page *up);
980 void mlx5_health_cleanup(struct mlx5_core_dev *dev);
981 int mlx5_health_init(struct mlx5_core_dev *dev);
982 void mlx5_start_health_poll(struct mlx5_core_dev *dev);
983 void mlx5_stop_health_poll(struct mlx5_core_dev *dev, bool disable_health);
984 void mlx5_drain_health_wq(struct mlx5_core_dev *dev);
985 void mlx5_drain_health_recovery(struct mlx5_core_dev *dev);
986 void mlx5_trigger_health_work(struct mlx5_core_dev *dev);
987 void mlx5_trigger_health_watchdog(struct mlx5_core_dev *dev);
989 int mlx5_buf_alloc(struct mlx5_core_dev *dev, int size, int max_direct,
991 void mlx5_buf_free(struct mlx5_core_dev *dev, struct mlx5_buf *buf);
992 int mlx5_core_create_srq(struct mlx5_core_dev *dev, struct mlx5_core_srq *srq,
994 int mlx5_core_destroy_srq(struct mlx5_core_dev *dev, struct mlx5_core_srq *srq);
995 int mlx5_core_query_srq(struct mlx5_core_dev *dev, struct mlx5_core_srq *srq,
997 int mlx5_core_query_vendor_id(struct mlx5_core_dev *mdev, u32 *vendor_id);
998 int mlx5_core_arm_srq(struct mlx5_core_dev *dev, struct mlx5_core_srq *srq,
1000 void mlx5_init_mr_table(struct mlx5_core_dev *dev);
1001 void mlx5_cleanup_mr_table(struct mlx5_core_dev *dev);
1002 int mlx5_core_create_mkey_cb(struct mlx5_core_dev *dev,
1008 int mlx5_core_create_mkey(struct mlx5_core_dev *dev,
1011 int mlx5_core_destroy_mkey(struct mlx5_core_dev *dev, struct mlx5_core_mr *mkey);
1012 int mlx5_core_query_mkey(struct mlx5_core_dev *dev, struct mlx5_core_mr *mkey,
1014 int mlx5_core_dump_fill_mkey(struct mlx5_core_dev *dev, struct mlx5_core_mr *mr,
1016 int mlx5_core_alloc_pd(struct mlx5_core_dev *dev, u32 *pdn);
1017 int mlx5_core_dealloc_pd(struct mlx5_core_dev *dev, u32 pdn);
1018 int mlx5_core_mad_ifc(struct mlx5_core_dev *dev, const void *inb, void *outb,
1022 struct mlx5_fw_page *mlx5_fwp_alloc(struct mlx5_core_dev *dev, gfp_t flags, unsigned num);
1026 void mlx5_pagealloc_init(struct mlx5_core_dev *dev);
1027 void mlx5_pagealloc_cleanup(struct mlx5_core_dev *dev);
1028 int mlx5_pagealloc_start(struct mlx5_core_dev *dev);
1029 void mlx5_pagealloc_stop(struct mlx5_core_dev *dev);
1030 void mlx5_core_req_pages_handler(struct mlx5_core_dev *dev, u16 func_id,
1032 int mlx5_satisfy_startup_pages(struct mlx5_core_dev *dev, int boot);
1033 int mlx5_reclaim_startup_pages(struct mlx5_core_dev *dev);
1034 s64 mlx5_wait_for_reclaim_vfs_pages(struct mlx5_core_dev *dev);
1037 int mlx5_eq_init(struct mlx5_core_dev *dev);
1038 void mlx5_eq_cleanup(struct mlx5_core_dev *dev);
1040 void mlx5_cq_completion(struct mlx5_core_dev *dev, struct mlx5_eqe *eqe);
1041 void mlx5_rsc_event(struct mlx5_core_dev *dev, u32 rsn, int event_type);
1042 void mlx5_srq_event(struct mlx5_core_dev *dev, u32 srqn, int event_type);
1043 struct mlx5_core_srq *mlx5_core_get_srq(struct mlx5_core_dev *dev, u32 srqn);
1044 void mlx5_cmd_comp_handler(struct mlx5_core_dev *dev, u64 vector, enum mlx5_cmd_mode mode);
1045 void mlx5_cq_event(struct mlx5_core_dev *dev, u32 cqn, int event_type);
1046 int mlx5_create_map_eq(struct mlx5_core_dev *dev, struct mlx5_eq *eq, u8 vecidx,
1048 int mlx5_destroy_unmap_eq(struct mlx5_core_dev *dev, struct mlx5_eq *eq);
1049 int mlx5_start_eqs(struct mlx5_core_dev *dev);
1050 int mlx5_stop_eqs(struct mlx5_core_dev *dev);
1051 int mlx5_vector2eqn(struct mlx5_core_dev *dev, int vector, int *eqn, int *irqn);
1052 int mlx5_core_attach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn);
1053 int mlx5_core_detach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn);
1054 int mlx5_core_set_dc_cnak_trace(struct mlx5_core_dev *dev, int enable,
1057 int mlx5_qp_debugfs_init(struct mlx5_core_dev *dev);
1058 void mlx5_qp_debugfs_cleanup(struct mlx5_core_dev *dev);
1059 int mlx5_core_access_reg(struct mlx5_core_dev *dev, void *data_in,
1063 void mlx5_toggle_port_link(struct mlx5_core_dev *dev);
1065 int mlx5_debug_eq_add(struct mlx5_core_dev *dev, struct mlx5_eq *eq);
1066 void mlx5_debug_eq_remove(struct mlx5_core_dev *dev, struct mlx5_eq *eq);
1067 int mlx5_core_eq_query(struct mlx5_core_dev *dev, struct mlx5_eq *eq,
1069 int mlx5_eq_debugfs_init(struct mlx5_core_dev *dev);
1070 void mlx5_eq_debugfs_cleanup(struct mlx5_core_dev *dev);
1071 int mlx5_cq_debugfs_init(struct mlx5_core_dev *dev);
1072 void mlx5_cq_debugfs_cleanup(struct mlx5_core_dev *dev);
1073 int mlx5_db_alloc(struct mlx5_core_dev *dev, struct mlx5_db *db);
1074 void mlx5_db_free(struct mlx5_core_dev *dev, struct mlx5_db *db);
1077 mlx5_dev_domainset(struct mlx5_core_dev *mdev) in mlx5_dev_domainset()
1083 int mlx5_cmdif_debugfs_init(struct mlx5_core_dev *dev);
1084 void mlx5_cmdif_debugfs_cleanup(struct mlx5_core_dev *dev);
1085 int mlx5_core_create_psv(struct mlx5_core_dev *dev, u32 pdn,
1087 int mlx5_core_destroy_psv(struct mlx5_core_dev *dev, int psv_num);
1089 u8 mlx5_is_wol_supported(struct mlx5_core_dev *dev);
1090 int mlx5_set_wol(struct mlx5_core_dev *dev, u8 wol_mode);
1091 int mlx5_set_dropless_mode(struct mlx5_core_dev *dev, u16 timeout);
1092 int mlx5_query_dropless_mode(struct mlx5_core_dev *dev, u16 *timeout);
1093 int mlx5_query_wol(struct mlx5_core_dev *dev, u8 *wol_mode);
1094 int mlx5_core_access_pvlc(struct mlx5_core_dev *dev,
1096 int mlx5_core_access_ptys(struct mlx5_core_dev *dev,
1098 int mlx5_core_access_pmtu(struct mlx5_core_dev *dev,
1100 int mlx5_vxlan_udp_port_add(struct mlx5_core_dev *dev, u16 port);
1101 int mlx5_vxlan_udp_port_delete(struct mlx5_core_dev *dev, u16 port);
1102 int mlx5_query_port_cong_status(struct mlx5_core_dev *mdev, int protocol,
1104 int mlx5_modify_port_cong_status(struct mlx5_core_dev *mdev, int protocol,
1106 int mlx5_query_port_cong_params(struct mlx5_core_dev *mdev, int protocol,
1108 int mlx5_modify_port_cong_params(struct mlx5_core_dev *mdev,
1110 int mlx5_query_port_cong_statistics(struct mlx5_core_dev *mdev, int clear,
1112 int mlx5_set_diagnostic_params(struct mlx5_core_dev *mdev, void *in,
1114 int mlx5_query_diagnostic_counters(struct mlx5_core_dev *mdev,
1117 int mlx5_vsc_find_cap(struct mlx5_core_dev *mdev);
1118 int mlx5_vsc_lock(struct mlx5_core_dev *mdev);
1119 void mlx5_vsc_unlock(struct mlx5_core_dev *mdev);
1120 int mlx5_vsc_set_space(struct mlx5_core_dev *mdev, u16 space);
1121 int mlx5_vsc_wait_on_flag(struct mlx5_core_dev *mdev, u32 expected);
1122 int mlx5_vsc_write(struct mlx5_core_dev *mdev, u32 addr, const u32 *data);
1123 int mlx5_vsc_read(struct mlx5_core_dev *mdev, u32 addr, u32 *data);
1124 int mlx5_vsc_lock_addr_space(struct mlx5_core_dev *mdev, u32 addr);
1125 int mlx5_vsc_unlock_addr_space(struct mlx5_core_dev *mdev, u32 addr);
1126 int mlx5_pci_read_power_status(struct mlx5_core_dev *mdev,
1154 void * (*add)(struct mlx5_core_dev *dev);
1155 void (*remove)(struct mlx5_core_dev *dev, void *context);
1156 void (*event)(struct mlx5_core_dev *dev, void *context,
1163 void *mlx5_get_protocol_dev(struct mlx5_core_dev *mdev, int protocol);
1167 unsigned int mlx5_core_reserved_gids_count(struct mlx5_core_dev *dev);
1168 int mlx5_core_roce_gid_set(struct mlx5_core_dev *dev, unsigned int index,
1189 static inline int mlx5_core_is_pf(struct mlx5_core_dev *dev) in mlx5_core_is_pf()
1194 int mlx5_init_rl_table(struct mlx5_core_dev *dev);
1195 void mlx5_cleanup_rl_table(struct mlx5_core_dev *dev);
1196 int mlx5_rl_add_rate(struct mlx5_core_dev *dev, u32 rate, u32 burst, u16 *index);
1197 void mlx5_rl_remove_rate(struct mlx5_core_dev *dev, u32 rate, u32 burst);
1198 bool mlx5_rl_is_in_range(const struct mlx5_core_dev *dev, u32 rate, u32 burst);
1199 int mlx5e_query_rate_limit_cmd(struct mlx5_core_dev *dev, u16 index, u32 *scq_handle);
1201 static inline u32 mlx5_rl_get_scq_handle(struct mlx5_core_dev *dev, uint16_t index) in mlx5_rl_get_scq_handle()
1209 static inline bool mlx5_rl_is_supported(struct mlx5_core_dev *dev) in mlx5_rl_is_supported()
1215 void mlx5_disable_interrupts(struct mlx5_core_dev *);
1216 void mlx5_poll_interrupts(struct mlx5_core_dev *);
1218 static inline int mlx5_get_qp_default_ts(struct mlx5_core_dev *dev) in mlx5_get_qp_default_ts()
1225 static inline int mlx5_get_rq_default_ts(struct mlx5_core_dev *dev) in mlx5_get_rq_default_ts()
1232 static inline int mlx5_get_sq_default_ts(struct mlx5_core_dev *dev) in mlx5_get_sq_default_ts()