Lines Matching refs:max_rate
1251 int ret, max_rate, allocate_up, allocate_down; in tb_usb3_reclaim_available_bandwidth() local
1270 max_rate = ret * 90 / 100; in tb_usb3_reclaim_available_bandwidth()
1273 if (tunnel->allocated_up >= max_rate && in tb_usb3_reclaim_available_bandwidth()
1274 tunnel->allocated_down >= max_rate) in tb_usb3_reclaim_available_bandwidth()
1278 allocate_up = min(max_rate, *available_up); in tb_usb3_reclaim_available_bandwidth()
1282 allocate_down = min(max_rate, *available_down); in tb_usb3_reclaim_available_bandwidth()
1461 int max_rate = 0; in tb_tunnel_alloc_usb3() local
1468 max_rate = tb_usb3_max_link_rate(down, up); in tb_tunnel_alloc_usb3()
1469 if (max_rate < 0) in tb_tunnel_alloc_usb3()
1473 max_rate = max_rate * 90 / 100; in tb_tunnel_alloc_usb3()
1475 max_rate); in tb_tunnel_alloc_usb3()
1477 if (max_rate > max_up || max_rate > max_down) { in tb_tunnel_alloc_usb3()
1512 tunnel->allocated_up = max_rate; in tb_tunnel_alloc_usb3()
1513 tunnel->allocated_down = max_rate; in tb_tunnel_alloc_usb3()