Lines Matching refs:master

296 	/* First, verify that the master reports correct status */
967 slave_cap_mask = priv->mfunc.master.slave_state[slave].ib_cap_mask[port];
1698 priv->mfunc.master.slave_state[slave].vhcr_dma,
1827 priv->mfunc.master.slave_state[slave].vhcr_dma,
1835 mlx4_GEN_EQE(dev, slave, &priv->mfunc.master.cmd_eqe))
1857 vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port];
1858 vp_admin = &priv->mfunc.master.vf_admin[slave].vport[port];
1866 if (!(priv->mfunc.master.slave_state[slave].active &&
1934 queue_work(priv->mfunc.master.comm_wq, &work->work);
1944 port_qos_ctl = &priv->mfunc.master.qos_ctl[port];
1967 port_qos = &priv->mfunc.master.qos_ctl[port];
2003 &priv->mfunc.master.slave_state[slave];
2014 priv->mfunc.master.vf_oper[slave].smi_enabled[port] =
2015 priv->mfunc.master.vf_admin[slave].enable_smi[port];
2016 vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port];
2017 vp_admin = &priv->mfunc.master.vf_admin[slave].vport[port];
2080 priv->mfunc.master.vf_oper[slave].smi_enabled[port] =
2082 vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port];
2100 struct mlx4_slave_state *slave_state = priv->mfunc.master.slave_state;
2148 priv->mfunc.master.slave_state[slave].cookie = 0;
2190 spin_lock_irqsave(&priv->mfunc.master.slave_state_lock, flags);
2195 spin_unlock_irqrestore(&priv->mfunc.master.slave_state_lock, flags);
2221 spin_lock_irqsave(&priv->mfunc.master.slave_state_lock, flags);
2224 spin_unlock_irqrestore(&priv->mfunc.master.slave_state_lock, flags);
2234 /* master command processing */
2237 struct mlx4_mfunc_master_ctx *master =
2242 container_of(master, struct mlx4_mfunc, master);
2255 bit_vec = master->comm_arm_bit_vector;
2269 if (master->slave_state[slave].comm_toggle
2273 master->slave_state[slave].comm_toggle);
2274 master->slave_state[slave].comm_toggle =
2362 priv->mfunc.master.slave_state =
2365 if (!priv->mfunc.master.slave_state)
2368 priv->mfunc.master.vf_admin =
2371 if (!priv->mfunc.master.vf_admin)
2374 priv->mfunc.master.vf_oper =
2377 if (!priv->mfunc.master.vf_oper)
2381 vf_admin = &priv->mfunc.master.vf_admin[i];
2382 vf_oper = &priv->mfunc.master.vf_oper[i];
2383 s_state = &priv->mfunc.master.slave_state[i];
2386 mutex_init(&priv->mfunc.master.gen_eqe_mutex[i]);
2433 memset(&priv->mfunc.master.cmd_eqe, 0, sizeof(struct mlx4_eqe));
2434 priv->mfunc.master.cmd_eqe.type = MLX4_EVENT_TYPE_CMD;
2435 INIT_WORK(&priv->mfunc.master.comm_work,
2437 INIT_WORK(&priv->mfunc.master.slave_event_work,
2439 INIT_WORK(&priv->mfunc.master.slave_flr_event_work,
2441 spin_lock_init(&priv->mfunc.master.slave_state_lock);
2442 spin_lock_init(&priv->mfunc.master.slave_eq.event_lock);
2443 priv->mfunc.master.comm_wq =
2445 if (!priv->mfunc.master.comm_wq)
2461 flush_workqueue(priv->mfunc.master.comm_wq);
2462 destroy_workqueue(priv->mfunc.master.comm_wq);
2466 kfree(priv->mfunc.master.slave_state[i].vlan_filter[port]);
2468 kfree(priv->mfunc.master.vf_oper);
2470 kfree(priv->mfunc.master.vf_admin);
2472 kfree(priv->mfunc.master.slave_state);
2573 flush_workqueue(priv->mfunc.master.comm_wq);
2574 destroy_workqueue(priv->mfunc.master.comm_wq);
2577 kfree(priv->mfunc.master.slave_state[i].vlan_filter[port]);
2579 kfree(priv->mfunc.master.slave_state);
2580 kfree(priv->mfunc.master.vf_admin);
2581 kfree(priv->mfunc.master.vf_oper);
2883 port_qos = &priv->mfunc.master.qos_ctl[port];
2930 info = &priv->mfunc.master.qos_ctl[port];
2985 s_info = &priv->mfunc.master.vf_admin[slave].vport[port];
3026 slave_state = &priv->mfunc.master.slave_state[slave];
3033 vf_admin = &priv->mfunc.master.vf_admin[slave].vport[port];
3034 vf_oper = &priv->mfunc.master.vf_oper[slave].vport[port];
3088 vf_admin = &priv->mfunc.master.vf_admin[slave].vport[port];
3121 if (priv->mfunc.master.slave_state[slave].active &&
3141 vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port];
3169 s_info = &priv->mfunc.master.vf_admin[slave].vport[port];
3240 return priv->mfunc.master.vf_oper[slave].smi_enabled[port] ==
3256 return priv->mfunc.master.vf_admin[slave].enable_smi[port] ==
3285 priv->mfunc.master.vf_admin[slave].enable_smi[port] = enabled;