Lines Matching refs:mlx4_priv
257 struct mlx4_priv *priv = mlx4_priv(dev); in comm_pending()
265 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_comm_cmd_post()
292 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_comm_cmd_poll()
342 struct mlx4_cmd *cmd = &mlx4_priv(dev)->cmd; in mlx4_comm_cmd_wait()
414 if (mlx4_priv(dev)->cmd.use_events) in mlx4_comm_cmd()
426 status = readl(mlx4_priv(dev)->cmd.hcr + HCR_STATUS_OFFSET); in cmd_pending()
429 (mlx4_priv(dev)->cmd.toggle == in cmd_pending()
437 struct mlx4_cmd *cmd = &mlx4_priv(dev)->cmd; in mlx4_cmd_post()
522 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_slave_cmd()
587 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_cmd_poll()
669 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_cmd_event()
688 struct mlx4_cmd *cmd = &mlx4_priv(dev)->cmd; in mlx4_cmd_wait()
794 down_read(&mlx4_priv(dev)->cmd.switch_sem); in __mlx4_cmd()
795 if (mlx4_priv(dev)->cmd.use_events) in __mlx4_cmd()
804 up_read(&mlx4_priv(dev)->cmd.switch_sem); in __mlx4_cmd()
912 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_MAD_IFC_wrapper()
1671 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_master_process_vhcr()
1848 static int mlx4_master_immediate_activate_vlan_qos(struct mlx4_priv *priv, in mlx4_master_immediate_activate_vlan_qos()
1947 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_set_default_port_qos()
1964 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_allocate_port_vpps()
2002 static int mlx4_master_activate_admin_state(struct mlx4_priv *priv, int slave) in mlx4_master_activate_admin_state()
2071 static void mlx4_master_deactivate_admin_state(struct mlx4_priv *priv, int slave) in mlx4_master_deactivate_admin_state()
2105 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_master_do_cmd()
2249 struct mlx4_priv *priv = in mlx4_master_comm_channel()
2250 container_of(mfunc, struct mlx4_priv, mfunc); in mlx4_master_comm_channel()
2301 struct mlx4_priv *priv = mlx4_priv(dev); in sync_toggles()
2357 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_multi_func_init()
2506 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_cmd_init()
2560 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_report_internal_err_comm_event()
2588 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_multi_func_cleanup()
2610 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_cmd_cleanup()
2638 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_cmd_use_events()
2682 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_cmd_use_polling()
2705 mailbox->buf = dma_pool_zalloc(mlx4_priv(dev)->cmd.pool, GFP_KERNEL, in mlx4_alloc_cmd_mailbox()
2722 dma_pool_free(mlx4_priv(dev)->cmd.pool, mailbox->buf, mailbox->dma); in mlx4_free_cmd_mailbox()
2756 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_cmd_wake_completions()
2884 static int mlx4_set_vport_qos(struct mlx4_priv *priv, int slave, int port, in mlx4_set_vport_qos()
2934 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_is_vf_vst_and_prio_qos()
2983 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_set_vf_mac()
3016 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_set_vf_vlan()
3091 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_set_vf_rate()
3156 struct mlx4_priv *priv; in mlx4_get_slave_default_vlan()
3158 priv = mlx4_priv(dev); in mlx4_get_slave_default_vlan()
3175 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_set_vf_spoofchk()
3205 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_get_vf_config()
3246 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_set_vf_link_state()
3380 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_vf_smi_enabled()
3393 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_vf_get_enable_smi_admin()
3410 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_vf_set_enable_smi_admin()