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()
2231 struct mlx4_priv *priv = in mlx4_master_comm_channel()
2232 container_of(mfunc, struct mlx4_priv, mfunc); in mlx4_master_comm_channel()
2292 struct mlx4_priv *priv = mlx4_priv(dev); in sync_toggles()
2348 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_multi_func_init()
2497 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_cmd_init()
2551 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_report_internal_err_comm_event()
2575 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_multi_func_cleanup()
2596 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_cmd_cleanup()
2624 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_cmd_use_events()
2672 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_cmd_use_polling()
2700 mailbox->buf = dma_pool_zalloc(mlx4_priv(dev)->cmd.pool, GFP_KERNEL, in mlx4_alloc_cmd_mailbox()
2717 dma_pool_free(mlx4_priv(dev)->cmd.pool, mailbox->buf, mailbox->dma); in mlx4_free_cmd_mailbox()
2751 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_cmd_wake_completions()
2879 static int mlx4_set_vport_qos(struct mlx4_priv *priv, int slave, int port, in mlx4_set_vport_qos()
2929 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_is_vf_vst_and_prio_qos()
2978 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_set_vf_mac()
3011 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_set_vf_vlan()
3086 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_set_vf_rate()
3151 struct mlx4_priv *priv; in mlx4_get_slave_default_vlan()
3153 priv = mlx4_priv(dev); in mlx4_get_slave_default_vlan()
3170 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_set_vf_spoofchk()
3200 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_get_vf_config()
3241 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_set_vf_link_state()
3375 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_vf_smi_enabled()
3388 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_vf_get_enable_smi_admin()
3405 struct mlx4_priv *priv = mlx4_priv(dev); in mlx4_vf_set_enable_smi_admin()