Lines Matching refs:bw_table
2272 struct xhci_interval_bw_table *bw_table; in xhci_check_tt_bw_table() local
2276 bw_table = &xhci->rh_bw[virt_dev->rhub_port->hw_portnum].bw_table; in xhci_check_tt_bw_table()
2285 if (bw_table->bw_used + TT_HS_OVERHEAD > HS_BW_LIMIT) in xhci_check_tt_bw_table()
2304 if (virt_dev->bw_table->ss_bw_in > (SS_BW_LIMIT_IN - bw_reserved)) in xhci_check_ss_bw()
2308 if (virt_dev->bw_table->ss_bw_out > (SS_BW_LIMIT_OUT - bw_reserved)) in xhci_check_ss_bw()
2363 struct xhci_interval_bw_table *bw_table; in xhci_check_bw_table() local
2382 bw_table = virt_dev->bw_table; in xhci_check_bw_table()
2413 bw_used = DIV_ROUND_UP(bw_table->interval0_esit_payload, block_size) + in xhci_check_bw_table()
2414 bw_table->interval_bw[0].num_packets * in xhci_check_bw_table()
2415 xhci_get_largest_overhead(&bw_table->interval_bw[0]); in xhci_check_bw_table()
2428 bw_table->interval_bw[i].num_packets; in xhci_check_bw_table()
2433 if (list_empty(&bw_table->interval_bw[i].endpoints)) in xhci_check_bw_table()
2439 ep_entry = bw_table->interval_bw[i].endpoints.next; in xhci_check_bw_table()
2452 &bw_table->interval_bw[i]); in xhci_check_bw_table()
2526 bw_table->bw_used = bw_used; in xhci_check_bw_table()
2558 struct xhci_interval_bw_table *bw_table, in xhci_drop_ep_from_interval_table() argument
2571 xhci->devs[udev->slot_id]->bw_table->ss_bw_in -= in xhci_drop_ep_from_interval_table()
2574 xhci->devs[udev->slot_id]->bw_table->ss_bw_out -= 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()
2594 interval_bw = &bw_table->interval_bw[normalized_interval]; in xhci_drop_ep_from_interval_table()
2619 struct xhci_interval_bw_table *bw_table, in xhci_add_ep_to_interval_table() argument
2633 xhci->devs[udev->slot_id]->bw_table->ss_bw_in += in xhci_add_ep_to_interval_table()
2636 xhci->devs[udev->slot_id]->bw_table->ss_bw_out += 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()
2651 interval_bw = &bw_table->interval_bw[normalized_interval]; in xhci_add_ep_to_interval_table()
2700 rh_bw_info->bw_table.bw_used += TT_HS_OVERHEAD; in xhci_update_tt_active_eps()
2704 rh_bw_info->bw_table.bw_used -= TT_HS_OVERHEAD; in xhci_update_tt_active_eps()
2740 virt_dev->bw_table, in xhci_reserve_bandwidth()
2752 virt_dev->bw_table, in xhci_reserve_bandwidth()
2777 virt_dev->bw_table, in xhci_reserve_bandwidth()
2789 virt_dev->bw_table, in xhci_reserve_bandwidth()
3854 virt_dev->bw_table, in xhci_discover_or_reset_device()