Home
last modified time | relevance | path

Searched refs:sio_data (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/hwmon/
H A Dit87.c2693 struct it87_sio_data *sio_data, int chip_cnt) in it87_find() argument
2727 sio_data->type = it87; in it87_find()
2730 sio_data->type = it8712; in it87_find()
2734 sio_data->type = it8716; in it87_find()
2737 sio_data->type = it8718; in it87_find()
2740 sio_data->type = it8720; in it87_find()
2743 sio_data->type = it8721; in it87_find()
2746 sio_data->type = it8728; in it87_find()
2749 sio_data->type = it8732; in it87_find()
2752 sio_data->type = it8792; in it87_find()
[all …]
H A Dpc87427.c961 struct pc87427_sio_data *sio_data = dev_get_platdata(dev); in pc87427_init_device() local
973 if (!(sio_data->has_fanin & (1 << i))) /* Not wired */ in pc87427_init_device()
984 if (!(sio_data->has_fanin & (1 << i))) /* Not wired */ in pc87427_init_device()
990 data->fan_enabled = sio_data->has_fanin; in pc87427_init_device()
995 if (!(sio_data->has_fanout & (1 << i))) /* Not wired */ in pc87427_init_device()
1053 struct pc87427_sio_data *sio_data = dev_get_platdata(&pdev->dev); in pc87427_probe() local
1062 data->address[0] = sio_data->address[0]; in pc87427_probe()
1063 data->address[1] = sio_data->address[1]; in pc87427_probe()
1135 static int __init pc87427_device_add(const struct pc87427_sio_data *sio_data) in pc87427_device_add() argument
1145 if (!sio_data->address[i]) in pc87427_device_add()
[all …]
H A Dsmsc47m1.c528 static int __init smsc47m1_find(struct smsc47m1_sio_data *sio_data) in smsc47m1_find() argument
557 sio_data->type = smsc47m1; in smsc47m1_find()
561 sio_data->type = smsc47m1; in smsc47m1_find()
565 sio_data->type = smsc47m1; in smsc47m1_find()
569 sio_data->type = smsc47m1; in smsc47m1_find()
579 sio_data->type = smsc47m2; in smsc47m1_find()
599 sio_data->activate = superio_inb(SUPERIO_REG_ACT); in smsc47m1_find()
600 if ((sio_data->activate & 0x01) == 0) { in smsc47m1_find()
602 superio_outb(SUPERIO_REG_ACT, sio_data->activate | 0x01); in smsc47m1_find()
610 static void smsc47m1_restore(const struct smsc47m1_sio_data *sio_data) in smsc47m1_restore() argument
[all …]
H A Dw83627ehf.c1291 w83627ehf_check_fan_inputs(const struct w83627ehf_sio_data *sio_data, in w83627ehf_check_fan_inputs() argument
1297 if (sio_data->kind == w83627uhg) { in w83627ehf_check_fan_inputs()
1304 if (sio_data->kind == w83667hg || sio_data->kind == w83667hg_b) { in w83627ehf_check_fan_inputs()
1306 fan4pin = superio_inb(sio_data->sioreg, 0x27) & 0x40; in w83627ehf_check_fan_inputs()
1307 fan5pin = superio_inb(sio_data->sioreg, 0x27) & 0x20; in w83627ehf_check_fan_inputs()
1310 fan4pin = !(superio_inb(sio_data->sioreg, 0x29) & 0x06); in w83627ehf_check_fan_inputs()
1311 fan5pin = !(superio_inb(sio_data->sioreg, 0x24) & 0x02); in w83627ehf_check_fan_inputs()
1701 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in w83627ehf_probe() local
1719 data->name = w83627ehf_device_names[sio_data->kind]; in w83627ehf_probe()
1724 data->in_num = (sio_data->kind == w83627ehf) ? 10 : 9; in w83627ehf_probe()
[all …]
H A Dw83627hf.c639 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()
[all …]
H A Df71805f.c1371 struct f71805f_sio_data *sio_data = dev_get_platdata(&pdev->dev); in f71805f_probe() local
1395 data->name = names[sio_data->kind]; in f71805f_probe()
1401 switch (sio_data->kind) { in f71805f_probe()
1407 if (sio_data->fnsel1 & 0x01) in f71805f_probe()
1409 if (sio_data->fnsel1 & 0x02) in f71805f_probe()
1504 const struct f71805f_sio_data *sio_data) in f71805f_device_add() argument
1531 err = platform_device_add_data(pdev, sio_data, in f71805f_device_add()
1553 struct f71805f_sio_data *sio_data) in f71805f_find() argument
1575 sio_data->kind = f71805f; in f71805f_find()
1578 sio_data->kind = f71872f; in f71805f_find()
[all …]