Lines Matching refs:phase
611 static int uhci_highest_load(struct uhci_hcd *uhci, int phase, int period) in uhci_highest_load() argument
613 int highest_load = uhci->load[phase]; in uhci_highest_load()
615 for (phase += period; phase < MAX_PHASE; phase += period) in uhci_highest_load()
616 highest_load = max_t(int, highest_load, uhci->load[phase]); in uhci_highest_load()
630 if (qh->phase >= 0) in uhci_check_bandwidth()
631 minimax_load = uhci_highest_load(uhci, qh->phase, qh->period); in uhci_check_bandwidth()
633 int phase, load; in uhci_check_bandwidth() local
636 qh->phase = 0; in uhci_check_bandwidth()
637 minimax_load = uhci_highest_load(uhci, qh->phase, qh->period); in uhci_check_bandwidth()
638 for (phase = 1; phase < max_phase; ++phase) { in uhci_check_bandwidth()
639 load = uhci_highest_load(uhci, phase, qh->period); in uhci_check_bandwidth()
642 qh->phase = phase; in uhci_check_bandwidth()
651 qh->period, qh->phase, minimax_load, qh->load); in uhci_check_bandwidth()
666 for (i = qh->phase; i < MAX_PHASE; i += qh->period) { in uhci_reserve_bandwidth()
687 qh->period, qh->phase, load); in uhci_reserve_bandwidth()
699 for (i = qh->phase; i < MAX_PHASE; i += qh->period) { in uhci_release_bandwidth()
720 qh->period, qh->phase, load); in uhci_release_bandwidth()
1103 qh->phase = (qh->period / 2) & (MAX_PHASE - 1); in uhci_submit_interrupt()
1274 qh->phase = -1; /* Find the best phase */ in uhci_submit_isochronous()
1281 frame = qh->phase; in uhci_submit_isochronous()