Lines Matching refs:slave_eq
127 static struct mlx4_eqe *next_slave_event_eqe(struct mlx4_slave_event_eq *slave_eq) in next_slave_event_eqe() argument
130 &slave_eq->event_eqe[slave_eq->cons & (SLAVE_EVENT_EQ_SIZE - 1)]; in next_slave_event_eqe()
132 !!(slave_eq->cons & SLAVE_EVENT_EQ_SIZE)) ? in next_slave_event_eqe()
145 struct mlx4_slave_event_eq *slave_eq = &mfunc->master.slave_eq; in mlx4_gen_slave_eqe() local
150 for (eqe = next_slave_event_eqe(slave_eq); eqe; in mlx4_gen_slave_eqe()
151 eqe = next_slave_event_eqe(slave_eq)) { in mlx4_gen_slave_eqe()
189 ++slave_eq->cons; in mlx4_gen_slave_eqe()
197 struct mlx4_slave_event_eq *slave_eq = &priv->mfunc.master.slave_eq; in slave_event() local
201 spin_lock_irqsave(&slave_eq->event_lock, flags); in slave_event()
202 s_eqe = &slave_eq->event_eqe[slave_eq->prod & (SLAVE_EVENT_EQ_SIZE - 1)]; in slave_event()
204 (!!(slave_eq->prod & SLAVE_EVENT_EQ_SIZE))) { in slave_event()
207 spin_unlock_irqrestore(&slave_eq->event_lock, flags); in slave_event()
215 s_eqe->owner = !!(slave_eq->prod & SLAVE_EVENT_EQ_SIZE) ? 0x0 : 0x80; in slave_event()
216 ++slave_eq->prod; in slave_event()
220 spin_unlock_irqrestore(&slave_eq->event_lock, flags); in slave_event()