/Linux-v6.6/drivers/base/regmap/ |
D | regmap-w1.c | 24 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-v6.6/drivers/w1/slaves/ |
D | w1_ds2780.c | 29 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()
|
D | w1_ds2781.c | 26 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()
|
D | w1_therm.c | 164 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 *sl); [all …]
|
D | w1_ds2438.c | 61 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 *sl = kobj_to_w1_slave(kobj); in page1_read() [all …]
|
D | w1_ds28e17.c | 85 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 *sl, u8 speed) in __w1_f19_set_i2c_speed() 554 static int w1_f19_set_i2c_speed(struct w1_slave *sl, u8 speed) in w1_f19_set_i2c_speed() [all …]
|
D | w1_ds28e04.c | 71 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()
|
D | w1_ds2405.c | 26 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()
|
D | w1_ds2805.c | 61 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()
|
D | w1_ds2433.c | 61 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()
|
D | w1_ds2406.c | 31 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()
|
D | w1_ds2408.c | 38 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()
|
D | w1_ds250x.c | 40 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()
|
D | w1_ds2430.c | 65 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()
|
D | w1_ds2431.c | 64 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()
|
D | w1_ds2423.c | 33 struct w1_slave *sl = dev_to_w1_slave(device); in w1_slave_show() 112 static DEVICE_ATTR_RO(w1_slave);
|
D | w1_ds2413.c | 31 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-v6.6/include/linux/ |
D | w1.h | 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()
|
/Linux-v6.6/drivers/w1/ |
D | w1_internal.h | 38 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);
|
D | w1.c | 77 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); 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 *sl; in w1_slave_search_device() [all …]
|
D | w1_netlink.c | 43 struct w1_slave *sl; 269 struct w1_slave *sl; in w1_get_slaves() 318 struct w1_slave *sl; in w1_process_command_addremove() 389 static int w1_process_command_slave(struct w1_slave *sl, in w1_process_command_slave() 451 struct w1_slave *sl = node->sl; in w1_process_cb() 540 struct w1_slave *sl; in w1_cn_callback()
|
/Linux-v6.6/drivers/power/supply/ |
D | bq27xxx_battery_hdq.c | 28 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()
|
D | ds2760_battery.c | 122 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); 669 static int w1_ds2760_add_slave(struct w1_slave *sl) in w1_ds2760_add_slave() 772 static void w1_ds2760_remove_slave(struct w1_slave *sl) in w1_ds2760_remove_slave()
|
/Linux-v6.6/Documentation/w1/slaves/ |
D | w1_ds2423.rst | 19 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
|
D | w1_therm.rst | 31 Support is provided through the sysfs entry ``w1_slave``. Each open and 70 Writing a resolution value (in bits) to ``w1_slave`` will change the 74 To store the current resolution in EEPROM, write ``0`` to ``w1_slave``.
|