Lines Matching full:sl
29 struct w1_slave *sl = container_of(dev, struct w1_slave, dev); in w1_ds2780_do_io() local
36 if (w1_reset_select_slave(sl) == 0) { in w1_ds2780_do_io()
38 w1_write_8(sl->master, W1_DS2780_WRITE_DATA); in w1_ds2780_do_io()
39 w1_write_8(sl->master, addr); in w1_ds2780_do_io()
40 w1_write_block(sl->master, buf, count); in w1_ds2780_do_io()
42 w1_write_8(sl->master, W1_DS2780_READ_DATA); in w1_ds2780_do_io()
43 w1_write_8(sl->master, addr); in w1_ds2780_do_io()
44 count = w1_read_block(sl->master, buf, count); in w1_ds2780_do_io()
54 struct w1_slave *sl = container_of(dev, struct w1_slave, dev); in w1_ds2780_io() local
60 mutex_lock(&sl->master->bus_mutex); in w1_ds2780_io()
64 mutex_unlock(&sl->master->bus_mutex); in w1_ds2780_io()
72 struct w1_slave *sl = container_of(dev, struct w1_slave, dev); in w1_ds2780_eeprom_cmd() local
77 mutex_lock(&sl->master->bus_mutex); in w1_ds2780_eeprom_cmd()
79 if (w1_reset_select_slave(sl) == 0) { in w1_ds2780_eeprom_cmd()
80 w1_write_8(sl->master, cmd); in w1_ds2780_eeprom_cmd()
81 w1_write_8(sl->master, addr); in w1_ds2780_eeprom_cmd()
84 mutex_unlock(&sl->master->bus_mutex); in w1_ds2780_eeprom_cmd()
114 static int w1_ds2780_add_slave(struct w1_slave *sl) in w1_ds2780_add_slave() argument
122 pdev->dev.parent = &sl->dev; in w1_ds2780_add_slave()
128 dev_set_drvdata(&sl->dev, pdev); in w1_ds2780_add_slave()
138 static void w1_ds2780_remove_slave(struct w1_slave *sl) in w1_ds2780_remove_slave() argument
140 struct platform_device *pdev = dev_get_drvdata(&sl->dev); in w1_ds2780_remove_slave()