Lines Matching full:slave
34 static ssize_t sdw_sprintf(struct sdw_slave *slave, in sdw_sprintf() argument
39 value = sdw_read_no_pm(slave, reg); in sdw_sprintf()
50 struct sdw_slave *slave = s_file->private; in sdw_slave_reg_show() local
59 ret = pm_runtime_get_sync(&slave->dev); in sdw_slave_reg_show()
61 pm_runtime_put_noidle(&slave->dev); in sdw_slave_reg_show()
71 ret += sdw_sprintf(slave, buf, ret, i); in sdw_slave_reg_show()
75 ret += sdw_sprintf(slave, buf, ret, SDW_DP0_CHANNELEN); in sdw_slave_reg_show()
77 ret += sdw_sprintf(slave, buf, ret, i); in sdw_slave_reg_show()
81 ret += sdw_sprintf(slave, buf, ret, in sdw_slave_reg_show()
85 ret += sdw_sprintf(slave, buf, ret, i); in sdw_slave_reg_show()
90 ret += sdw_sprintf(slave, buf, ret, i); in sdw_slave_reg_show()
92 ret += sdw_sprintf(slave, buf, ret, i); in sdw_slave_reg_show()
94 ret += sdw_sprintf(slave, buf, ret, i); in sdw_slave_reg_show()
96 ret += sdw_sprintf(slave, buf, ret, i); in sdw_slave_reg_show()
98 ret += sdw_sprintf(slave, buf, ret, i); in sdw_slave_reg_show()
103 * retrieved from the Slave. The Master typically keeps track in sdw_slave_reg_show()
114 ret += sdw_sprintf(slave, buf, ret, j); in sdw_slave_reg_show()
120 ret += sdw_sprintf(slave, buf, ret, j); in sdw_slave_reg_show()
126 ret += sdw_sprintf(slave, buf, ret, j); in sdw_slave_reg_show()
131 pm_runtime_mark_last_busy(&slave->dev); in sdw_slave_reg_show()
132 pm_runtime_put(&slave->dev); in sdw_slave_reg_show()
140 void sdw_slave_debugfs_init(struct sdw_slave *slave) in sdw_slave_debugfs_init() argument
146 master = slave->bus->debugfs; in sdw_slave_debugfs_init()
148 /* create the debugfs slave-name */ in sdw_slave_debugfs_init()
149 snprintf(name, sizeof(name), "%s", dev_name(&slave->dev)); in sdw_slave_debugfs_init()
152 debugfs_create_file("registers", 0400, d, slave, &sdw_slave_reg_fops); in sdw_slave_debugfs_init()
154 slave->debugfs = d; in sdw_slave_debugfs_init()
157 void sdw_slave_debugfs_exit(struct sdw_slave *slave) in sdw_slave_debugfs_exit() argument
159 debugfs_remove_recursive(slave->debugfs); in sdw_slave_debugfs_exit()