Home
last modified time | relevance | path

Searched refs:mlx4_priv (Results 1 – 19 of 19) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/mellanox/mlx4/
Dintf.c75 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_adev_init()
93 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_adev_cleanup()
103 struct mlx4_priv *priv = mlx4_priv(mlx4_adev->mdev); in adev_release()
112 struct mlx4_priv *priv = mlx4_priv(dev); in add_adev()
164 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_do_bond()
243 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_dispatch_event()
251 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_register_event_notifier()
260 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_unregister_event_notifier()
268 struct mlx4_priv *priv = mlx4_priv(dev); in add_drivers()
299 struct mlx4_priv *priv = mlx4_priv(dev); in delete_drivers()
[all …]
Dpd.c49 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_pd_alloc()
61 mlx4_bitmap_free(&mlx4_priv(dev)->pd_bitmap, pdn, MLX4_USE_RR); in mlx4_pd_free()
67 struct mlx4_priv *priv = mlx4_priv(dev); in __mlx4_xrcd_alloc()
98 mlx4_bitmap_free(&mlx4_priv(dev)->xrcd_bitmap, xrcdn, MLX4_USE_RR); in __mlx4_xrcd_free()
120 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_init_pd_table()
129 mlx4_bitmap_cleanup(&mlx4_priv(dev)->pd_bitmap); in mlx4_cleanup_pd_table()
134 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_init_xrcd_table()
142 mlx4_bitmap_cleanup(&mlx4_priv(dev)->xrcd_bitmap); in mlx4_cleanup_xrcd_table()
149 uar->index = mlx4_bitmap_alloc(&mlx4_priv(dev)->uar_table.bitmap); in mlx4_uar_alloc()
168 mlx4_bitmap_free(&mlx4_priv(dev)->uar_table.bitmap, uar->index, MLX4_USE_RR); in mlx4_uar_free()
[all …]
Deq.c143 struct mlx4_priv *priv = container_of(mfunc, struct mlx4_priv, mfunc); in mlx4_gen_slave_eqe()
196 struct mlx4_priv *priv = mlx4_priv(dev); in slave_event()
226 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_slave_event()
237 static void mlx4_set_eq_affinity_hint(struct mlx4_priv *priv, int vec) in mlx4_set_eq_affinity_hint()
257 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_gen_pkey_eqe()
313 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_get_slave_port_state()
330 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_set_slave_port_state()
370 struct mlx4_priv *priv = mlx4_priv(dev); in set_and_calc_slave_port_state()
456 struct mlx4_priv *priv = in mlx4_master_handle_slave_flr()
457 container_of(mfunc, struct mlx4_priv, mfunc); in mlx4_master_handle_slave_flr()
[all …]
Dsense.c68 struct mlx4_sense *sense = &mlx4_priv(dev)->sense; in mlx4_do_sense_ports()
97 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_sense_port()
117 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_start_sense()
129 cancel_delayed_work_sync(&mlx4_priv(dev)->sense.sense_poll); in mlx4_stop_sense()
134 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_sense_init()
Dcatas.c101 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_reset_slave()
212 devlink = priv_to_devlink(mlx4_priv(dev)); in mlx4_handle_error_state()
227 struct mlx4_priv *priv = mlx4_priv(dev); in dump_err_buf()
239 struct mlx4_priv *priv = from_timer(priv, t, catas_err.timer); in poll_catas()
279 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_start_catas_poll()
306 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_stop_catas_poll()
Dmain.c192 struct mlx4_priv *priv = devlink_priv(devlink); in mlx4_devlink_crdump_snapshot_get()
203 struct mlx4_priv *priv = devlink_priv(devlink); in mlx4_devlink_crdump_snapshot_set()
570 if (mlx4_priv(dev)->pci_dev_data & MLX4_PCI_DEV_FORCE_SENSE_PORT) in mlx4_dev_cap()
611 mlx4_priv(dev)->sense.sense_allowed[i] = in mlx4_dev_cap()
621 if (mlx4_priv(dev)->sense.sense_allowed[i] && dev->caps.default_sense[i]) { in mlx4_dev_cap()
739 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_how_many_lives_vf()
776 struct mlx4_priv *priv = container_of(dev, struct mlx4_priv, dev); in mlx4_sync_pkey_table()
787 struct mlx4_priv *priv = container_of(dev, struct mlx4_priv, dev); in mlx4_put_slave_node_guid()
798 struct mlx4_priv *priv = container_of(dev, struct mlx4_priv, dev); in mlx4_get_slave_node_guid()
809 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_is_slave_active()
[all …]
Dcmd.c257 struct mlx4_priv *priv = mlx4_priv(dev); in comm_pending()
265 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_comm_cmd_post()
291 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_comm_cmd_poll()
341 struct mlx4_cmd *cmd = &mlx4_priv(dev)->cmd; in mlx4_comm_cmd_wait()
413 if (mlx4_priv(dev)->cmd.use_events) in mlx4_comm_cmd()
425 status = readl(mlx4_priv(dev)->cmd.hcr + HCR_STATUS_OFFSET); in cmd_pending()
428 (mlx4_priv(dev)->cmd.toggle == in cmd_pending()
436 struct mlx4_cmd *cmd = &mlx4_priv(dev)->cmd; in mlx4_cmd_post()
515 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_slave_cmd()
580 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_cmd_poll()
[all …]
Dcq.c109 cq = radix_tree_lookup(&mlx4_priv(dev)->cq_table.tree, in mlx4_cq_completion()
128 struct mlx4_cq_table *cq_table = &mlx4_priv(dev)->cq_table; in mlx4_cq_event()
219 struct mlx4_priv *priv = mlx4_priv(dev); in __mlx4_cq_alloc_icm()
266 struct mlx4_priv *priv = mlx4_priv(dev); in __mlx4_cq_free_icm()
348 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_cq_alloc()
438 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_cq_free()
465 struct mlx4_cq_table *cq_table = &mlx4_priv(dev)->cq_table; in mlx4_init_cq_table()
481 mlx4_bitmap_cleanup(&mlx4_priv(dev)->cq_table.bitmap); in mlx4_cleanup_cq_table()
Dsrq.c45 struct mlx4_srq_table *srq_table = &mlx4_priv(dev)->srq_table; in mlx4_srq_event()
95 struct mlx4_srq_table *srq_table = &mlx4_priv(dev)->srq_table; in __mlx4_srq_alloc_icm()
140 struct mlx4_srq_table *srq_table = &mlx4_priv(dev)->srq_table; in __mlx4_srq_free_icm()
165 struct mlx4_srq_table *srq_table = &mlx4_priv(dev)->srq_table; in mlx4_srq_alloc()
224 struct mlx4_srq_table *srq_table = &mlx4_priv(dev)->srq_table; in mlx4_srq_free()
274 struct mlx4_srq_table *srq_table = &mlx4_priv(dev)->srq_table; in mlx4_init_srq_table()
289 mlx4_bitmap_cleanup(&mlx4_priv(dev)->srq_table.bitmap); in mlx4_cleanup_srq_table()
294 struct mlx4_srq_table *srq_table = &mlx4_priv(dev)->srq_table; in mlx4_srq_lookup()
Dqp.c58 struct mlx4_qp_table *qp_table = &mlx4_priv(dev)->qp_table; in mlx4_qp_event()
138 struct mlx4_priv *priv = mlx4_priv(dev); in __mlx4_qp_modify()
230 struct mlx4_priv *priv = mlx4_priv(dev); in __mlx4_qp_reserve_range()
282 struct mlx4_priv *priv = mlx4_priv(dev); in __mlx4_qp_release_range()
315 struct mlx4_priv *priv = mlx4_priv(dev); in __mlx4_qp_alloc_icm()
372 struct mlx4_priv *priv = mlx4_priv(dev); in __mlx4_qp_free_icm()
398 struct mlx4_qp_table *qp_table = &mlx4_priv(dev)->qp_table; in mlx4_qp_lookup()
411 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_qp_alloc()
520 struct mlx4_qp_table *qp_table = &mlx4_priv(dev)->qp_table; in mlx4_qp_remove()
555 struct mlx4_qp_table *qp_table = &mlx4_priv(dev)->qp_table; in mlx4_create_zones()
[all …]
Dresource_tracker.c311 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_grant_resource()
382 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_release_resource()
444 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_init_quotas()
503 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_init_resource_tracker()
658 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_free_resource_tracker()
697 struct mlx4_priv *priv = mlx4_priv(dev); in update_pkey_index()
755 struct mlx4_priv *priv; in update_vport_qp_param()
760 priv = mlx4_priv(dev); in update_vport_qp_param()
885 struct mlx4_priv *priv = mlx4_priv(dev); in find_res()
1002 struct mlx4_priv *priv = mlx4_priv(dev); in handle_unexisting_counter()
[all …]
Dport.c152 struct mlx4_port_info *info = &mlx4_priv(dev)->port[port]; in mlx4_find_cached_mac()
184 struct mlx4_port_info *info = &mlx4_priv(dev)->port[port]; in __mlx4_register_mac()
191 struct mlx4_mac_table *dup_table = &mlx4_priv(dev)->port[dup_port].mac_table; in __mlx4_register_mac()
386 struct mlx4_mac_table *dup_table = &mlx4_priv(dev)->port[dup_port].mac_table; in __mlx4_unregister_mac()
392 info = &mlx4_priv(dev)->port[port]; in __mlx4_unregister_mac()
476 struct mlx4_port_info *info = &mlx4_priv(dev)->port[port]; in __mlx4_replace_mac()
482 struct mlx4_mac_table *dup_table = &mlx4_priv(dev)->port[dup_port].mac_table; in __mlx4_replace_mac()
560 struct mlx4_vlan_table *table = &mlx4_priv(dev)->port[port].vlan_table; in mlx4_find_cached_vlan()
580 struct mlx4_vlan_table *table = &mlx4_priv(dev)->port[port].vlan_table; in __mlx4_register_vlan()
586 struct mlx4_vlan_table *dup_table = &mlx4_priv(dev)->port[dup_port].vlan_table; in __mlx4_register_vlan()
[all …]
Dmr.c152 struct mlx4_mr_table *mr_table = &mlx4_priv(dev)->mr_table; in __mlx4_alloc_mtt_range()
221 struct mlx4_mr_table *mr_table = &mlx4_priv(dev)->mr_table; in __mlx4_free_mtt_range()
314 &mlx4_priv(dev)->mr_table.dmpt_table, in mlx4_mr_hw_get_mpt()
441 struct mlx4_priv *priv = mlx4_priv(dev); in __mlx4_mpt_reserve()
462 struct mlx4_priv *priv = mlx4_priv(dev); in __mlx4_mpt_release()
485 struct mlx4_mr_table *mr_table = &mlx4_priv(dev)->mr_table; in __mlx4_mpt_alloc_icm()
506 struct mlx4_mr_table *mr_table = &mlx4_priv(dev)->mr_table; in __mlx4_mpt_free_icm()
695 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_write_mtt_chunk()
909 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_init_mr_table()
957 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_cleanup_mr_table()
Dmcg.c133 s_steer = &mlx4_priv(dev)->steer[port - 1]; in get_promisc_qp()
164 s_steer = &mlx4_priv(dev)->steer[port - 1]; in new_steering_entry()
251 s_steer = &mlx4_priv(dev)->steer[port - 1]; in existing_steering_entry()
299 s_steer = &mlx4_priv(dev)->steer[port - 1]; in check_duplicate_entry()
380 s_steer = &mlx4_priv(dev)->steer[port - 1]; in can_remove_steering_entry()
432 struct mlx4_priv *priv = mlx4_priv(dev); in add_promisc_qp()
437 s_steer = &mlx4_priv(dev)->steer[port - 1]; in add_promisc_qp()
551 struct mlx4_priv *priv = mlx4_priv(dev); in remove_promisc_qp()
567 s_steer = &mlx4_priv(dev)->steer[port - 1]; in remove_promisc_qp()
1108 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_qp_attach_common()
[all …]
Dcrdump.c170 struct devlink *devlink = priv_to_devlink(mlx4_priv(dev)); in mlx4_crdump_collect()
221 struct devlink *devlink = priv_to_devlink(mlx4_priv(dev)); in mlx4_crdump_init()
Dfw.c259 static int mlx4_activate_vst_qinq(struct mlx4_priv *priv, int slave, int port) in mlx4_activate_vst_qinq()
290 static int mlx4_handle_vst_qinq(struct mlx4_priv *priv, int slave, int port) in mlx4_handle_vst_qinq()
331 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_QUERY_FUNC_CAP_wrapper()
1412 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_QUERY_PORT_wrapper()
1620 struct mlx4_fw *fw = &mlx4_priv(dev)->fw; in mlx4_QUERY_FW()
1621 struct mlx4_cmd *cmd = &mlx4_priv(dev)->cmd; in mlx4_QUERY_FW()
2245 struct mlx4_priv *priv = mlx4_priv(dev); in check_qp0_state()
2259 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_INIT_PORT_wrapper()
2357 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_CLOSE_PORT_wrapper()
2704 struct mlx4_priv *priv = container_of(work, struct mlx4_priv, in mlx4_opreq_action()
Dprofile.c74 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_make_profile()
Dalloc.c717 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_db_alloc()
747 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_db_free()
Dmlx4.h655 struct mlx4_priv *priv;
882 struct mlx4_priv { struct
937 static inline struct mlx4_priv *mlx4_priv(struct mlx4_dev *dev) in mlx4_priv() argument
939 return container_of(dev, struct mlx4_priv, dev); in mlx4_priv()
1409 return &mlx4_priv(dev)->mfunc.master.res_tracker.lock; in mlx4_tlock()