/kernel/linux/linux-5.10/drivers/soundwire/ |
H A D | stream.c | 126 struct sdw_port_runtime *p_rt) in sdw_program_slave_port_params() 128 struct sdw_transport_params *t_params = &p_rt->transport_params; in sdw_program_slave_port_params() 129 struct sdw_port_params *p_params = &p_rt->port_params; in sdw_program_slave_port_params() 235 struct sdw_port_runtime *p_rt) in sdw_program_master_port_params() 246 &p_rt->transport_params, in sdw_program_master_port_params() 252 &p_rt->port_params, in sdw_program_master_port_params() 266 struct sdw_port_runtime *p_rt; in sdw_program_port_params() local 271 list_for_each_entry(p_rt, &s_rt->port_list, port_node) { in sdw_program_port_params() 272 ret = sdw_program_slave_port_params(bus, s_rt, p_rt); in sdw_program_port_params() 279 list_for_each_entry(p_rt, in sdw_program_port_params() 124 sdw_program_slave_port_params(struct sdw_bus *bus, struct sdw_slave_runtime *s_rt, struct sdw_port_runtime *p_rt) sdw_program_slave_port_params() argument 234 sdw_program_master_port_params(struct sdw_bus *bus, struct sdw_port_runtime *p_rt) sdw_program_master_port_params() argument 299 sdw_enable_disable_slave_ports(struct sdw_bus *bus, struct sdw_slave_runtime *s_rt, struct sdw_port_runtime *p_rt, bool en) sdw_enable_disable_slave_ports() argument 330 sdw_enable_disable_master_ports(struct sdw_master_runtime *m_rt, struct sdw_port_runtime *p_rt, bool en) sdw_enable_disable_master_ports() argument 417 sdw_prep_deprep_slave_ports(struct sdw_bus *bus, struct sdw_slave_runtime *s_rt, struct sdw_port_runtime *p_rt, bool prep) sdw_prep_deprep_slave_ports() argument 504 sdw_prep_deprep_master_ports(struct sdw_master_runtime *m_rt, struct sdw_port_runtime *p_rt, bool prep) sdw_prep_deprep_master_ports() argument 542 struct sdw_port_runtime *p_rt; sdw_prep_deprep_ports() local 995 struct sdw_port_runtime *p_rt, *_p_rt; sdw_master_port_release() local 1007 struct sdw_port_runtime *p_rt, *_p_rt; sdw_slave_port_release() local 1180 sdw_is_valid_port_range(struct device *dev, struct sdw_port_runtime *p_rt) sdw_is_valid_port_range() argument 1197 struct sdw_port_runtime *p_rt; sdw_port_alloc() local 1214 struct sdw_port_runtime *p_rt; sdw_master_port_config() local 1239 struct sdw_port_runtime *p_rt; sdw_slave_port_config() local [all...] |
H A D | generic_bandwidth_allocation.c | 42 struct sdw_port_runtime *p_rt; in sdw_compute_slave_ports() local 56 list_for_each_entry(p_rt, &s_rt->port_list, port_node) { in sdw_compute_slave_ports() 57 ch = sdw_ch_mask_to_ch(p_rt->ch_mask); in sdw_compute_slave_ports() 59 sdw_fill_xport_params(&p_rt->transport_params, in sdw_compute_slave_ports() 60 p_rt->num, false, in sdw_compute_slave_ports() 67 sdw_fill_port_params(&p_rt->port_params, in sdw_compute_slave_ports() 68 p_rt->num, bps, in sdw_compute_slave_ports() 94 struct sdw_port_runtime *p_rt; in sdw_compute_master_ports() local 112 list_for_each_entry(p_rt, &m_rt->port_list, port_node) { in sdw_compute_master_ports() 113 no_ch = sdw_ch_mask_to_ch(p_rt in sdw_compute_master_ports() [all...] |
H A D | qcom.c | 461 struct sdw_port_runtime *p_rt; in qcom_swrm_compute_params() local 466 list_for_each_entry(p_rt, &m_rt->port_list, port_node) { in qcom_swrm_compute_params() 467 pcfg = &ctrl->pconfig[p_rt->num - 1]; in qcom_swrm_compute_params() 468 p_rt->transport_params.port_num = p_rt->num; in qcom_swrm_compute_params() 469 p_rt->transport_params.sample_interval = pcfg->si + 1; in qcom_swrm_compute_params() 470 p_rt->transport_params.offset1 = pcfg->off1; in qcom_swrm_compute_params() 471 p_rt->transport_params.offset2 = pcfg->off2; in qcom_swrm_compute_params() 472 p_rt->transport_params.blk_pkg_mode = pcfg->bp_mode; in qcom_swrm_compute_params() 476 list_for_each_entry(p_rt, in qcom_swrm_compute_params() 510 struct sdw_port_runtime *p_rt; qcom_swrm_stream_free_ports() local 537 struct sdw_port_runtime *p_rt; qcom_swrm_stream_alloc_ports() local [all...] |
/kernel/linux/linux-6.6/drivers/soundwire/ |
H A D | stream.c | 127 struct sdw_port_runtime *p_rt) in sdw_program_slave_port_params() 129 struct sdw_transport_params *t_params = &p_rt->transport_params; in sdw_program_slave_port_params() 130 struct sdw_port_params *p_params = &p_rt->port_params; in sdw_program_slave_port_params() 239 struct sdw_port_runtime *p_rt) in sdw_program_master_port_params() 250 &p_rt->transport_params, in sdw_program_master_port_params() 256 &p_rt->port_params, in sdw_program_master_port_params() 270 struct sdw_port_runtime *p_rt; in sdw_program_port_params() local 275 list_for_each_entry(p_rt, &s_rt->port_list, port_node) { in sdw_program_port_params() 276 ret = sdw_program_slave_port_params(bus, s_rt, p_rt); in sdw_program_port_params() 283 list_for_each_entry(p_rt, in sdw_program_port_params() 125 sdw_program_slave_port_params(struct sdw_bus *bus, struct sdw_slave_runtime *s_rt, struct sdw_port_runtime *p_rt) sdw_program_slave_port_params() argument 238 sdw_program_master_port_params(struct sdw_bus *bus, struct sdw_port_runtime *p_rt) sdw_program_master_port_params() argument 303 sdw_enable_disable_slave_ports(struct sdw_bus *bus, struct sdw_slave_runtime *s_rt, struct sdw_port_runtime *p_rt, bool en) sdw_enable_disable_slave_ports() argument 334 sdw_enable_disable_master_ports(struct sdw_master_runtime *m_rt, struct sdw_port_runtime *p_rt, bool en) sdw_enable_disable_master_ports() argument 427 sdw_prep_deprep_slave_ports(struct sdw_bus *bus, struct sdw_slave_runtime *s_rt, struct sdw_port_runtime *p_rt, bool prep) sdw_prep_deprep_slave_ports() argument 514 sdw_prep_deprep_master_ports(struct sdw_master_runtime *m_rt, struct sdw_port_runtime *p_rt, bool prep) sdw_prep_deprep_master_ports() argument 552 struct sdw_port_runtime *p_rt; sdw_prep_deprep_ports() local 889 struct sdw_port_runtime *p_rt; sdw_port_alloc() local 900 sdw_port_config(struct sdw_port_runtime *p_rt, struct sdw_port_config *port_config, int port_index) sdw_port_config() argument 914 sdw_port_free(struct sdw_port_runtime *p_rt) sdw_port_free() argument 928 struct sdw_port_runtime *p_rt, *_p_rt; sdw_slave_port_free() local 949 struct sdw_port_runtime *p_rt; sdw_slave_port_alloc() local 976 struct sdw_port_runtime *p_rt; sdw_slave_port_config() local 1006 struct sdw_port_runtime *p_rt, *_p_rt; sdw_master_port_free() local 1016 struct sdw_port_runtime *p_rt; sdw_master_port_alloc() local 1032 struct sdw_port_runtime *p_rt; sdw_master_port_config() local [all...] |
H A D | generic_bandwidth_allocation.c | 36 struct sdw_port_runtime *p_rt; in sdw_compute_slave_ports() local 50 list_for_each_entry(p_rt, &s_rt->port_list, port_node) { in sdw_compute_slave_ports() 51 ch = hweight32(p_rt->ch_mask); in sdw_compute_slave_ports() 53 sdw_fill_xport_params(&p_rt->transport_params, in sdw_compute_slave_ports() 54 p_rt->num, false, in sdw_compute_slave_ports() 61 sdw_fill_port_params(&p_rt->port_params, in sdw_compute_slave_ports() 62 p_rt->num, bps, in sdw_compute_slave_ports() 89 struct sdw_port_runtime *p_rt; in sdw_compute_master_ports() local 107 list_for_each_entry(p_rt, &m_rt->port_list, port_node) { in sdw_compute_master_ports() 109 sdw_fill_xport_params(&p_rt in sdw_compute_master_ports() [all...] |
H A D | qcom.c | 1056 struct sdw_port_runtime *p_rt; in qcom_swrm_compute_params() local 1063 list_for_each_entry(p_rt, &m_rt->port_list, port_node) { in qcom_swrm_compute_params() 1064 pcfg = &ctrl->pconfig[p_rt->num]; in qcom_swrm_compute_params() 1065 p_rt->transport_params.port_num = p_rt->num; in qcom_swrm_compute_params() 1067 sdw_fill_port_params(&p_rt->port_params, in qcom_swrm_compute_params() 1068 p_rt->num, pcfg->word_length + 1, in qcom_swrm_compute_params() 1077 list_for_each_entry(p_rt, &s_rt->port_list, port_node) { in qcom_swrm_compute_params() 1078 m_port = slave->m_port_map[p_rt->num]; in qcom_swrm_compute_params() 1084 p_rt in qcom_swrm_compute_params() 1118 struct sdw_port_runtime *p_rt; qcom_swrm_stream_free_ports() local 1145 struct sdw_port_runtime *p_rt; qcom_swrm_stream_alloc_ports() local [all...] |
H A D | amd_manager.c | 396 struct sdw_port_runtime *p_rt; in amd_sdw_compute_params() local 411 list_for_each_entry(p_rt, &m_rt->port_list, port_node) { in amd_sdw_compute_params() 412 port_bo = (p_rt->num * 64) + 1; in amd_sdw_compute_params() 413 dev_dbg(bus->dev, "p_rt->num=%d hstart=%d hstop=%d port_bo=%d\n", in amd_sdw_compute_params() 414 p_rt->num, hstart, hstop, port_bo); in amd_sdw_compute_params() 415 sdw_fill_xport_params(&p_rt->transport_params, p_rt->num, in amd_sdw_compute_params() 420 sdw_fill_port_params(&p_rt->port_params, in amd_sdw_compute_params() 421 p_rt->num, bps, in amd_sdw_compute_params()
|