/linux/drivers/net/ethernet/mellanox/mlx4/ |
A D | pd.c | 49 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() 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() 174 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_bf_alloc() 248 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_bf_free() 287 return mlx4_bitmap_init(&mlx4_priv(dev)->uar_table.bitmap, in mlx4_init_uar_table() [all …]
|
A D | intf.c | 52 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 …]
|
A D | eq.c | 196 struct mlx4_priv *priv = mlx4_priv(dev); in slave_event() 226 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_slave_event() 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() 496 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_eq_int() 851 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_interrupt() 880 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_MAP_EQ_wrapper() 936 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_get_eq_uar() [all …]
|
A D | sense.c | 68 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()
|
A D | cmd.c | 257 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() 515 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_slave_cmd() 580 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_cmd_poll() 662 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_cmd_event() 905 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_MAD_IFC_wrapper() 1664 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_master_process_vhcr() 1940 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_set_default_port_qos() 1957 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_allocate_port_vpps() [all …]
|
A D | main.c | 744 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_how_many_lives_vf() 814 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_is_slave_active() 1450 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_bond() 1478 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_unbond() 1509 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_port_map_set() 1551 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_load_fw() 1586 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_init_cmpt_table() 1645 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_init_icm() 1848 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_free_icms() 1871 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_slave_exit() [all …]
|
A D | catas.c | 101 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_reset_slave() 222 struct mlx4_priv *priv = mlx4_priv(dev); in dump_err_buf() 234 struct mlx4_priv *priv = from_timer(priv, t, catas_err.timer); in poll_catas() 274 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_start_catas_poll() 301 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_stop_catas_poll()
|
A D | cq.c | 109 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()
|
A D | srq.c | 45 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()
|
A D | qp.c | 51 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 …]
|
A D | resource_tracker.c | 311 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() 885 struct mlx4_priv *priv = mlx4_priv(dev); in find_res() 1002 struct mlx4_priv *priv = mlx4_priv(dev); in handle_unexisting_counter() 1234 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_calc_vf_counters() 1283 struct mlx4_priv *priv = mlx4_priv(dev); in add_res_range() [all …]
|
A D | port.c | 152 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() 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() 1173 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_reset_roce_port_gids() 1251 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_en_set_port_mtu() 1283 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_en_set_port_user_mtu() 1315 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_en_set_port_global_pause() 1335 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_common_set_port() 1860 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_get_slave_from_roce_gid() [all …]
|
A D | mr.c | 152 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()
|
A D | mcg.c | 133 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() 1108 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_qp_attach_common() 1217 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_qp_detach_common() [all …]
|
A D | crdump.c | 170 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()
|
A D | fw.c | 259 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()
|
A D | profile.c | 74 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_make_profile()
|
A D | alloc.c | 717 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_db_alloc() 747 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_db_free()
|
A D | mlx4.h | 653 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()
|