Lines Matching refs:m_rt

34 void sdw_compute_slave_ports(struct sdw_master_runtime *m_rt,  in sdw_compute_slave_ports()  argument
42 struct sdw_bus_params *b_params = &m_rt->bus->params; in sdw_compute_slave_ports()
46 list_for_each_entry(s_rt, &m_rt->slave_rt_list, m_rt_node) { in sdw_compute_slave_ports()
47 rate = m_rt->stream->params.rate; in sdw_compute_slave_ports()
48 bps = m_rt->stream->params.bps; in sdw_compute_slave_ports()
49 sample_int = (m_rt->bus->params.curr_dr_freq / rate); in sdw_compute_slave_ports()
75 if (m_rt->direction == SDW_DATA_DIR_TX && in sdw_compute_slave_ports()
76 m_rt->ch_count == slave_total_ch) { in sdw_compute_slave_ports()
89 static void sdw_compute_dp0_slave_ports(struct sdw_master_runtime *m_rt) in sdw_compute_dp0_slave_ports() argument
91 struct sdw_bus *bus = m_rt->bus; in sdw_compute_dp0_slave_ports()
95 list_for_each_entry(s_rt, &m_rt->slave_rt_list, m_rt_node) { in sdw_compute_dp0_slave_ports()
107 static void sdw_compute_dp0_master_ports(struct sdw_master_runtime *m_rt) in sdw_compute_dp0_master_ports() argument
110 struct sdw_bus *bus = m_rt->bus; in sdw_compute_dp0_master_ports()
112 list_for_each_entry(p_rt, &m_rt->port_list, port_node) { in sdw_compute_dp0_master_ports()
124 struct sdw_master_runtime *m_rt; in sdw_compute_dp0_port_params() local
126 list_for_each_entry(m_rt, &bus->m_rt_list, bus_node) { in sdw_compute_dp0_port_params()
127 sdw_compute_dp0_master_ports(m_rt); in sdw_compute_dp0_port_params()
128 sdw_compute_dp0_slave_ports(m_rt); in sdw_compute_dp0_port_params()
132 static void sdw_compute_master_ports(struct sdw_master_runtime *m_rt, in sdw_compute_master_ports() argument
138 struct sdw_bus *bus = m_rt->bus; in sdw_compute_master_ports()
143 rate = m_rt->stream->params.rate; in sdw_compute_master_ports()
144 bps = m_rt->stream->params.bps; in sdw_compute_master_ports()
145 ch = m_rt->ch_count; in sdw_compute_master_ports()
155 list_for_each_entry(p_rt, &m_rt->port_list, port_node) { in sdw_compute_master_ports()
170 if (!(p_rt == list_first_entry(&m_rt->port_list, in sdw_compute_master_ports()
185 sdw_compute_slave_ports(m_rt, &t_data); in sdw_compute_master_ports()
191 struct sdw_master_runtime *m_rt; in _sdw_compute_port_params() local
206 list_for_each_entry(m_rt, &bus->m_rt_list, bus_node) { in _sdw_compute_port_params()
211 if (m_rt->stream->state > SDW_STREAM_DISABLED || in _sdw_compute_port_params()
212 m_rt->stream->state < SDW_STREAM_CONFIGURED) in _sdw_compute_port_params()
214 sdw_compute_master_ports(m_rt, &params[i], &port_bo, hstop); in _sdw_compute_port_params()
227 struct sdw_master_runtime *m_rt; in sdw_compute_group_params() local
240 list_for_each_entry(m_rt, &bus->m_rt_list, bus_node) { in sdw_compute_group_params()
241 if (m_rt->stream == stream) { in sdw_compute_group_params()
250 if (m_rt->stream->state != SDW_STREAM_ENABLED && in sdw_compute_group_params()
251 m_rt->stream->state != SDW_STREAM_PREPARED && in sdw_compute_group_params()
252 m_rt->stream->state != SDW_STREAM_DISABLED) in sdw_compute_group_params()
255 list_for_each_entry(p_rt, &m_rt->port_list, port_node) { in sdw_compute_group_params()
256 rate = m_rt->stream->params.rate; in sdw_compute_group_params()
257 bps = m_rt->stream->params.bps; in sdw_compute_group_params()
338 struct sdw_master_runtime *m_rt; in sdw_get_group_count() local
356 list_for_each_entry(m_rt, &bus->m_rt_list, bus_node) { in sdw_get_group_count()
357 if (m_rt->stream->state == SDW_STREAM_DEPREPARED) in sdw_get_group_count()
360 rate = m_rt->stream->params.rate; in sdw_get_group_count()
361 if (m_rt == list_first_entry(&bus->m_rt_list, in sdw_get_group_count()
370 list_for_each_entry(p_rt, &m_rt->port_list, port_node) { in sdw_get_group_count()
450 struct sdw_master_runtime *m_rt; in is_clock_scaling_supported() local
453 list_for_each_entry(m_rt, &bus->m_rt_list, bus_node) in is_clock_scaling_supported()
454 list_for_each_entry(s_rt, &m_rt->slave_rt_list, m_rt_node) in is_clock_scaling_supported()
468 static bool is_lane_connected_to_all_peripherals(struct sdw_master_runtime *m_rt, unsigned int lane) in is_lane_connected_to_all_peripherals() argument
474 list_for_each_entry(s_rt, &m_rt->slave_rt_list, m_rt_node) { in is_lane_connected_to_all_peripherals()
492 static int get_manager_lane(struct sdw_bus *bus, struct sdw_master_runtime *m_rt, in get_manager_lane() argument
506 list_for_each_entry(m_p_rt, &m_rt->port_list, port_node) { in get_manager_lane()
507 required_bandwidth += m_rt->stream->params.rate * in get_manager_lane()
509 m_rt->stream->params.bps; in get_manager_lane()
514 if (!is_lane_connected_to_all_peripherals(m_rt, in get_manager_lane()
548 struct sdw_master_runtime *m_rt; in sdw_compute_bus_params() local
584 list_for_each_entry(m_rt, &bus->m_rt_list, bus_node) { in sdw_compute_bus_params()
590 s_rt = list_first_entry(&m_rt->slave_rt_list, in sdw_compute_bus_params()
596 m_lane = get_manager_lane(bus, m_rt, s_rt, curr_dr_freq); in sdw_compute_bus_params()
617 list_for_each_entry(s_rt, &m_rt->slave_rt_list, m_rt_node) { in sdw_compute_bus_params()
635 list_for_each_entry(m_p_rt, &m_rt->port_list, port_node) { in sdw_compute_bus_params()