Home
last modified time | relevance | path

Searched refs:w1_slave (Results 1 - 25 of 52) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/w1/slaves/
H A Dw1_ds2780.c29 struct w1_slave *sl = container_of(dev, struct w1_slave, dev); in w1_ds2780_do_io()
54 struct w1_slave *sl = container_of(dev, struct w1_slave, dev); in w1_ds2780_io()
72 struct w1_slave *sl = container_of(dev, struct w1_slave, dev); in w1_ds2780_eeprom_cmd()
97 static BIN_ATTR_RO(w1_slave, DS2780_DATA_SIZE);
113 static int w1_ds2780_add_slave(struct w1_slave *sl) in w1_ds2780_add_slave()
137 static void w1_ds2780_remove_slave(struct w1_slave *sl) in w1_ds2780_remove_slave()
H A Dw1_ds2781.c26 struct w1_slave *sl = container_of(dev, struct w1_slave, dev); in w1_ds2781_do_io()
51 struct w1_slave *sl = container_of(dev, struct w1_slave, dev); in w1_ds2781_io()
69 struct w1_slave *sl = container_of(dev, struct w1_slave, dev); in w1_ds2781_eeprom_cmd()
94 static BIN_ATTR_RO(w1_slave, DS2781_DATA_SIZE);
110 static int w1_ds2781_add_slave(struct w1_slave *sl) in w1_ds2781_add_slave()
134 static void w1_ds2781_remove_slave(struct w1_slave *sl) in w1_ds2781_remove_slave()
H A Dw1_ds28e17.c85 static int w1_f19_i2c_busy_wait(struct w1_slave *sl, size_t count) in w1_f19_i2c_busy_wait()
122 static size_t w1_f19_error(struct w1_slave *sl, u8 w1_buf[]) in w1_f19_error()
149 static int __w1_f19_i2c_write(struct w1_slave *sl, in __w1_f19_i2c_write()
190 static int w1_f19_i2c_write(struct w1_slave *sl, u16 i2c_address, in w1_f19_i2c_write()
262 static int w1_f19_i2c_read(struct w1_slave *sl, u16 i2c_address, in w1_f19_i2c_read()
301 static int w1_f19_i2c_write_read(struct w1_slave *sl, u16 i2c_address, in w1_f19_i2c_write_read()
349 struct w1_slave *sl = (struct w1_slave *) adapter->algo_data; in w1_f19_i2c_master_transfer()
500 static int w1_f19_get_i2c_speed(struct w1_slave *sl) in w1_f19_get_i2c_speed()
532 static int __w1_f19_set_i2c_speed(struct w1_slave *s
[all...]
H A Dw1_ds2438.c52 static int w1_ds2438_get_page(struct w1_slave *sl, int pageno, u8 *buf) in w1_ds2438_get_page()
86 static int w1_ds2438_get_temperature(struct w1_slave *sl, int16_t *temperature) in w1_ds2438_get_temperature()
128 static int w1_ds2438_change_config_bit(struct w1_slave *sl, u8 mask, u8 value) in w1_ds2438_change_config_bit()
187 static int w1_ds2438_get_voltage(struct w1_slave *sl, in w1_ds2438_get_voltage()
236 static int w1_ds2438_get_current(struct w1_slave *sl, int16_t *voltage) in w1_ds2438_get_current()
259 struct w1_slave *sl = kobj_to_w1_slave(kobj); in iad_write()
281 struct w1_slave *sl = kobj_to_w1_slave(kobj); in iad_read()
302 struct w1_slave *sl = kobj_to_w1_slave(kobj); in page0_read()
332 struct w1_slave *sl = kobj_to_w1_slave(kobj); in temperature_read()
353 struct w1_slave *s in vad_read()
[all...]
H A Dw1_therm.c164 int (*get_conversion_time)(struct w1_slave *sl);
165 int (*set_resolution)(struct w1_slave *sl, int val);
166 int (*get_resolution)(struct w1_slave *sl);
167 int (*write_data)(struct w1_slave *sl, const u8 *data);
223 static int reset_select_slave(struct w1_slave *sl);
232 static int convert_t(struct w1_slave *sl, struct therm_info *info);
241 static int read_scratchpad(struct w1_slave *sl, struct therm_info *info);
251 static int write_scratchpad(struct w1_slave *sl, const u8 *data, u8 nb_bytes);
259 static int copy_scratchpad(struct w1_slave *sl);
267 static int recall_eeprom(struct w1_slave *s
[all...]
H A Dw1_ds28e04.c71 static int w1_f1C_refresh_block(struct w1_slave *sl, struct w1_f1C_data *data, in w1_f1C_refresh_block()
98 static int w1_f1C_read(struct w1_slave *sl, int addr, int len, char *data) in w1_f1C_read()
118 struct w1_slave *sl = kobj_to_w1_slave(kobj); in eeprom_read()
160 static int w1_f1C_write(struct w1_slave *sl, int addr, int len, const u8 *data) in w1_f1C_write()
227 struct w1_slave *sl = kobj_to_w1_slave(kobj); in eeprom_write()
283 struct w1_slave *sl = kobj_to_w1_slave(kobj); in pio_read()
302 struct w1_slave *sl = kobj_to_w1_slave(kobj); in pio_write()
379 static int w1_f1C_add_slave(struct w1_slave *sl) in w1_f1C_add_slave()
393 static void w1_f1C_remove_slave(struct w1_slave *sl) in w1_f1C_remove_slave()
H A Dw1_ds2405.c26 static int w1_ds2405_select(struct w1_slave *sl, bool only_active) in w1_ds2405_select()
60 static int w1_ds2405_read_pio(struct w1_slave *sl) in w1_ds2405_read_pio()
74 struct w1_slave *sl = dev_to_w1_slave(device); in state_show()
111 struct w1_slave *sl = dev_to_w1_slave(device); in output_show()
141 struct w1_slave *sl = dev_to_w1_slave(device); in output_store()
H A Dw1_ds2805.c61 static int w1_f0d_readblock(struct w1_slave *sl, int off, int count, char *buf) in w1_f0d_readblock()
98 struct w1_slave *sl = kobj_to_w1_slave(kobj); in w1_f0d_read_bin()
144 static int w1_f0d_write(struct w1_slave *sl, int addr, int len, const u8 *data) in w1_f0d_write()
206 struct w1_slave *sl = kobj_to_w1_slave(kobj); in w1_f0d_write_bin()
274 static int w1_f0d_add_slave(struct w1_slave *sl) in w1_f0d_add_slave()
279 static void w1_f0d_remove_slave(struct w1_slave *sl) in w1_f0d_remove_slave()
H A Dw1_ds2433.c61 static int w1_f23_refresh_block(struct w1_slave *sl, struct w1_f23_data *data, in w1_f23_refresh_block()
93 struct w1_slave *sl = kobj_to_w1_slave(kobj); in eeprom_read()
152 static int w1_f23_write(struct w1_slave *sl, int addr, int len, const u8 *data) in w1_f23_write()
207 struct w1_slave *sl = kobj_to_w1_slave(kobj); in eeprom_write()
269 static int w1_f23_add_slave(struct w1_slave *sl) in w1_f23_add_slave()
283 static void w1_f23_remove_slave(struct w1_slave *sl) in w1_f23_remove_slave()
/kernel/linux/linux-6.6/drivers/w1/slaves/
H A Dw1_ds2780.c29 struct w1_slave *sl = container_of(dev, struct w1_slave, dev); in w1_ds2780_do_io()
54 struct w1_slave *sl = container_of(dev, struct w1_slave, dev); in w1_ds2780_io()
72 struct w1_slave *sl = container_of(dev, struct w1_slave, dev); in w1_ds2780_eeprom_cmd()
98 static BIN_ATTR_RO(w1_slave, DS2780_DATA_SIZE);
114 static int w1_ds2780_add_slave(struct w1_slave *sl) in w1_ds2780_add_slave()
138 static void w1_ds2780_remove_slave(struct w1_slave *sl) in w1_ds2780_remove_slave()
H A Dw1_ds2781.c26 struct w1_slave *sl = container_of(dev, struct w1_slave, dev); in w1_ds2781_do_io()
51 struct w1_slave *sl = container_of(dev, struct w1_slave, dev); in w1_ds2781_io()
69 struct w1_slave *sl = container_of(dev, struct w1_slave, dev); in w1_ds2781_eeprom_cmd()
95 static BIN_ATTR_RO(w1_slave, DS2781_DATA_SIZE);
111 static int w1_ds2781_add_slave(struct w1_slave *sl) in w1_ds2781_add_slave()
135 static void w1_ds2781_remove_slave(struct w1_slave *sl) in w1_ds2781_remove_slave()
H A Dw1_ds28e17.c85 static int w1_f19_i2c_busy_wait(struct w1_slave *sl, size_t count) in w1_f19_i2c_busy_wait()
122 static size_t w1_f19_error(struct w1_slave *sl, u8 w1_buf[]) in w1_f19_error()
149 static int __w1_f19_i2c_write(struct w1_slave *sl, in __w1_f19_i2c_write()
190 static int w1_f19_i2c_write(struct w1_slave *sl, u16 i2c_address, in w1_f19_i2c_write()
262 static int w1_f19_i2c_read(struct w1_slave *sl, u16 i2c_address, in w1_f19_i2c_read()
301 static int w1_f19_i2c_write_read(struct w1_slave *sl, u16 i2c_address, in w1_f19_i2c_write_read()
349 struct w1_slave *sl = (struct w1_slave *) adapter->algo_data; in w1_f19_i2c_master_transfer()
500 static int w1_f19_get_i2c_speed(struct w1_slave *sl) in w1_f19_get_i2c_speed()
532 static int __w1_f19_set_i2c_speed(struct w1_slave *s
[all...]
H A Dw1_therm.c164 int (*get_conversion_time)(struct w1_slave *sl);
165 int (*set_resolution)(struct w1_slave *sl, int val);
166 int (*get_resolution)(struct w1_slave *sl);
167 int (*write_data)(struct w1_slave *sl, const u8 *data);
223 static int reset_select_slave(struct w1_slave *sl);
232 static int convert_t(struct w1_slave *sl, struct therm_info *info);
241 static int read_scratchpad(struct w1_slave *sl, struct therm_info *info);
251 static int write_scratchpad(struct w1_slave *sl, const u8 *data, u8 nb_bytes);
259 static int copy_scratchpad(struct w1_slave *sl);
267 static int recall_eeprom(struct w1_slave *s
[all...]
H A Dw1_ds2438.c61 static int w1_ds2438_get_page(struct w1_slave *sl, int pageno, u8 *buf) in w1_ds2438_get_page()
93 static int w1_ds2438_get_temperature(struct w1_slave *sl, int16_t *temperature) in w1_ds2438_get_temperature()
135 static int w1_ds2438_change_config_bit(struct w1_slave *sl, u8 mask, u8 value) in w1_ds2438_change_config_bit()
194 static int w1_ds2438_change_offset_register(struct w1_slave *sl, u8 *value) in w1_ds2438_change_offset_register()
222 static int w1_ds2438_get_voltage(struct w1_slave *sl, in w1_ds2438_get_voltage()
271 static int w1_ds2438_get_current(struct w1_slave *sl, int16_t *voltage) in w1_ds2438_get_current()
294 struct w1_slave *sl = kobj_to_w1_slave(kobj); in iad_write()
316 struct w1_slave *sl = kobj_to_w1_slave(kobj); in iad_read()
337 struct w1_slave *sl = kobj_to_w1_slave(kobj); in page0_read()
367 struct w1_slave *s in page1_read()
[all...]
H A Dw1_ds28e04.c71 static int w1_f1C_refresh_block(struct w1_slave *sl, struct w1_f1C_data *data, in w1_f1C_refresh_block()
98 static int w1_f1C_read(struct w1_slave *sl, int addr, int len, char *data) in w1_f1C_read()
118 struct w1_slave *sl = kobj_to_w1_slave(kobj); in eeprom_read()
161 static int w1_f1C_write(struct w1_slave *sl, int addr, int len, const u8 *data) in w1_f1C_write()
230 struct w1_slave *sl = kobj_to_w1_slave(kobj); in eeprom_write()
286 struct w1_slave *sl = kobj_to_w1_slave(kobj); in pio_read()
305 struct w1_slave *sl = kobj_to_w1_slave(kobj); in pio_write()
382 static int w1_f1C_add_slave(struct w1_slave *sl) in w1_f1C_add_slave()
396 static void w1_f1C_remove_slave(struct w1_slave *sl) in w1_f1C_remove_slave()
H A Dw1_ds2405.c26 static int w1_ds2405_select(struct w1_slave *sl, bool only_active) in w1_ds2405_select()
60 static int w1_ds2405_read_pio(struct w1_slave *sl) in w1_ds2405_read_pio()
74 struct w1_slave *sl = dev_to_w1_slave(device); in state_show()
111 struct w1_slave *sl = dev_to_w1_slave(device); in output_show()
141 struct w1_slave *sl = dev_to_w1_slave(device); in output_store()
H A Dw1_ds2433.c61 static int w1_f23_refresh_block(struct w1_slave *sl, struct w1_f23_data *data, in w1_f23_refresh_block()
93 struct w1_slave *sl = kobj_to_w1_slave(kobj); in eeprom_read()
154 static int w1_f23_write(struct w1_slave *sl, int addr, int len, const u8 *data) in w1_f23_write()
209 struct w1_slave *sl = kobj_to_w1_slave(kobj); in eeprom_write()
272 static int w1_f23_add_slave(struct w1_slave *sl) in w1_f23_add_slave()
286 static void w1_f23_remove_slave(struct w1_slave *sl) in w1_f23_remove_slave()
/kernel/linux/linux-5.10/drivers/base/regmap/
H A Dregmap-w1.c24 struct w1_slave *sl = container_of(dev, struct w1_slave, dev); in w1_reg_a8_v8_read()
46 struct w1_slave *sl = container_of(dev, struct w1_slave, dev); in w1_reg_a8_v8_write()
73 struct w1_slave *sl = container_of(dev, struct w1_slave, dev); in w1_reg_a8_v16_read()
97 struct w1_slave *sl = container_of(dev, struct w1_slave, dev); in w1_reg_a8_v16_write()
125 struct w1_slave *sl = container_of(dev, struct w1_slave, de in w1_reg_a16_v16_read()
[all...]
/kernel/linux/linux-6.6/drivers/base/regmap/
H A Dregmap-w1.c24 struct w1_slave *sl = container_of(dev, struct w1_slave, dev); in w1_reg_a8_v8_read()
46 struct w1_slave *sl = container_of(dev, struct w1_slave, dev); in w1_reg_a8_v8_write()
73 struct w1_slave *sl = container_of(dev, struct w1_slave, dev); in w1_reg_a8_v16_read()
97 struct w1_slave *sl = container_of(dev, struct w1_slave, dev); in w1_reg_a8_v16_write()
125 struct w1_slave *sl = container_of(dev, struct w1_slave, de in w1_reg_a16_v16_read()
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dw1.h49 * struct w1_slave - holds a single slave device on the bus
65 struct w1_slave { struct
254 int (*add_slave)(struct w1_slave *sl);
255 void (*remove_slave)(struct w1_slave *sl);
303 int w1_reset_select_slave(struct w1_slave *sl);
307 static inline struct w1_slave* dev_to_w1_slave(struct device *dev) in dev_to_w1_slave()
309 return container_of(dev, struct w1_slave, dev); in dev_to_w1_slave()
312 static inline struct w1_slave* kobj_to_w1_slave(struct kobject *kobj) in kobj_to_w1_slave()
/kernel/linux/linux-6.6/include/linux/
H A Dw1.h49 * struct w1_slave - holds a single slave device on the bus
65 struct w1_slave { struct
254 int (*add_slave)(struct w1_slave *sl);
255 void (*remove_slave)(struct w1_slave *sl);
303 int w1_reset_select_slave(struct w1_slave *sl);
307 static inline struct w1_slave* dev_to_w1_slave(struct device *dev) in dev_to_w1_slave()
309 return container_of(dev, struct w1_slave, dev); in dev_to_w1_slave()
312 static inline struct w1_slave* kobj_to_w1_slave(struct kobject *kobj) in kobj_to_w1_slave()
/kernel/linux/linux-5.10/drivers/w1/
H A Dw1_internal.h38 struct w1_slave *w1_search_slave(struct w1_reg_num *id);
43 int w1_unref_slave(struct w1_slave *sl);
47 struct w1_slave *w1_slave_search_device(struct w1_master *dev,
59 int w1_slave_detach(struct w1_slave *sl);
H A Dw1.c80 struct w1_slave *sl = dev_to_w1_slave(dev); in w1_slave_release()
90 struct w1_slave *sl = dev_to_w1_slave(dev); in name_show()
99 struct w1_slave *sl = dev_to_w1_slave(dev); in id_show()
112 ATTRIBUTE_GROUPS(w1_slave); variable
120 struct w1_slave *sl = kobj_to_w1_slave(kobj); in rw_write()
139 struct w1_slave *sl = kobj_to_w1_slave(kobj); in rw_read()
372 struct w1_slave *sl = NULL; in w1_master_attribute_show_slaves()
377 sl = list_entry(ent, struct w1_slave, w1_slave_entry); in w1_master_attribute_show_slaves()
440 struct w1_slave *w1_slave_search_device(struct w1_master *dev, in w1_slave_search_device()
443 struct w1_slave *s in w1_slave_search_device()
[all...]
/kernel/linux/linux-6.6/drivers/w1/
H A Dw1_internal.h38 struct w1_slave *w1_search_slave(struct w1_reg_num *id);
43 int w1_unref_slave(struct w1_slave *sl);
47 struct w1_slave *w1_slave_search_device(struct w1_master *dev,
59 int w1_slave_detach(struct w1_slave *sl);
H A Dw1.c77 struct w1_slave *sl = dev_to_w1_slave(dev); in w1_slave_release()
87 struct w1_slave *sl = dev_to_w1_slave(dev); in name_show()
96 struct w1_slave *sl = dev_to_w1_slave(dev); in id_show()
109 ATTRIBUTE_GROUPS(w1_slave); variable
117 struct w1_slave *sl = kobj_to_w1_slave(kobj); in rw_write()
136 struct w1_slave *sl = kobj_to_w1_slave(kobj); in rw_read()
364 struct w1_slave *sl = NULL; in w1_master_attribute_show_slaves()
369 sl = list_entry(ent, struct w1_slave, w1_slave_entry); in w1_master_attribute_show_slaves()
432 struct w1_slave *w1_slave_search_device(struct w1_master *dev, in w1_slave_search_device()
435 struct w1_slave *s in w1_slave_search_device()
[all...]

Completed in 21 milliseconds

123