Lines Matching refs:sio_data
1276 struct w83627hf_sio_data *sio_data) in w83627hf_find() argument
1289 sio_data->sioaddr = sioaddr; in w83627hf_find()
1290 superio_enter(sio_data); in w83627hf_find()
1291 val = force_id ? force_id : superio_inb(sio_data, DEVID); in w83627hf_find()
1294 sio_data->type = w83627hf; in w83627hf_find()
1297 sio_data->type = w83627thf; in w83627hf_find()
1300 sio_data->type = w83697hf; in w83627hf_find()
1303 sio_data->type = w83637hf; in w83627hf_find()
1306 sio_data->type = w83687thf; in w83627hf_find()
1315 superio_select(sio_data, W83627HF_LD_HWM); in w83627hf_find()
1316 val = (superio_inb(sio_data, WINB_BASE_REG) << 8) | in w83627hf_find()
1317 superio_inb(sio_data, WINB_BASE_REG + 1); in w83627hf_find()
1324 val = superio_inb(sio_data, WINB_ACT_REG); in w83627hf_find()
1327 superio_outb(sio_data, WINB_ACT_REG, val | 0x01); in w83627hf_find()
1332 names[sio_data->type], *addr); in w83627hf_find()
1335 superio_exit(sio_data); in w83627hf_find()
1420 struct w83627hf_sio_data *sio_data = dev_get_platdata(dev); in w83627hf_probe() local
1446 data->type = sio_data->type; in w83627hf_probe()
1447 data->name = names[sio_data->type]; in w83627hf_probe()
1641 struct w83627hf_sio_data *sio_data = dev_get_platdata(&pdev->dev); in w83627thf_read_gpio5() local
1644 superio_enter(sio_data); in w83627thf_read_gpio5()
1645 superio_select(sio_data, W83627HF_LD_GPIO5); in w83627thf_read_gpio5()
1648 if (!(superio_inb(sio_data, W83627THF_GPIO5_EN) & (1<<3))) { in w83627thf_read_gpio5()
1657 sel = superio_inb(sio_data, W83627THF_GPIO5_IOSR) & 0x3f; in w83627thf_read_gpio5()
1665 res = superio_inb(sio_data, W83627THF_GPIO5_DR) & sel; in w83627thf_read_gpio5()
1668 superio_exit(sio_data); in w83627thf_read_gpio5()
1674 struct w83627hf_sio_data *sio_data = dev_get_platdata(&pdev->dev); in w83687thf_read_vid() local
1677 superio_enter(sio_data); in w83687thf_read_vid()
1678 superio_select(sio_data, W83627HF_LD_HWM); in w83687thf_read_vid()
1681 if (!(superio_inb(sio_data, W83687THF_VID_EN) & (1 << 2))) { in w83687thf_read_vid()
1687 if (!(superio_inb(sio_data, W83687THF_VID_CFG) & (1 << 4))) { in w83687thf_read_vid()
1693 res = superio_inb(sio_data, W83687THF_VID_DATA) & 0x3f; in w83687thf_read_vid()
1696 superio_exit(sio_data); in w83687thf_read_vid()
1920 const struct w83627hf_sio_data *sio_data) in w83627hf_device_add() argument
1947 err = platform_device_add_data(pdev, sio_data, in w83627hf_device_add()
1972 struct w83627hf_sio_data sio_data; in sensors_w83627hf_init() local
1974 if (w83627hf_find(0x2e, &address, &sio_data) in sensors_w83627hf_init()
1975 && w83627hf_find(0x4e, &address, &sio_data)) in sensors_w83627hf_init()
1983 err = w83627hf_device_add(address, &sio_data); in sensors_w83627hf_init()