Home
last modified time | relevance | path

Searched refs:mlx4_dev (Results 1 – 25 of 41) sorted by relevance

12

/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx4/
A Dmlx4.h392 struct mlx4_dev *dev;
833 struct mlx4_dev *dev;
849 struct mlx4_dev *dev;
876 struct mlx4_dev dev;
950 int mlx4_reset(struct mlx4_dev *dev);
1043 int mlx4_catas_init(struct mlx4_dev *dev);
1044 void mlx4_catas_end(struct mlx4_dev *dev);
1045 int mlx4_crdump_init(struct mlx4_dev *dev);
1046 void mlx4_crdump_end(struct mlx4_dev *dev);
1056 u64 mlx4_make_profile(struct mlx4_dev *dev,
[all …]
A Dfw.h233 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 …]
A Dicm.h78 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 …]
A Dpd.c47 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 …]
A Dsrq.c43 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 …]
A Dmr.c150 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 …]
A Dfw_qos.h66 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,
A Dcatas.c50 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 …]
A Dmcg.c43 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 …]
A Dsense.c41 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()
A Dqp.c313 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 …]
A Dcq.c104 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 …]
A Dicm.c55 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 …]
A Deq.c86 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()
850 struct mlx4_dev *dev = dev_ptr; in mlx4_interrupt()
866 struct mlx4_dev *dev = eq->dev; in mlx4_msi_x_interrupt()
1087 static void mlx4_free_eq(struct mlx4_dev *dev, in mlx4_free_eq()
1156 int mlx4_alloc_eq_table(struct mlx4_dev *dev) in mlx4_alloc_eq_table()
1168 void mlx4_free_eq_table(struct mlx4_dev *dev) in mlx4_free_eq_table()
1173 int mlx4_init_eq_table(struct mlx4_dev *dev) in mlx4_init_eq_table()
[all …]
A Dcrdump.c60 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()
A Dresource_tracker.c442 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 …]
A Dmain.c199 struct mlx4_dev *dev = &priv->dev; in mlx4_devlink_crdump_snapshot_get()
209 struct mlx4_dev *dev = &priv->dev; in mlx4_devlink_crdump_snapshot_set()
1163 struct mlx4_dev *mdev = info->dev; in show_port_type()
1180 struct mlx4_dev *mdev = info->dev; in __set_port_type()
1249 struct mlx4_dev *mdev = info->dev; in set_port_type()
1314 struct mlx4_dev *mdev = info->dev; in show_port_ib_mtu()
1330 struct mlx4_dev *mdev = info->dev; in set_port_ib_mtu()
1447 int mlx4_bond(struct mlx4_dev *dev) in mlx4_bond()
3340 struct mlx4_dev *dev; in mlx4_load_one()
3908 struct mlx4_dev *dev = &priv->dev; in mlx4_devlink_param_load_driverinit_values()
[all …]
A Dport.c90 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 …]
A Dcmd.c255 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 …]
A Dfw_qos.c85 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()
A Dintf.c130 int mlx4_do_bond(struct mlx4_dev *dev, bool enable) in mlx4_do_bond()
182 void mlx4_dispatch_event(struct mlx4_dev *dev, enum mlx4_dev_event type, in mlx4_dispatch_event()
198 int mlx4_register_device(struct mlx4_dev *dev) in mlx4_register_device()
216 void mlx4_unregister_device(struct mlx4_dev *dev) in mlx4_unregister_device()
248 void *mlx4_get_protocol_dev(struct mlx4_dev *dev, enum mlx4_protocol proto, int port) in mlx4_get_protocol_dev()
269 struct devlink_port *mlx4_get_devlink_port(struct mlx4_dev *dev, int port) in mlx4_get_devlink_port()
/linux-6.3-rc2/include/linux/mlx4/
A Ddevice.h857 struct mlx4_dev *dev;
873 struct mlx4_dev { struct
1403 int mlx4_SYNC_TPT(struct mlx4_dev *dev);
1405 int mlx4_test_async(struct mlx4_dev *dev);
1418 int mlx4_get_phys_port_id(struct mlx4_dev *dev);
1430 int mlx4_flow_attach(struct mlx4_dev *dev,
1466 u64 mlx4_read_clock(struct mlx4_dev *dev);
1489 struct mlx4_dev *dev,
1516 void mlx4_mr_hw_put_mpt(struct mlx4_dev *dev,
1525 int mlx4_max_tc(struct mlx4_dev *dev);
[all …]
A Ddriver.h39 struct mlx4_dev;
58 void * (*add) (struct mlx4_dev *dev);
59 void (*remove)(struct mlx4_dev *dev, void *context);
60 void (*event) (struct mlx4_dev *dev, void *context,
62 void * (*get_dev)(struct mlx4_dev *dev, void *context, u8 port);
63 void (*activate)(struct mlx4_dev *dev, void *context);
72 int mlx4_bond(struct mlx4_dev *dev);
73 int mlx4_unbond(struct mlx4_dev *dev);
74 static inline int mlx4_is_bonded(struct mlx4_dev *dev) in mlx4_is_bonded()
79 static inline int mlx4_is_mf_bonded(struct mlx4_dev *dev) in mlx4_is_mf_bonded()
[all …]
A Dcmd.h261 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 …]
A Dqp.h474 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);

Completed in 79 milliseconds

12