Lines Matching full:slave

14  * Slave sysfs
18 * The sysfs for Slave reflects the MIPI description as given
74 struct sdw_slave *slave = dev_to_sdw_dev(dev); \
75 return sprintf(buf, format_string, slave->prop.field); \
98 struct sdw_slave *slave = dev_to_sdw_dev(dev); in modalias_show() local
100 return sdw_slave_modalias(slave, buf, 256); in modalias_show()
108 ATTRIBUTE_GROUPS(slave);
147 struct sdw_slave *slave = dev_to_sdw_dev(dev); \
148 return sprintf(buf, format_string, slave->prop.dp0_prop->field);\
161 struct sdw_slave *slave = dev_to_sdw_dev(dev); in words_show() local
165 for (i = 0; i < slave->prop.dp0_prop->num_words; i++) in words_show()
167 slave->prop.dp0_prop->words[i]); in words_show()
193 int sdw_slave_sysfs_init(struct sdw_slave *slave) in sdw_slave_sysfs_init() argument
197 ret = devm_device_add_groups(&slave->dev, slave_groups); in sdw_slave_sysfs_init()
201 ret = devm_device_add_group(&slave->dev, &sdw_slave_dev_attr_group); in sdw_slave_sysfs_init()
205 if (slave->prop.dp0_prop) { in sdw_slave_sysfs_init()
206 ret = devm_device_add_group(&slave->dev, &dp0_group); in sdw_slave_sysfs_init()
211 if (slave->prop.source_ports || slave->prop.sink_ports) { in sdw_slave_sysfs_init()
212 ret = sdw_slave_sysfs_dpn_init(slave); in sdw_slave_sysfs_init()
235 struct sdw_slave *slave = dev_to_sdw_dev(dev); in status_show() local
237 return sprintf(buf, "%s\n", slave_status[slave->status]); in status_show()
244 struct sdw_slave *slave = dev_to_sdw_dev(dev); in device_number_show() local
246 if (slave->status == SDW_SLAVE_UNATTACHED) in device_number_show()
249 return sprintf(buf, "%d", slave->dev_num); in device_number_show()