Lines Matching full:private
100 struct eadm_private *private = from_timer(private, t, timer); in eadm_subchannel_timeout() local
101 struct subchannel *sch = private->sch; in eadm_subchannel_timeout()
113 struct eadm_private *private = get_eadm_private(sch); in eadm_subchannel_set_timeout() local
116 del_timer(&private->timer); in eadm_subchannel_set_timeout()
118 mod_timer(&private->timer, jiffies + expires); in eadm_subchannel_set_timeout()
123 struct eadm_private *private = get_eadm_private(sch); in eadm_subchannel_irq() local
142 if (private->state != EADM_BUSY) { in eadm_subchannel_irq()
145 private->state = EADM_NOT_OPER; in eadm_subchannel_irq()
150 private->state = EADM_IDLE; in eadm_subchannel_irq()
152 if (private->completion) in eadm_subchannel_irq()
153 complete(private->completion); in eadm_subchannel_irq()
158 struct eadm_private *private; in eadm_get_idle_sch() local
163 list_for_each_entry(private, &eadm_list, head) { in eadm_get_idle_sch()
164 sch = private->sch; in eadm_get_idle_sch()
166 if (private->state == EADM_IDLE) { in eadm_get_idle_sch()
167 private->state = EADM_BUSY; in eadm_get_idle_sch()
168 list_move_tail(&private->head, &eadm_list); in eadm_get_idle_sch()
183 struct eadm_private *private; in eadm_start_aob() local
200 private = get_eadm_private(sch); in eadm_start_aob()
201 private->state = EADM_NOT_OPER; in eadm_start_aob()
213 struct eadm_private *private; in eadm_subchannel_probe() local
216 private = kzalloc(sizeof(*private), GFP_KERNEL | GFP_DMA); in eadm_subchannel_probe()
217 if (!private) in eadm_subchannel_probe()
220 INIT_LIST_HEAD(&private->head); in eadm_subchannel_probe()
221 timer_setup(&private->timer, eadm_subchannel_timeout, 0); in eadm_subchannel_probe()
224 set_eadm_private(sch, private); in eadm_subchannel_probe()
225 private->state = EADM_IDLE; in eadm_subchannel_probe()
226 private->sch = sch; in eadm_subchannel_probe()
232 kfree(private); in eadm_subchannel_probe()
238 list_add(&private->head, &eadm_list); in eadm_subchannel_probe()
246 struct eadm_private *private = get_eadm_private(sch); in eadm_quiesce() local
251 if (private->state != EADM_BUSY) in eadm_quiesce()
257 private->completion = &completion; in eadm_quiesce()
263 private->completion = NULL; in eadm_quiesce()
276 struct eadm_private *private = get_eadm_private(sch); in eadm_subchannel_remove() local
279 list_del(&private->head); in eadm_subchannel_remove()
288 kfree(private); in eadm_subchannel_remove()
308 struct eadm_private *private; in eadm_subchannel_sch_event() local
322 private = get_eadm_private(sch); in eadm_subchannel_sch_event()
323 if (private->state == EADM_NOT_OPER) in eadm_subchannel_sch_event()
324 private->state = EADM_IDLE; in eadm_subchannel_sch_event()