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()
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()
662 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_cmd_event()
681 struct mlx4_cmd *cmd = &mlx4_priv(dev)->cmd; in mlx4_cmd_wait()
787 down_read(&mlx4_priv(dev)->cmd.switch_sem); in __mlx4_cmd()
788 if (mlx4_priv(dev)->cmd.use_events) in __mlx4_cmd()
797 up_read(&mlx4_priv(dev)->cmd.switch_sem); in __mlx4_cmd()
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()
1841 static int mlx4_master_immediate_activate_vlan_qos(struct mlx4_priv *priv, in mlx4_master_immediate_activate_vlan_qos()
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()
1995 static int mlx4_master_activate_admin_state(struct mlx4_priv *priv, int slave) in mlx4_master_activate_admin_state()
2059 static void mlx4_master_deactivate_admin_state(struct mlx4_priv *priv, int slave) in mlx4_master_deactivate_admin_state()
2087 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_master_do_cmd()
2230 struct mlx4_priv *priv = in mlx4_master_comm_channel()
2231 container_of(mfunc, struct mlx4_priv, mfunc); in mlx4_master_comm_channel()
2291 struct mlx4_priv *priv = mlx4_priv(dev); in sync_toggles()
2347 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_multi_func_init()
2496 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_cmd_init()
2550 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_report_internal_err_comm_event()
2574 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_multi_func_cleanup()
2595 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_cmd_cleanup()
2623 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_cmd_use_events()
2671 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_cmd_use_polling()
2699 mailbox->buf = dma_pool_zalloc(mlx4_priv(dev)->cmd.pool, GFP_KERNEL, in mlx4_alloc_cmd_mailbox()
2716 dma_pool_free(mlx4_priv(dev)->cmd.pool, mailbox->buf, mailbox->dma); in mlx4_free_cmd_mailbox()
2750 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_cmd_wake_completions()
2878 static int mlx4_set_vport_qos(struct mlx4_priv *priv, int slave, int port, in mlx4_set_vport_qos()
2928 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_is_vf_vst_and_prio_qos()
2977 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_set_vf_mac()
3010 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_set_vf_vlan()
3085 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_set_vf_rate()
3150 struct mlx4_priv *priv; in mlx4_get_slave_default_vlan()
3152 priv = mlx4_priv(dev); in mlx4_get_slave_default_vlan()
3169 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_set_vf_spoofchk()
3199 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_get_vf_config()
3240 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_set_vf_link_state()
3374 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_vf_smi_enabled()
3387 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_vf_get_enable_smi_admin()
3404 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_vf_set_enable_smi_admin()