Home
last modified time | relevance | path

Searched refs:mlx5_core_dev (Results 1 – 25 of 259) sorted by relevance

1234567891011

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dmlx5_core.h183 int mlx5_cmd_init(struct mlx5_core_dev *dev);
184 void mlx5_cmd_cleanup(struct mlx5_core_dev *dev);
185 int mlx5_cmd_enable(struct mlx5_core_dev *dev);
199 int mlx5_sriov_init(struct mlx5_core_dev *dev);
217 void mlx5_cmd_flush(struct mlx5_core_dev *dev);
235 int mlx5_events_init(struct mlx5_core_dev *dev);
243 int mlx5_adev_init(struct mlx5_core_dev *dev);
251 struct mlx5_core_dev *mlx5_get_next_phys_dev_lag(struct mlx5_core_dev *dev);
263 void mlx5_dm_cleanup(struct mlx5_core_dev *dev);
318 int mlx5_init_one(struct mlx5_core_dev *dev);
[all …]
H A Dmlx5_irq.h14 int mlx5_irq_table_init(struct mlx5_core_dev *dev);
15 void mlx5_irq_table_cleanup(struct mlx5_core_dev *dev);
16 int mlx5_irq_table_create(struct mlx5_core_dev *dev);
17 void mlx5_irq_table_destroy(struct mlx5_core_dev *dev);
18 void mlx5_irq_table_free_irqs(struct mlx5_core_dev *dev);
21 struct mlx5_irq_table *mlx5_irq_table_get(struct mlx5_core_dev *dev);
23 int mlx5_set_msix_vec_count(struct mlx5_core_dev *dev, int devfn,
25 int mlx5_get_default_msix_vec_count(struct mlx5_core_dev *dev, int num_vfs);
27 struct mlx5_irq *mlx5_ctrl_irq_request(struct mlx5_core_dev *dev);
29 struct mlx5_irq *mlx5_irq_request(struct mlx5_core_dev *dev, u16 vecidx,
[all …]
H A Dfw_reset.h9 int mlx5_fw_reset_query(struct mlx5_core_dev *dev, u8 *reset_level, u8 *reset_type);
10 int mlx5_fw_reset_set_reset_sync(struct mlx5_core_dev *dev, u8 reset_type_sel,
12 int mlx5_fw_reset_set_live_patch(struct mlx5_core_dev *dev);
14 int mlx5_fw_reset_wait_reset_done(struct mlx5_core_dev *dev);
15 int mlx5_fw_reset_verify_fw_complete(struct mlx5_core_dev *dev,
17 void mlx5_fw_reset_events_start(struct mlx5_core_dev *dev);
18 void mlx5_fw_reset_events_stop(struct mlx5_core_dev *dev);
19 void mlx5_drain_fw_reset(struct mlx5_core_dev *dev);
20 int mlx5_fw_reset_init(struct mlx5_core_dev *dev);
21 void mlx5_fw_reset_cleanup(struct mlx5_core_dev *dev);
H A Decpf.h16 bool mlx5_read_embedded_cpu(struct mlx5_core_dev *dev);
17 int mlx5_ec_init(struct mlx5_core_dev *dev);
18 void mlx5_ec_cleanup(struct mlx5_core_dev *dev);
20 int mlx5_cmd_host_pf_enable_hca(struct mlx5_core_dev *dev);
21 int mlx5_cmd_host_pf_disable_hca(struct mlx5_core_dev *dev);
26 mlx5_read_embedded_cpu(struct mlx5_core_dev *dev) { return false; } in mlx5_read_embedded_cpu()
27 static inline int mlx5_ec_init(struct mlx5_core_dev *dev) { return 0; } in mlx5_ec_init()
28 static inline void mlx5_ec_cleanup(struct mlx5_core_dev *dev) {} in mlx5_ec_cleanup()
H A Ddev.c59 bool mlx5_eth_supported(struct mlx5_core_dev *dev) in mlx5_eth_supported()
222 bool (*is_supported)(struct mlx5_core_dev *dev);
223 bool (*is_enabled)(struct mlx5_core_dev *dev);
252 int mlx5_adev_init(struct mlx5_core_dev *dev) in mlx5_adev_init()
264 void mlx5_adev_cleanup(struct mlx5_core_dev *dev) in mlx5_adev_cleanup()
333 int mlx5_attach_device(struct mlx5_core_dev *dev) in mlx5_attach_device()
542 bool mlx5_same_hw_devs(struct mlx5_core_dev *dev, struct mlx5_core_dev *peer_dev) in mlx5_same_hw_devs()
560 const struct mlx5_core_dev *curr) in _next_phys_dev()
585 struct mlx5_core_dev *mdev, *this = (struct mlx5_core_dev *)data; in next_phys_dev_lag()
597 static struct mlx5_core_dev *mlx5_get_next_dev(struct mlx5_core_dev *dev, in mlx5_get_next_dev()
[all …]
H A Dfw.c525 struct mlx5_core_dev *mlx5_core_dev; member
534 struct mlx5_core_dev *dev = mlx5_mlxfw_dev->mlx5_core_dev; in mlx5_component_query()
549 struct mlx5_core_dev *dev = mlx5_mlxfw_dev->mlx5_core_dev; in mlx5_fsm_lock()
570 struct mlx5_core_dev *dev = mlx5_mlxfw_dev->mlx5_core_dev; in mlx5_fsm_component_update()
581 struct mlx5_core_dev *dev = mlx5_mlxfw_dev->mlx5_core_dev; in mlx5_fsm_block_download()
591 struct mlx5_core_dev *dev = mlx5_mlxfw_dev->mlx5_core_dev; in mlx5_fsm_component_verify()
601 struct mlx5_core_dev *dev = mlx5_mlxfw_dev->mlx5_core_dev; in mlx5_fsm_activate()
613 struct mlx5_core_dev *dev = mlx5_mlxfw_dev->mlx5_core_dev; in mlx5_fsm_query_state()
631 struct mlx5_core_dev *dev = mlx5_mlxfw_dev->mlx5_core_dev; in mlx5_fsm_cancel()
640 struct mlx5_core_dev *dev = mlx5_mlxfw_dev->mlx5_core_dev; in mlx5_fsm_release()
[all …]
H A Dqos.h18 bool mlx5_qos_is_supported(struct mlx5_core_dev *mdev);
19 int mlx5_qos_max_leaf_nodes(struct mlx5_core_dev *mdev);
21 int mlx5_qos_create_leaf_node(struct mlx5_core_dev *mdev, u32 parent_id,
23 int mlx5_qos_create_inner_node(struct mlx5_core_dev *mdev, u32 parent_id,
25 int mlx5_qos_create_root_node(struct mlx5_core_dev *mdev, u32 *id);
26 int mlx5_qos_update_node(struct mlx5_core_dev *mdev, u32 bw_share,
28 int mlx5_qos_destroy_node(struct mlx5_core_dev *mdev, u32 id);
H A Dfw_reset.c19 struct mlx5_core_dev *dev;
57 struct mlx5_core_dev *dev = devlink_priv(devlink); in mlx5_fw_reset_enable_remote_dev_reset_set()
72 struct mlx5_core_dev *dev = devlink_priv(devlink); in mlx5_fw_reset_enable_remote_dev_reset_get()
255 struct mlx5_core_dev *dev = fw_reset->dev; in mlx5_sync_reset_reload_work()
266 struct mlx5_core_dev *dev = fw_reset->dev; in poll_sync_reset()
322 struct mlx5_core_dev *dev = fw_reset->dev; in mlx5_fw_live_patch_event()
402 struct mlx5_core_dev *dev = fw_reset->dev; in mlx5_sync_reset_request_event()
510 struct mlx5_core_dev *dev = fw_reset->dev; in mlx5_sync_reset_now_event()
539 struct mlx5_core_dev *dev; in mlx5_sync_reset_unload_event()
603 struct mlx5_core_dev *dev = fw_reset->dev; in mlx5_sync_reset_abort_event()
[all …]
/openbmc/linux/include/linux/mlx5/
H A Dvport.h64 int mlx5_query_nic_vport_min_inline(struct mlx5_core_dev *mdev,
86 int mlx5_query_hca_vport_context(struct mlx5_core_dev *dev,
92 int mlx5_query_hca_vport_node_guid(struct mlx5_core_dev *dev,
94 int mlx5_query_nic_vport_mac_list(struct mlx5_core_dev *dev,
99 int mlx5_modify_nic_vport_mac_list(struct mlx5_core_dev *dev,
103 int mlx5_query_nic_vport_promisc(struct mlx5_core_dev *mdev,
108 int mlx5_modify_nic_vport_promisc(struct mlx5_core_dev *mdev,
112 int mlx5_modify_nic_vport_vlans(struct mlx5_core_dev *dev,
116 int mlx5_nic_vport_enable_roce(struct mlx5_core_dev *mdev);
117 int mlx5_nic_vport_disable_roce(struct mlx5_core_dev *mdev);
[all …]
H A Dport.h161 void mlx5_toggle_port_link(struct mlx5_core_dev *dev);
162 int mlx5_set_port_admin_status(struct mlx5_core_dev *dev,
164 int mlx5_query_port_admin_status(struct mlx5_core_dev *dev,
173 int mlx5_query_port_vl_hw_cap(struct mlx5_core_dev *dev,
177 int mlx5_query_port_pause(struct mlx5_core_dev *dev,
190 int mlx5_max_tc(struct mlx5_core_dev *mdev);
193 int mlx5_query_port_prio_tc(struct mlx5_core_dev *mdev,
196 int mlx5_query_port_tc_group(struct mlx5_core_dev *mdev,
199 int mlx5_query_port_tc_bw_alloc(struct mlx5_core_dev *mdev,
215 int mlx5_query_module_eeprom(struct mlx5_core_dev *dev,
[all …]
H A Dtransobj.h42 int mlx5_core_modify_rq(struct mlx5_core_dev *dev, u32 rqn, u32 *in);
43 void mlx5_core_destroy_rq(struct mlx5_core_dev *dev, u32 rqn);
44 int mlx5_core_query_rq(struct mlx5_core_dev *dev, u32 rqn, u32 *out);
48 void mlx5_core_destroy_sq(struct mlx5_core_dev *dev, u32 sqn);
53 void mlx5_core_destroy_tir(struct mlx5_core_dev *dev, u32 tirn);
56 void mlx5_core_destroy_tis(struct mlx5_core_dev *dev, u32 tisn);
61 void mlx5_core_destroy_rqt(struct mlx5_core_dev *dev, u32 rqtn);
71 struct mlx5_core_dev *func_mdev;
72 struct mlx5_core_dev *peer_mdev;
83 mlx5_core_hairpin_create(struct mlx5_core_dev *func_mdev,
[all …]
H A Ddriver.h212 struct mlx5_core_dev *dev;
406 struct mlx5_core_dev *mdev;
473 struct mlx5_core_dev *dev;
557 struct mlx5_core_dev *mdev;
635 struct mlx5_core_dev *parent_mdev;
760 struct mlx5_core_dev { struct
983 struct mlx5_core_dev *dev;
1026 bool mlx5_cmd_is_down(struct mlx5_core_dev *dev);
1034 int mlx5_health_init(struct mlx5_core_dev *dev);
1179 struct mlx5_core_dev *mlx5_lag_get_next_peer_mdev(struct mlx5_core_dev *dev, int *i);
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dparams.h73 u32 mlx5e_mpwrq_max_num_entries(struct mlx5_core_dev *mdev,
85 bool slow_pci_heuristic(struct mlx5_core_dev *mdev);
95 bool mlx5e_rx_is_linear_skb(struct mlx5_core_dev *mdev,
110 u32 mlx5e_shampo_hd_per_wqe(struct mlx5_core_dev *mdev,
113 u32 mlx5e_shampo_hd_per_wq(struct mlx5_core_dev *mdev,
123 u16 mlx5e_get_rq_headroom(struct mlx5_core_dev *mdev,
130 int mlx5e_build_rq_param(struct mlx5_core_dev *mdev,
140 void mlx5e_build_sq_param(struct mlx5_core_dev *mdev,
143 void mlx5e_build_tx_cq_param(struct mlx5_core_dev *mdev,
146 void mlx5e_build_xdpsq_param(struct mlx5_core_dev *mdev,
[all …]
H A Dport.h39 void mlx5_port_query_eth_autoneg(struct mlx5_core_dev *dev, u8 *an_status,
41 int mlx5_port_set_eth_ptys(struct mlx5_core_dev *dev, bool an_disable,
43 int mlx5e_port_linkspeed(struct mlx5_core_dev *mdev, u32 *speed);
44 int mlx5e_port_query_pbmc(struct mlx5_core_dev *mdev, void *out);
45 int mlx5e_port_set_pbmc(struct mlx5_core_dev *mdev, void *in);
46 int mlx5e_port_query_sbpr(struct mlx5_core_dev *mdev, u32 desc, u8 dir,
48 int mlx5e_port_set_sbpr(struct mlx5_core_dev *mdev, u32 desc, u8 dir,
53 int mlx5e_port_set_priority2buffer(struct mlx5_core_dev *mdev, u8 *buffer);
55 bool mlx5e_fec_in_caps(struct mlx5_core_dev *dev, int fec_policy);
56 int mlx5e_get_fec_mode(struct mlx5_core_dev *dev, u32 *fec_mode_active,
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/
H A Dvhca_event.h15 static inline bool mlx5_vhca_event_supported(const struct mlx5_core_dev *dev) in mlx5_vhca_event_supported()
21 int mlx5_vhca_event_init(struct mlx5_core_dev *dev);
22 void mlx5_vhca_event_cleanup(struct mlx5_core_dev *dev);
23 void mlx5_vhca_event_start(struct mlx5_core_dev *dev);
24 void mlx5_vhca_event_stop(struct mlx5_core_dev *dev);
28 int mlx5_vhca_event_arm(struct mlx5_core_dev *dev, u16 function_id);
29 int mlx5_cmd_query_vhca_state(struct mlx5_core_dev *dev, u16 function_id,
37 static inline int mlx5_vhca_event_init(struct mlx5_core_dev *dev) in mlx5_vhca_event_init()
42 static inline void mlx5_vhca_event_cleanup(struct mlx5_core_dev *dev) in mlx5_vhca_event_cleanup()
46 static inline void mlx5_vhca_event_start(struct mlx5_core_dev *dev) in mlx5_vhca_event_start()
[all …]
H A Dsf.h12 int mlx5_sf_hw_table_init(struct mlx5_core_dev *dev);
13 void mlx5_sf_hw_table_cleanup(struct mlx5_core_dev *dev);
15 int mlx5_sf_hw_table_create(struct mlx5_core_dev *dev);
16 void mlx5_sf_hw_table_destroy(struct mlx5_core_dev *dev);
18 int mlx5_sf_table_init(struct mlx5_core_dev *dev);
19 void mlx5_sf_table_cleanup(struct mlx5_core_dev *dev);
37 static inline int mlx5_sf_hw_table_init(struct mlx5_core_dev *dev) in mlx5_sf_hw_table_init()
42 static inline void mlx5_sf_hw_table_cleanup(struct mlx5_core_dev *dev) in mlx5_sf_hw_table_cleanup()
46 static inline int mlx5_sf_hw_table_create(struct mlx5_core_dev *dev) in mlx5_sf_hw_table_create()
55 static inline int mlx5_sf_table_init(struct mlx5_core_dev *dev) in mlx5_sf_table_init()
[all …]
H A Dpriv.h9 int mlx5_cmd_alloc_sf(struct mlx5_core_dev *dev, u16 function_id);
10 int mlx5_cmd_dealloc_sf(struct mlx5_core_dev *dev, u16 function_id);
12 int mlx5_cmd_sf_enable_hca(struct mlx5_core_dev *dev, u16 func_id);
13 int mlx5_cmd_sf_disable_hca(struct mlx5_core_dev *dev, u16 func_id);
15 u16 mlx5_sf_sw_to_hw_id(struct mlx5_core_dev *dev, u32 controller, u16 sw_id);
17 int mlx5_sf_hw_table_sf_alloc(struct mlx5_core_dev *dev, u32 controller, u32 usr_sfnum);
18 void mlx5_sf_hw_table_sf_free(struct mlx5_core_dev *dev, u32 controller, u16 id);
19 void mlx5_sf_hw_table_sf_deferred_free(struct mlx5_core_dev *dev, u32 controller, u16 id);
20 bool mlx5_sf_hw_table_supported(const struct mlx5_core_dev *dev);
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Deq.h27 struct mlx5_core_dev *dev;
78 int mlx5_eq_table_init(struct mlx5_core_dev *dev);
79 void mlx5_eq_table_cleanup(struct mlx5_core_dev *dev);
80 int mlx5_eq_table_create(struct mlx5_core_dev *dev);
81 void mlx5_eq_table_destroy(struct mlx5_core_dev *dev);
86 struct mlx5_eq *mlx5_get_async_eq(struct mlx5_core_dev *dev);
91 void mlx5_cmd_eq_recover(struct mlx5_core_dev *dev);
93 void mlx5_eq_synchronize_cmd_irq(struct mlx5_core_dev *dev);
97 void mlx5_eq_debugfs_init(struct mlx5_core_dev *dev);
98 void mlx5_eq_debugfs_cleanup(struct mlx5_core_dev *dev);
[all …]
H A Dmlx5.h38 void mlx5_init_reserved_gids(struct mlx5_core_dev *dev);
39 void mlx5_cleanup_reserved_gids(struct mlx5_core_dev *dev);
40 int mlx5_core_reserve_gids(struct mlx5_core_dev *dev, unsigned int count);
41 void mlx5_core_unreserve_gids(struct mlx5_core_dev *dev, unsigned int count);
42 int mlx5_core_reserved_gid_alloc(struct mlx5_core_dev *dev, int *gid_index);
43 void mlx5_core_reserved_gid_free(struct mlx5_core_dev *dev, int gid_index);
44 int mlx5_crdump_enable(struct mlx5_core_dev *dev);
45 void mlx5_crdump_disable(struct mlx5_core_dev *dev);
46 int mlx5_crdump_collect(struct mlx5_core_dev *dev, u32 *cr_data);
48 static inline struct net *mlx5_core_net(struct mlx5_core_dev *dev) in mlx5_core_net()
[all …]
H A Dclock.h36 static inline bool mlx5_is_real_time_rq(struct mlx5_core_dev *mdev) in mlx5_is_real_time_rq()
45 static inline bool mlx5_is_real_time_sq(struct mlx5_core_dev *mdev) in mlx5_is_real_time_sq()
57 void mlx5_init_clock(struct mlx5_core_dev *mdev);
58 void mlx5_cleanup_clock(struct mlx5_core_dev *mdev);
60 static inline int mlx5_clock_get_ptp_index(struct mlx5_core_dev *mdev) in mlx5_clock_get_ptp_index()
90 static inline void mlx5_init_clock(struct mlx5_core_dev *mdev) {} in mlx5_init_clock()
91 static inline void mlx5_cleanup_clock(struct mlx5_core_dev *mdev) {} in mlx5_cleanup_clock()
92 static inline int mlx5_clock_get_ptp_index(struct mlx5_core_dev *mdev) in mlx5_clock_get_ptp_index()
110 static inline cqe_ts_to_ns mlx5_rq_ts_translator(struct mlx5_core_dev *mdev) in mlx5_rq_ts_translator()
116 static inline cqe_ts_to_ns mlx5_sq_ts_translator(struct mlx5_core_dev *mdev) in mlx5_sq_ts_translator()
H A Dpci_vsc.h16 void mlx5_pci_vsc_init(struct mlx5_core_dev *dev);
17 int mlx5_vsc_gw_lock(struct mlx5_core_dev *dev);
18 int mlx5_vsc_gw_unlock(struct mlx5_core_dev *dev);
19 int mlx5_vsc_gw_set_space(struct mlx5_core_dev *dev, u16 space,
21 int mlx5_vsc_gw_read_block_fast(struct mlx5_core_dev *dev, u32 *data,
24 static inline bool mlx5_vsc_accessible(struct mlx5_core_dev *dev) in mlx5_vsc_accessible()
29 int mlx5_vsc_sem_set_space(struct mlx5_core_dev *dev, u16 space,
/openbmc/linux/drivers/infiniband/hw/mlx5/
H A Dcmd.h41 int mlx5_cmd_query_cong_params(struct mlx5_core_dev *dev, int cong_point,
43 int mlx5_cmd_dealloc_pd(struct mlx5_core_dev *dev, u32 pdn, u16 uid);
44 void mlx5_cmd_destroy_tir(struct mlx5_core_dev *dev, u32 tirn, u16 uid);
45 void mlx5_cmd_destroy_tis(struct mlx5_core_dev *dev, u32 tisn, u16 uid);
46 int mlx5_cmd_destroy_rqt(struct mlx5_core_dev *dev, u32 rqtn, u16 uid);
47 int mlx5_cmd_alloc_transport_domain(struct mlx5_core_dev *dev, u32 *tdn,
51 int mlx5_cmd_attach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid,
53 int mlx5_cmd_detach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid,
55 int mlx5_cmd_xrcd_alloc(struct mlx5_core_dev *dev, u32 *xrcdn, u16 uid);
59 int mlx5_cmd_uar_alloc(struct mlx5_core_dev *dev, u32 *uarn, u16 uid);
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/fpga/
H A Dcmd.h75 int mlx5_fpga_caps(struct mlx5_core_dev *dev);
76 int mlx5_fpga_query(struct mlx5_core_dev *dev, struct mlx5_fpga_query *query);
77 int mlx5_fpga_ctrl_op(struct mlx5_core_dev *dev, u8 op);
78 int mlx5_fpga_access_reg(struct mlx5_core_dev *dev, u8 size, u64 addr,
80 int mlx5_fpga_sbu_caps(struct mlx5_core_dev *dev, void *caps, int size);
82 int mlx5_fpga_create_qp(struct mlx5_core_dev *dev, void *fpga_qpc,
84 int mlx5_fpga_modify_qp(struct mlx5_core_dev *dev, u32 fpga_qpn,
86 int mlx5_fpga_query_qp(struct mlx5_core_dev *dev, u32 fpga_qpn, void *fpga_qpc);
87 int mlx5_fpga_query_qp_counters(struct mlx5_core_dev *dev, u32 fpga_qpn,
89 int mlx5_fpga_destroy_qp(struct mlx5_core_dev *dev, u32 fpga_qpn);
H A Dcore.h46 struct mlx5_core_dev *mdev;
84 int mlx5_fpga_init(struct mlx5_core_dev *mdev);
85 void mlx5_fpga_cleanup(struct mlx5_core_dev *mdev);
86 int mlx5_fpga_device_start(struct mlx5_core_dev *mdev);
87 void mlx5_fpga_device_stop(struct mlx5_core_dev *mdev);
91 static inline int mlx5_fpga_init(struct mlx5_core_dev *mdev) in mlx5_fpga_init()
96 static inline void mlx5_fpga_cleanup(struct mlx5_core_dev *mdev) in mlx5_fpga_cleanup()
100 static inline int mlx5_fpga_device_start(struct mlx5_core_dev *mdev) in mlx5_fpga_device_start()
105 static inline void mlx5_fpga_device_stop(struct mlx5_core_dev *mdev) in mlx5_fpga_device_stop()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/
H A Ddev.h15 struct mlx5_core_dev *parent_mdev;
16 struct mlx5_core_dev *mdev;
22 void mlx5_sf_dev_table_create(struct mlx5_core_dev *dev);
23 void mlx5_sf_dev_table_destroy(struct mlx5_core_dev *dev);
28 bool mlx5_sf_dev_allocated(const struct mlx5_core_dev *dev);
32 static inline void mlx5_sf_dev_table_create(struct mlx5_core_dev *dev) in mlx5_sf_dev_table_create()
36 static inline void mlx5_sf_dev_table_destroy(struct mlx5_core_dev *dev) in mlx5_sf_dev_table_destroy()
49 static inline bool mlx5_sf_dev_allocated(const struct mlx5_core_dev *dev) in mlx5_sf_dev_allocated()

1234567891011