Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/hwmon/
Dit87.c1845 struct it87_sio_data *sio_data) in it87_find() argument
1861 sio_data->type = it87; in it87_find()
1864 sio_data->type = it8712; in it87_find()
1868 sio_data->type = it8716; in it87_find()
1871 sio_data->type = it8718; in it87_find()
1874 sio_data->type = it8720; in it87_find()
1877 sio_data->type = it8721; in it87_find()
1880 sio_data->type = it8728; in it87_find()
1883 sio_data->type = it8732; in it87_find()
1886 sio_data->type = it8771; in it87_find()
[all …]
Dw83627ehf.c676 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in w83627ehf_write_fan_div_common() local
678 if (sio_data->kind == nct6776) in w83627ehf_write_fan_div_common()
680 else if (sio_data->kind == nct6775) in w83627ehf_write_fan_div_common()
727 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in w83627ehf_update_fan_div_common() local
729 if (sio_data->kind == nct6776) in w83627ehf_update_fan_div_common()
731 else if (sio_data->kind == nct6775) in w83627ehf_update_fan_div_common()
784 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in w83627ehf_update_pwm_common() local
786 if (sio_data->kind == nct6775 || sio_data->kind == nct6776) in w83627ehf_update_pwm_common()
795 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in w83627ehf_update_device() local
840 && (reg >= 0xff || (sio_data->kind == nct6775 in w83627ehf_update_device()
[all …]
Dsmsc47m1.c530 static int __init smsc47m1_find(struct smsc47m1_sio_data *sio_data) in smsc47m1_find() argument
555 sio_data->type = smsc47m1; in smsc47m1_find()
559 sio_data->type = smsc47m1; in smsc47m1_find()
563 sio_data->type = smsc47m1; in smsc47m1_find()
567 sio_data->type = smsc47m1; in smsc47m1_find()
577 sio_data->type = smsc47m2; in smsc47m1_find()
597 sio_data->activate = superio_inb(SUPERIO_REG_ACT); in smsc47m1_find()
598 if ((sio_data->activate & 0x01) == 0) { in smsc47m1_find()
600 superio_outb(SUPERIO_REG_ACT, sio_data->activate | 0x01); in smsc47m1_find()
608 static void smsc47m1_restore(const struct smsc47m1_sio_data *sio_data) in smsc47m1_restore() argument
[all …]
Dpc87427.c986 struct pc87427_sio_data *sio_data = dev_get_platdata(dev); in pc87427_init_device() local
998 if (!(sio_data->has_fanin & (1 << i))) /* Not wired */ in pc87427_init_device()
1009 if (!(sio_data->has_fanin & (1 << i))) /* Not wired */ in pc87427_init_device()
1015 data->fan_enabled = sio_data->has_fanin; in pc87427_init_device()
1020 if (!(sio_data->has_fanout & (1 << i))) /* Not wired */ in pc87427_init_device()
1078 struct pc87427_sio_data *sio_data = dev_get_platdata(&pdev->dev); in pc87427_probe() local
1087 data->address[0] = sio_data->address[0]; in pc87427_probe()
1088 data->address[1] = sio_data->address[1]; in pc87427_probe()
1162 static int __init pc87427_device_add(const struct pc87427_sio_data *sio_data) in pc87427_device_add() argument
1172 if (!sio_data->address[i]) in pc87427_device_add()
[all …]
Dw83627hf.c1276 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()
[all …]
Df71882fg.c2345 struct f71882fg_sio_data *sio_data = dev_get_platdata(&pdev->dev); in f71882fg_probe() local
2346 int nr_fans = f71882fg_nr_fans[sio_data->type]; in f71882fg_probe()
2347 int nr_temps = f71882fg_nr_temps[sio_data->type]; in f71882fg_probe()
2358 data->type = sio_data->type; in f71882fg_probe()
2628 static int __init f71882fg_find(int sioaddr, struct f71882fg_sio_data *sio_data) in f71882fg_find() argument
2646 sio_data->type = f71808e; in f71882fg_find()
2649 sio_data->type = f71808a; in f71882fg_find()
2652 sio_data->type = f71858fg; in f71882fg_find()
2655 sio_data->type = f71862fg; in f71882fg_find()
2658 sio_data->type = f71868a; in f71882fg_find()
[all …]
Df71805f.c1378 struct f71805f_sio_data *sio_data = dev_get_platdata(&pdev->dev); in f71805f_probe() local
1402 data->name = names[sio_data->kind]; in f71805f_probe()
1408 switch (sio_data->kind) { in f71805f_probe()
1414 if (sio_data->fnsel1 & 0x01) in f71805f_probe()
1416 if (sio_data->fnsel1 & 0x02) in f71805f_probe()
1513 const struct f71805f_sio_data *sio_data) in f71805f_device_add() argument
1540 err = platform_device_add_data(pdev, sio_data, in f71805f_device_add()
1562 struct f71805f_sio_data *sio_data) in f71805f_find() argument
1581 sio_data->kind = f71805f; in f71805f_find()
1584 sio_data->kind = f71872f; in f71805f_find()
[all …]
Dnct6683.c1167 struct nct6683_sio_data *sio_data = dev->platform_data; in nct6683_probe() local
1182 data->kind = sio_data->kind; in nct6683_probe()
1183 data->sioreg = sio_data->sioreg; in nct6683_probe()
1293 static int __init nct6683_find(int sioaddr, struct nct6683_sio_data *sio_data) in nct6683_find() argument
1318 sio_data->kind = nct6683; in nct6683_find()
1345 nct6683_chip_names[sio_data->kind], sioaddr, addr); in nct6683_find()
1346 sio_data->sioreg = sioaddr; in nct6683_find()
1365 struct nct6683_sio_data sio_data; in sensors_nct6683_init() local
1384 address = nct6683_find(sioaddr[i], &sio_data); in sensors_nct6683_init()
1396 err = platform_device_add_data(pdev[i], &sio_data, in sensors_nct6683_init()
Dnct6775.c3419 struct nct6775_sio_data *sio_data = dev_get_platdata(dev); in nct6775_probe() local
3443 data->kind = sio_data->kind; in nct6775_probe()
3444 data->sioreg = sio_data->sioreg; in nct6775_probe()
4016 err = superio_enter(sio_data->sioreg); in nct6775_probe()
4020 cr2a = superio_inb(sio_data->sioreg, 0x2a); in nct6775_probe()
4041 superio_select(sio_data->sioreg, NCT6775_LD_VID); in nct6775_probe()
4042 data->vid = superio_inb(sio_data->sioreg, 0xe3); in nct6775_probe()
4049 superio_select(sio_data->sioreg, NCT6775_LD_HWM); in nct6775_probe()
4050 tmp = superio_inb(sio_data->sioreg, in nct6775_probe()
4069 superio_outb(sio_data->sioreg, NCT6775_REG_CR_FAN_DEBOUNCE, in nct6775_probe()
[all …]