Lines Matching refs:sio_data

639 	struct w83627hf_sio_data *sio_data = dev_get_platdata(&pdev->dev);  in w83627thf_read_gpio5()  local
642 if (superio_enter(sio_data)) { in w83627thf_read_gpio5()
653 superio_select(sio_data, W83627HF_LD_GPIO5); in w83627thf_read_gpio5()
658 if (!(superio_inb(sio_data, W83627THF_GPIO5_EN) & (1<<3))) { in w83627thf_read_gpio5()
667 sel = superio_inb(sio_data, W83627THF_GPIO5_IOSR) & 0x3f; in w83627thf_read_gpio5()
675 res = superio_inb(sio_data, W83627THF_GPIO5_DR) & sel; in w83627thf_read_gpio5()
678 superio_exit(sio_data); in w83627thf_read_gpio5()
684 struct w83627hf_sio_data *sio_data = dev_get_platdata(&pdev->dev); in w83687thf_read_vid() local
687 if (superio_enter(sio_data)) { in w83687thf_read_vid()
698 superio_select(sio_data, W83627HF_LD_HWM); in w83687thf_read_vid()
701 if (!(superio_inb(sio_data, W83687THF_VID_EN) & (1 << 2))) { in w83687thf_read_vid()
707 if (!(superio_inb(sio_data, W83687THF_VID_CFG) & (1 << 4))) { in w83687thf_read_vid()
713 res = superio_inb(sio_data, W83687THF_VID_DATA) & 0x3f; in w83687thf_read_vid()
716 superio_exit(sio_data); in w83687thf_read_vid()
1668 struct w83627hf_sio_data *sio_data = dev_get_platdata(dev); in w83627hf_probe() local
1694 data->type = sio_data->type; in w83627hf_probe()
1695 data->name = names[sio_data->type]; in w83627hf_probe()
1853 struct w83627hf_sio_data *sio_data) in w83627hf_find() argument
1866 sio_data->sioaddr = sioaddr; in w83627hf_find()
1867 err = superio_enter(sio_data); in w83627hf_find()
1872 val = force_id ? force_id : superio_inb(sio_data, DEVID); in w83627hf_find()
1875 sio_data->type = w83627hf; in w83627hf_find()
1878 sio_data->type = w83627thf; in w83627hf_find()
1881 sio_data->type = w83697hf; in w83627hf_find()
1884 sio_data->type = w83637hf; in w83627hf_find()
1887 sio_data->type = w83687thf; in w83627hf_find()
1896 superio_select(sio_data, W83627HF_LD_HWM); in w83627hf_find()
1897 val = (superio_inb(sio_data, WINB_BASE_REG) << 8) | in w83627hf_find()
1898 superio_inb(sio_data, WINB_BASE_REG + 1); in w83627hf_find()
1905 val = superio_inb(sio_data, WINB_ACT_REG); in w83627hf_find()
1908 superio_outb(sio_data, WINB_ACT_REG, val | 0x01); in w83627hf_find()
1913 names[sio_data->type], *addr); in w83627hf_find()
1916 superio_exit(sio_data); in w83627hf_find()
1921 const struct w83627hf_sio_data *sio_data) in w83627hf_device_add() argument
1948 err = platform_device_add_data(pdev, sio_data, in w83627hf_device_add()
1973 struct w83627hf_sio_data sio_data; in sensors_w83627hf_init() local
1975 if (w83627hf_find(0x2e, &address, &sio_data) in sensors_w83627hf_init()
1976 && w83627hf_find(0x4e, &address, &sio_data)) in sensors_w83627hf_init()
1984 err = w83627hf_device_add(address, &sio_data); in sensors_w83627hf_init()