Searched refs:beep_mask (Results 1 – 7 of 7) sorted by relevance
/Linux-v4.19/Documentation/hwmon/ |
D | w83791d | 93 method of a single sysfs beep_mask file to a newer method using multiple 104 responsible for handling the fact that the alarms and beep_mask bitmaps 135 Alarms bitmap vs. beep_mask bitmask 137 For legacy code using the alarms and beep_mask files: 139 in0 (VCORE) : alarms: 0x000001 beep_mask: 0x000001 140 in1 (VINR0) : alarms: 0x000002 beep_mask: 0x002000 <== mismatch 141 in2 (+3.3VIN): alarms: 0x000004 beep_mask: 0x000004 142 in3 (5VDD) : alarms: 0x000008 beep_mask: 0x000008 143 in4 (+12VIN) : alarms: 0x000100 beep_mask: 0x000100 144 in5 (-12VIN) : alarms: 0x000200 beep_mask: 0x000200 [all …]
|
D | sysfs-interface | 732 beep_mask Bitmask for beep.
|
/Linux-v4.19/drivers/hwmon/ |
D | gl518sm.c | 138 u8 beep_mask; /* Register value */ member 176 data->beep_mask = gl518_read_value(client, GL518_REG_ALARM); in gl518_update_device() 265 show(BEEP_MASK, beep_mask, beep_mask); 351 set(BEEP_MASK, beep_mask, beep_mask, GL518_REG_ALARM); 374 data->beep_mask = gl518_read_value(client, GL518_REG_ALARM); in set_fan_min() 379 data->beep_mask &= data->alarm_mask; in set_fan_min() 380 gl518_write_value(client, GL518_REG_ALARM, data->beep_mask); in set_fan_min() 460 static DEVICE_ATTR(beep_mask, S_IWUSR|S_IRUGO, 484 return sprintf(buf, "%u\n", (data->beep_mask >> bitnr) & 1); in show_beep() 504 data->beep_mask = gl518_read_value(client, GL518_REG_ALARM); in set_beep() [all …]
|
D | gl520sm.c | 98 u8 beep_mask; member 136 data->beep_mask = gl520_read_value(client, GL520_REG_BEEP_MASK); in gl520_update_device() 425 data->beep_mask = gl520_read_value(client, GL520_REG_BEEP_MASK); in set_fan_min() 430 data->beep_mask &= data->alarm_mask; in set_fan_min() 431 gl520_write_value(client, GL520_REG_BEEP_MASK, data->beep_mask); in set_fan_min() 624 return sprintf(buf, "%d\n", data->beep_mask); in beep_mask_show() 667 data->beep_mask = r; in beep_mask_store() 675 static DEVICE_ATTR_RW(beep_mask); 702 return sprintf(buf, "%d\n", (data->beep_mask >> bitnr) & 1); in get_beep() 722 data->beep_mask = gl520_read_value(client, GL520_REG_BEEP_MASK); in set_beep() [all …]
|
D | w83791d.c | 326 u32 beep_mask; /* Mask off specific beeps */ member 453 return sprintf(buf, "%d\n", (data->beep_mask >> bitnr) & 1); in show_beep() 476 data->beep_mask &= ~(0xff << (bytenr * 8)); in store_beep() 477 data->beep_mask |= w83791d_read(client, W83791D_REG_BEEP_CTRL[bytenr]) in store_beep() 480 data->beep_mask &= ~(1 << bitnr); in store_beep() 481 data->beep_mask |= val << bitnr; in store_beep() 484 (data->beep_mask >> (bytenr * 8)) & 0xff); in store_beep() 1069 return sprintf(buf, "%d\n", BEEP_MASK_FROM_REG(data->beep_mask)); in show_beep_mask() 1093 data->beep_mask = BEEP_MASK_TO_REG(val) & ~GLOBAL_BEEP_ENABLE_MASK; in store_beep_mask() 1094 data->beep_mask |= (data->beep_enable << GLOBAL_BEEP_ENABLE_SHIFT); in store_beep_mask() [all …]
|
D | w83781d.c | 239 u32 beep_mask; /* Register encoding, combined */ member 499 (long)BEEP_MASK_FROM_REG(data->beep_mask, data->type)); in beep_mask_show() 515 data->beep_mask &= 0x8000; /* preserve beep enable */ in beep_mask_store() 516 data->beep_mask |= BEEP_MASK_TO_REG(val, data->type); in beep_mask_store() 518 data->beep_mask & 0xff); in beep_mask_store() 520 (data->beep_mask >> 8) & 0xff); in beep_mask_store() 523 ((data->beep_mask) >> 16) & 0xff); in beep_mask_store() 530 static DEVICE_ATTR_RW(beep_mask); 537 return sprintf(buf, "%u\n", (data->beep_mask >> bitnr) & 1); in show_beep() 559 data->beep_mask |= (1 << bitnr); in store_beep() [all …]
|
D | w83627hf.c | 379 u32 beep_mask; /* Register encoding, combined */ member 871 (long)BEEP_MASK_FROM_REG(data->beep_mask)); in beep_mask_show() 889 data->beep_mask = (data->beep_mask & 0x8000) in beep_mask_store() 892 data->beep_mask & 0xff); in beep_mask_store() 894 ((data->beep_mask) >> 16) & 0xff); in beep_mask_store() 896 (data->beep_mask >> 8) & 0xff); in beep_mask_store() 902 static DEVICE_ATTR_RW(beep_mask); 909 return sprintf(buf, "%u\n", (data->beep_mask >> bitnr) & 1); in show_beep() 931 data->beep_mask |= (1 << bitnr); in store_beep() 933 data->beep_mask &= ~(1 << bitnr); in store_beep() [all …]
|