Home
last modified time | relevance | path

Searched refs:fan_enabled (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/hwmon/
H A Dgxp-fan-ctrl.c43 static long fan_enabled(struct device *dev, int fan) in fan_enabled() function
88 *val = fan_enabled(dev, channel); in gxp_fan_read()
H A Dpc87427.c53 u8 fan_enabled; /* bit vector */ member
361 if (!(data->fan_enabled & (1 << i))) in pc87427_update_device()
978 data->fan_enabled |= (1 << i); in pc87427_init_device()
981 if (!data->fan_enabled) { in pc87427_init_device()
990 data->fan_enabled = sio_data->has_fanin; in pc87427_init_device()
1035 if (!(data->fan_enabled & (1 << i))) in pc87427_remove_files()
1080 if (!(data->fan_enabled & (1 << i))) in pc87427_probe()
H A Dadt7462.c205 u8 fan_enabled; member
700 data->fan_enabled = i2c_smbus_read_byte_data(client, in adt7462_update_device()
989 static int fan_enabled(struct adt7462_data *data, int fan) in fan_enabled() function
991 return data->fan_enabled & (1 << fan); in fan_enabled()
1005 if (!fan_enabled(data, attr->index) || in fan_min_show()
1022 !fan_enabled(data, attr->index)) in fan_min_store()
1044 if (!fan_enabled(data, attr->index) || in fan_show()