Lines Matching full:slave

33 static ssize_t sdw_sprintf(struct sdw_slave *slave,  in sdw_sprintf()  argument
38 value = sdw_read(slave, reg); in sdw_sprintf()
49 struct sdw_slave *slave = s_file->private; in sdw_slave_reg_show() local
63 ret += sdw_sprintf(slave, buf, ret, i); in sdw_slave_reg_show()
67 ret += sdw_sprintf(slave, buf, ret, SDW_DP0_CHANNELEN); in sdw_slave_reg_show()
69 ret += sdw_sprintf(slave, buf, ret, i); in sdw_slave_reg_show()
73 ret += sdw_sprintf(slave, buf, ret, in sdw_slave_reg_show()
77 ret += sdw_sprintf(slave, buf, ret, i); in sdw_slave_reg_show()
82 ret += sdw_sprintf(slave, buf, ret, i); in sdw_slave_reg_show()
84 ret += sdw_sprintf(slave, buf, ret, i); in sdw_slave_reg_show()
88 * retrieved from the Slave. The Master typically keeps track in sdw_slave_reg_show()
99 ret += sdw_sprintf(slave, buf, ret, j); in sdw_slave_reg_show()
105 ret += sdw_sprintf(slave, buf, ret, j); in sdw_slave_reg_show()
111 ret += sdw_sprintf(slave, buf, ret, j); in sdw_slave_reg_show()
121 void sdw_slave_debugfs_init(struct sdw_slave *slave) in sdw_slave_debugfs_init() argument
127 master = slave->bus->debugfs; in sdw_slave_debugfs_init()
129 /* create the debugfs slave-name */ in sdw_slave_debugfs_init()
130 snprintf(name, sizeof(name), "%s", dev_name(&slave->dev)); in sdw_slave_debugfs_init()
133 debugfs_create_file("registers", 0400, d, slave, &sdw_slave_reg_fops); in sdw_slave_debugfs_init()
135 slave->debugfs = d; in sdw_slave_debugfs_init()
138 void sdw_slave_debugfs_exit(struct sdw_slave *slave) in sdw_slave_debugfs_exit() argument
140 debugfs_remove_recursive(slave->debugfs); in sdw_slave_debugfs_exit()