-/* $OpenBSD: dwc2_hcd.c,v 1.24 2021/07/27 13:36:59 mglocker Exp $ */
+/* $OpenBSD: dwc2_hcd.c,v 1.25 2021/09/04 10:19:28 mglocker Exp $ */
/* $NetBSD: dwc2_hcd.c,v 1.15 2014/11/24 10:14:14 skrll Exp $ */
/*
* periodic assigned schedule
*/
qh_ptr = qh_ptr->next;
- list_move_tail(&qh->qh_list_entry,
- &hsotg->periodic_sched_assigned);
+ list_move(&qh->qh_list_entry, &hsotg->periodic_sched_assigned);
ret_val = DWC2_TRANSACTION_PERIODIC;
}
* non-periodic active schedule
*/
qh_ptr = qh_ptr->next;
- list_move_tail(&qh->qh_list_entry,
+ list_move(&qh->qh_list_entry,
&hsotg->non_periodic_sched_active);
if (ret_val == DWC2_TRANSACTION_NONE)
if (chan->do_split)
/* Put ourselves on the list to keep order straight */
- list_move_tail(&chan->split_order_list_entry,
- &hsotg->split_order);
+ list_move(&chan->split_order_list_entry, &hsotg->split_order);
if (hsotg->core_params->dma_enable > 0 && chan->qh) {
if (hsotg->core_params->dma_desc_enable > 0) {
* Move the QH from the periodic assigned schedule to
* the periodic queued schedule
*/
- list_move_tail(&qh->qh_list_entry,
+ list_move(&qh->qh_list_entry,
&hsotg->periodic_sched_queued);
/* done queuing high bandwidth */
-/* $OpenBSD: dwc2_hcdddma.c,v 1.18 2021/07/27 13:36:59 mglocker Exp $ */
+/* $OpenBSD: dwc2_hcdddma.c,v 1.19 2021/09/04 10:19:28 mglocker Exp $ */
/* $NetBSD: dwc2_hcdddma.c,v 1.6 2014/04/03 06:34:58 skrll Exp $ */
/*
dwc2_hcd_qh_unlink(hsotg, qh);
} else {
/* Keep in assigned schedule to continue transfer */
- list_move_tail(&qh->qh_list_entry,
+ list_move(&qh->qh_list_entry,
&hsotg->periodic_sched_assigned);
/*
* If channel has been halted during giveback of urb
-/* $OpenBSD: dwc2_hcdintr.c,v 1.12 2021/07/27 13:36:59 mglocker Exp $ */
+/* $OpenBSD: dwc2_hcdintr.c,v 1.13 2021/09/04 10:19:28 mglocker Exp $ */
/* $NetBSD: dwc2_hcdintr.c,v 1.11 2014/11/24 10:14:14 skrll Exp $ */
/*
* Move QH to the ready list to be executed next
* (micro)frame
*/
- list_move_tail(&qh->qh_list_entry,
- &hsotg->periodic_sched_ready);
+ list_move(&qh->qh_list_entry,
+ &hsotg->periodic_sched_ready);
}
tr_type = dwc2_hcd_select_transactions(hsotg);
if (tr_type != DWC2_TRANSACTION_NONE)
* halt to be queued when the periodic schedule is
* processed.
*/
- list_move_tail(&chan->qh->qh_list_entry,
- &hsotg->periodic_sched_assigned);
+ list_move(&chan->qh->qh_list_entry,
+ &hsotg->periodic_sched_assigned);
/*
* Make sure the Periodic Tx FIFO Empty interrupt is
-/* $OpenBSD: dwc2_hcdqueue.c,v 1.11 2021/07/27 13:36:59 mglocker Exp $ */
+/* $OpenBSD: dwc2_hcdqueue.c,v 1.12 2021/09/04 10:19:28 mglocker Exp $ */
/* $NetBSD: dwc2_hcdqueue.c,v 1.11 2014/09/03 10:00:08 skrll Exp $ */
/*
dwc2_frame_num_le(qh->sched_frame, frame_number)) ||
(hsotg->core_params->uframe_sched <= 0 &&
qh->sched_frame == frame_number))
- list_move_tail(&qh->qh_list_entry,
- &hsotg->periodic_sched_ready);
+ list_move(&qh->qh_list_entry, &hsotg->periodic_sched_ready);
else
- list_move_tail(&qh->qh_list_entry,
- &hsotg->periodic_sched_inactive);
+ list_move(&qh->qh_list_entry, &hsotg->periodic_sched_inactive);
}
/**