Lines Matching refs:ctlxq

261 	return list_entry(hw->ctlxq.active.next, struct hfa384x_usbctlx, list);  in get_active_ctlx()
512 spin_lock_init(&hw->ctlxq.lock); in hfa384x_create()
513 INIT_LIST_HEAD(&hw->ctlxq.pending); in hfa384x_create()
514 INIT_LIST_HEAD(&hw->ctlxq.active); in hfa384x_create()
515 INIT_LIST_HEAD(&hw->ctlxq.completing); in hfa384x_create()
516 INIT_LIST_HEAD(&hw->ctlxq.reapable); in hfa384x_create()
1073 spin_lock_irqsave(&hw->ctlxq.lock, flags); in hfa384x_usbctlx_complete_sync()
1081 spin_unlock_irqrestore(&hw->ctlxq.lock, flags); in hfa384x_usbctlx_complete_sync()
1096 spin_unlock_irqrestore(&hw->ctlxq.lock, flags); in hfa384x_usbctlx_complete_sync()
1104 spin_lock_irqsave(&hw->ctlxq.lock, flags); in hfa384x_usbctlx_complete_sync()
1123 list_move_tail(&ctlx->list, &hw->ctlxq.completing); in hfa384x_usbctlx_complete_sync()
1125 spin_unlock_irqrestore(&hw->ctlxq.lock, flags); in hfa384x_usbctlx_complete_sync()
1140 spin_unlock_irqrestore(&hw->ctlxq.lock, flags); in hfa384x_usbctlx_complete_sync()
2550 spin_lock_irqsave(&hw->ctlxq.lock, flags); in hfa384x_tx_timeout()
2561 spin_unlock_irqrestore(&hw->ctlxq.lock, flags); in hfa384x_tx_timeout()
2584 spin_lock_irqsave(&hw->ctlxq.lock, flags); in hfa384x_usbctlx_reaper_task()
2589 list_for_each_entry_safe(ctlx, temp, &hw->ctlxq.reapable, list) { in hfa384x_usbctlx_reaper_task()
2594 spin_unlock_irqrestore(&hw->ctlxq.lock, flags); in hfa384x_usbctlx_reaper_task()
2620 spin_lock_irqsave(&hw->ctlxq.lock, flags); in hfa384x_usbctlx_completion_task()
2625 list_for_each_entry_safe(ctlx, temp, &hw->ctlxq.completing, list) { in hfa384x_usbctlx_completion_task()
2630 spin_unlock_irqrestore(&hw->ctlxq.lock, flags); in hfa384x_usbctlx_completion_task()
2632 spin_lock_irqsave(&hw->ctlxq.lock, flags); in hfa384x_usbctlx_completion_task()
2659 list_move_tail(&ctlx->list, &hw->ctlxq.reapable); in hfa384x_usbctlx_completion_task()
2665 spin_unlock_irqrestore(&hw->ctlxq.lock, flags); in hfa384x_usbctlx_completion_task()
2747 list_move_tail(&ctlx->list, &hw->ctlxq.completing); in unlocked_usbctlx_complete()
2786 spin_lock_irqsave(&hw->ctlxq.lock, flags); in hfa384x_usbctlxq_run()
2795 if (!list_empty(&hw->ctlxq.active) || in hfa384x_usbctlxq_run()
2799 while (!list_empty(&hw->ctlxq.pending)) { in hfa384x_usbctlxq_run()
2804 head = list_entry(hw->ctlxq.pending.next, in hfa384x_usbctlxq_run()
2808 list_move_tail(&head->list, &hw->ctlxq.active); in hfa384x_usbctlxq_run()
2844 list_move(&head->list, &hw->ctlxq.pending); in hfa384x_usbctlxq_run()
2862 spin_unlock_irqrestore(&hw->ctlxq.lock, flags); in hfa384x_usbctlxq_run()
3076 spin_lock_irqsave(&hw->ctlxq.lock, flags); in hfa384x_usbin_ctlx()
3082 if (list_empty(&hw->ctlxq.active)) in hfa384x_usbin_ctlx()
3093 spin_unlock_irqrestore(&hw->ctlxq.lock, flags); in hfa384x_usbin_ctlx()
3164 spin_unlock_irqrestore(&hw->ctlxq.lock, flags); in hfa384x_usbin_ctlx()
3540 spin_lock_irqsave(&hw->ctlxq.lock, flags); in hfa384x_ctlxout_callback()
3548 if (list_empty(&hw->ctlxq.active)) { in hfa384x_ctlxout_callback()
3549 spin_unlock_irqrestore(&hw->ctlxq.lock, flags); in hfa384x_ctlxout_callback()
3564 spin_unlock_irqrestore(&hw->ctlxq.lock, flags); in hfa384x_ctlxout_callback()
3624 spin_unlock_irqrestore(&hw->ctlxq.lock, flags); in hfa384x_ctlxout_callback()
3627 spin_lock_irqsave(&hw->ctlxq.lock, flags); in hfa384x_ctlxout_callback()
3659 spin_lock_irqsave(&hw->ctlxq.lock, flags); in hfa384x_usbctlx_reqtimerfn()
3666 if (!list_empty(&hw->ctlxq.active)) { in hfa384x_usbctlx_reqtimerfn()
3691 spin_unlock_irqrestore(&hw->ctlxq.lock, flags); in hfa384x_usbctlx_reqtimerfn()
3718 spin_lock_irqsave(&hw->ctlxq.lock, flags); in hfa384x_usbctlx_resptimerfn()
3725 if (!list_empty(&hw->ctlxq.active)) { in hfa384x_usbctlx_resptimerfn()
3729 spin_unlock_irqrestore(&hw->ctlxq.lock, flags); in hfa384x_usbctlx_resptimerfn()
3734 spin_unlock_irqrestore(&hw->ctlxq.lock, flags); in hfa384x_usbctlx_resptimerfn()
3758 spin_lock_irqsave(&hw->ctlxq.lock, flags); in hfa384x_usb_throttlefn()
3774 spin_unlock_irqrestore(&hw->ctlxq.lock, flags); in hfa384x_usb_throttlefn()
3801 spin_lock_irqsave(&hw->ctlxq.lock, flags); in hfa384x_usbctlx_submit()
3804 spin_unlock_irqrestore(&hw->ctlxq.lock, flags); in hfa384x_usbctlx_submit()
3809 list_add_tail(&ctlx->list, &hw->ctlxq.pending); in hfa384x_usbctlx_submit()
3810 spin_unlock_irqrestore(&hw->ctlxq.lock, flags); in hfa384x_usbctlx_submit()