Lines Matching refs:mfunc
141 struct mlx4_mfunc *mfunc = in mlx4_gen_slave_eqe() local
143 struct mlx4_priv *priv = container_of(mfunc, struct mlx4_priv, mfunc); in mlx4_gen_slave_eqe()
145 struct mlx4_slave_event_eq *slave_eq = &mfunc->master.slave_eq; in mlx4_gen_slave_eqe()
197 struct mlx4_slave_event_eq *slave_eq = &priv->mfunc.master.slave_eq; in slave_event()
218 queue_work(priv->mfunc.master.comm_wq, in slave_event()
219 &priv->mfunc.master.slave_event_work); in slave_event()
230 !priv->mfunc.master.slave_state[slave].active) in mlx4_slave_event()
258 struct mlx4_slave_state *s_slave = &priv->mfunc.master.slave_state[slave]; in mlx4_gen_pkey_eqe()
314 struct mlx4_slave_state *s_state = priv->mfunc.master.slave_state; in mlx4_get_slave_port_state()
331 struct mlx4_slave_state *s_state = priv->mfunc.master.slave_state; in mlx4_set_slave_port_state()
387 ctx = &priv->mfunc.master.slave_state[slave]; in set_and_calc_slave_port_state()
454 struct mlx4_mfunc *mfunc = in mlx4_master_handle_slave_flr() local
457 container_of(mfunc, struct mlx4_priv, mfunc); in mlx4_master_handle_slave_flr()
459 struct mlx4_slave_state *slave_state = priv->mfunc.master.slave_state; in mlx4_master_handle_slave_flr()
480 spin_lock_irqsave(&priv->mfunc.master.slave_state_lock, flags); in mlx4_master_handle_slave_flr()
483 spin_unlock_irqrestore(&priv->mfunc.master.slave_state_lock, flags); in mlx4_master_handle_slave_flr()
625 s_info = &priv->mfunc.master.vf_oper[i].vport[port].state; in mlx4_eq_int()
667 s_info = &priv->mfunc.master.vf_oper[i].vport[port].state; in mlx4_eq_int()
730 memcpy(&priv->mfunc.master.comm_arm_bit_vector, in mlx4_eq_int()
733 queue_work(priv->mfunc.master.comm_wq, in mlx4_eq_int()
734 &priv->mfunc.master.comm_work); in mlx4_eq_int()
754 spin_lock_irqsave(&priv->mfunc.master.slave_state_lock, flags); in mlx4_eq_int()
756 priv->mfunc.master.slave_state[flr_slave].active = false; in mlx4_eq_int()
757 priv->mfunc.master.slave_state[flr_slave].last_cmd = MLX4_COMM_CMD_FLR; in mlx4_eq_int()
758 priv->mfunc.master.slave_state[flr_slave].is_slave_going_down = 1; in mlx4_eq_int()
760 spin_unlock_irqrestore(&priv->mfunc.master.slave_state_lock, flags); in mlx4_eq_int()
763 queue_work(priv->mfunc.master.comm_wq, in mlx4_eq_int()
764 &priv->mfunc.master.slave_flr_event_work); in mlx4_eq_int()
883 priv->mfunc.master.slave_state[slave].event_eq; in mlx4_MAP_EQ_wrapper()