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()
1851 struct w83627hf_sio_data *sio_data) in w83627hf_find() argument
1864 sio_data->sioaddr = sioaddr; in w83627hf_find()
1865 err = superio_enter(sio_data); in w83627hf_find()
1870 val = force_id ? force_id : superio_inb(sio_data, DEVID); in w83627hf_find()
1873 sio_data->type = w83627hf; in w83627hf_find()
1876 sio_data->type = w83627thf; in w83627hf_find()
1879 sio_data->type = w83697hf; in w83627hf_find()
1882 sio_data->type = w83637hf; in w83627hf_find()
1885 sio_data->type = w83687thf; in w83627hf_find()
1894 superio_select(sio_data, W83627HF_LD_HWM); in w83627hf_find()
1895 val = (superio_inb(sio_data, WINB_BASE_REG) << 8) | in w83627hf_find()
1896 superio_inb(sio_data, WINB_BASE_REG + 1); in w83627hf_find()
1903 val = superio_inb(sio_data, WINB_ACT_REG); in w83627hf_find()
1906 superio_outb(sio_data, WINB_ACT_REG, val | 0x01); in w83627hf_find()
1911 names[sio_data->type], *addr); in w83627hf_find()
1914 superio_exit(sio_data); in w83627hf_find()
1919 const struct w83627hf_sio_data *sio_data) in w83627hf_device_add() argument
1946 err = platform_device_add_data(pdev, sio_data, in w83627hf_device_add()
1971 struct w83627hf_sio_data sio_data; in sensors_w83627hf_init() local
1973 if (w83627hf_find(0x2e, &address, &sio_data) in sensors_w83627hf_init()
1974 && w83627hf_find(0x4e, &address, &sio_data)) in sensors_w83627hf_init()
1982 err = w83627hf_device_add(address, &sio_data); in sensors_w83627hf_init()