Lines Matching refs:ep_bw
2654 static unsigned int xhci_get_ss_bw_consumed(struct xhci_bw_info *ep_bw) in xhci_get_ss_bw_consumed() argument
2656 unsigned int mps = DIV_ROUND_UP(ep_bw->max_packet_size, SS_BLOCK); in xhci_get_ss_bw_consumed()
2658 if (ep_bw->ep_interval == 0) in xhci_get_ss_bw_consumed()
2660 (ep_bw->mult * ep_bw->num_packets * in xhci_get_ss_bw_consumed()
2662 return DIV_ROUND_UP(ep_bw->mult * ep_bw->num_packets * in xhci_get_ss_bw_consumed()
2664 1 << ep_bw->ep_interval); in xhci_get_ss_bw_consumed()
2669 struct xhci_bw_info *ep_bw, in xhci_drop_ep_from_interval_table() argument
2678 if (xhci_is_async_ep(ep_bw->type)) in xhci_drop_ep_from_interval_table()
2682 if (xhci_is_sync_in_ep(ep_bw->type)) in xhci_drop_ep_from_interval_table()
2684 xhci_get_ss_bw_consumed(ep_bw); in xhci_drop_ep_from_interval_table()
2687 xhci_get_ss_bw_consumed(ep_bw); in xhci_drop_ep_from_interval_table()
2700 normalized_interval = ep_bw->ep_interval; in xhci_drop_ep_from_interval_table()
2702 normalized_interval = ep_bw->ep_interval - 3; in xhci_drop_ep_from_interval_table()
2705 bw_table->interval0_esit_payload -= ep_bw->max_esit_payload; in xhci_drop_ep_from_interval_table()
2707 interval_bw->num_packets -= ep_bw->num_packets; in xhci_drop_ep_from_interval_table()
2733 struct xhci_bw_info *ep_bw, in xhci_add_ep_to_interval_table() argument
2743 if (xhci_is_async_ep(ep_bw->type)) in xhci_add_ep_to_interval_table()
2747 if (xhci_is_sync_in_ep(ep_bw->type)) in xhci_add_ep_to_interval_table()
2749 xhci_get_ss_bw_consumed(ep_bw); in xhci_add_ep_to_interval_table()
2752 xhci_get_ss_bw_consumed(ep_bw); in xhci_add_ep_to_interval_table()
2760 normalized_interval = ep_bw->ep_interval; in xhci_add_ep_to_interval_table()
2762 normalized_interval = ep_bw->ep_interval - 3; in xhci_add_ep_to_interval_table()
2765 bw_table->interval0_esit_payload += ep_bw->max_esit_payload; in xhci_add_ep_to_interval_table()
2767 interval_bw->num_packets += ep_bw->num_packets; in xhci_add_ep_to_interval_table()
2793 if (ep_bw->max_packet_size >= in xhci_add_ep_to_interval_table()