Lines Matching refs:phase
612 * Find the highest existing bandwidth load for a given phase and period.
614 static int uhci_highest_load(struct uhci_hcd *uhci, int phase, int period)
616 int highest_load = uhci->load[phase];
618 for (phase += period; phase < MAX_PHASE; phase += period)
619 highest_load = max_t(int, highest_load, uhci->load[phase]);
624 * Set qh->phase to the optimal phase for a periodic transfer and
631 /* Find the optimal phase (unless it is already set) and get
633 if (qh->phase >= 0)
634 minimax_load = uhci_highest_load(uhci, qh->phase, qh->period);
636 int phase, load;
639 qh->phase = 0;
640 minimax_load = uhci_highest_load(uhci, qh->phase, qh->period);
641 for (phase = 1; phase < max_phase; ++phase) {
642 load = uhci_highest_load(uhci, phase, qh->period);
645 qh->phase = phase;
653 "period %d, phase %d, %d + %d us\n",
654 qh->period, qh->phase, minimax_load, qh->load);
669 for (i = qh->phase; i < MAX_PHASE; i += qh->period) {
687 "%s dev %d ep%02x-%s, period %d, phase %d, %d us\n",
690 qh->period, qh->phase, load);
702 for (i = qh->phase; i < MAX_PHASE; i += qh->period) {
720 "%s dev %d ep%02x-%s, period %d, phase %d, %d us\n",
723 qh->period, qh->phase, load);
1083 /* For now, interrupt phase is fixed by the layout
1085 qh->phase = (qh->period / 2) & (MAX_PHASE - 1);
1248 qh->phase = -1; /* Find the best phase */
1258 * correct phase */
1259 urb->start_frame = frame + ((qh->phase - frame) &
1265 qh->phase = urb->start_frame & (qh->period - 1);