• Home
  • Raw
  • Download

Lines Matching refs:sio_data

1248 				struct w83627hf_sio_data *sio_data)  in w83627hf_find()  argument
1261 sio_data->sioaddr = sioaddr; in w83627hf_find()
1262 err = superio_enter(sio_data); in w83627hf_find()
1267 val = force_id ? force_id : superio_inb(sio_data, DEVID); in w83627hf_find()
1270 sio_data->type = w83627hf; in w83627hf_find()
1273 sio_data->type = w83627thf; in w83627hf_find()
1276 sio_data->type = w83697hf; in w83627hf_find()
1279 sio_data->type = w83637hf; in w83627hf_find()
1282 sio_data->type = w83687thf; in w83627hf_find()
1291 superio_select(sio_data, W83627HF_LD_HWM); in w83627hf_find()
1292 val = (superio_inb(sio_data, WINB_BASE_REG) << 8) | in w83627hf_find()
1293 superio_inb(sio_data, WINB_BASE_REG + 1); in w83627hf_find()
1300 val = superio_inb(sio_data, WINB_ACT_REG); in w83627hf_find()
1303 superio_outb(sio_data, WINB_ACT_REG, val | 0x01); in w83627hf_find()
1308 names[sio_data->type], *addr); in w83627hf_find()
1311 superio_exit(sio_data); in w83627hf_find()
1396 struct w83627hf_sio_data *sio_data = dev_get_platdata(dev); in w83627hf_probe() local
1422 data->type = sio_data->type; in w83627hf_probe()
1423 data->name = names[sio_data->type]; in w83627hf_probe()
1616 struct w83627hf_sio_data *sio_data = dev_get_platdata(&pdev->dev); in w83627thf_read_gpio5() local
1619 if (superio_enter(sio_data)) { in w83627thf_read_gpio5()
1630 superio_select(sio_data, W83627HF_LD_GPIO5); in w83627thf_read_gpio5()
1635 if (!(superio_inb(sio_data, W83627THF_GPIO5_EN) & (1<<3))) { in w83627thf_read_gpio5()
1644 sel = superio_inb(sio_data, W83627THF_GPIO5_IOSR) & 0x3f; in w83627thf_read_gpio5()
1652 res = superio_inb(sio_data, W83627THF_GPIO5_DR) & sel; in w83627thf_read_gpio5()
1655 superio_exit(sio_data); in w83627thf_read_gpio5()
1661 struct w83627hf_sio_data *sio_data = dev_get_platdata(&pdev->dev); in w83687thf_read_vid() local
1664 if (superio_enter(sio_data)) { in w83687thf_read_vid()
1675 superio_select(sio_data, W83627HF_LD_HWM); in w83687thf_read_vid()
1678 if (!(superio_inb(sio_data, W83687THF_VID_EN) & (1 << 2))) { in w83687thf_read_vid()
1684 if (!(superio_inb(sio_data, W83687THF_VID_CFG) & (1 << 4))) { in w83687thf_read_vid()
1690 res = superio_inb(sio_data, W83687THF_VID_DATA) & 0x3f; in w83687thf_read_vid()
1693 superio_exit(sio_data); in w83687thf_read_vid()
1917 const struct w83627hf_sio_data *sio_data) in w83627hf_device_add() argument
1944 err = platform_device_add_data(pdev, sio_data, in w83627hf_device_add()
1969 struct w83627hf_sio_data sio_data; in sensors_w83627hf_init() local
1971 if (w83627hf_find(0x2e, &address, &sio_data) in sensors_w83627hf_init()
1972 && w83627hf_find(0x4e, &address, &sio_data)) in sensors_w83627hf_init()
1980 err = w83627hf_device_add(address, &sio_data); in sensors_w83627hf_init()