Lines Matching full:sl

26 	struct w1_slave *sl = container_of(dev, struct w1_slave, dev);  in w1_ds2781_do_io()  local
33 if (w1_reset_select_slave(sl) == 0) { in w1_ds2781_do_io()
35 w1_write_8(sl->master, W1_DS2781_WRITE_DATA); in w1_ds2781_do_io()
36 w1_write_8(sl->master, addr); in w1_ds2781_do_io()
37 w1_write_block(sl->master, buf, count); in w1_ds2781_do_io()
39 w1_write_8(sl->master, W1_DS2781_READ_DATA); in w1_ds2781_do_io()
40 w1_write_8(sl->master, addr); in w1_ds2781_do_io()
41 count = w1_read_block(sl->master, buf, count); in w1_ds2781_do_io()
51 struct w1_slave *sl = container_of(dev, struct w1_slave, dev); in w1_ds2781_io() local
57 mutex_lock(&sl->master->bus_mutex); in w1_ds2781_io()
61 mutex_unlock(&sl->master->bus_mutex); in w1_ds2781_io()
69 struct w1_slave *sl = container_of(dev, struct w1_slave, dev); in w1_ds2781_eeprom_cmd() local
74 mutex_lock(&sl->master->bus_mutex); in w1_ds2781_eeprom_cmd()
76 if (w1_reset_select_slave(sl) == 0) { in w1_ds2781_eeprom_cmd()
77 w1_write_8(sl->master, cmd); in w1_ds2781_eeprom_cmd()
78 w1_write_8(sl->master, addr); in w1_ds2781_eeprom_cmd()
81 mutex_unlock(&sl->master->bus_mutex); in w1_ds2781_eeprom_cmd()
111 static int w1_ds2781_add_slave(struct w1_slave *sl) in w1_ds2781_add_slave() argument
119 pdev->dev.parent = &sl->dev; in w1_ds2781_add_slave()
125 dev_set_drvdata(&sl->dev, pdev); in w1_ds2781_add_slave()
135 static void w1_ds2781_remove_slave(struct w1_slave *sl) in w1_ds2781_remove_slave() argument
137 struct platform_device *pdev = dev_get_drvdata(&sl->dev); in w1_ds2781_remove_slave()