Home
last modified time | relevance | path

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

/drivers/net/ethernet/mellanox/mlx4/
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 …]
Dintf.c52 static void mlx4_add_device(struct mlx4_interface *intf, struct mlx4_priv *priv) in mlx4_add_device()
74 static void mlx4_remove_device(struct mlx4_interface *intf, struct mlx4_priv *priv) in mlx4_remove_device()
92 struct mlx4_priv *priv; in mlx4_register_interface()
117 struct mlx4_priv *priv; in mlx4_unregister_interface()
132 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_do_bond()
185 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_dispatch_event()
200 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_register_device()
218 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_unregister_device()
229 swab32(readl(&mlx4_priv(dev)->mfunc.comm->slave_read)); in mlx4_unregister_device()
250 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_get_protocol_dev()
[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()
Dmain.c198 struct mlx4_priv *priv = devlink_priv(devlink); in mlx4_devlink_crdump_snapshot_get()
208 struct mlx4_priv *priv = devlink_priv(devlink); in mlx4_devlink_crdump_snapshot_set()
575 if (mlx4_priv(dev)->pci_dev_data & MLX4_PCI_DEV_FORCE_SENSE_PORT) in mlx4_dev_cap()
616 mlx4_priv(dev)->sense.sense_allowed[i] = in mlx4_dev_cap()
626 if (mlx4_priv(dev)->sense.sense_allowed[i] && dev->caps.default_sense[i]) { in mlx4_dev_cap()
744 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_how_many_lives_vf()
781 struct mlx4_priv *priv = container_of(dev, struct mlx4_priv, dev); in mlx4_sync_pkey_table()
792 struct mlx4_priv *priv = container_of(dev, struct mlx4_priv, dev); in mlx4_put_slave_node_guid()
803 struct mlx4_priv *priv = container_of(dev, struct mlx4_priv, dev); in mlx4_get_slave_node_guid()
814 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_is_slave_active()
[all …]
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()
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.c51 struct mlx4_qp_table *qp_table = &mlx4_priv(dev)->qp_table; in mlx4_qp_event()
133 struct mlx4_priv *priv = mlx4_priv(dev); in __mlx4_qp_modify()
225 struct mlx4_priv *priv = mlx4_priv(dev); in __mlx4_qp_reserve_range()
277 struct mlx4_priv *priv = mlx4_priv(dev); in __mlx4_qp_release_range()
310 struct mlx4_priv *priv = mlx4_priv(dev); in __mlx4_qp_alloc_icm()
367 struct mlx4_priv *priv = mlx4_priv(dev); in __mlx4_qp_free_icm()
393 struct mlx4_qp_table *qp_table = &mlx4_priv(dev)->qp_table; in mlx4_qp_lookup()
406 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_qp_alloc()
515 struct mlx4_qp_table *qp_table = &mlx4_priv(dev)->qp_table; in mlx4_qp_remove()
551 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.h653 struct mlx4_priv *priv;
875 struct mlx4_priv { struct
930 static inline struct mlx4_priv *mlx4_priv(struct mlx4_dev *dev) in mlx4_priv() argument
932 return container_of(dev, struct mlx4_priv, dev); in mlx4_priv()
1399 return &mlx4_priv(dev)->mfunc.master.res_tracker.lock; in mlx4_tlock()