Lines Matching refs:max_rate
1270 int ret, max_rate, allocate_up, allocate_down; in tb_usb3_reclaim_available_bandwidth() local
1289 max_rate = ret * 90 / 100; in tb_usb3_reclaim_available_bandwidth()
1292 if (tunnel->allocated_up >= max_rate && in tb_usb3_reclaim_available_bandwidth()
1293 tunnel->allocated_down >= max_rate) in tb_usb3_reclaim_available_bandwidth()
1297 allocate_up = min(max_rate, *available_up); in tb_usb3_reclaim_available_bandwidth()
1301 allocate_down = min(max_rate, *available_down); in tb_usb3_reclaim_available_bandwidth()
1482 int max_rate = 0; in tb_tunnel_alloc_usb3() local
1489 max_rate = tb_usb3_max_link_rate(down, up); in tb_tunnel_alloc_usb3()
1490 if (max_rate < 0) in tb_tunnel_alloc_usb3()
1494 max_rate = max_rate * 90 / 100; in tb_tunnel_alloc_usb3()
1496 max_rate); in tb_tunnel_alloc_usb3()
1498 if (max_rate > max_up || max_rate > max_down) { in tb_tunnel_alloc_usb3()
1533 tunnel->allocated_up = max_rate; in tb_tunnel_alloc_usb3()
1534 tunnel->allocated_down = max_rate; in tb_tunnel_alloc_usb3()