Lines Matching defs:master
296 /* First, verify that the master reports correct status */
957 slave_cap_mask = priv->mfunc.master.slave_state[slave].ib_cap_mask[port];
1684 priv->mfunc.master.slave_state[slave].vhcr_dma,
1821 priv->mfunc.master.slave_state[slave].vhcr_dma,
1829 mlx4_GEN_EQE(dev, slave, &priv->mfunc.master.cmd_eqe))
1851 vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port];
1852 vp_admin = &priv->mfunc.master.vf_admin[slave].vport[port];
1861 if (!(priv->mfunc.master.slave_state[slave].active &&
1932 queue_work(priv->mfunc.master.comm_wq, &work->work);
1942 port_qos_ctl = &priv->mfunc.master.qos_ctl[port];
1965 port_qos = &priv->mfunc.master.qos_ctl[port];
2001 &priv->mfunc.master.slave_state[slave];
2012 priv->mfunc.master.vf_oper[slave].smi_enabled[port] =
2013 priv->mfunc.master.vf_admin[slave].enable_smi[port];
2014 vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port];
2015 vp_admin = &priv->mfunc.master.vf_admin[slave].vport[port];
2079 priv->mfunc.master.vf_oper[slave].smi_enabled[port] =
2081 vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port];
2099 struct mlx4_slave_state *slave_state = priv->mfunc.master.slave_state;
2147 priv->mfunc.master.slave_state[slave].cookie = 0;
2189 spin_lock_irqsave(&priv->mfunc.master.slave_state_lock, flags);
2194 spin_unlock_irqrestore(&priv->mfunc.master.slave_state_lock, flags);
2219 spin_lock_irqsave(&priv->mfunc.master.slave_state_lock, flags);
2222 spin_unlock_irqrestore(&priv->mfunc.master.slave_state_lock, flags);
2232 /* master command processing */
2235 struct mlx4_mfunc_master_ctx *master =
2240 container_of(master, struct mlx4_mfunc, master);
2253 bit_vec = master->comm_arm_bit_vector;
2267 if (master->slave_state[slave].comm_toggle
2271 master->slave_state[slave].comm_toggle);
2272 master->slave_state[slave].comm_toggle =
2371 priv->mfunc.master.slave_state =
2375 if (!priv->mfunc.master.slave_state)
2378 priv->mfunc.master.vf_admin =
2382 if (!priv->mfunc.master.vf_admin)
2385 priv->mfunc.master.vf_oper =
2389 if (!priv->mfunc.master.vf_oper)
2393 vf_admin = &priv->mfunc.master.vf_admin[i];
2394 vf_oper = &priv->mfunc.master.vf_oper[i];
2395 s_state = &priv->mfunc.master.slave_state[i];
2398 mutex_init(&priv->mfunc.master.gen_eqe_mutex[i]);
2444 memset(&priv->mfunc.master.cmd_eqe, 0, sizeof(struct mlx4_eqe));
2445 priv->mfunc.master.cmd_eqe.type = MLX4_EVENT_TYPE_CMD;
2446 INIT_WORK(&priv->mfunc.master.comm_work,
2448 INIT_WORK(&priv->mfunc.master.slave_event_work,
2450 INIT_WORK(&priv->mfunc.master.slave_flr_event_work,
2452 spin_lock_init(&priv->mfunc.master.slave_state_lock);
2453 spin_lock_init(&priv->mfunc.master.slave_eq.event_lock);
2454 priv->mfunc.master.comm_wq =
2456 if (!priv->mfunc.master.comm_wq)
2472 flush_workqueue(priv->mfunc.master.comm_wq);
2473 destroy_workqueue(priv->mfunc.master.comm_wq);
2477 kfree(priv->mfunc.master.slave_state[i].vlan_filter[port]);
2479 kfree(priv->mfunc.master.vf_oper);
2481 kfree(priv->mfunc.master.vf_admin);
2483 kfree(priv->mfunc.master.slave_state);
2579 flush_workqueue(priv->mfunc.master.comm_wq);
2580 destroy_workqueue(priv->mfunc.master.comm_wq);
2583 kfree(priv->mfunc.master.slave_state[i].vlan_filter[port]);
2585 kfree(priv->mfunc.master.slave_state);
2586 kfree(priv->mfunc.master.vf_admin);
2587 kfree(priv->mfunc.master.vf_oper);
2889 port_qos = &priv->mfunc.master.qos_ctl[port];
2936 info = &priv->mfunc.master.qos_ctl[port];
2994 s_info = &priv->mfunc.master.vf_admin[slave].vport[port];
3041 slave_state = &priv->mfunc.master.slave_state[slave];
3048 vf_admin = &priv->mfunc.master.vf_admin[slave].vport[port];
3049 vf_oper = &priv->mfunc.master.vf_oper[slave].vport[port];
3103 vf_admin = &priv->mfunc.master.vf_admin[slave].vport[port];
3136 if (priv->mfunc.master.slave_state[slave].active &&
3156 vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port];
3185 s_info = &priv->mfunc.master.vf_admin[slave].vport[port];
3212 s_info = &priv->mfunc.master.vf_admin[slave].vport[port];
3274 s_info = &priv->mfunc.master.vf_admin[slave].vport[port];
3382 return priv->mfunc.master.vf_oper[slave].smi_enabled[port] ==
3398 return priv->mfunc.master.vf_admin[slave].enable_smi[port] ==
3427 priv->mfunc.master.vf_admin[slave].enable_smi[port] = enabled;