Lines Matching defs:phase
608 * Find the highest existing bandwidth load for a given phase and period.
610 static int uhci_highest_load(struct uhci_hcd *uhci, int phase, int period)
612 int highest_load = uhci->load[phase];
614 for (phase += period; phase < MAX_PHASE; phase += period)
615 highest_load = max_t(int, highest_load, uhci->load[phase]);
620 * Set qh->phase to the optimal phase for a periodic transfer and
627 /* Find the optimal phase (unless it is already set) and get
629 if (qh->phase >= 0)
630 minimax_load = uhci_highest_load(uhci, qh->phase, qh->period);
632 int phase, load;
635 qh->phase = 0;
636 minimax_load = uhci_highest_load(uhci, qh->phase, qh->period);
637 for (phase = 1; phase < max_phase; ++phase) {
638 load = uhci_highest_load(uhci, phase, qh->period);
641 qh->phase = phase;
649 "period %d, phase %d, %d + %d us\n",
650 qh->period, qh->phase, minimax_load, qh->load);
665 for (i = qh->phase; i < MAX_PHASE; i += qh->period) {
683 "%s dev %d ep%02x-%s, period %d, phase %d, %d us\n",
686 qh->period, qh->phase, load);
698 for (i = qh->phase; i < MAX_PHASE; i += qh->period) {
716 "%s dev %d ep%02x-%s, period %d, phase %d, %d us\n",
719 qh->period, qh->phase, load);
1099 /* For now, interrupt phase is fixed by the layout
1102 qh->phase = (qh->period / 2) & (MAX_PHASE - 1);
1273 qh->phase = -1; /* Find the best phase */
1280 frame = qh->phase;