Lines Matching refs:lanes

538 	u32 lanes = (val & DP_COMMON_CAP_LANES_MASK) >> DP_COMMON_CAP_LANES_SHIFT;  in tb_dp_cap_get_lanes()  local
540 switch (lanes) { in tb_dp_cap_get_lanes()
552 static inline u32 tb_dp_cap_set_lanes(u32 val, u32 lanes) in tb_dp_cap_set_lanes() argument
555 switch (lanes) { in tb_dp_cap_set_lanes()
558 lanes); in tb_dp_cap_set_lanes()
573 static unsigned int tb_dp_bandwidth(unsigned int rate, unsigned int lanes) in tb_dp_bandwidth() argument
577 return rate * lanes * 128 / 132; in tb_dp_bandwidth()
578 return rate * lanes * 8 / 10; in tb_dp_bandwidth()
730 u32 rate, lanes; in tb_dp_bandwidth_alloc_mode_enable() local
763 lanes = min(in_lanes, out_lanes); in tb_dp_bandwidth_alloc_mode_enable()
764 tmp = tb_dp_bandwidth(rate, lanes); in tb_dp_bandwidth_alloc_mode_enable()
767 rate, lanes, tmp); in tb_dp_bandwidth_alloc_mode_enable()
769 ret = usb4_dp_port_set_nrd(in, rate, lanes); in tb_dp_bandwidth_alloc_mode_enable()
780 tmp = tb_dp_bandwidth(rate, lanes); in tb_dp_bandwidth_alloc_mode_enable()
784 rate, lanes, tmp); in tb_dp_bandwidth_alloc_mode_enable()
905 int ret, rate, lanes, nrd_bw; in tb_dp_bandwidth_mode_maximum_bandwidth() local
926 lanes = tb_dp_cap_get_lanes(cap); in tb_dp_bandwidth_mode_maximum_bandwidth()
932 ret = usb4_dp_port_nrd(in, &rate, &lanes); in tb_dp_bandwidth_mode_maximum_bandwidth()
937 nrd_bw = tb_dp_bandwidth(rate, lanes); in tb_dp_bandwidth_mode_maximum_bandwidth()
1060 static int tb_dp_read_dprx(struct tb_tunnel *tunnel, u32 *rate, u32 *lanes, in tb_dp_read_dprx() argument
1081 *lanes = tb_dp_cap_get_lanes(val); in tb_dp_read_dprx()
1094 u32 *lanes) in tb_dp_read_cap() argument
1119 *lanes = tb_dp_cap_get_lanes(val); in tb_dp_read_cap()
1152 u32 rate = 0, lanes = 0; in tb_dp_consumed_bandwidth() local
1175 ret = tb_dp_read_dprx(tunnel, &rate, &lanes, 150); in tb_dp_consumed_bandwidth()
1179 &rate, &lanes); in tb_dp_consumed_bandwidth()
1184 ret = tb_dp_read_cap(tunnel, DP_REMOTE_CAP, &rate, &lanes); in tb_dp_consumed_bandwidth()
1196 *consumed_down = tb_dp_bandwidth(rate, lanes); in tb_dp_consumed_bandwidth()
1198 *consumed_up = tb_dp_bandwidth(rate, lanes); in tb_dp_consumed_bandwidth()
1285 u32 dp_cap, rate, lanes; in tb_dp_dump() local
1295 lanes = tb_dp_cap_get_lanes(dp_cap); in tb_dp_dump()
1299 rate, lanes, tb_dp_bandwidth(rate, lanes)); in tb_dp_dump()
1308 lanes = tb_dp_cap_get_lanes(dp_cap); in tb_dp_dump()
1312 rate, lanes, tb_dp_bandwidth(rate, lanes)); in tb_dp_dump()
1319 lanes = tb_dp_cap_get_lanes(dp_cap); in tb_dp_dump()
1322 rate, lanes, tb_dp_bandwidth(rate, lanes)); in tb_dp_dump()