/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | mlx4.h | 394 struct mlx4_dev *dev; 835 struct mlx4_dev *dev; 851 struct mlx4_dev *dev; 883 struct mlx4_dev dev; 957 int mlx4_reset(struct mlx4_dev *dev); 1050 int mlx4_catas_init(struct mlx4_dev *dev); 1051 void mlx4_catas_end(struct mlx4_dev *dev); 1052 int mlx4_crdump_init(struct mlx4_dev *dev); 1053 void mlx4_crdump_end(struct mlx4_dev *dev); 1056 int mlx4_adev_init(struct mlx4_dev *dev); [all …]
|
H A D | fw.h | 233 int mlx4_QUERY_FUNC_CAP(struct mlx4_dev *dev, u8 gen_or_port, 235 int mlx4_QUERY_FUNC_CAP_wrapper(struct mlx4_dev *dev, int slave, 241 int mlx4_MAP_FA(struct mlx4_dev *dev, struct mlx4_icm *icm); 242 int mlx4_UNMAP_FA(struct mlx4_dev *dev); 243 int mlx4_RUN_FW(struct mlx4_dev *dev); 244 int mlx4_QUERY_FW(struct mlx4_dev *dev); 248 int mlx4_CLOSE_HCA(struct mlx4_dev *dev, int panic); 250 int mlx4_SET_ICM_SIZE(struct mlx4_dev *dev, u64 icm_size, u64 *aux_pages); 251 int mlx4_MAP_ICM_AUX(struct mlx4_dev *dev, struct mlx4_icm *icm); 252 int mlx4_UNMAP_ICM_AUX(struct mlx4_dev *dev); [all …]
|
H A D | icm.h | 78 struct mlx4_dev; 80 struct mlx4_icm *mlx4_alloc_icm(struct mlx4_dev *dev, int npages, 82 void mlx4_free_icm(struct mlx4_dev *dev, struct mlx4_icm *icm, int coherent); 84 int mlx4_table_get(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj); 85 void mlx4_table_put(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj); 86 int mlx4_table_get_range(struct mlx4_dev *dev, struct mlx4_icm_table *table, 88 void mlx4_table_put_range(struct mlx4_dev *dev, struct mlx4_icm_table *table, 90 int mlx4_init_icm_table(struct mlx4_dev *dev, struct mlx4_icm_table *table, 93 void mlx4_cleanup_icm_table(struct mlx4_dev *dev, struct mlx4_icm_table *table); 141 int mlx4_MAP_ICM_AUX(struct mlx4_dev *dev, struct mlx4_icm *icm); [all …]
|
H A D | pd.c | 47 int mlx4_pd_alloc(struct mlx4_dev *dev, u32 *pdn) in mlx4_pd_alloc() 59 void mlx4_pd_free(struct mlx4_dev *dev, u32 pdn) in mlx4_pd_free() 76 int mlx4_xrcd_alloc(struct mlx4_dev *dev, u32 *xrcdn) in mlx4_xrcd_alloc() 96 void __mlx4_xrcd_free(struct mlx4_dev *dev, u32 xrcdn) in __mlx4_xrcd_free() 101 void mlx4_xrcd_free(struct mlx4_dev *dev, u32 xrcdn) in mlx4_xrcd_free() 118 int mlx4_init_pd_table(struct mlx4_dev *dev) in mlx4_init_pd_table() 127 void mlx4_cleanup_pd_table(struct mlx4_dev *dev) in mlx4_cleanup_pd_table() 132 int mlx4_init_xrcd_table(struct mlx4_dev *dev) in mlx4_init_xrcd_table() 140 void mlx4_cleanup_xrcd_table(struct mlx4_dev *dev) in mlx4_cleanup_xrcd_table() 272 int mlx4_init_uar_table(struct mlx4_dev *dev) in mlx4_init_uar_table() [all …]
|
H A D | fw_qos.h | 66 int mlx4_SET_PORT_PRIO2TC(struct mlx4_dev *dev, u8 port, u8 *prio2tc); 84 int mlx4_SET_PORT_SCHEDULER(struct mlx4_dev *dev, u8 port, u8 *tc_tx_bw, 98 int mlx4_ALLOCATE_VPP_get(struct mlx4_dev *dev, u8 port, 113 int mlx4_ALLOCATE_VPP_set(struct mlx4_dev *dev, u8 port, u8 *vpp_p_up); 127 int mlx4_SET_VPORT_QOS_get(struct mlx4_dev *dev, u8 port, u8 vport, 142 int mlx4_SET_VPORT_QOS_set(struct mlx4_dev *dev, u8 port, u8 vport,
|
H A D | srq.c | 43 void mlx4_srq_event(struct mlx4_dev *dev, u32 srqn, int event_type) in mlx4_srq_event() 80 static int mlx4_ARM_SRQ(struct mlx4_dev *dev, int srq_num, int limit_watermark) in mlx4_ARM_SRQ() 93 int __mlx4_srq_alloc_icm(struct mlx4_dev *dev, int *srqn) in __mlx4_srq_alloc_icm() 120 static int mlx4_srq_alloc_icm(struct mlx4_dev *dev, int *srqn) in mlx4_srq_alloc_icm() 138 void __mlx4_srq_free_icm(struct mlx4_dev *dev, int srqn) in __mlx4_srq_free_icm() 147 static void mlx4_srq_free_icm(struct mlx4_dev *dev, int srqn) in mlx4_srq_free_icm() 162 int mlx4_srq_alloc(struct mlx4_dev *dev, u32 pdn, u32 cqn, u16 xrcd, in mlx4_srq_alloc() 222 void mlx4_srq_free(struct mlx4_dev *dev, struct mlx4_srq *srq) in mlx4_srq_free() 272 int mlx4_init_srq_table(struct mlx4_dev *dev) in mlx4_init_srq_table() 285 void mlx4_cleanup_srq_table(struct mlx4_dev *dev) in mlx4_cleanup_srq_table() [all …]
|
H A D | intf.c | 44 static bool is_eth_supported(struct mlx4_dev *dev) in is_eth_supported() 53 static bool is_ib_supported(struct mlx4_dev *dev) in is_ib_supported() 67 bool (*is_supported)(struct mlx4_dev *dev); 73 int mlx4_adev_init(struct mlx4_dev *dev) in mlx4_adev_init() 91 void mlx4_adev_cleanup(struct mlx4_dev *dev) in mlx4_adev_cleanup() 162 int mlx4_do_bond(struct mlx4_dev *dev, bool enable) in mlx4_do_bond() 248 int mlx4_register_event_notifier(struct mlx4_dev *dev, in mlx4_register_event_notifier() 266 static int add_drivers(struct mlx4_dev *dev) in add_drivers() 297 static void delete_drivers(struct mlx4_dev *dev) in delete_drivers() 335 int mlx4_register_device(struct mlx4_dev *dev) in mlx4_register_device() [all …]
|
H A D | mr.c | 150 u32 __mlx4_alloc_mtt_range(struct mlx4_dev *dev, int order) in __mlx4_alloc_mtt_range() 378 void mlx4_mr_hw_put_mpt(struct mlx4_dev *dev, in mlx4_mr_hw_put_mpt() 405 int mlx4_mr_hw_change_access(struct mlx4_dev *dev, in mlx4_mr_hw_change_access() 431 static int mlx4_WRITE_MTT(struct mlx4_dev *dev, in mlx4_WRITE_MTT() 439 int __mlx4_mpt_reserve(struct mlx4_dev *dev) in __mlx4_mpt_reserve() 446 static int mlx4_mpt_reserve(struct mlx4_dev *dev) in mlx4_mpt_reserve() 460 void __mlx4_mpt_release(struct mlx4_dev *dev, u32 index) in __mlx4_mpt_release() 483 int __mlx4_mpt_alloc_icm(struct mlx4_dev *dev, u32 index) in __mlx4_mpt_alloc_icm() 907 int mlx4_init_mr_table(struct mlx4_dev *dev) in mlx4_init_mr_table() 955 void mlx4_cleanup_mr_table(struct mlx4_dev *dev) in mlx4_cleanup_mr_table() [all …]
|
H A D | catas.c | 50 static int read_vendor_id(struct mlx4_dev *dev) in read_vendor_id() 69 static int mlx4_reset_master(struct mlx4_dev *dev) in mlx4_reset_master() 92 static int mlx4_reset_slave(struct mlx4_dev *dev) in mlx4_reset_slave() 166 struct mlx4_dev *dev; in mlx4_enter_error_state() 207 struct mlx4_dev *dev = persist->dev; in mlx4_handle_error_state() 225 static void dump_err_buf(struct mlx4_dev *dev) in dump_err_buf() 240 struct mlx4_dev *dev = &priv->dev; in poll_catas() 277 void mlx4_start_catas_poll(struct mlx4_dev *dev) in mlx4_start_catas_poll() 304 void mlx4_stop_catas_poll(struct mlx4_dev *dev) in mlx4_stop_catas_poll() 319 int mlx4_catas_init(struct mlx4_dev *dev) in mlx4_catas_init() [all …]
|
H A D | sense.c | 41 int mlx4_SENSE_PORT(struct mlx4_dev *dev, int port, in mlx4_SENSE_PORT() 64 void mlx4_do_sense_ports(struct mlx4_dev *dev, in mlx4_do_sense_ports() 96 struct mlx4_dev *dev = sense->dev; in mlx4_sense_port() 115 void mlx4_start_sense(struct mlx4_dev *dev) in mlx4_start_sense() 127 void mlx4_stop_sense(struct mlx4_dev *dev) in mlx4_stop_sense() 132 void mlx4_sense_init(struct mlx4_dev *dev) in mlx4_sense_init()
|
H A D | mcg.c | 43 int mlx4_get_mgm_entry_size(struct mlx4_dev *dev) in mlx4_get_mgm_entry_size() 48 int mlx4_get_qp_per_mgm(struct mlx4_dev *dev) in mlx4_get_qp_per_mgm() 82 static int mlx4_READ_ENTRY(struct mlx4_dev *dev, int index, in mlx4_READ_ENTRY() 418 static int add_promisc_qp(struct mlx4_dev *dev, u8 port, in add_promisc_qp() 694 static int find_entry(struct mlx4_dev *dev, u8 port, in find_entry() 824 int mlx4_hw_rule_sz(struct mlx4_dev *dev, in mlx4_hw_rule_sz() 977 int mlx4_flow_attach(struct mlx4_dev *dev, in mlx4_flow_attach() 1037 int mlx4_flow_detach(struct mlx4_dev *dev, u64 reg_id) in mlx4_flow_detach() 1529 int mlx4_unicast_attach(struct mlx4_dev *dev, in mlx4_unicast_attach() 1625 int mlx4_init_mcg_table(struct mlx4_dev *dev) in mlx4_init_mcg_table() [all …]
|
H A D | cq.c | 104 void mlx4_cq_completion(struct mlx4_dev *dev, u32 cqn) in mlx4_cq_completion() 126 void mlx4_cq_event(struct mlx4_dev *dev, u32 cqn, int event_type) in mlx4_cq_event() 169 int mlx4_cq_modify(struct mlx4_dev *dev, struct mlx4_cq *cq, in mlx4_cq_modify() 191 int mlx4_cq_resize(struct mlx4_dev *dev, struct mlx4_cq *cq, in mlx4_cq_resize() 217 int __mlx4_cq_alloc_icm(struct mlx4_dev *dev, int *cqn) in __mlx4_cq_alloc_icm() 264 void __mlx4_cq_free_icm(struct mlx4_dev *dev, int cqn) in __mlx4_cq_free_icm() 274 static void mlx4_cq_free_icm(struct mlx4_dev *dev, int cqn) in mlx4_cq_free_icm() 342 int mlx4_cq_alloc(struct mlx4_dev *dev, int nent, in mlx4_cq_alloc() 436 void mlx4_cq_free(struct mlx4_dev *dev, struct mlx4_cq *cq) in mlx4_cq_free() 463 int mlx4_init_cq_table(struct mlx4_dev *dev) in mlx4_init_cq_table() [all …]
|
H A D | qp.c | 313 int __mlx4_qp_alloc_icm(struct mlx4_dev *dev, int qpn) in __mlx4_qp_alloc_icm() 357 static int mlx4_qp_alloc_icm(struct mlx4_dev *dev, int qpn) in mlx4_qp_alloc_icm() 370 void __mlx4_qp_free_icm(struct mlx4_dev *dev, int qpn) in __mlx4_qp_free_icm() 382 static void mlx4_qp_free_icm(struct mlx4_dev *dev, int qpn) in mlx4_qp_free_icm() 443 int mlx4_update_qp(struct mlx4_dev *dev, u32 qpn, in mlx4_update_qp() 529 void mlx4_qp_free(struct mlx4_dev *dev, struct mlx4_qp *qp) in mlx4_qp_free() 548 static int mlx4_create_zones(struct mlx4_dev *dev, in mlx4_create_zones() 739 static void mlx4_cleanup_qp_zones(struct mlx4_dev *dev) in mlx4_cleanup_qp_zones() 766 int mlx4_init_qp_table(struct mlx4_dev *dev) in mlx4_init_qp_table() 888 void mlx4_cleanup_qp_table(struct mlx4_dev *dev) in mlx4_cleanup_qp_table() [all …]
|
H A D | icm.c | 55 static void mlx4_free_icm_pages(struct mlx4_dev *dev, struct mlx4_icm_chunk *chunk) in mlx4_free_icm_pages() 79 void mlx4_free_icm(struct mlx4_dev *dev, struct mlx4_icm *icm, int coherent) in mlx4_free_icm() 132 struct mlx4_icm *mlx4_alloc_icm(struct mlx4_dev *dev, int npages, in mlx4_alloc_icm() 236 static int mlx4_MAP_ICM(struct mlx4_dev *dev, struct mlx4_icm *icm, u64 virt) in mlx4_MAP_ICM() 241 static int mlx4_UNMAP_ICM(struct mlx4_dev *dev, u64 virt, u32 page_count) in mlx4_UNMAP_ICM() 247 int mlx4_MAP_ICM_AUX(struct mlx4_dev *dev, struct mlx4_icm *icm) in mlx4_MAP_ICM_AUX() 252 int mlx4_UNMAP_ICM_AUX(struct mlx4_dev *dev) in mlx4_UNMAP_ICM_AUX() 258 int mlx4_table_get(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj) in mlx4_table_get() 382 int mlx4_table_get_range(struct mlx4_dev *dev, struct mlx4_icm_table *table, in mlx4_table_get_range() 406 void mlx4_table_put_range(struct mlx4_dev *dev, struct mlx4_icm_table *table, in mlx4_table_put_range() [all …]
|
H A D | eq.c | 86 static u64 get_async_ev_mask(struct mlx4_dev *dev) in get_async_ev_mask() 144 struct mlx4_dev *dev = &priv->dev; in mlx4_gen_slave_eqe() 240 struct mlx4_dev *dev = &priv->dev; in mlx4_set_eq_affinity_hint() 458 struct mlx4_dev *dev = &priv->dev; in mlx4_master_handle_slave_flr() 851 struct mlx4_dev *dev = dev_ptr; in mlx4_interrupt() 867 struct mlx4_dev *dev = eq->dev; in mlx4_msi_x_interrupt() 1088 static void mlx4_free_eq(struct mlx4_dev *dev, in mlx4_free_eq() 1157 int mlx4_alloc_eq_table(struct mlx4_dev *dev) in mlx4_alloc_eq_table() 1169 void mlx4_free_eq_table(struct mlx4_dev *dev) in mlx4_free_eq_table() 1174 int mlx4_init_eq_table(struct mlx4_dev *dev) in mlx4_init_eq_table() [all …]
|
H A D | crdump.c | 60 static void crdump_enable_crspace_access(struct mlx4_dev *dev, in crdump_enable_crspace_access() 77 static void crdump_disable_crspace_access(struct mlx4_dev *dev, in crdump_disable_crspace_access() 90 static void mlx4_crdump_collect_crspace(struct mlx4_dev *dev, in mlx4_crdump_collect_crspace() 129 static void mlx4_crdump_collect_fw_health(struct mlx4_dev *dev, in mlx4_crdump_collect_fw_health() 168 int mlx4_crdump_collect(struct mlx4_dev *dev) in mlx4_crdump_collect() 219 int mlx4_crdump_init(struct mlx4_dev *dev) in mlx4_crdump_init() 252 void mlx4_crdump_end(struct mlx4_dev *dev) in mlx4_crdump_end()
|
H A D | main.c | 198 struct mlx4_dev *dev = &priv->dev; in mlx4_devlink_crdump_snapshot_get() 208 struct mlx4_dev *dev = &priv->dev; in mlx4_devlink_crdump_snapshot_set() 1140 struct mlx4_dev *mdev = info->dev; in show_port_type() 1157 struct mlx4_dev *mdev = info->dev; in __set_port_type() 1226 struct mlx4_dev *mdev = info->dev; in set_port_type() 1291 struct mlx4_dev *mdev = info->dev; in show_port_ib_mtu() 1307 struct mlx4_dev *mdev = info->dev; in set_port_ib_mtu() 1521 struct mlx4_dev *dev; 3395 struct mlx4_dev *dev; in mlx4_load_one() 3943 struct mlx4_dev *dev = &priv->dev; in mlx4_devlink_param_load_driverinit_values() [all …]
|
H A D | resource_tracker.c | 442 void mlx4_init_quotas(struct mlx4_dev *dev) in mlx4_init_quotas() 475 mlx4_calc_res_counter_guaranteed(struct mlx4_dev *dev, in mlx4_calc_res_counter_guaranteed() 501 int mlx4_init_resource_tracker(struct mlx4_dev *dev) in mlx4_init_resource_tracker() 655 void mlx4_free_resource_tracker(struct mlx4_dev *dev, in mlx4_free_resource_tracker() 749 static int update_vport_qp_param(struct mlx4_dev *dev, in update_vport_qp_param() 847 static int mpt_mask(struct mlx4_dev *dev) in mpt_mask() 1781 static int fw_reserved(struct mlx4_dev *dev, int qpn) in fw_reserved() 3183 static int verify_qp_parameters(struct mlx4_dev *dev, in verify_qp_parameters() 5053 int mlx4_bond_fs_rules(struct mlx4_dev *dev) in mlx4_bond_fs_rules() 5058 int mlx4_unbond_fs_rules(struct mlx4_dev *dev) in mlx4_unbond_fs_rules() [all …]
|
H A D | port.c | 90 void mlx4_init_roce_gid_table(struct mlx4_dev *dev, in mlx4_init_roce_gid_table() 100 static int validate_index(struct mlx4_dev *dev, in validate_index() 112 static int find_index(struct mlx4_dev *dev, in find_index() 170 static bool mlx4_need_mf_bond(struct mlx4_dev *dev) in mlx4_need_mf_bond() 372 int mlx4_get_base_qpn(struct mlx4_dev *dev, u8 port) in mlx4_get_base_qpn() 842 int mlx4_bond_mac_table(struct mlx4_dev *dev) in mlx4_bond_mac_table() 896 int mlx4_unbond_mac_table(struct mlx4_dev *dev) in mlx4_unbond_mac_table() 949 int mlx4_bond_vlan_table(struct mlx4_dev *dev) in mlx4_bond_vlan_table() 1003 int mlx4_unbond_vlan_table(struct mlx4_dev *dev) in mlx4_unbond_vlan_table() 1828 int mlx4_SET_MCAST_FLTR(struct mlx4_dev *dev, u8 port, in mlx4_SET_MCAST_FLTR() [all …]
|
H A D | cmd.c | 255 static int comm_pending(struct mlx4_dev *dev) in comm_pending() 418 static int cmd_pending(struct mlx4_dev *dev) in cmd_pending() 806 int mlx4_ARM_COMM_CHANNEL(struct mlx4_dev *dev) in mlx4_ARM_COMM_CHANNEL() 1847 struct mlx4_dev *dev = &(priv->dev); in mlx4_master_immediate_activate_vlan_qos() 2232 struct mlx4_dev *dev = &priv->dev; in mlx4_master_comm_channel() 2289 static int sync_toggles(struct mlx4_dev *dev) in sync_toggles() 2345 int mlx4_multi_func_init(struct mlx4_dev *dev) in mlx4_multi_func_init() 2494 int mlx4_cmd_init(struct mlx4_dev *dev) in mlx4_cmd_init() 2621 int mlx4_cmd_use_events(struct mlx4_dev *dev) in mlx4_cmd_use_events() 2842 struct mlx4_dev *dev, in mlx4_phys_to_slaves_pport_actv() [all …]
|
H A D | fw_qos.c | 85 int mlx4_SET_PORT_PRIO2TC(struct mlx4_dev *dev, u8 port, u8 *prio2tc) in mlx4_SET_PORT_PRIO2TC() 111 int mlx4_SET_PORT_SCHEDULER(struct mlx4_dev *dev, u8 port, u8 *tc_tx_bw, in mlx4_SET_PORT_SCHEDULER() 159 int mlx4_ALLOCATE_VPP_get(struct mlx4_dev *dev, u8 port, in mlx4_ALLOCATE_VPP_get() 194 int mlx4_ALLOCATE_VPP_set(struct mlx4_dev *dev, u8 port, u8 *vpp_p_up) in mlx4_ALLOCATE_VPP_set() 221 int mlx4_SET_VPORT_QOS_get(struct mlx4_dev *dev, u8 port, u8 vport, in mlx4_SET_VPORT_QOS_get() 258 int mlx4_SET_VPORT_QOS_set(struct mlx4_dev *dev, u8 port, u8 vport, in mlx4_SET_VPORT_QOS_set()
|
/openbmc/linux/include/linux/mlx4/ |
H A D | device.h | 858 struct mlx4_dev *dev; 874 struct mlx4_dev { struct 895 struct mlx4_dev *mdev; argument 1423 int mlx4_SYNC_TPT(struct mlx4_dev *dev); 1425 int mlx4_test_async(struct mlx4_dev *dev); 1450 int mlx4_flow_attach(struct mlx4_dev *dev, 1486 u64 mlx4_read_clock(struct mlx4_dev *dev); 1509 struct mlx4_dev *dev, 1536 void mlx4_mr_hw_put_mpt(struct mlx4_dev *dev, 1545 int mlx4_max_tc(struct mlx4_dev *dev); [all …]
|
H A D | cmd.h | 261 struct mlx4_dev; 268 int __mlx4_cmd(struct mlx4_dev *dev, u64 in_param, u64 *out_param, 303 struct mlx4_cmd_mailbox *mlx4_alloc_cmd_mailbox(struct mlx4_dev *dev); 306 int mlx4_get_counter_stats(struct mlx4_dev *dev, int counter_index, 308 int mlx4_get_vf_stats(struct mlx4_dev *dev, int port, int vf_idx, 311 int mlx4_set_vf_mac(struct mlx4_dev *dev, int port, int vf, u8 *mac); 312 int mlx4_set_vf_vlan(struct mlx4_dev *dev, int port, int vf, u16 vlan, 319 int mlx4_config_dev_retrieval(struct mlx4_dev *dev, 321 void mlx4_cmd_wake_completions(struct mlx4_dev *dev); 322 void mlx4_report_internal_err_comm_event(struct mlx4_dev *dev); [all …]
|
H A D | driver.h | 43 struct mlx4_dev; 70 int mlx4_register_event_notifier(struct mlx4_dev *dev, 72 int mlx4_unregister_event_notifier(struct mlx4_dev *dev, 75 struct devlink_port *mlx4_get_devlink_port(struct mlx4_dev *dev, int port);
|
H A D | qp.h | 474 struct mlx4_qp *mlx4_qp_lookup(struct mlx4_dev *dev, u32 qpn); 475 int mlx4_update_qp(struct mlx4_dev *dev, u32 qpn, 478 int mlx4_qp_modify(struct mlx4_dev *dev, struct mlx4_mtt *mtt, 483 int mlx4_qp_query(struct mlx4_dev *dev, struct mlx4_qp *qp, 486 int mlx4_qp_to_ready(struct mlx4_dev *dev, struct mlx4_mtt *mtt, 490 static inline struct mlx4_qp *__mlx4_qp_lookup(struct mlx4_dev *dev, u32 qpn) in __mlx4_qp_lookup() 495 void mlx4_qp_remove(struct mlx4_dev *dev, struct mlx4_qp *qp); 505 u16 mlx4_qp_roce_entropy(struct mlx4_dev *dev, u32 qpn);
|