Lines Matching refs:mlx5_core_dev
180 struct mlx5_core_dev *dev;
263 struct mlx5_core_dev *dev;
373 struct mlx5_core_dev *dev;
392 struct mlx5_core_dev *dev;
664 struct mlx5_core_dev { struct
686 void (*event) (struct mlx5_core_dev *dev, argument
884 static inline struct mlx5_core_dev *pci2mlx5_core_dev(struct pci_dev *pdev) in pci2mlx5_core_dev()
891 static inline u16 fw_rev_maj(struct mlx5_core_dev *dev) in fw_rev_maj()
896 static inline u16 fw_rev_min(struct mlx5_core_dev *dev) in fw_rev_min()
901 static inline u16 fw_rev_sub(struct mlx5_core_dev *dev) in fw_rev_sub()
906 static inline u16 cmdif_rev_get(struct mlx5_core_dev *dev) in cmdif_rev_get()
944 int mlx5_cmd_init(struct mlx5_core_dev *dev);
945 void mlx5_cmd_cleanup(struct mlx5_core_dev *dev);
946 void mlx5_cmd_use_events(struct mlx5_core_dev *dev);
947 void mlx5_cmd_use_polling(struct mlx5_core_dev *dev);
949 int mlx5_core_get_caps(struct mlx5_core_dev *dev, enum mlx5_cap_type cap_type);
950 int mlx5_cmd_exec(struct mlx5_core_dev *dev, void *in, int in_size, void *out,
952 int mlx5_cmd_exec_cb(struct mlx5_core_dev *dev, void *in, int in_size,
955 int mlx5_cmd_exec_polling(struct mlx5_core_dev *dev, void *in, int in_size,
957 int mlx5_cmd_alloc_uar(struct mlx5_core_dev *dev, u32 *uarn);
958 int mlx5_cmd_free_uar(struct mlx5_core_dev *dev, u32 uarn);
959 int mlx5_alloc_uuars(struct mlx5_core_dev *dev, struct mlx5_uuar_info *uuari);
960 int mlx5_free_uuars(struct mlx5_core_dev *dev, struct mlx5_uuar_info *uuari);
961 int mlx5_alloc_map_uar(struct mlx5_core_dev *mdev, struct mlx5_uar *uar);
962 void mlx5_unmap_free_uar(struct mlx5_core_dev *mdev, struct mlx5_uar *uar);
963 void mlx5_health_cleanup(struct mlx5_core_dev *dev);
964 int mlx5_health_init(struct mlx5_core_dev *dev);
965 void mlx5_start_health_poll(struct mlx5_core_dev *dev);
966 void mlx5_stop_health_poll(struct mlx5_core_dev *dev, bool disable_health);
967 void mlx5_drain_health_wq(struct mlx5_core_dev *dev);
968 void mlx5_drain_health_recovery(struct mlx5_core_dev *dev);
969 void mlx5_trigger_health_work(struct mlx5_core_dev *dev);
970 void mlx5_trigger_health_watchdog(struct mlx5_core_dev *dev);
974 int mlx5_buf_alloc(struct mlx5_core_dev *dev, int size, int max_direct,
976 void mlx5_buf_free(struct mlx5_core_dev *dev, struct mlx5_buf *buf);
977 int mlx5_core_create_srq(struct mlx5_core_dev *dev, struct mlx5_core_srq *srq,
979 int mlx5_core_destroy_srq(struct mlx5_core_dev *dev, struct mlx5_core_srq *srq);
980 int mlx5_core_query_srq(struct mlx5_core_dev *dev, struct mlx5_core_srq *srq,
982 int mlx5_core_query_vendor_id(struct mlx5_core_dev *mdev, u32 *vendor_id);
983 int mlx5_core_arm_srq(struct mlx5_core_dev *dev, struct mlx5_core_srq *srq,
985 void mlx5_init_mr_table(struct mlx5_core_dev *dev);
986 void mlx5_cleanup_mr_table(struct mlx5_core_dev *dev);
987 int mlx5_core_create_mkey_cb(struct mlx5_core_dev *dev,
992 int mlx5_core_create_mkey(struct mlx5_core_dev *dev,
995 int mlx5_core_destroy_mkey(struct mlx5_core_dev *dev, struct mlx5_core_mr *mkey);
996 int mlx5_core_query_mkey(struct mlx5_core_dev *dev, struct mlx5_core_mr *mkey,
998 int mlx5_core_dump_fill_mkey(struct mlx5_core_dev *dev, struct mlx5_core_mr *mr,
1000 int mlx5_core_alloc_pd(struct mlx5_core_dev *dev, u32 *pdn);
1001 int mlx5_core_dealloc_pd(struct mlx5_core_dev *dev, u32 pdn);
1002 int mlx5_core_mad_ifc(struct mlx5_core_dev *dev, const void *inb, void *outb,
1006 struct mlx5_fw_page *mlx5_fwp_alloc(struct mlx5_core_dev *dev, gfp_t flags, unsigned num);
1010 void mlx5_pagealloc_init(struct mlx5_core_dev *dev);
1011 void mlx5_pagealloc_cleanup(struct mlx5_core_dev *dev);
1012 int mlx5_pagealloc_start(struct mlx5_core_dev *dev);
1013 void mlx5_pagealloc_stop(struct mlx5_core_dev *dev);
1014 void mlx5_core_req_pages_handler(struct mlx5_core_dev *dev, u16 func_id,
1016 int mlx5_satisfy_startup_pages(struct mlx5_core_dev *dev, int boot);
1017 int mlx5_reclaim_startup_pages(struct mlx5_core_dev *dev);
1018 s64 mlx5_wait_for_reclaim_vfs_pages(struct mlx5_core_dev *dev);
1021 int mlx5_eq_init(struct mlx5_core_dev *dev);
1022 void mlx5_eq_cleanup(struct mlx5_core_dev *dev);
1024 void mlx5_cq_completion(struct mlx5_core_dev *dev, u32 cqn);
1025 void mlx5_rsc_event(struct mlx5_core_dev *dev, u32 rsn, int event_type);
1026 void mlx5_srq_event(struct mlx5_core_dev *dev, u32 srqn, int event_type);
1027 struct mlx5_core_srq *mlx5_core_get_srq(struct mlx5_core_dev *dev, u32 srqn);
1028 void mlx5_cmd_comp_handler(struct mlx5_core_dev *dev, u64 vector, enum mlx5_cmd_mode mode);
1029 void mlx5_cq_event(struct mlx5_core_dev *dev, u32 cqn, int event_type);
1030 int mlx5_create_map_eq(struct mlx5_core_dev *dev, struct mlx5_eq *eq, u8 vecidx,
1032 int mlx5_destroy_unmap_eq(struct mlx5_core_dev *dev, struct mlx5_eq *eq);
1033 int mlx5_start_eqs(struct mlx5_core_dev *dev);
1034 int mlx5_stop_eqs(struct mlx5_core_dev *dev);
1035 int mlx5_vector2eqn(struct mlx5_core_dev *dev, int vector, int *eqn, int *irqn);
1036 int mlx5_core_attach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn);
1037 int mlx5_core_detach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn);
1038 int mlx5_core_set_dc_cnak_trace(struct mlx5_core_dev *dev, int enable,
1041 int mlx5_qp_debugfs_init(struct mlx5_core_dev *dev);
1042 void mlx5_qp_debugfs_cleanup(struct mlx5_core_dev *dev);
1043 int mlx5_core_access_reg(struct mlx5_core_dev *dev, void *data_in,
1047 void mlx5_toggle_port_link(struct mlx5_core_dev *dev);
1049 int mlx5_debug_eq_add(struct mlx5_core_dev *dev, struct mlx5_eq *eq);
1050 void mlx5_debug_eq_remove(struct mlx5_core_dev *dev, struct mlx5_eq *eq);
1051 int mlx5_core_eq_query(struct mlx5_core_dev *dev, struct mlx5_eq *eq,
1053 int mlx5_eq_debugfs_init(struct mlx5_core_dev *dev);
1054 void mlx5_eq_debugfs_cleanup(struct mlx5_core_dev *dev);
1055 int mlx5_cq_debugfs_init(struct mlx5_core_dev *dev);
1056 void mlx5_cq_debugfs_cleanup(struct mlx5_core_dev *dev);
1057 int mlx5_db_alloc(struct mlx5_core_dev *dev, struct mlx5_db *db);
1058 int mlx5_db_alloc_node(struct mlx5_core_dev *dev, struct mlx5_db *db,
1060 void mlx5_db_free(struct mlx5_core_dev *dev, struct mlx5_db *db);
1063 int mlx5_cmdif_debugfs_init(struct mlx5_core_dev *dev);
1064 void mlx5_cmdif_debugfs_cleanup(struct mlx5_core_dev *dev);
1065 int mlx5_core_create_psv(struct mlx5_core_dev *dev, u32 pdn,
1067 int mlx5_core_destroy_psv(struct mlx5_core_dev *dev, int psv_num);
1069 u8 mlx5_is_wol_supported(struct mlx5_core_dev *dev);
1070 int mlx5_set_wol(struct mlx5_core_dev *dev, u8 wol_mode);
1071 int mlx5_set_dropless_mode(struct mlx5_core_dev *dev, u16 timeout);
1072 int mlx5_query_dropless_mode(struct mlx5_core_dev *dev, u16 *timeout);
1073 int mlx5_query_wol(struct mlx5_core_dev *dev, u8 *wol_mode);
1074 int mlx5_core_access_pvlc(struct mlx5_core_dev *dev,
1076 int mlx5_core_access_ptys(struct mlx5_core_dev *dev,
1078 int mlx5_core_access_pmtu(struct mlx5_core_dev *dev,
1080 int mlx5_vxlan_udp_port_add(struct mlx5_core_dev *dev, u16 port);
1081 int mlx5_vxlan_udp_port_delete(struct mlx5_core_dev *dev, u16 port);
1082 int mlx5_query_port_cong_status(struct mlx5_core_dev *mdev, int protocol,
1084 int mlx5_modify_port_cong_status(struct mlx5_core_dev *mdev, int protocol,
1086 int mlx5_query_port_cong_params(struct mlx5_core_dev *mdev, int protocol,
1088 int mlx5_modify_port_cong_params(struct mlx5_core_dev *mdev,
1090 int mlx5_query_port_cong_statistics(struct mlx5_core_dev *mdev, int clear,
1092 int mlx5_set_diagnostic_params(struct mlx5_core_dev *mdev, void *in,
1094 int mlx5_query_diagnostic_counters(struct mlx5_core_dev *mdev,
1097 int mlx5_vsc_find_cap(struct mlx5_core_dev *mdev);
1098 int mlx5_vsc_lock(struct mlx5_core_dev *mdev);
1099 void mlx5_vsc_unlock(struct mlx5_core_dev *mdev);
1100 int mlx5_vsc_set_space(struct mlx5_core_dev *mdev, u16 space);
1101 int mlx5_vsc_wait_on_flag(struct mlx5_core_dev *mdev, u32 expected);
1102 int mlx5_vsc_write(struct mlx5_core_dev *mdev, u32 addr, const u32 *data);
1103 int mlx5_vsc_read(struct mlx5_core_dev *mdev, u32 addr, u32 *data);
1104 int mlx5_vsc_lock_addr_space(struct mlx5_core_dev *mdev, u32 addr);
1105 int mlx5_vsc_unlock_addr_space(struct mlx5_core_dev *mdev, u32 addr);
1106 int mlx5_pci_read_power_status(struct mlx5_core_dev *mdev,
1134 void * (*add)(struct mlx5_core_dev *dev);
1135 void (*remove)(struct mlx5_core_dev *dev, void *context);
1136 void (*event)(struct mlx5_core_dev *dev, void *context,
1143 void *mlx5_get_protocol_dev(struct mlx5_core_dev *mdev, int protocol);
1147 unsigned int mlx5_core_reserved_gids_count(struct mlx5_core_dev *dev);
1148 int mlx5_core_roce_gid_set(struct mlx5_core_dev *dev, unsigned int index,
1169 static inline int mlx5_core_is_pf(struct mlx5_core_dev *dev) in mlx5_core_is_pf()
1174 int mlx5_init_rl_table(struct mlx5_core_dev *dev);
1175 void mlx5_cleanup_rl_table(struct mlx5_core_dev *dev);
1176 int mlx5_rl_add_rate(struct mlx5_core_dev *dev, u32 rate, u32 burst, u16 *index);
1177 void mlx5_rl_remove_rate(struct mlx5_core_dev *dev, u32 rate, u32 burst);
1178 bool mlx5_rl_is_in_range(const struct mlx5_core_dev *dev, u32 rate, u32 burst);
1180 static inline bool mlx5_rl_is_supported(struct mlx5_core_dev *dev) in mlx5_rl_is_supported()