Lines Matching refs:p_rt
126 struct sdw_port_runtime *p_rt) in sdw_program_slave_port_params() argument
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() argument
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, &m_rt->port_list, port_node) { in sdw_program_port_params()
280 ret = sdw_program_master_port_params(bus, p_rt); in sdw_program_port_params()
301 struct sdw_port_runtime *p_rt, in sdw_enable_disable_slave_ports() argument
304 struct sdw_transport_params *t_params = &p_rt->transport_params; in sdw_enable_disable_slave_ports()
309 addr = SDW_DPN_CHANNELEN_B1(p_rt->num); in sdw_enable_disable_slave_ports()
311 addr = SDW_DPN_CHANNELEN_B0(p_rt->num); in sdw_enable_disable_slave_ports()
318 ret = sdw_write(s_rt->slave, addr, p_rt->ch_mask); in sdw_enable_disable_slave_ports()
331 struct sdw_port_runtime *p_rt, in sdw_enable_disable_master_ports() argument
334 struct sdw_transport_params *t_params = &p_rt->transport_params; in sdw_enable_disable_master_ports()
339 enable_ch.port_num = p_rt->num; in sdw_enable_disable_master_ports()
340 enable_ch.ch_mask = p_rt->ch_mask; in sdw_enable_disable_master_ports()
419 struct sdw_port_runtime *p_rt, in sdw_prep_deprep_slave_ports() argument
430 prep_ch.num = p_rt->num; in sdw_prep_deprep_slave_ports()
431 prep_ch.ch_mask = p_rt->ch_mask; in sdw_prep_deprep_slave_ports()
456 ret = sdw_configure_dpn_intr(s_rt->slave, p_rt->num, prep, in sdw_prep_deprep_slave_ports()
467 addr = SDW_DPN_PREPARECTRL(p_rt->num); in sdw_prep_deprep_slave_ports()
470 ret = sdw_write(s_rt->slave, addr, p_rt->ch_mask); in sdw_prep_deprep_slave_ports()
485 val = sdw_read(s_rt->slave, SDW_DPN_PREPARESTATUS(p_rt->num)); in sdw_prep_deprep_slave_ports()
486 val &= p_rt->ch_mask; in sdw_prep_deprep_slave_ports()
499 ret = sdw_configure_dpn_intr(s_rt->slave, p_rt->num, prep, in sdw_prep_deprep_slave_ports()
506 struct sdw_port_runtime *p_rt, in sdw_prep_deprep_master_ports() argument
509 struct sdw_transport_params *t_params = &p_rt->transport_params; in sdw_prep_deprep_master_ports()
515 prep_ch.num = p_rt->num; in sdw_prep_deprep_master_ports()
516 prep_ch.ch_mask = p_rt->ch_mask; in sdw_prep_deprep_master_ports()
543 struct sdw_port_runtime *p_rt; in sdw_prep_deprep_ports() local
548 list_for_each_entry(p_rt, &s_rt->port_list, port_node) { in sdw_prep_deprep_ports()
550 p_rt, prep); in sdw_prep_deprep_ports()
557 list_for_each_entry(p_rt, &m_rt->port_list, port_node) { in sdw_prep_deprep_ports()
558 ret = sdw_prep_deprep_master_ports(m_rt, p_rt, prep); in sdw_prep_deprep_ports()
995 struct sdw_port_runtime *p_rt, *_p_rt; in sdw_master_port_release() local
997 list_for_each_entry_safe(p_rt, _p_rt, &m_rt->port_list, port_node) { in sdw_master_port_release()
998 list_del(&p_rt->port_node); in sdw_master_port_release()
999 kfree(p_rt); in sdw_master_port_release()
1007 struct sdw_port_runtime *p_rt, *_p_rt; in sdw_slave_port_release() local
1016 list_for_each_entry_safe(p_rt, _p_rt, in sdw_slave_port_release()
1018 list_del(&p_rt->port_node); in sdw_slave_port_release()
1019 kfree(p_rt); in sdw_slave_port_release()
1181 struct sdw_port_runtime *p_rt) in sdw_is_valid_port_range() argument
1183 if (!SDW_VALID_PORT_RANGE(p_rt->num)) { in sdw_is_valid_port_range()
1185 "SoundWire: Invalid port number :%d\n", p_rt->num); in sdw_is_valid_port_range()
1197 struct sdw_port_runtime *p_rt; in sdw_port_alloc() local
1199 p_rt = kzalloc(sizeof(*p_rt), GFP_KERNEL); in sdw_port_alloc()
1200 if (!p_rt) in sdw_port_alloc()
1203 p_rt->ch_mask = port_config[port_index].ch_mask; in sdw_port_alloc()
1204 p_rt->num = port_config[port_index].num; in sdw_port_alloc()
1206 return p_rt; in sdw_port_alloc()
1214 struct sdw_port_runtime *p_rt; in sdw_master_port_config() local
1219 p_rt = sdw_port_alloc(bus->dev, port_config, i); in sdw_master_port_config()
1220 if (!p_rt) in sdw_master_port_config()
1228 list_add_tail(&p_rt->port_node, &m_rt->port_list); in sdw_master_port_config()
1239 struct sdw_port_runtime *p_rt; in sdw_slave_port_config() local
1244 p_rt = sdw_port_alloc(&slave->dev, port_config, i); in sdw_slave_port_config()
1245 if (!p_rt) in sdw_slave_port_config()
1252 ret = sdw_is_valid_port_range(&slave->dev, p_rt); in sdw_slave_port_config()
1254 kfree(p_rt); in sdw_slave_port_config()
1263 list_add_tail(&p_rt->port_node, &s_rt->port_list); in sdw_slave_port_config()