Home
last modified time | relevance | path

Searched refs:w1_slave (Results 1 – 25 of 31) sorted by relevance

12

/linux/drivers/base/regmap/
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, dev); in w1_reg_a16_v16_read()
150 struct w1_slave *sl = container_of(dev, struct w1_slave, dev); in w1_reg_a16_v16_write()
/linux/drivers/w1/slaves/
A Dw1_therm.c164 int (*get_conversion_time)(struct w1_slave *sl);
166 int (*get_resolution)(struct w1_slave *sl);
259 static int copy_scratchpad(struct w1_slave *sl);
267 static int recall_eeprom(struct w1_slave *sl);
281 static int read_powermode(struct w1_slave *sl);
348 static DEVICE_ATTR_RW(w1_slave);
1306 static int copy_scratchpad(struct w1_slave *sl) in copy_scratchpad()
1360 static int recall_eeprom(struct w1_slave *sl) in recall_eeprom()
1395 static int read_powermode(struct w1_slave *sl) in read_powermode()
1528 struct w1_slave *sl = dev_to_w1_slave(device); in w1_slave_show()
[all …]
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()
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()
A Dw1_ds28e17.c122 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()
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()
554 static int w1_f19_set_i2c_speed(struct w1_slave *sl, u8 speed) in w1_f19_set_i2c_speed()
577 struct w1_slave *sl = dev_to_w1_slave(dev); in speed_show()
592 struct w1_slave *sl = dev_to_w1_slave(dev); in speed_store()
632 struct w1_slave *sl = dev_to_w1_slave(dev); in stretch_show()
642 struct w1_slave *sl = dev_to_w1_slave(dev); in stretch_store()
681 static int w1_f19_add_slave(struct w1_slave *sl) in w1_f19_add_slave()
[all …]
A Dw1_ds2438.c61 static int w1_ds2438_get_page(struct w1_slave *sl, int pageno, u8 *buf) in w1_ds2438_get_page()
224 static int w1_ds2438_get_voltage(struct w1_slave *sl, in w1_ds2438_get_voltage()
273 static int w1_ds2438_get_current(struct w1_slave *sl, int16_t *voltage) in w1_ds2438_get_current()
296 struct w1_slave *sl = kobj_to_w1_slave(kobj); in iad_write()
318 struct w1_slave *sl = kobj_to_w1_slave(kobj); in iad_read()
339 struct w1_slave *sl = kobj_to_w1_slave(kobj); in page0_read()
369 struct w1_slave *sl = kobj_to_w1_slave(kobj); in page1_read()
399 struct w1_slave *sl = kobj_to_w1_slave(kobj); in offset_write()
418 struct w1_slave *sl = kobj_to_w1_slave(kobj); in temperature_read()
439 struct w1_slave *sl = kobj_to_w1_slave(kobj); in vad_read()
[all …]
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()
393 static int w1_f1C_add_slave(struct w1_slave *sl) in w1_f1C_add_slave()
407 static void w1_f1C_remove_slave(struct w1_slave *sl) in w1_f1C_remove_slave()
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()
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()
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()
A Dw1_ds2408.c38 static int _read_reg(struct w1_slave *sl, u8 address, unsigned char* buf) in _read_reg()
140 static bool optional_read_back_valid(struct w1_slave *sl, u8 expected) in optional_read_back_valid()
156 static bool optional_read_back_valid(struct w1_slave *sl, u8 expected) in optional_read_back_valid()
166 struct w1_slave *sl = kobj_to_w1_slave(kobj); in output_write()
216 struct w1_slave *sl = kobj_to_w1_slave(kobj); in activity_write()
246 struct w1_slave *sl = kobj_to_w1_slave(kobj); in status_control_write()
291 static int w1_f29_disable_test_mode(struct w1_slave *sl) in w1_f29_disable_test_mode()
A Dw1_ds2406.c31 struct w1_slave *sl = kobj_to_w1_slave(kobj); in w1_f12_read_state()
67 struct w1_slave *sl = kobj_to_w1_slave(kobj); in w1_f12_write_output()
117 static int w1_f12_add_slave(struct w1_slave *sl) in w1_f12_add_slave()
133 static void w1_f12_remove_slave(struct w1_slave *sl) in w1_f12_remove_slave()
A Dw1_ds250x.c40 int (*read)(struct w1_slave *sl, int pageno);
46 static int w1_ds2502_read_page(struct w1_slave *sl, int pageno) in w1_ds2502_read_page()
84 static int w1_ds2505_read_page(struct w1_slave *sl, int pageno) in w1_ds2505_read_page()
142 struct w1_slave *sl = priv; in w1_nvmem_read()
165 static int w1_eprom_add_slave(struct w1_slave *sl) in w1_eprom_add_slave()
A Dw1_ds2430.c65 static int w1_f14_readblock(struct w1_slave *sl, int off, int count, char *buf) in w1_f14_readblock()
101 struct w1_slave *sl = kobj_to_w1_slave(kobj); in eeprom_read()
145 static int w1_f14_write(struct w1_slave *sl, int addr, int len, const u8 *data) in w1_f14_write()
208 struct w1_slave *sl = kobj_to_w1_slave(kobj); in eeprom_write()
A Dw1_ds2431.c64 static int w1_f2d_readblock(struct w1_slave *sl, int off, int count, char *buf) in w1_f2d_readblock()
101 struct w1_slave *sl = kobj_to_w1_slave(kobj); in eeprom_read()
145 static int w1_f2d_write(struct w1_slave *sl, int addr, int len, const u8 *data) in w1_f2d_write()
207 struct w1_slave *sl = kobj_to_w1_slave(kobj); in eeprom_write()
A Dw1_ds2423.c33 struct w1_slave *sl = dev_to_w1_slave(device); in w1_slave_show()
112 static DEVICE_ATTR_RO(w1_slave);
A Dw1_ds2413.c31 struct w1_slave *sl = kobj_to_w1_slave(kobj); in state_read()
87 struct w1_slave *sl = kobj_to_w1_slave(kobj); in output_write()
/linux/include/linux/
A Dw1.h65 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()
/linux/drivers/w1/
A Dw1.c114 ATTRIBUTE_GROUPS(w1_slave);
374 struct w1_slave *sl = NULL; in w1_master_attribute_show_slaves()
445 struct w1_slave *sl; in w1_slave_search_device()
465 struct w1_slave *sl; in w1_master_attribute_store_add()
503 struct w1_slave *sl; in w1_master_attribute_store_remove()
583 struct w1_slave *sl = NULL; in w1_uevent()
722 struct w1_slave *sl; in w1_attach_slave_device()
852 struct w1_slave *sl = NULL; in w1_search_slave()
880 struct w1_slave *sl, *sln; in w1_reconnect_slaves()
954 struct w1_slave *sl; in w1_slave_found()
[all …]
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);
A Dw1_netlink.c43 struct w1_slave *sl;
267 struct w1_slave *sl; in w1_get_slaves()
316 struct w1_slave *sl; in w1_process_command_addremove()
387 static int w1_process_command_slave(struct w1_slave *sl, in w1_process_command_slave()
449 struct w1_slave *sl = node->sl; in w1_process_cb()
538 struct w1_slave *sl; in w1_cn_callback()
/linux/drivers/power/supply/
A Dbq27xxx_battery_hdq.c28 static int w1_bq27000_read(struct w1_slave *sl, unsigned int reg) in w1_bq27000_read()
43 struct w1_slave *sl = dev_to_w1_slave(di->dev); in bq27xxx_battery_hdq_read()
75 static int bq27xxx_battery_hdq_add_slave(struct w1_slave *sl) in bq27xxx_battery_hdq_add_slave()
93 static void bq27xxx_battery_hdq_remove_slave(struct w1_slave *sl) in bq27xxx_battery_hdq_remove_slave()
A Dds2760_battery.c122 struct w1_slave *sl = container_of(dev, struct w1_slave, dev); in w1_ds2760_io()
171 struct w1_slave *sl = container_of(dev, struct w1_slave, dev); in w1_ds2760_eeprom_cmd()
205 static BIN_ATTR_RO(w1_slave, DS2760_DATA_SIZE);
677 static int w1_ds2760_add_slave(struct w1_slave *sl) in w1_ds2760_add_slave()
780 static void w1_ds2760_remove_slave(struct w1_slave *sl) in w1_ds2760_remove_slave()
/linux/Documentation/w1/slaves/
A Dw1_ds2423.rst19 Support is provided through the sysfs w1_slave file. Each opening and
20 read sequence of w1_slave file initiates the read of counters and ram
A Dw1_therm.rst30 Support is provided through the sysfs entry ``w1_slave``. Each open and
69 Writing a resolution value (in bits) to ``w1_slave`` will change the
73 To store the current resolution in EEPROM, write ``0`` to ``w1_slave``.

Completed in 33 milliseconds

12