Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/platform/surface/
Dsurface_platform_profile.c44 bool has_fan; member
194 if (tpd->has_fan) { in ssam_platform_profile_set()
217 tpd->has_fan = device_property_read_bool(&sdev->dev, "has_fan"); in surface_platform_profile_probe()
/linux-6.12.1/drivers/hwmon/
Dw83627ehf.c335 u8 has_fan; /* some fan inputs can be disabled */ member
471 reg |= (data->has_fan & (1 << 4)) ? 1 : 0; in w83627ehf_write_fan_div()
481 reg |= (data->has_fan & (1 << 4)) ? 1 : 0; in w83627ehf_write_fan_div()
525 if (data->has_fan & ((1 << 3) | (1 << 4))) { in w83627ehf_update_fan_div()
531 if (data->has_fan & (1 << 3)) { in w83627ehf_update_fan_div()
543 if (!(data->has_fan & (1 << i))) in w83627ehf_update_pwm()
592 if (!(data->has_fan & (1 << i))) in w83627ehf_update_device()
627 if (!(data->has_fan & (1 << i))) in w83627ehf_update_device()
1139 (data->has_fan & (1 << 2)) && data->pwm_num >= 3 && in w83627ehf_attrs_visible()
1146 (data->has_fan & (1 << 3)) && data->pwm_num >= 4 && in w83627ehf_attrs_visible()
[all …]
Dw83793.c219 u16 has_fan; /* Only fan1- fan5 has own pins */ member
1684 data->has_fan = 0x1f; in w83793_probe()
1695 data->has_fan |= 0x20; in w83793_probe()
1699 data->has_fan |= 0x40; in w83793_probe()
1703 data->has_fan |= 0x80; in w83793_probe()
1713 data->has_fan |= 0x100; in w83793_probe()
1715 data->has_fan |= 0x200; in w83793_probe()
1719 data->has_fan |= 0x400; in w83793_probe()
1721 data->has_fan |= 0x800; in w83793_probe()
1725 data->has_fan |= 0x80; in w83793_probe()
[all …]
Dnct6775-i2c.c129 data->has_fan = 0x03; in nct6775_i2c_probe_init()
Dit87.c598 u8 has_fan; /* Bitfield, fans enabled */ member
908 if (!(data->has_fan & BIT(i))) in it87_update_device()
944 if ((data->has_fan & 0x07) && !has_16bit_fans(data)) { in it87_update_device()
2455 if (!(data->has_fan & BIT(i))) in it87_fan_is_visible()
2462 if (i == __ffs(data->has_fan)) in it87_fan_is_visible()
3255 if (~reg & 0x07 & data->has_fan) { in it87_check_tachometers_16bit_mode()
3310 data->has_fan = (data->fan_main_ctrl >> 4) & 0x07; in it87_init_device()
3318 data->has_fan |= BIT(3); /* fan4 enabled */ in it87_init_device()
3320 data->has_fan |= BIT(4); /* fan5 enabled */ in it87_init_device()
3322 data->has_fan |= BIT(5); /* fan6 enabled */ in it87_init_device()
[all …]
Dnct6775.h108 u8 has_fan; /* some fan inputs can be disabled */ member
Dw83795.c334 u16 has_fan; /* Enable fan14-1 or not */ member
484 if ((i & 1) == 0 && (data->has_fan & (3 << i))) in w83795_update_limits()
487 if (!(data->has_fan & (1 << i))) in w83795_update_limits()
633 if (!(data->has_fan & (1 << i))) in w83795_update_device()
2004 if (!(data->has_fan & (1 << i))) in w83795_handle_files()
2160 data->has_fan = w83795_read(client, W83795_REG_FANIN_CTRL1) in w83795_probe()
Dnct6775-core.c1263 if (data->has_fan & BIT(3)) in nct6775_update_fan_div()
1291 if (!(data->has_fan & BIT(i))) in nct6775_init_fan_div()
1607 if (!(data->has_fan & BIT(i))) in nct6775_update_device()
2144 if (!(data->has_fan & BIT(fan))) in nct6775_fan_is_visible()
4374 fls(data->has_fan)); in nct6775_probe()
Dnct6775-platform.c725 data->has_fan = 0x03 | (fan3pin << 2) | (fan4pin << 3) | in nct6775_check_fan_inputs()