Lines Matching refs:params
46 struct sdw_bus_params *b_params = &m_rt->bus->params; in sdw_compute_slave_ports()
51 rate = m_rt->stream->params.rate; in sdw_compute_slave_ports()
52 bps = m_rt->stream->params.bps; in sdw_compute_slave_ports()
53 sample_int = (m_rt->bus->params.curr_dr_freq / rate); in sdw_compute_slave_ports()
90 struct sdw_group_params *params, in sdw_compute_master_ports() argument
96 struct sdw_bus_params *b_params = &bus->params; in sdw_compute_master_ports()
100 rate = m_rt->stream->params.rate; in sdw_compute_master_ports()
101 bps = m_rt->stream->params.bps; in sdw_compute_master_ports()
103 sample_int = (bus->params.curr_dr_freq / rate); in sdw_compute_master_ports()
105 if (rate != params->rate) in sdw_compute_master_ports()
109 hstart = hstop - params->hwidth + 1; in sdw_compute_master_ports()
143 struct sdw_group_params *params, int count) in _sdw_compute_port_params() argument
146 int hstop = bus->params.col - 1; in _sdw_compute_port_params()
155 sdw_compute_master_ports(m_rt, ¶ms[i], in _sdw_compute_port_params()
159 m_rt->stream->params.bps; in _sdw_compute_port_params()
163 hstop = hstop - params[i].hwidth; in _sdw_compute_port_params()
168 struct sdw_group_params *params, in sdw_compute_group_params() argument
172 int sel_col = bus->params.col; in sdw_compute_group_params()
178 params[i].rate = rates[i]; in sdw_compute_group_params()
179 params[i].full_bw = bus->params.curr_dr_freq / params[i].rate; in sdw_compute_group_params()
183 rate = m_rt->stream->params.rate; in sdw_compute_group_params()
184 bps = m_rt->stream->params.bps; in sdw_compute_group_params()
188 if (rate == params[i].rate) in sdw_compute_group_params()
189 params[i].payload_bw += bps * ch; in sdw_compute_group_params()
194 params[i].hwidth = (sel_col * in sdw_compute_group_params()
195 params[i].payload_bw + params[i].full_bw - 1) / in sdw_compute_group_params()
196 params[i].full_bw; in sdw_compute_group_params()
198 column_needed += params[i].hwidth; in sdw_compute_group_params()
252 rate = m_rt->stream->params.rate; in sdw_get_group_count()
277 struct sdw_group_params *params = NULL; in sdw_compute_port_params() local
288 params = kcalloc(group.count, sizeof(*params), GFP_KERNEL); in sdw_compute_port_params()
289 if (!params) { in sdw_compute_port_params()
295 ret = sdw_compute_group_params(bus, params, in sdw_compute_port_params()
300 _sdw_compute_port_params(bus, params, group.count); in sdw_compute_port_params()
303 kfree(params); in sdw_compute_port_params()
326 bus->params.bandwidth) in sdw_select_row_col()
329 bus->params.row = sdw_rows[r]; in sdw_select_row_col()
330 bus->params.col = sdw_cols[c]; in sdw_select_row_col()
373 if (curr_dr_freq <= bus->params.bandwidth) in sdw_compute_bus_params()
387 __func__, bus->params.bandwidth); in sdw_compute_bus_params()
398 bus->params.curr_dr_freq = curr_dr_freq; in sdw_compute_bus_params()