Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/hwmon/
Dnct6775-platform.c103 void (*sio_outb)(struct nct6775_sio_data *sio_data, int reg, int val);
104 int (*sio_inb)(struct nct6775_sio_data *sio_data, int reg);
105 void (*sio_select)(struct nct6775_sio_data *sio_data, int ld);
106 int (*sio_enter)(struct nct6775_sio_data *sio_data);
107 void (*sio_exit)(struct nct6775_sio_data *sio_data);
166 static int superio_wmi_inb(struct nct6775_sio_data *sio_data, int reg) in superio_wmi_inb() argument
170 nct6775_asuswmi_evaluate_method(ASUSWMI_METHODID_RSIO, sio_data->ld, in superio_wmi_inb()
175 static void superio_wmi_outb(struct nct6775_sio_data *sio_data, int reg, int val) in superio_wmi_outb() argument
177 nct6775_asuswmi_evaluate_method(ASUSWMI_METHODID_WSIO, sio_data->ld, in superio_wmi_outb()
181 static void superio_wmi_select(struct nct6775_sio_data *sio_data, int ld) in superio_wmi_select() argument
[all …]
Dit87.c2388 struct it87_sio_data *sio_data) in it87_find() argument
2404 sio_data->type = it87; in it87_find()
2407 sio_data->type = it8712; in it87_find()
2411 sio_data->type = it8716; in it87_find()
2414 sio_data->type = it8718; in it87_find()
2417 sio_data->type = it8720; in it87_find()
2420 sio_data->type = it8721; in it87_find()
2423 sio_data->type = it8728; in it87_find()
2426 sio_data->type = it8732; in it87_find()
2429 sio_data->type = it8792; in it87_find()
[all …]
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()
1137 static int __init pc87427_device_add(const struct pc87427_sio_data *sio_data) in pc87427_device_add() argument
1147 if (!sio_data->address[i]) in pc87427_device_add()
[all …]
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 …]
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()
1698 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in w83627ehf_probe() local
1716 data->name = w83627ehf_device_names[sio_data->kind]; in w83627ehf_probe()
1721 data->in_num = (sio_data->kind == w83627ehf) ? 10 : 9; in w83627ehf_probe()
[all …]
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 …]
Df71882fg.c2339 struct f71882fg_sio_data *sio_data = dev_get_platdata(&pdev->dev); in f71882fg_probe() local
2340 int nr_fans = f71882fg_nr_fans[sio_data->type]; in f71882fg_probe()
2341 int nr_temps = f71882fg_nr_temps[sio_data->type]; in f71882fg_probe()
2352 data->type = sio_data->type; in f71882fg_probe()
2509 static int __init f71882fg_find(int sioaddr, struct f71882fg_sio_data *sio_data) in f71882fg_find() argument
2527 sio_data->type = f71808e; in f71882fg_find()
2530 sio_data->type = f71808a; in f71882fg_find()
2534 sio_data->type = f71858fg; in f71882fg_find()
2537 sio_data->type = f71862fg; in f71882fg_find()
2540 sio_data->type = f71868a; in f71882fg_find()
[all …]
Dnct6683.c1191 struct nct6683_sio_data *sio_data = dev->platform_data; in nct6683_probe() local
1207 data->kind = sio_data->kind; in nct6683_probe()
1208 data->sioreg = sio_data->sioreg; in nct6683_probe()
1344 static int __init nct6683_find(int sioaddr, struct nct6683_sio_data *sio_data) in nct6683_find() argument
1359 sio_data->kind = nct6683; in nct6683_find()
1362 sio_data->kind = nct6686; in nct6683_find()
1365 sio_data->kind = nct6687; in nct6683_find()
1392 nct6683_chip_names[sio_data->kind], sioaddr, addr); in nct6683_find()
1393 sio_data->sioreg = sioaddr; in nct6683_find()
1412 struct nct6683_sio_data sio_data; in sensors_nct6683_init() local
[all …]
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()
1506 const struct f71805f_sio_data *sio_data) in f71805f_device_add() argument
1533 err = platform_device_add_data(pdev, sio_data, in f71805f_device_add()
1555 struct f71805f_sio_data *sio_data) in f71805f_find() argument
1577 sio_data->kind = f71805f; in f71805f_find()
1580 sio_data->kind = f71872f; in f71805f_find()
[all …]