Lines Matching full:master

30 	mutex_lock(&sl->master->bus_mutex);  in w1_reg_a8_v8_read()
32 w1_write_8(sl->master, W1_CMD_READ_DATA); in w1_reg_a8_v8_read()
33 w1_write_8(sl->master, reg); in w1_reg_a8_v8_read()
34 *val = w1_read_8(sl->master); in w1_reg_a8_v8_read()
38 mutex_unlock(&sl->master->bus_mutex); in w1_reg_a8_v8_read()
52 mutex_lock(&sl->master->bus_mutex); in w1_reg_a8_v8_write()
54 w1_write_8(sl->master, W1_CMD_WRITE_DATA); in w1_reg_a8_v8_write()
55 w1_write_8(sl->master, reg); in w1_reg_a8_v8_write()
56 w1_write_8(sl->master, val); in w1_reg_a8_v8_write()
60 mutex_unlock(&sl->master->bus_mutex); in w1_reg_a8_v8_write()
79 mutex_lock(&sl->master->bus_mutex); in w1_reg_a8_v16_read()
81 w1_write_8(sl->master, W1_CMD_READ_DATA); in w1_reg_a8_v16_read()
82 w1_write_8(sl->master, reg); in w1_reg_a8_v16_read()
83 *val = w1_read_8(sl->master); in w1_reg_a8_v16_read()
84 *val |= w1_read_8(sl->master)<<8; in w1_reg_a8_v16_read()
88 mutex_unlock(&sl->master->bus_mutex); in w1_reg_a8_v16_read()
103 mutex_lock(&sl->master->bus_mutex); in w1_reg_a8_v16_write()
105 w1_write_8(sl->master, W1_CMD_WRITE_DATA); in w1_reg_a8_v16_write()
106 w1_write_8(sl->master, reg); in w1_reg_a8_v16_write()
107 w1_write_8(sl->master, val & 0x00FF); in w1_reg_a8_v16_write()
108 w1_write_8(sl->master, val>>8 & 0x00FF); in w1_reg_a8_v16_write()
112 mutex_unlock(&sl->master->bus_mutex); in w1_reg_a8_v16_write()
131 mutex_lock(&sl->master->bus_mutex); in w1_reg_a16_v16_read()
133 w1_write_8(sl->master, W1_CMD_READ_DATA); in w1_reg_a16_v16_read()
134 w1_write_8(sl->master, reg & 0x00FF); in w1_reg_a16_v16_read()
135 w1_write_8(sl->master, reg>>8 & 0x00FF); in w1_reg_a16_v16_read()
136 *val = w1_read_8(sl->master); in w1_reg_a16_v16_read()
137 *val |= w1_read_8(sl->master)<<8; in w1_reg_a16_v16_read()
141 mutex_unlock(&sl->master->bus_mutex); in w1_reg_a16_v16_read()
156 mutex_lock(&sl->master->bus_mutex); in w1_reg_a16_v16_write()
158 w1_write_8(sl->master, W1_CMD_WRITE_DATA); in w1_reg_a16_v16_write()
159 w1_write_8(sl->master, reg & 0x00FF); in w1_reg_a16_v16_write()
160 w1_write_8(sl->master, reg>>8 & 0x00FF); in w1_reg_a16_v16_write()
161 w1_write_8(sl->master, val & 0x00FF); in w1_reg_a16_v16_write()
162 w1_write_8(sl->master, val>>8 & 0x00FF); in w1_reg_a16_v16_write()
166 mutex_unlock(&sl->master->bus_mutex); in w1_reg_a16_v16_write()