Searched refs:sio_data (Results 1 – 9 of 9) sorted by relevance
/Linux-v4.19/drivers/hwmon/ |
D | it87.c | 2397 struct it87_sio_data *sio_data) in it87_find() argument 2413 sio_data->type = it87; in it87_find() 2416 sio_data->type = it8712; in it87_find() 2420 sio_data->type = it8716; in it87_find() 2423 sio_data->type = it8718; in it87_find() 2426 sio_data->type = it8720; in it87_find() 2429 sio_data->type = it8721; in it87_find() 2432 sio_data->type = it8728; in it87_find() 2435 sio_data->type = it8732; in it87_find() 2438 sio_data->type = it8792; in it87_find() [all …]
|
D | w83627ehf.c | 682 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in w83627ehf_write_fan_div_common() local 684 if (sio_data->kind == nct6776) in w83627ehf_write_fan_div_common() 686 else if (sio_data->kind == nct6775) in w83627ehf_write_fan_div_common() 733 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in w83627ehf_update_fan_div_common() local 735 if (sio_data->kind == nct6776) in w83627ehf_update_fan_div_common() 737 else if (sio_data->kind == nct6775) in w83627ehf_update_fan_div_common() 790 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in w83627ehf_update_pwm_common() local 792 if (sio_data->kind == nct6775 || sio_data->kind == nct6776) in w83627ehf_update_pwm_common() 801 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in w83627ehf_update_device() local 846 && (reg >= 0xff || (sio_data->kind == nct6775 in w83627ehf_update_device() [all …]
|
D | smsc47m1.c | 530 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 …]
|
D | pc87427.c | 986 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 …]
|
D | w83627hf.c | 1279 struct w83627hf_sio_data *sio_data) in w83627hf_find() argument 1292 sio_data->sioaddr = sioaddr; in w83627hf_find() 1293 superio_enter(sio_data); in w83627hf_find() 1294 val = force_id ? force_id : superio_inb(sio_data, DEVID); in w83627hf_find() 1297 sio_data->type = w83627hf; in w83627hf_find() 1300 sio_data->type = w83627thf; in w83627hf_find() 1303 sio_data->type = w83697hf; in w83627hf_find() 1306 sio_data->type = w83637hf; in w83627hf_find() 1309 sio_data->type = w83687thf; in w83627hf_find() 1318 superio_select(sio_data, W83627HF_LD_HWM); in w83627hf_find() [all …]
|
D | f71882fg.c | 2345 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 …]
|
D | f71805f.c | 1378 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 …]
|
D | nct6683.c | 1200 struct nct6683_sio_data *sio_data = dev->platform_data; in nct6683_probe() local 1216 data->kind = sio_data->kind; in nct6683_probe() 1217 data->sioreg = sio_data->sioreg; in nct6683_probe() 1347 static int __init nct6683_find(int sioaddr, struct nct6683_sio_data *sio_data) in nct6683_find() argument 1362 sio_data->kind = nct6683; in nct6683_find() 1389 nct6683_chip_names[sio_data->kind], sioaddr, addr); in nct6683_find() 1390 sio_data->sioreg = sioaddr; in nct6683_find() 1409 struct nct6683_sio_data sio_data; in sensors_nct6683_init() local 1428 address = nct6683_find(sioaddr[i], &sio_data); in sensors_nct6683_init() 1440 err = platform_device_add_data(pdev[i], &sio_data, in sensors_nct6683_init()
|
D | nct6775.c | 3613 struct nct6775_sio_data *sio_data = dev_get_platdata(dev); in nct6775_probe() local 3637 data->kind = sio_data->kind; in nct6775_probe() 3638 data->sioreg = sio_data->sioreg; in nct6775_probe() 4240 err = superio_enter(sio_data->sioreg); in nct6775_probe() 4244 cr2a = superio_inb(sio_data->sioreg, 0x2a); in nct6775_probe() 4267 superio_select(sio_data->sioreg, NCT6775_LD_VID); in nct6775_probe() 4268 data->vid = superio_inb(sio_data->sioreg, 0xe3); in nct6775_probe() 4275 superio_select(sio_data->sioreg, NCT6775_LD_HWM); in nct6775_probe() 4276 tmp = superio_inb(sio_data->sioreg, in nct6775_probe() 4297 superio_outb(sio_data->sioreg, NCT6775_REG_CR_FAN_DEBOUNCE, in nct6775_probe() [all …]
|