Lines Matching defs:params

40 	struct sdw_bus_params *b_params = &m_rt->bus->params;
45 rate = m_rt->stream->params.rate;
46 bps = m_rt->stream->params.bps;
47 sample_int = (m_rt->bus->params.curr_dr_freq / rate);
85 struct sdw_group_params *params,
91 struct sdw_bus_params *b_params = &bus->params;
95 rate = m_rt->stream->params.rate;
96 bps = m_rt->stream->params.bps;
98 sample_int = (bus->params.curr_dr_freq / rate);
100 if (rate != params->rate)
104 hstart = hstop - params->hwidth + 1;
138 struct sdw_group_params *params, int count)
141 int hstop = bus->params.col - 1;
149 sdw_compute_master_ports(m_rt, &params[i], port_bo, hstop);
151 port_bo += m_rt->ch_count * m_rt->stream->params.bps;
154 hstop = hstop - params[i].hwidth;
159 struct sdw_group_params *params,
163 int sel_col = bus->params.col;
169 params[i].rate = rates[i];
170 params[i].full_bw = bus->params.curr_dr_freq / params[i].rate;
174 rate = m_rt->stream->params.rate;
175 bps = m_rt->stream->params.bps;
179 if (rate == params[i].rate)
180 params[i].payload_bw += bps * ch;
185 params[i].hwidth = (sel_col *
186 params[i].payload_bw + params[i].full_bw - 1) /
187 params[i].full_bw;
189 column_needed += params[i].hwidth;
243 rate = m_rt->stream->params.rate;
268 struct sdw_group_params *params = NULL;
279 params = kcalloc(group.count, sizeof(*params), GFP_KERNEL);
280 if (!params) {
286 ret = sdw_compute_group_params(bus, params,
291 _sdw_compute_port_params(bus, params, group.count);
294 kfree(params);
317 bus->params.bandwidth)
320 bus->params.row = sdw_rows[r];
321 bus->params.col = sdw_cols[c];
364 if (curr_dr_freq <= bus->params.bandwidth)
378 __func__, bus->params.bandwidth);
389 bus->params.curr_dr_freq = curr_dr_freq;
407 /* Compute transport and port params */
410 dev_err(bus->dev, "Compute transport params failed: %d\n", ret);