Lines Matching defs:max_bw
533 static int tb_dp_reduce_bandwidth(int max_bw, u32 in_rate, u32 in_lanes,
555 * Find a combination that can fit into max_bw and does not
566 if (tb_dp_bandwidth(dp_bw[i][0], dp_bw[i][1]) <= max_bw) {
581 int ret, max_bw;
621 * If the tunnel bandwidth is limited (max_bw is set) then see
631 max_bw = tunnel->max_down;
633 max_bw = tunnel->max_up;
635 if (max_bw && bw > max_bw) {
638 ret = tb_dp_reduce_bandwidth(max_bw, in_rate, in_lanes,
849 /* max_bw is rounded up to next granularity */
851 int *max_bw)
888 if (max_bw) {
892 *max_bw = roundup(nrd_bw, ret);
904 int ret, allocated_bw, max_bw;
918 ret = tb_dp_bandwidth_mode_maximum_bandwidth(tunnel, &max_bw);
921 if (allocated_bw == max_bw)
949 int ret, allocated_bw, max_bw;
956 ret = tb_dp_bandwidth_mode_maximum_bandwidth(tunnel, &max_bw);
959 if (allocated_bw == max_bw)
981 int max_bw, ret, tmp;
986 ret = tb_dp_bandwidth_mode_maximum_bandwidth(tunnel, &max_bw);
991 tmp = min(*alloc_down, max_bw);
998 tmp = min(*alloc_up, max_bw);