Lines Matching refs:ep_bw
2542 static unsigned int xhci_get_ss_bw_consumed(struct xhci_bw_info *ep_bw) in xhci_get_ss_bw_consumed() argument
2544 unsigned int mps = DIV_ROUND_UP(ep_bw->max_packet_size, SS_BLOCK); in xhci_get_ss_bw_consumed()
2546 if (ep_bw->ep_interval == 0) in xhci_get_ss_bw_consumed()
2548 (ep_bw->mult * ep_bw->num_packets * in xhci_get_ss_bw_consumed()
2550 return DIV_ROUND_UP(ep_bw->mult * ep_bw->num_packets * in xhci_get_ss_bw_consumed()
2552 1 << ep_bw->ep_interval); in xhci_get_ss_bw_consumed()
2557 struct xhci_bw_info *ep_bw, in xhci_drop_ep_from_interval_table() argument
2566 if (xhci_is_async_ep(ep_bw->type)) in xhci_drop_ep_from_interval_table()
2570 if (xhci_is_sync_in_ep(ep_bw->type)) in xhci_drop_ep_from_interval_table()
2572 xhci_get_ss_bw_consumed(ep_bw); in xhci_drop_ep_from_interval_table()
2575 xhci_get_ss_bw_consumed(ep_bw); in xhci_drop_ep_from_interval_table()
2588 normalized_interval = ep_bw->ep_interval; in xhci_drop_ep_from_interval_table()
2590 normalized_interval = ep_bw->ep_interval - 3; in xhci_drop_ep_from_interval_table()
2593 bw_table->interval0_esit_payload -= ep_bw->max_esit_payload; in xhci_drop_ep_from_interval_table()
2595 interval_bw->num_packets -= ep_bw->num_packets; in xhci_drop_ep_from_interval_table()
2618 struct xhci_bw_info *ep_bw, in xhci_add_ep_to_interval_table() argument
2628 if (xhci_is_async_ep(ep_bw->type)) in xhci_add_ep_to_interval_table()
2632 if (xhci_is_sync_in_ep(ep_bw->type)) in xhci_add_ep_to_interval_table()
2634 xhci_get_ss_bw_consumed(ep_bw); in xhci_add_ep_to_interval_table()
2637 xhci_get_ss_bw_consumed(ep_bw); in xhci_add_ep_to_interval_table()
2645 normalized_interval = ep_bw->ep_interval; in xhci_add_ep_to_interval_table()
2647 normalized_interval = ep_bw->ep_interval - 3; in xhci_add_ep_to_interval_table()
2650 bw_table->interval0_esit_payload += ep_bw->max_esit_payload; in xhci_add_ep_to_interval_table()
2652 interval_bw->num_packets += ep_bw->num_packets; in xhci_add_ep_to_interval_table()
2675 if (ep_bw->max_packet_size >= in xhci_add_ep_to_interval_table()