alarm 41 arch/m68k/include/asm/intersil.h struct intersil_dt alarm; alarm 138 drivers/acpi/battery.c int alarm; alarm 305 drivers/acpi/battery.c (battery->capacity_now <= battery->alarm)) alarm 633 drivers/acpi/battery.c battery->alarm); alarm 639 drivers/acpi/battery.c ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Alarm set to %d\n", battery->alarm)); alarm 651 drivers/acpi/battery.c if (!battery->alarm) alarm 652 drivers/acpi/battery.c battery->alarm = battery->design_capacity_warning; alarm 661 drivers/acpi/battery.c return sprintf(buf, "%d\n", battery->alarm * 1000); alarm 671 drivers/acpi/battery.c battery->alarm = x/1000; alarm 1001 drivers/acpi/battery.c (battery->capacity_now <= battery->alarm))) alarm 1157 drivers/acpi/battery.c if (battery->alarm) { alarm 1158 drivers/acpi/battery.c seq_printf(seq, "%u %sh\n", battery->alarm, alarm 1189 drivers/acpi/battery.c if (kstrtoint(alarm_string, 0, &battery->alarm)) { alarm 58 drivers/acpi/sbshc.c u8 alarm:1; alarm 221 drivers/acpi/sbshc.c if (!status.fields.alarm) alarm 225 drivers/acpi/sbshc.c status.fields.alarm = 0; alarm 65 drivers/clocksource/timer-vt8500.c u64 alarm = clocksource.read(&clocksource) + cycles; alarm 69 drivers/clocksource/timer-vt8500.c writel((unsigned long)alarm, regbase + TIMER_MATCH_VAL); alarm 71 drivers/clocksource/timer-vt8500.c if ((signed)(alarm - clocksource.read(&clocksource)) <= MIN_OSCR_DELTA) alarm 64 drivers/gpu/drm/nouveau/include/nvkm/subdev/therm.h struct nvkm_alarm alarm; alarm 14 drivers/gpu/drm/nouveau/include/nvkm/subdev/timer.h nvkm_alarm_init(struct nvkm_alarm *alarm, void (*func)(struct nvkm_alarm *)) alarm 16 drivers/gpu/drm/nouveau/include/nvkm/subdev/timer.h INIT_LIST_HEAD(&alarm->head); alarm 17 drivers/gpu/drm/nouveau/include/nvkm/subdev/timer.h alarm->func = func; alarm 41 drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gk20a.c struct nvkm_alarm alarm; alarm 114 drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gk20a.c gk20a_pmu_dvfs_work(struct nvkm_alarm *alarm) alarm 117 drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gk20a.c container_of(alarm, struct gk20a_pmu, alarm); alarm 154 drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gk20a.c nvkm_timer_alarm(tmr, 100000000, alarm); alarm 161 drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gk20a.c nvkm_timer_alarm(pmu->subdev.device->timer, 0, &gpmu->alarm); alarm 186 drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gk20a.c nvkm_timer_alarm(device->timer, 2000000000, &gpmu->alarm); alarm 217 drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gk20a.c nvkm_alarm_init(&pmu->alarm, gk20a_pmu_dvfs_work); alarm 122 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c nvkm_timer_alarm(tmr, 0, &therm->alarm); alarm 149 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c nvkm_timer_alarm(tmr, 0, &therm->alarm); alarm 154 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c nvkm_timer_alarm(tmr, 1000000000ULL, &therm->alarm); alarm 177 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c nvkm_therm_alarm(struct nvkm_alarm *alarm) alarm 180 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c container_of(alarm, struct nvkm_therm, alarm); alarm 430 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c nvkm_alarm_init(&therm->alarm, nvkm_therm_alarm); alarm 98 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c nvkm_timer_alarm(tmr, delay * 1000 * 1000, &fan->alarm); alarm 105 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c nvkm_fan_alarm(struct nvkm_alarm *alarm) alarm 107 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c struct nvkm_fan *fan = container_of(alarm, struct nvkm_fan, alarm); alarm 218 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c nvkm_timer_alarm(tmr, 0, &therm->fan->alarm); alarm 266 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c nvkm_alarm_init(&therm->fan->alarm, nvkm_fan_alarm); alarm 31 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c struct nvkm_alarm alarm; alarm 60 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c nvkm_timer_alarm(tmr, next_change * 1000, &fan->alarm); alarm 66 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c nvkm_fantog_alarm(struct nvkm_alarm *alarm) alarm 69 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c container_of(alarm, struct nvkm_fantog, alarm); alarm 110 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c nvkm_alarm_init(&fan->alarm, nvkm_fantog_alarm); alarm 45 drivers/gpu/drm/nouveau/nvkm/subdev/therm/priv.h struct nvkm_alarm alarm; alarm 162 drivers/gpu/drm/nouveau/nvkm/subdev/therm/temp.c alarm_timer_callback(struct nvkm_alarm *alarm) alarm 165 drivers/gpu/drm/nouveau/nvkm/subdev/therm/temp.c container_of(alarm, struct nvkm_therm, sensor.therm_poll_alarm); alarm 189 drivers/gpu/drm/nouveau/nvkm/subdev/therm/temp.c nvkm_timer_alarm(tmr, 1000000000ULL, alarm); alarm 71 drivers/gpu/drm/nouveau/nvkm/subdev/timer/base.c struct nvkm_alarm *alarm, *atemp; alarm 77 drivers/gpu/drm/nouveau/nvkm/subdev/timer/base.c list_for_each_entry_safe(alarm, atemp, &tmr->alarms, head) { alarm 79 drivers/gpu/drm/nouveau/nvkm/subdev/timer/base.c if (alarm->timestamp > nvkm_timer_read(tmr)) { alarm 81 drivers/gpu/drm/nouveau/nvkm/subdev/timer/base.c tmr->func->alarm_init(tmr, alarm->timestamp); alarm 82 drivers/gpu/drm/nouveau/nvkm/subdev/timer/base.c if (alarm->timestamp > nvkm_timer_read(tmr)) alarm 89 drivers/gpu/drm/nouveau/nvkm/subdev/timer/base.c list_del_init(&alarm->head); alarm 90 drivers/gpu/drm/nouveau/nvkm/subdev/timer/base.c list_add(&alarm->exec, &exec); alarm 99 drivers/gpu/drm/nouveau/nvkm/subdev/timer/base.c list_for_each_entry_safe(alarm, atemp, &exec, exec) { alarm 100 drivers/gpu/drm/nouveau/nvkm/subdev/timer/base.c list_del(&alarm->exec); alarm 101 drivers/gpu/drm/nouveau/nvkm/subdev/timer/base.c alarm->func(alarm); alarm 106 drivers/gpu/drm/nouveau/nvkm/subdev/timer/base.c nvkm_timer_alarm(struct nvkm_timer *tmr, u32 nsec, struct nvkm_alarm *alarm) alarm 117 drivers/gpu/drm/nouveau/nvkm/subdev/timer/base.c list_del_init(&alarm->head); alarm 121 drivers/gpu/drm/nouveau/nvkm/subdev/timer/base.c alarm->timestamp = nvkm_timer_read(tmr) + nsec; alarm 123 drivers/gpu/drm/nouveau/nvkm/subdev/timer/base.c if (list->timestamp > alarm->timestamp) alarm 127 drivers/gpu/drm/nouveau/nvkm/subdev/timer/base.c list_add_tail(&alarm->head, &list->head); alarm 131 drivers/gpu/drm/nouveau/nvkm/subdev/timer/base.c if (list == alarm) { alarm 132 drivers/gpu/drm/nouveau/nvkm/subdev/timer/base.c tmr->func->alarm_init(tmr, alarm->timestamp); alarm 138 drivers/gpu/drm/nouveau/nvkm/subdev/timer/base.c WARN_ON(alarm->timestamp <= nvkm_timer_read(tmr)); alarm 158 drivers/hwmon/ad7414.c static SENSOR_DEVICE_ATTR_RO(temp1_min_alarm, alarm, 3); alarm 159 drivers/hwmon/ad7414.c static SENSOR_DEVICE_ATTR_RO(temp1_max_alarm, alarm, 4); alarm 283 drivers/hwmon/adm1021.c static SENSOR_DEVICE_ATTR_RO(temp1_max_alarm, alarm, 6); alarm 284 drivers/hwmon/adm1021.c static SENSOR_DEVICE_ATTR_RO(temp1_min_alarm, alarm, 5); alarm 285 drivers/hwmon/adm1021.c static SENSOR_DEVICE_ATTR_RO(temp2_max_alarm, alarm, 4); alarm 286 drivers/hwmon/adm1021.c static SENSOR_DEVICE_ATTR_RO(temp2_min_alarm, alarm, 3); alarm 287 drivers/hwmon/adm1021.c static SENSOR_DEVICE_ATTR_RO(temp2_fault, alarm, 2); alarm 341 drivers/hwmon/adm1025.c static SENSOR_DEVICE_ATTR_RO(in0_alarm, alarm, 0); alarm 342 drivers/hwmon/adm1025.c static SENSOR_DEVICE_ATTR_RO(in1_alarm, alarm, 1); alarm 343 drivers/hwmon/adm1025.c static SENSOR_DEVICE_ATTR_RO(in2_alarm, alarm, 2); alarm 344 drivers/hwmon/adm1025.c static SENSOR_DEVICE_ATTR_RO(in3_alarm, alarm, 3); alarm 345 drivers/hwmon/adm1025.c static SENSOR_DEVICE_ATTR_RO(in4_alarm, alarm, 8); alarm 346 drivers/hwmon/adm1025.c static SENSOR_DEVICE_ATTR_RO(in5_alarm, alarm, 9); alarm 347 drivers/hwmon/adm1025.c static SENSOR_DEVICE_ATTR_RO(temp1_alarm, alarm, 5); alarm 348 drivers/hwmon/adm1025.c static SENSOR_DEVICE_ATTR_RO(temp2_alarm, alarm, 4); alarm 349 drivers/hwmon/adm1025.c static SENSOR_DEVICE_ATTR_RO(temp1_fault, alarm, 14); alarm 1125 drivers/hwmon/adm1026.c static SENSOR_DEVICE_ATTR_RO(temp2_alarm, alarm, 0); alarm 1126 drivers/hwmon/adm1026.c static SENSOR_DEVICE_ATTR_RO(temp3_alarm, alarm, 1); alarm 1127 drivers/hwmon/adm1026.c static SENSOR_DEVICE_ATTR_RO(in9_alarm, alarm, 1); alarm 1128 drivers/hwmon/adm1026.c static SENSOR_DEVICE_ATTR_RO(in11_alarm, alarm, 2); alarm 1129 drivers/hwmon/adm1026.c static SENSOR_DEVICE_ATTR_RO(in12_alarm, alarm, 3); alarm 1130 drivers/hwmon/adm1026.c static SENSOR_DEVICE_ATTR_RO(in13_alarm, alarm, 4); alarm 1131 drivers/hwmon/adm1026.c static SENSOR_DEVICE_ATTR_RO(in14_alarm, alarm, 5); alarm 1132 drivers/hwmon/adm1026.c static SENSOR_DEVICE_ATTR_RO(in15_alarm, alarm, 6); alarm 1133 drivers/hwmon/adm1026.c static SENSOR_DEVICE_ATTR_RO(in16_alarm, alarm, 7); alarm 1134 drivers/hwmon/adm1026.c static SENSOR_DEVICE_ATTR_RO(in0_alarm, alarm, 8); alarm 1135 drivers/hwmon/adm1026.c static SENSOR_DEVICE_ATTR_RO(in1_alarm, alarm, 9); alarm 1136 drivers/hwmon/adm1026.c static SENSOR_DEVICE_ATTR_RO(in2_alarm, alarm, 10); alarm 1137 drivers/hwmon/adm1026.c static SENSOR_DEVICE_ATTR_RO(in3_alarm, alarm, 11); alarm 1138 drivers/hwmon/adm1026.c static SENSOR_DEVICE_ATTR_RO(in4_alarm, alarm, 12); alarm 1139 drivers/hwmon/adm1026.c static SENSOR_DEVICE_ATTR_RO(in5_alarm, alarm, 13); alarm 1140 drivers/hwmon/adm1026.c static SENSOR_DEVICE_ATTR_RO(in6_alarm, alarm, 14); alarm 1141 drivers/hwmon/adm1026.c static SENSOR_DEVICE_ATTR_RO(in7_alarm, alarm, 15); alarm 1142 drivers/hwmon/adm1026.c static SENSOR_DEVICE_ATTR_RO(fan1_alarm, alarm, 16); alarm 1143 drivers/hwmon/adm1026.c static SENSOR_DEVICE_ATTR_RO(fan2_alarm, alarm, 17); alarm 1144 drivers/hwmon/adm1026.c static SENSOR_DEVICE_ATTR_RO(fan3_alarm, alarm, 18); alarm 1145 drivers/hwmon/adm1026.c static SENSOR_DEVICE_ATTR_RO(fan4_alarm, alarm, 19); alarm 1146 drivers/hwmon/adm1026.c static SENSOR_DEVICE_ATTR_RO(fan5_alarm, alarm, 20); alarm 1147 drivers/hwmon/adm1026.c static SENSOR_DEVICE_ATTR_RO(fan6_alarm, alarm, 21); alarm 1148 drivers/hwmon/adm1026.c static SENSOR_DEVICE_ATTR_RO(fan7_alarm, alarm, 22); alarm 1149 drivers/hwmon/adm1026.c static SENSOR_DEVICE_ATTR_RO(fan8_alarm, alarm, 23); alarm 1150 drivers/hwmon/adm1026.c static SENSOR_DEVICE_ATTR_RO(temp1_alarm, alarm, 24); alarm 1151 drivers/hwmon/adm1026.c static SENSOR_DEVICE_ATTR_RO(in10_alarm, alarm, 25); alarm 1152 drivers/hwmon/adm1026.c static SENSOR_DEVICE_ATTR_RO(in8_alarm, alarm, 26); alarm 76 drivers/hwmon/adm1031.c u16 alarm; alarm 169 drivers/hwmon/adm1031.c data->alarm = adm1031_read_value(client, ADM1031_REG_STATUS(0)) alarm 172 drivers/hwmon/adm1031.c data->alarm &= 0xc0ff; alarm 816 drivers/hwmon/adm1031.c return sprintf(buf, "%d\n", data->alarm); alarm 826 drivers/hwmon/adm1031.c return sprintf(buf, "%d\n", (data->alarm >> bitnr) & 1); alarm 829 drivers/hwmon/adm1031.c static SENSOR_DEVICE_ATTR_RO(fan1_alarm, alarm, 0); alarm 830 drivers/hwmon/adm1031.c static SENSOR_DEVICE_ATTR_RO(fan1_fault, alarm, 1); alarm 831 drivers/hwmon/adm1031.c static SENSOR_DEVICE_ATTR_RO(temp2_max_alarm, alarm, 2); alarm 832 drivers/hwmon/adm1031.c static SENSOR_DEVICE_ATTR_RO(temp2_min_alarm, alarm, 3); alarm 833 drivers/hwmon/adm1031.c static SENSOR_DEVICE_ATTR_RO(temp2_crit_alarm, alarm, 4); alarm 834 drivers/hwmon/adm1031.c static SENSOR_DEVICE_ATTR_RO(temp2_fault, alarm, 5); alarm 835 drivers/hwmon/adm1031.c static SENSOR_DEVICE_ATTR_RO(temp1_max_alarm, alarm, 6); alarm 836 drivers/hwmon/adm1031.c static SENSOR_DEVICE_ATTR_RO(temp1_min_alarm, alarm, 7); alarm 837 drivers/hwmon/adm1031.c static SENSOR_DEVICE_ATTR_RO(fan2_alarm, alarm, 8); alarm 838 drivers/hwmon/adm1031.c static SENSOR_DEVICE_ATTR_RO(fan2_fault, alarm, 9); alarm 839 drivers/hwmon/adm1031.c static SENSOR_DEVICE_ATTR_RO(temp3_max_alarm, alarm, 10); alarm 840 drivers/hwmon/adm1031.c static SENSOR_DEVICE_ATTR_RO(temp3_min_alarm, alarm, 11); alarm 841 drivers/hwmon/adm1031.c static SENSOR_DEVICE_ATTR_RO(temp3_crit_alarm, alarm, 12); alarm 842 drivers/hwmon/adm1031.c static SENSOR_DEVICE_ATTR_RO(temp3_fault, alarm, 13); alarm 843 drivers/hwmon/adm1031.c static SENSOR_DEVICE_ATTR_RO(temp1_crit_alarm, alarm, 14); alarm 504 drivers/hwmon/adm9240.c static SENSOR_DEVICE_ATTR_RO(in0_alarm, alarm, 0); alarm 505 drivers/hwmon/adm9240.c static SENSOR_DEVICE_ATTR_RO(in1_alarm, alarm, 1); alarm 506 drivers/hwmon/adm9240.c static SENSOR_DEVICE_ATTR_RO(in2_alarm, alarm, 2); alarm 507 drivers/hwmon/adm9240.c static SENSOR_DEVICE_ATTR_RO(in3_alarm, alarm, 3); alarm 508 drivers/hwmon/adm9240.c static SENSOR_DEVICE_ATTR_RO(in4_alarm, alarm, 8); alarm 509 drivers/hwmon/adm9240.c static SENSOR_DEVICE_ATTR_RO(in5_alarm, alarm, 9); alarm 510 drivers/hwmon/adm9240.c static SENSOR_DEVICE_ATTR_RO(temp1_alarm, alarm, 4); alarm 511 drivers/hwmon/adm9240.c static SENSOR_DEVICE_ATTR_RO(fan1_alarm, alarm, 6); alarm 512 drivers/hwmon/adm9240.c static SENSOR_DEVICE_ATTR_RO(fan2_alarm, alarm, 7); alarm 570 drivers/hwmon/adm9240.c static SENSOR_DEVICE_ATTR_RW(intrusion0_alarm, alarm, 12); alarm 1416 drivers/hwmon/adt7462.c static SENSOR_DEVICE_ATTR_RO(temp1_alarm, alarm, alarm 1418 drivers/hwmon/adt7462.c static SENSOR_DEVICE_ATTR_RO(temp2_alarm, alarm, alarm 1420 drivers/hwmon/adt7462.c static SENSOR_DEVICE_ATTR_RO(temp3_alarm, alarm, alarm 1422 drivers/hwmon/adt7462.c static SENSOR_DEVICE_ATTR_RO(temp4_alarm, alarm, alarm 1481 drivers/hwmon/adt7462.c static SENSOR_DEVICE_ATTR_RO(in1_alarm, alarm, alarm 1483 drivers/hwmon/adt7462.c static SENSOR_DEVICE_ATTR_RO(in2_alarm, alarm, alarm 1485 drivers/hwmon/adt7462.c static SENSOR_DEVICE_ATTR_RO(in3_alarm, alarm, alarm 1487 drivers/hwmon/adt7462.c static SENSOR_DEVICE_ATTR_RO(in4_alarm, alarm, alarm 1489 drivers/hwmon/adt7462.c static SENSOR_DEVICE_ATTR_RO(in5_alarm, alarm, alarm 1491 drivers/hwmon/adt7462.c static SENSOR_DEVICE_ATTR_RO(in6_alarm, alarm, alarm 1493 drivers/hwmon/adt7462.c static SENSOR_DEVICE_ATTR_RO(in7_alarm, alarm, alarm 1495 drivers/hwmon/adt7462.c static SENSOR_DEVICE_ATTR_RO(in8_alarm, alarm, alarm 1497 drivers/hwmon/adt7462.c static SENSOR_DEVICE_ATTR_RO(in9_alarm, alarm, alarm 1499 drivers/hwmon/adt7462.c static SENSOR_DEVICE_ATTR_RO(in10_alarm, alarm, alarm 1501 drivers/hwmon/adt7462.c static SENSOR_DEVICE_ATTR_RO(in11_alarm, alarm, alarm 1503 drivers/hwmon/adt7462.c static SENSOR_DEVICE_ATTR_RO(in12_alarm, alarm, alarm 1505 drivers/hwmon/adt7462.c static SENSOR_DEVICE_ATTR_RO(in13_alarm, alarm, alarm 1526 drivers/hwmon/adt7462.c static SENSOR_DEVICE_ATTR_RO(fan1_alarm, alarm, alarm 1528 drivers/hwmon/adt7462.c static SENSOR_DEVICE_ATTR_RO(fan2_alarm, alarm, alarm 1530 drivers/hwmon/adt7462.c static SENSOR_DEVICE_ATTR_RO(fan3_alarm, alarm, alarm 1532 drivers/hwmon/adt7462.c static SENSOR_DEVICE_ATTR_RO(fan4_alarm, alarm, alarm 1534 drivers/hwmon/adt7462.c static SENSOR_DEVICE_ATTR_RO(fan5_alarm, alarm, alarm 1536 drivers/hwmon/adt7462.c static SENSOR_DEVICE_ATTR_RO(fan6_alarm, alarm, alarm 1538 drivers/hwmon/adt7462.c static SENSOR_DEVICE_ATTR_RO(fan7_alarm, alarm, alarm 1540 drivers/hwmon/adt7462.c static SENSOR_DEVICE_ATTR_RO(fan8_alarm, alarm, alarm 156 drivers/hwmon/adt7470.c u16 alarm; alarm 348 drivers/hwmon/adt7470.c data->alarm = i2c_smbus_read_byte_data(client, ADT7470_REG_ALARM1); alarm 349 drivers/hwmon/adt7470.c if (data->alarm & ADT7470_OOL_ALARM) alarm 350 drivers/hwmon/adt7470.c data->alarm |= ALARM2(i2c_smbus_read_byte_data(client, alarm 973 drivers/hwmon/adt7470.c if (data->alarm & attr->index) alarm 1016 drivers/hwmon/adt7470.c static SENSOR_DEVICE_ATTR_RO(temp1_alarm, alarm, ADT7470_R1T_ALARM); alarm 1017 drivers/hwmon/adt7470.c static SENSOR_DEVICE_ATTR_RO(temp2_alarm, alarm, ADT7470_R2T_ALARM); alarm 1018 drivers/hwmon/adt7470.c static SENSOR_DEVICE_ATTR_RO(temp3_alarm, alarm, ADT7470_R3T_ALARM); alarm 1019 drivers/hwmon/adt7470.c static SENSOR_DEVICE_ATTR_RO(temp4_alarm, alarm, ADT7470_R4T_ALARM); alarm 1020 drivers/hwmon/adt7470.c static SENSOR_DEVICE_ATTR_RO(temp5_alarm, alarm, ADT7470_R5T_ALARM); alarm 1021 drivers/hwmon/adt7470.c static SENSOR_DEVICE_ATTR_RO(temp6_alarm, alarm, ADT7470_R6T_ALARM); alarm 1022 drivers/hwmon/adt7470.c static SENSOR_DEVICE_ATTR_RO(temp7_alarm, alarm, ADT7470_R7T_ALARM); alarm 1023 drivers/hwmon/adt7470.c static SENSOR_DEVICE_ATTR_RO(temp8_alarm, alarm, ALARM2(ADT7470_R8T_ALARM)); alarm 1024 drivers/hwmon/adt7470.c static SENSOR_DEVICE_ATTR_RO(temp9_alarm, alarm, ALARM2(ADT7470_R9T_ALARM)); alarm 1025 drivers/hwmon/adt7470.c static SENSOR_DEVICE_ATTR_RO(temp10_alarm, alarm, ALARM2(ADT7470_R10T_ALARM)); alarm 1042 drivers/hwmon/adt7470.c static SENSOR_DEVICE_ATTR_RO(fan1_alarm, alarm, ALARM2(ADT7470_FAN1_ALARM)); alarm 1043 drivers/hwmon/adt7470.c static SENSOR_DEVICE_ATTR_RO(fan2_alarm, alarm, ALARM2(ADT7470_FAN2_ALARM)); alarm 1044 drivers/hwmon/adt7470.c static SENSOR_DEVICE_ATTR_RO(fan3_alarm, alarm, ALARM2(ADT7470_FAN3_ALARM)); alarm 1045 drivers/hwmon/adt7470.c static SENSOR_DEVICE_ATTR_RO(fan4_alarm, alarm, ALARM2(ADT7470_FAN4_ALARM)); alarm 312 drivers/hwmon/ds1621.c static SENSOR_DEVICE_ATTR_RO(temp1_min_alarm, alarm, DS1621_ALARM_TEMP_LOW); alarm 313 drivers/hwmon/ds1621.c static SENSOR_DEVICE_ATTR_RO(temp1_max_alarm, alarm, DS1621_ALARM_TEMP_HIGH); alarm 200 drivers/hwmon/ds620.c static SENSOR_DEVICE_ATTR_RO(temp1_min_alarm, alarm, DS620_REG_CONFIG_TLF); alarm 201 drivers/hwmon/ds620.c static SENSOR_DEVICE_ATTR_RO(temp1_max_alarm, alarm, DS620_REG_CONFIG_THF); alarm 217 drivers/hwmon/emc2103.c bool alarm = data->temp_min_alarm & (1 << nr); alarm 218 drivers/hwmon/emc2103.c return sprintf(buf, "%d\n", alarm ? 1 : 0); alarm 227 drivers/hwmon/emc2103.c bool alarm = data->temp_max_alarm & (1 << nr); alarm 228 drivers/hwmon/emc2103.c return sprintf(buf, "%d\n", alarm ? 1 : 0); alarm 456 drivers/hwmon/gl518sm.c static SENSOR_DEVICE_ATTR_RO(in0_alarm, alarm, 0); alarm 457 drivers/hwmon/gl518sm.c static SENSOR_DEVICE_ATTR_RO(in1_alarm, alarm, 1); alarm 458 drivers/hwmon/gl518sm.c static SENSOR_DEVICE_ATTR_RO(in2_alarm, alarm, 2); alarm 459 drivers/hwmon/gl518sm.c static SENSOR_DEVICE_ATTR_RO(in3_alarm, alarm, 3); alarm 460 drivers/hwmon/gl518sm.c static SENSOR_DEVICE_ATTR_RO(temp1_alarm, alarm, 4); alarm 461 drivers/hwmon/gl518sm.c static SENSOR_DEVICE_ATTR_RO(fan1_alarm, alarm, 5); alarm 462 drivers/hwmon/gl518sm.c static SENSOR_DEVICE_ATTR_RO(fan2_alarm, alarm, 6); alarm 658 drivers/hwmon/gl520sm.c static SENSOR_DEVICE_ATTR_RO(in0_alarm, alarm, 0); alarm 659 drivers/hwmon/gl520sm.c static SENSOR_DEVICE_ATTR_RO(in1_alarm, alarm, 1); alarm 660 drivers/hwmon/gl520sm.c static SENSOR_DEVICE_ATTR_RO(in2_alarm, alarm, 2); alarm 661 drivers/hwmon/gl520sm.c static SENSOR_DEVICE_ATTR_RO(in3_alarm, alarm, 3); alarm 662 drivers/hwmon/gl520sm.c static SENSOR_DEVICE_ATTR_RO(temp1_alarm, alarm, 4); alarm 663 drivers/hwmon/gl520sm.c static SENSOR_DEVICE_ATTR_RO(fan1_alarm, alarm, 5); alarm 664 drivers/hwmon/gl520sm.c static SENSOR_DEVICE_ATTR_RO(fan2_alarm, alarm, 6); alarm 665 drivers/hwmon/gl520sm.c static SENSOR_DEVICE_ATTR_RO(temp2_alarm, alarm, 7); alarm 666 drivers/hwmon/gl520sm.c static SENSOR_DEVICE_ATTR_RO(in4_alarm, alarm, 7); alarm 81 drivers/hwmon/i5500_temp.c static SENSOR_DEVICE_ATTR_RO(temp1_crit_alarm, alarm, 0); alarm 82 drivers/hwmon/i5500_temp.c static SENSOR_DEVICE_ATTR_RO(temp1_max_alarm, alarm, 1); alarm 220 drivers/hwmon/lm77.c static SENSOR_DEVICE_ATTR_RO(temp1_crit_alarm, alarm, 2); alarm 221 drivers/hwmon/lm77.c static SENSOR_DEVICE_ATTR_RO(temp1_min_alarm, alarm, 0); alarm 222 drivers/hwmon/lm77.c static SENSOR_DEVICE_ATTR_RO(temp1_max_alarm, alarm, 1); alarm 443 drivers/hwmon/lm78.c static SENSOR_DEVICE_ATTR_RO(in0_alarm, alarm, 0); alarm 444 drivers/hwmon/lm78.c static SENSOR_DEVICE_ATTR_RO(in1_alarm, alarm, 1); alarm 445 drivers/hwmon/lm78.c static SENSOR_DEVICE_ATTR_RO(in2_alarm, alarm, 2); alarm 446 drivers/hwmon/lm78.c static SENSOR_DEVICE_ATTR_RO(in3_alarm, alarm, 3); alarm 447 drivers/hwmon/lm78.c static SENSOR_DEVICE_ATTR_RO(in4_alarm, alarm, 8); alarm 448 drivers/hwmon/lm78.c static SENSOR_DEVICE_ATTR_RO(in5_alarm, alarm, 9); alarm 449 drivers/hwmon/lm78.c static SENSOR_DEVICE_ATTR_RO(in6_alarm, alarm, 10); alarm 450 drivers/hwmon/lm78.c static SENSOR_DEVICE_ATTR_RO(fan1_alarm, alarm, 6); alarm 451 drivers/hwmon/lm78.c static SENSOR_DEVICE_ATTR_RO(fan2_alarm, alarm, 7); alarm 452 drivers/hwmon/lm78.c static SENSOR_DEVICE_ATTR_RO(fan3_alarm, alarm, 11); alarm 453 drivers/hwmon/lm78.c static SENSOR_DEVICE_ATTR_RO(temp1_alarm, alarm, 4); alarm 483 drivers/hwmon/lm80.c static SENSOR_DEVICE_ATTR_RO(in0_alarm, alarm, 0); alarm 484 drivers/hwmon/lm80.c static SENSOR_DEVICE_ATTR_RO(in1_alarm, alarm, 1); alarm 485 drivers/hwmon/lm80.c static SENSOR_DEVICE_ATTR_RO(in2_alarm, alarm, 2); alarm 486 drivers/hwmon/lm80.c static SENSOR_DEVICE_ATTR_RO(in3_alarm, alarm, 3); alarm 487 drivers/hwmon/lm80.c static SENSOR_DEVICE_ATTR_RO(in4_alarm, alarm, 4); alarm 488 drivers/hwmon/lm80.c static SENSOR_DEVICE_ATTR_RO(in5_alarm, alarm, 5); alarm 489 drivers/hwmon/lm80.c static SENSOR_DEVICE_ATTR_RO(in6_alarm, alarm, 6); alarm 490 drivers/hwmon/lm80.c static SENSOR_DEVICE_ATTR_RO(fan1_alarm, alarm, 10); alarm 491 drivers/hwmon/lm80.c static SENSOR_DEVICE_ATTR_RO(fan2_alarm, alarm, 11); alarm 492 drivers/hwmon/lm80.c static SENSOR_DEVICE_ATTR_RO(temp1_max_alarm, alarm, 8); alarm 493 drivers/hwmon/lm80.c static SENSOR_DEVICE_ATTR_RO(temp1_crit_alarm, alarm, 13); alarm 214 drivers/hwmon/lm83.c static SENSOR_DEVICE_ATTR_RO(temp1_crit_alarm, alarm, 0); alarm 215 drivers/hwmon/lm83.c static SENSOR_DEVICE_ATTR_RO(temp3_crit_alarm, alarm, 1); alarm 216 drivers/hwmon/lm83.c static SENSOR_DEVICE_ATTR_RO(temp3_fault, alarm, 2); alarm 217 drivers/hwmon/lm83.c static SENSOR_DEVICE_ATTR_RO(temp3_max_alarm, alarm, 4); alarm 218 drivers/hwmon/lm83.c static SENSOR_DEVICE_ATTR_RO(temp1_max_alarm, alarm, 6); alarm 219 drivers/hwmon/lm83.c static SENSOR_DEVICE_ATTR_RO(temp2_crit_alarm, alarm, 8); alarm 220 drivers/hwmon/lm83.c static SENSOR_DEVICE_ATTR_RO(temp4_crit_alarm, alarm, 9); alarm 221 drivers/hwmon/lm83.c static SENSOR_DEVICE_ATTR_RO(temp4_fault, alarm, 10); alarm 222 drivers/hwmon/lm83.c static SENSOR_DEVICE_ATTR_RO(temp4_max_alarm, alarm, 12); alarm 223 drivers/hwmon/lm83.c static SENSOR_DEVICE_ATTR_RO(temp2_fault, alarm, 13); alarm 224 drivers/hwmon/lm83.c static SENSOR_DEVICE_ATTR_RO(temp2_max_alarm, alarm, 15); alarm 663 drivers/hwmon/lm85.c static SENSOR_DEVICE_ATTR_RO(in0_alarm, alarm, 0); alarm 664 drivers/hwmon/lm85.c static SENSOR_DEVICE_ATTR_RO(in1_alarm, alarm, 1); alarm 665 drivers/hwmon/lm85.c static SENSOR_DEVICE_ATTR_RO(in2_alarm, alarm, 2); alarm 666 drivers/hwmon/lm85.c static SENSOR_DEVICE_ATTR_RO(in3_alarm, alarm, 3); alarm 667 drivers/hwmon/lm85.c static SENSOR_DEVICE_ATTR_RO(in4_alarm, alarm, 8); alarm 668 drivers/hwmon/lm85.c static SENSOR_DEVICE_ATTR_RO(in5_alarm, alarm, 18); alarm 669 drivers/hwmon/lm85.c static SENSOR_DEVICE_ATTR_RO(in6_alarm, alarm, 16); alarm 670 drivers/hwmon/lm85.c static SENSOR_DEVICE_ATTR_RO(in7_alarm, alarm, 17); alarm 671 drivers/hwmon/lm85.c static SENSOR_DEVICE_ATTR_RO(temp1_alarm, alarm, 4); alarm 672 drivers/hwmon/lm85.c static SENSOR_DEVICE_ATTR_RO(temp1_fault, alarm, 14); alarm 673 drivers/hwmon/lm85.c static SENSOR_DEVICE_ATTR_RO(temp2_alarm, alarm, 5); alarm 674 drivers/hwmon/lm85.c static SENSOR_DEVICE_ATTR_RO(temp3_alarm, alarm, 6); alarm 675 drivers/hwmon/lm85.c static SENSOR_DEVICE_ATTR_RO(temp3_fault, alarm, 15); alarm 676 drivers/hwmon/lm85.c static SENSOR_DEVICE_ATTR_RO(fan1_alarm, alarm, 10); alarm 677 drivers/hwmon/lm85.c static SENSOR_DEVICE_ATTR_RO(fan2_alarm, alarm, 11); alarm 678 drivers/hwmon/lm85.c static SENSOR_DEVICE_ATTR_RO(fan3_alarm, alarm, 12); alarm 679 drivers/hwmon/lm85.c static SENSOR_DEVICE_ATTR_RO(fan4_alarm, alarm, 13); alarm 659 drivers/hwmon/lm87.c static SENSOR_DEVICE_ATTR_RO(in0_alarm, alarm, 0); alarm 660 drivers/hwmon/lm87.c static SENSOR_DEVICE_ATTR_RO(in1_alarm, alarm, 1); alarm 661 drivers/hwmon/lm87.c static SENSOR_DEVICE_ATTR_RO(in2_alarm, alarm, 2); alarm 662 drivers/hwmon/lm87.c static SENSOR_DEVICE_ATTR_RO(in3_alarm, alarm, 3); alarm 663 drivers/hwmon/lm87.c static SENSOR_DEVICE_ATTR_RO(in4_alarm, alarm, 8); alarm 664 drivers/hwmon/lm87.c static SENSOR_DEVICE_ATTR_RO(in5_alarm, alarm, 9); alarm 665 drivers/hwmon/lm87.c static SENSOR_DEVICE_ATTR_RO(in6_alarm, alarm, 6); alarm 666 drivers/hwmon/lm87.c static SENSOR_DEVICE_ATTR_RO(in7_alarm, alarm, 7); alarm 667 drivers/hwmon/lm87.c static SENSOR_DEVICE_ATTR_RO(temp1_alarm, alarm, 4); alarm 668 drivers/hwmon/lm87.c static SENSOR_DEVICE_ATTR_RO(temp2_alarm, alarm, 5); alarm 669 drivers/hwmon/lm87.c static SENSOR_DEVICE_ATTR_RO(temp3_alarm, alarm, 5); alarm 670 drivers/hwmon/lm87.c static SENSOR_DEVICE_ATTR_RO(fan1_alarm, alarm, 6); alarm 671 drivers/hwmon/lm87.c static SENSOR_DEVICE_ATTR_RO(fan2_alarm, alarm, 7); alarm 672 drivers/hwmon/lm87.c static SENSOR_DEVICE_ATTR_RO(temp2_fault, alarm, 14); alarm 673 drivers/hwmon/lm87.c static SENSOR_DEVICE_ATTR_RO(temp3_fault, alarm, 15); alarm 235 drivers/hwmon/lm92.c static SENSOR_DEVICE_ATTR_RO(temp1_crit_alarm, alarm, 2); alarm 236 drivers/hwmon/lm92.c static SENSOR_DEVICE_ATTR_RO(temp1_min_alarm, alarm, 0); alarm 237 drivers/hwmon/lm92.c static SENSOR_DEVICE_ATTR_RO(temp1_max_alarm, alarm, 1); alarm 492 drivers/hwmon/lm95234.c static SENSOR_DEVICE_ATTR_RO(temp2_fault, alarm, BIT(0) | BIT(1)); alarm 493 drivers/hwmon/lm95234.c static SENSOR_DEVICE_ATTR_RO(temp3_fault, alarm, BIT(2) | BIT(3)); alarm 494 drivers/hwmon/lm95234.c static SENSOR_DEVICE_ATTR_RO(temp4_fault, alarm, BIT(4) | BIT(5)); alarm 495 drivers/hwmon/lm95234.c static SENSOR_DEVICE_ATTR_RO(temp5_fault, alarm, BIT(6) | BIT(7)); alarm 514 drivers/hwmon/lm95234.c static SENSOR_DEVICE_ATTR_RO(temp1_max_alarm, alarm, BIT(0 + 8)); alarm 515 drivers/hwmon/lm95234.c static SENSOR_DEVICE_ATTR_RO(temp2_max_alarm, alarm, BIT(1 + 16)); alarm 516 drivers/hwmon/lm95234.c static SENSOR_DEVICE_ATTR_RO(temp3_max_alarm, alarm, BIT(2 + 16)); alarm 517 drivers/hwmon/lm95234.c static SENSOR_DEVICE_ATTR_RO(temp4_max_alarm, alarm, BIT(3 + 8)); alarm 518 drivers/hwmon/lm95234.c static SENSOR_DEVICE_ATTR_RO(temp5_max_alarm, alarm, BIT(4 + 8)); alarm 526 drivers/hwmon/lm95234.c static SENSOR_DEVICE_ATTR_RO(temp2_crit_alarm, alarm, BIT(1 + 8)); alarm 527 drivers/hwmon/lm95234.c static SENSOR_DEVICE_ATTR_RO(temp3_crit_alarm, alarm, BIT(2 + 8)); alarm 191 drivers/hwmon/max1619.c static SENSOR_DEVICE_ATTR_RO(temp2_crit_alarm, alarm, 1); alarm 192 drivers/hwmon/max1619.c static SENSOR_DEVICE_ATTR_RO(temp2_fault, alarm, 2); alarm 193 drivers/hwmon/max1619.c static SENSOR_DEVICE_ATTR_RO(temp2_min_alarm, alarm, 3); alarm 194 drivers/hwmon/max1619.c static SENSOR_DEVICE_ATTR_RO(temp2_max_alarm, alarm, 4); alarm 348 drivers/hwmon/max6639.c static SENSOR_DEVICE_ATTR_RO(fan1_fault, alarm, 1); alarm 349 drivers/hwmon/max6639.c static SENSOR_DEVICE_ATTR_RO(fan2_fault, alarm, 0); alarm 350 drivers/hwmon/max6639.c static SENSOR_DEVICE_ATTR_RO(temp1_max_alarm, alarm, 3); alarm 351 drivers/hwmon/max6639.c static SENSOR_DEVICE_ATTR_RO(temp2_max_alarm, alarm, 2); alarm 352 drivers/hwmon/max6639.c static SENSOR_DEVICE_ATTR_RO(temp1_crit_alarm, alarm, 7); alarm 353 drivers/hwmon/max6639.c static SENSOR_DEVICE_ATTR_RO(temp2_crit_alarm, alarm, 6); alarm 354 drivers/hwmon/max6639.c static SENSOR_DEVICE_ATTR_RO(temp1_emergency_alarm, alarm, 5); alarm 355 drivers/hwmon/max6639.c static SENSOR_DEVICE_ATTR_RO(temp2_emergency_alarm, alarm, 4); alarm 250 drivers/hwmon/max6642.c static SENSOR_DEVICE_ATTR_RO(temp2_fault, alarm, 2); alarm 251 drivers/hwmon/max6642.c static SENSOR_DEVICE_ATTR_RO(temp1_max_alarm, alarm, 6); alarm 252 drivers/hwmon/max6642.c static SENSOR_DEVICE_ATTR_RO(temp2_max_alarm, alarm, 4); alarm 115 drivers/hwmon/max6650.c u8 alarm; alarm 185 drivers/hwmon/max6650.c data->alarm |= reg; alarm 302 drivers/hwmon/max6650.c bool alarm; alarm 307 drivers/hwmon/max6650.c alarm = data->alarm & attr->index; alarm 308 drivers/hwmon/max6650.c if (alarm) { alarm 310 drivers/hwmon/max6650.c data->alarm &= ~attr->index; alarm 315 drivers/hwmon/max6650.c return sprintf(buf, "%d\n", alarm); alarm 318 drivers/hwmon/max6650.c static SENSOR_DEVICE_ATTR_RO(gpio1_alarm, alarm, MAX6650_ALRM_GPIO1); alarm 319 drivers/hwmon/max6650.c static SENSOR_DEVICE_ATTR_RO(gpio2_alarm, alarm, MAX6650_ALRM_GPIO2); alarm 579 drivers/hwmon/max6650.c *val = !!(data->alarm & MAX6650_ALRM_MIN); alarm 580 drivers/hwmon/max6650.c data->alarm &= ~MAX6650_ALRM_MIN; alarm 584 drivers/hwmon/max6650.c *val = !!(data->alarm & MAX6650_ALRM_MAX); alarm 585 drivers/hwmon/max6650.c data->alarm &= ~MAX6650_ALRM_MAX; alarm 589 drivers/hwmon/max6650.c *val = !!(data->alarm & MAX6650_ALRM_TACH); alarm 590 drivers/hwmon/max6650.c data->alarm &= ~MAX6650_ALRM_TACH; alarm 351 drivers/hwmon/max6697.c static SENSOR_DEVICE_ATTR_RO(temp1_max_alarm, alarm, 22); alarm 352 drivers/hwmon/max6697.c static SENSOR_DEVICE_ATTR_RO(temp2_max_alarm, alarm, 16); alarm 353 drivers/hwmon/max6697.c static SENSOR_DEVICE_ATTR_RO(temp3_max_alarm, alarm, 17); alarm 354 drivers/hwmon/max6697.c static SENSOR_DEVICE_ATTR_RO(temp4_max_alarm, alarm, 18); alarm 355 drivers/hwmon/max6697.c static SENSOR_DEVICE_ATTR_RO(temp5_max_alarm, alarm, 19); alarm 356 drivers/hwmon/max6697.c static SENSOR_DEVICE_ATTR_RO(temp6_max_alarm, alarm, 20); alarm 357 drivers/hwmon/max6697.c static SENSOR_DEVICE_ATTR_RO(temp7_max_alarm, alarm, 21); alarm 358 drivers/hwmon/max6697.c static SENSOR_DEVICE_ATTR_RO(temp8_max_alarm, alarm, 23); alarm 360 drivers/hwmon/max6697.c static SENSOR_DEVICE_ATTR_RO(temp1_crit_alarm, alarm, 14); alarm 361 drivers/hwmon/max6697.c static SENSOR_DEVICE_ATTR_RO(temp2_crit_alarm, alarm, 8); alarm 362 drivers/hwmon/max6697.c static SENSOR_DEVICE_ATTR_RO(temp3_crit_alarm, alarm, 9); alarm 363 drivers/hwmon/max6697.c static SENSOR_DEVICE_ATTR_RO(temp4_crit_alarm, alarm, 10); alarm 364 drivers/hwmon/max6697.c static SENSOR_DEVICE_ATTR_RO(temp5_crit_alarm, alarm, 11); alarm 365 drivers/hwmon/max6697.c static SENSOR_DEVICE_ATTR_RO(temp6_crit_alarm, alarm, 12); alarm 366 drivers/hwmon/max6697.c static SENSOR_DEVICE_ATTR_RO(temp7_crit_alarm, alarm, 13); alarm 367 drivers/hwmon/max6697.c static SENSOR_DEVICE_ATTR_RO(temp8_crit_alarm, alarm, 15); alarm 369 drivers/hwmon/max6697.c static SENSOR_DEVICE_ATTR_RO(temp2_fault, alarm, 1); alarm 370 drivers/hwmon/max6697.c static SENSOR_DEVICE_ATTR_RO(temp3_fault, alarm, 2); alarm 371 drivers/hwmon/max6697.c static SENSOR_DEVICE_ATTR_RO(temp4_fault, alarm, 3); alarm 372 drivers/hwmon/max6697.c static SENSOR_DEVICE_ATTR_RO(temp5_fault, alarm, 4); alarm 373 drivers/hwmon/max6697.c static SENSOR_DEVICE_ATTR_RO(temp6_fault, alarm, 5); alarm 374 drivers/hwmon/max6697.c static SENSOR_DEVICE_ATTR_RO(temp7_fault, alarm, 6); alarm 375 drivers/hwmon/max6697.c static SENSOR_DEVICE_ATTR_RO(temp8_fault, alarm, 7); alarm 1841 drivers/hwmon/nct6775.c u8 alarm; alarm 1845 drivers/hwmon/nct6775.c alarm = nct6775_read_value(data, data->REG_ALARM[i]); alarm 1846 drivers/hwmon/nct6775.c data->alarms |= ((u64)alarm) << (i << 3); alarm 1935 drivers/hwmon/nct6775.c unsigned int alarm = 0; alarm 1946 drivers/hwmon/nct6775.c alarm = (data->alarms >> bit) & 0x01; alarm 1948 drivers/hwmon/nct6775.c return sprintf(buf, "%u\n", alarm); alarm 592 drivers/hwmon/nct7802.c static SENSOR_DEVICE_ATTR_2_RO(temp1_min_alarm, alarm, 0x18, 0); alarm 593 drivers/hwmon/nct7802.c static SENSOR_DEVICE_ATTR_2_RO(temp2_min_alarm, alarm, 0x18, 1); alarm 594 drivers/hwmon/nct7802.c static SENSOR_DEVICE_ATTR_2_RO(temp3_min_alarm, alarm, 0x18, 2); alarm 595 drivers/hwmon/nct7802.c static SENSOR_DEVICE_ATTR_2_RO(temp4_min_alarm, alarm, 0x18, 3); alarm 596 drivers/hwmon/nct7802.c static SENSOR_DEVICE_ATTR_2_RO(temp5_min_alarm, alarm, 0x18, 4); alarm 598 drivers/hwmon/nct7802.c static SENSOR_DEVICE_ATTR_2_RO(temp1_max_alarm, alarm, 0x19, 0); alarm 599 drivers/hwmon/nct7802.c static SENSOR_DEVICE_ATTR_2_RO(temp2_max_alarm, alarm, 0x19, 1); alarm 600 drivers/hwmon/nct7802.c static SENSOR_DEVICE_ATTR_2_RO(temp3_max_alarm, alarm, 0x19, 2); alarm 601 drivers/hwmon/nct7802.c static SENSOR_DEVICE_ATTR_2_RO(temp4_max_alarm, alarm, 0x19, 3); alarm 602 drivers/hwmon/nct7802.c static SENSOR_DEVICE_ATTR_2_RO(temp5_max_alarm, alarm, 0x19, 4); alarm 604 drivers/hwmon/nct7802.c static SENSOR_DEVICE_ATTR_2_RO(temp1_crit_alarm, alarm, 0x1b, 0); alarm 605 drivers/hwmon/nct7802.c static SENSOR_DEVICE_ATTR_2_RO(temp2_crit_alarm, alarm, 0x1b, 1); alarm 606 drivers/hwmon/nct7802.c static SENSOR_DEVICE_ATTR_2_RO(temp3_crit_alarm, alarm, 0x1b, 2); alarm 607 drivers/hwmon/nct7802.c static SENSOR_DEVICE_ATTR_2_RO(temp4_crit_alarm, alarm, 0x1b, 3); alarm 608 drivers/hwmon/nct7802.c static SENSOR_DEVICE_ATTR_2_RO(temp5_crit_alarm, alarm, 0x1b, 4); alarm 610 drivers/hwmon/nct7802.c static SENSOR_DEVICE_ATTR_2_RO(temp1_fault, alarm, 0x17, 0); alarm 611 drivers/hwmon/nct7802.c static SENSOR_DEVICE_ATTR_2_RO(temp2_fault, alarm, 0x17, 1); alarm 612 drivers/hwmon/nct7802.c static SENSOR_DEVICE_ATTR_2_RO(temp3_fault, alarm, 0x17, 2); alarm 810 drivers/hwmon/nct7802.c static SENSOR_DEVICE_ATTR_2_RO(fan1_alarm, alarm, 0x1a, 0); alarm 814 drivers/hwmon/nct7802.c static SENSOR_DEVICE_ATTR_2_RO(fan2_alarm, alarm, 0x1a, 1); alarm 818 drivers/hwmon/nct7802.c static SENSOR_DEVICE_ATTR_2_RO(fan3_alarm, alarm, 0x1a, 2); alarm 1148 drivers/hwmon/pmbus/pmbus_core.c const char *alarm; /* Alarm attribute name */ alarm 1199 drivers/hwmon/pmbus/pmbus_core.c l->alarm, index, alarm 1321 drivers/hwmon/pmbus/pmbus_core.c .alarm = "min_alarm", alarm 1326 drivers/hwmon/pmbus/pmbus_core.c .alarm = "lcrit_alarm", alarm 1331 drivers/hwmon/pmbus/pmbus_core.c .alarm = "max_alarm", alarm 1336 drivers/hwmon/pmbus/pmbus_core.c .alarm = "crit_alarm", alarm 1360 drivers/hwmon/pmbus/pmbus_core.c .alarm = "min_alarm", alarm 1365 drivers/hwmon/pmbus/pmbus_core.c .alarm = "lcrit_alarm", alarm 1370 drivers/hwmon/pmbus/pmbus_core.c .alarm = "max_alarm", alarm 1375 drivers/hwmon/pmbus/pmbus_core.c .alarm = "crit_alarm", alarm 1384 drivers/hwmon/pmbus/pmbus_core.c .alarm = "min_alarm", alarm 1389 drivers/hwmon/pmbus/pmbus_core.c .alarm = "lcrit_alarm", alarm 1394 drivers/hwmon/pmbus/pmbus_core.c .alarm = "max_alarm", alarm 1399 drivers/hwmon/pmbus/pmbus_core.c .alarm = "crit_alarm", alarm 1464 drivers/hwmon/pmbus/pmbus_core.c .alarm = "max_alarm", alarm 1469 drivers/hwmon/pmbus/pmbus_core.c .alarm = "crit_alarm", alarm 1493 drivers/hwmon/pmbus/pmbus_core.c .alarm = "max_alarm", alarm 1498 drivers/hwmon/pmbus/pmbus_core.c .alarm = "lcrit_alarm", alarm 1503 drivers/hwmon/pmbus/pmbus_core.c .alarm = "crit_alarm", alarm 1554 drivers/hwmon/pmbus/pmbus_core.c .alarm = "alarm", alarm 1578 drivers/hwmon/pmbus/pmbus_core.c .alarm = "cap_alarm", alarm 1583 drivers/hwmon/pmbus/pmbus_core.c .alarm = "max_alarm", alarm 1588 drivers/hwmon/pmbus/pmbus_core.c .alarm = "crit_alarm", alarm 1639 drivers/hwmon/pmbus/pmbus_core.c .alarm = "min_alarm", alarm 1645 drivers/hwmon/pmbus/pmbus_core.c .alarm = "lcrit_alarm", alarm 1650 drivers/hwmon/pmbus/pmbus_core.c .alarm = "max_alarm", alarm 1655 drivers/hwmon/pmbus/pmbus_core.c .alarm = "crit_alarm", alarm 1677 drivers/hwmon/pmbus/pmbus_core.c .alarm = "min_alarm", alarm 1683 drivers/hwmon/pmbus/pmbus_core.c .alarm = "lcrit_alarm", alarm 1688 drivers/hwmon/pmbus/pmbus_core.c .alarm = "max_alarm", alarm 1693 drivers/hwmon/pmbus/pmbus_core.c .alarm = "crit_alarm", alarm 1715 drivers/hwmon/pmbus/pmbus_core.c .alarm = "min_alarm", alarm 1721 drivers/hwmon/pmbus/pmbus_core.c .alarm = "lcrit_alarm", alarm 1726 drivers/hwmon/pmbus/pmbus_core.c .alarm = "max_alarm", alarm 1731 drivers/hwmon/pmbus/pmbus_core.c .alarm = "crit_alarm", alarm 494 drivers/hwmon/sis5595.c static SENSOR_DEVICE_ATTR_RO(in0_alarm, alarm, 0); alarm 495 drivers/hwmon/sis5595.c static SENSOR_DEVICE_ATTR_RO(in1_alarm, alarm, 1); alarm 496 drivers/hwmon/sis5595.c static SENSOR_DEVICE_ATTR_RO(in2_alarm, alarm, 2); alarm 497 drivers/hwmon/sis5595.c static SENSOR_DEVICE_ATTR_RO(in3_alarm, alarm, 3); alarm 498 drivers/hwmon/sis5595.c static SENSOR_DEVICE_ATTR_RO(in4_alarm, alarm, 15); alarm 499 drivers/hwmon/sis5595.c static SENSOR_DEVICE_ATTR_RO(fan1_alarm, alarm, 6); alarm 500 drivers/hwmon/sis5595.c static SENSOR_DEVICE_ATTR_RO(fan2_alarm, alarm, 7); alarm 501 drivers/hwmon/sis5595.c static SENSOR_DEVICE_ATTR_RO(temp1_alarm, alarm, 15); alarm 443 drivers/hwmon/smsc47m192.c static SENSOR_DEVICE_ATTR_RO(temp1_alarm, alarm, 0x0010); alarm 444 drivers/hwmon/smsc47m192.c static SENSOR_DEVICE_ATTR_RO(temp2_alarm, alarm, 0x0020); alarm 445 drivers/hwmon/smsc47m192.c static SENSOR_DEVICE_ATTR_RO(temp3_alarm, alarm, 0x0040); alarm 446 drivers/hwmon/smsc47m192.c static SENSOR_DEVICE_ATTR_RO(temp2_fault, alarm, 0x4000); alarm 447 drivers/hwmon/smsc47m192.c static SENSOR_DEVICE_ATTR_RO(temp3_fault, alarm, 0x8000); alarm 448 drivers/hwmon/smsc47m192.c static SENSOR_DEVICE_ATTR_RO(in0_alarm, alarm, 0x0001); alarm 449 drivers/hwmon/smsc47m192.c static SENSOR_DEVICE_ATTR_RO(in1_alarm, alarm, 0x0002); alarm 450 drivers/hwmon/smsc47m192.c static SENSOR_DEVICE_ATTR_RO(in2_alarm, alarm, 0x0004); alarm 451 drivers/hwmon/smsc47m192.c static SENSOR_DEVICE_ATTR_RO(in3_alarm, alarm, 0x0008); alarm 452 drivers/hwmon/smsc47m192.c static SENSOR_DEVICE_ATTR_RO(in4_alarm, alarm, 0x0100); alarm 453 drivers/hwmon/smsc47m192.c static SENSOR_DEVICE_ATTR_RO(in5_alarm, alarm, 0x0200); alarm 454 drivers/hwmon/smsc47m192.c static SENSOR_DEVICE_ATTR_RO(in6_alarm, alarm, 0x0400); alarm 455 drivers/hwmon/smsc47m192.c static SENSOR_DEVICE_ATTR_RO(in7_alarm, alarm, 0x0800); alarm 261 drivers/hwmon/thmc50.c static SENSOR_DEVICE_ATTR_RO(temp1_alarm, alarm, 0); alarm 262 drivers/hwmon/thmc50.c static SENSOR_DEVICE_ATTR_RO(temp2_alarm, alarm, 5); alarm 263 drivers/hwmon/thmc50.c static SENSOR_DEVICE_ATTR_RO(temp3_alarm, alarm, 1); alarm 264 drivers/hwmon/thmc50.c static SENSOR_DEVICE_ATTR_RO(temp2_fault, alarm, 7); alarm 265 drivers/hwmon/thmc50.c static SENSOR_DEVICE_ATTR_RO(temp3_fault, alarm, 2); alarm 585 drivers/hwmon/via686a.c static SENSOR_DEVICE_ATTR_RO(in0_alarm, alarm, 0); alarm 586 drivers/hwmon/via686a.c static SENSOR_DEVICE_ATTR_RO(in1_alarm, alarm, 1); alarm 587 drivers/hwmon/via686a.c static SENSOR_DEVICE_ATTR_RO(in2_alarm, alarm, 2); alarm 588 drivers/hwmon/via686a.c static SENSOR_DEVICE_ATTR_RO(in3_alarm, alarm, 3); alarm 589 drivers/hwmon/via686a.c static SENSOR_DEVICE_ATTR_RO(in4_alarm, alarm, 8); alarm 590 drivers/hwmon/via686a.c static SENSOR_DEVICE_ATTR_RO(temp1_alarm, alarm, 4); alarm 591 drivers/hwmon/via686a.c static SENSOR_DEVICE_ATTR_RO(temp2_alarm, alarm, 11); alarm 592 drivers/hwmon/via686a.c static SENSOR_DEVICE_ATTR_RO(temp3_alarm, alarm, 15); alarm 593 drivers/hwmon/via686a.c static SENSOR_DEVICE_ATTR_RO(fan1_alarm, alarm, 6); alarm 594 drivers/hwmon/via686a.c static SENSOR_DEVICE_ATTR_RO(fan2_alarm, alarm, 7); alarm 615 drivers/hwmon/vt8231.c static SENSOR_DEVICE_ATTR_RO(temp1_alarm, alarm, 4); alarm 616 drivers/hwmon/vt8231.c static SENSOR_DEVICE_ATTR_RO(temp2_alarm, alarm, 11); alarm 617 drivers/hwmon/vt8231.c static SENSOR_DEVICE_ATTR_RO(temp3_alarm, alarm, 0); alarm 618 drivers/hwmon/vt8231.c static SENSOR_DEVICE_ATTR_RO(temp4_alarm, alarm, 1); alarm 619 drivers/hwmon/vt8231.c static SENSOR_DEVICE_ATTR_RO(temp5_alarm, alarm, 3); alarm 620 drivers/hwmon/vt8231.c static SENSOR_DEVICE_ATTR_RO(temp6_alarm, alarm, 8); alarm 621 drivers/hwmon/vt8231.c static SENSOR_DEVICE_ATTR_RO(in0_alarm, alarm, 11); alarm 622 drivers/hwmon/vt8231.c static SENSOR_DEVICE_ATTR_RO(in1_alarm, alarm, 0); alarm 623 drivers/hwmon/vt8231.c static SENSOR_DEVICE_ATTR_RO(in2_alarm, alarm, 1); alarm 624 drivers/hwmon/vt8231.c static SENSOR_DEVICE_ATTR_RO(in3_alarm, alarm, 3); alarm 625 drivers/hwmon/vt8231.c static SENSOR_DEVICE_ATTR_RO(in4_alarm, alarm, 8); alarm 626 drivers/hwmon/vt8231.c static SENSOR_DEVICE_ATTR_RO(in5_alarm, alarm, 2); alarm 627 drivers/hwmon/vt8231.c static SENSOR_DEVICE_ATTR_RO(fan1_alarm, alarm, 6); alarm 628 drivers/hwmon/vt8231.c static SENSOR_DEVICE_ATTR_RO(fan2_alarm, alarm, 7); alarm 847 drivers/hwmon/w83627hf.c static SENSOR_DEVICE_ATTR_RO(in0_alarm, alarm, 0); alarm 848 drivers/hwmon/w83627hf.c static SENSOR_DEVICE_ATTR_RO(in1_alarm, alarm, 1); alarm 849 drivers/hwmon/w83627hf.c static SENSOR_DEVICE_ATTR_RO(in2_alarm, alarm, 2); alarm 850 drivers/hwmon/w83627hf.c static SENSOR_DEVICE_ATTR_RO(in3_alarm, alarm, 3); alarm 851 drivers/hwmon/w83627hf.c static SENSOR_DEVICE_ATTR_RO(in4_alarm, alarm, 8); alarm 852 drivers/hwmon/w83627hf.c static SENSOR_DEVICE_ATTR_RO(in5_alarm, alarm, 9); alarm 853 drivers/hwmon/w83627hf.c static SENSOR_DEVICE_ATTR_RO(in6_alarm, alarm, 10); alarm 854 drivers/hwmon/w83627hf.c static SENSOR_DEVICE_ATTR_RO(in7_alarm, alarm, 16); alarm 855 drivers/hwmon/w83627hf.c static SENSOR_DEVICE_ATTR_RO(in8_alarm, alarm, 17); alarm 856 drivers/hwmon/w83627hf.c static SENSOR_DEVICE_ATTR_RO(fan1_alarm, alarm, 6); alarm 857 drivers/hwmon/w83627hf.c static SENSOR_DEVICE_ATTR_RO(fan2_alarm, alarm, 7); alarm 858 drivers/hwmon/w83627hf.c static SENSOR_DEVICE_ATTR_RO(fan3_alarm, alarm, 11); alarm 859 drivers/hwmon/w83627hf.c static SENSOR_DEVICE_ATTR_RO(temp1_alarm, alarm, 4); alarm 860 drivers/hwmon/w83627hf.c static SENSOR_DEVICE_ATTR_RO(temp2_alarm, alarm, 5); alarm 861 drivers/hwmon/w83627hf.c static SENSOR_DEVICE_ATTR_RO(temp3_alarm, alarm, 13); alarm 240 drivers/iio/adc/xilinx-xadc-core.c static unsigned int xadc_zynq_transform_alarm(unsigned int alarm) alarm 242 drivers/iio/adc/xilinx-xadc-core.c return ((alarm & 0x80) >> 4) | alarm 243 drivers/iio/adc/xilinx-xadc-core.c ((alarm & 0x78) << 1) | alarm 244 drivers/iio/adc/xilinx-xadc-core.c (alarm & 0x07); alarm 423 drivers/iio/adc/xilinx-xadc-core.c static void xadc_zynq_update_alarm(struct xadc *xadc, unsigned int alarm) alarm 429 drivers/iio/adc/xilinx-xadc-core.c alarm = ((alarm & 0x08) << 4) | ((alarm & 0xf0) >> 1) | (alarm & 0x07); alarm 435 drivers/iio/adc/xilinx-xadc-core.c xadc_write_reg(xadc, XADC_ZYNQ_REG_INTSTS, status & alarm); alarm 438 drivers/iio/adc/xilinx-xadc-core.c ~alarm & XADC_ZYNQ_INT_ALARM_MASK); alarm 517 drivers/iio/adc/xilinx-xadc-core.c static void xadc_axi_update_alarm(struct xadc *xadc, unsigned int alarm) alarm 528 drivers/iio/adc/xilinx-xadc-core.c alarm = ((alarm & 0x07) << 1) | ((alarm & 0x08) >> 3) | alarm 529 drivers/iio/adc/xilinx-xadc-core.c ((alarm & 0xf0) << 6); alarm 534 drivers/iio/adc/xilinx-xadc-core.c val |= alarm; alarm 126 drivers/iio/adc/xilinx-xadc-events.c unsigned int alarm = xadc_get_alarm_mask(chan); alarm 134 drivers/iio/adc/xilinx-xadc-events.c xadc->alarm_mask |= alarm; alarm 136 drivers/iio/adc/xilinx-xadc-events.c xadc->alarm_mask &= ~alarm; alarm 78 drivers/iio/adc/xilinx-xadc.h void (*update_alarm)(struct xadc *xadc, unsigned int alarm); alarm 1083 drivers/mfd/menelaus.c int alarm = (m->client->irq > 0); alarm 1099 drivers/mfd/menelaus.c if (alarm) { alarm 1124 drivers/mfd/menelaus.c if (alarm) { alarm 1797 drivers/net/phy/marvell.c static int m88e1510_get_temp_alarm(struct phy_device *phydev, long *alarm) alarm 1801 drivers/net/phy/marvell.c *alarm = false; alarm 1808 drivers/net/phy/marvell.c *alarm = !!(ret & MII_88E1510_MISC_TEST_TEMP_IRQ); alarm 70 drivers/power/supply/charger-manager.c static struct alarm *cm_timer; alarm 1610 drivers/power/supply/charger-manager.c static enum alarmtimer_restart cm_timer_func(struct alarm *alarm, ktime_t now) alarm 209 drivers/rtc/dev.c struct rtc_wkalrm alarm; alarm 257 drivers/rtc/dev.c err = rtc_read_alarm(rtc, &alarm); alarm 261 drivers/rtc/dev.c if (copy_to_user(uarg, &alarm.time, sizeof(tm))) alarm 268 drivers/rtc/dev.c if (copy_from_user(&alarm.time, uarg, sizeof(tm))) alarm 271 drivers/rtc/dev.c alarm.enabled = 0; alarm 272 drivers/rtc/dev.c alarm.pending = 0; alarm 273 drivers/rtc/dev.c alarm.time.tm_wday = -1; alarm 274 drivers/rtc/dev.c alarm.time.tm_yday = -1; alarm 275 drivers/rtc/dev.c alarm.time.tm_isdst = -1; alarm 298 drivers/rtc/dev.c alarm.time.tm_mday = tm.tm_mday; alarm 299 drivers/rtc/dev.c alarm.time.tm_mon = tm.tm_mon; alarm 300 drivers/rtc/dev.c alarm.time.tm_year = tm.tm_year; alarm 301 drivers/rtc/dev.c err = rtc_valid_tm(&alarm.time); alarm 304 drivers/rtc/dev.c then = rtc_tm_to_time64(&alarm.time); alarm 309 drivers/rtc/dev.c alarm.time.tm_mday = tm.tm_mday; alarm 310 drivers/rtc/dev.c alarm.time.tm_mon = tm.tm_mon; alarm 311 drivers/rtc/dev.c alarm.time.tm_year = tm.tm_year; alarm 315 drivers/rtc/dev.c return rtc_set_alarm(rtc, &alarm); alarm 370 drivers/rtc/dev.c if (copy_from_user(&alarm, uarg, sizeof(alarm))) alarm 373 drivers/rtc/dev.c return rtc_set_alarm(rtc, &alarm); alarm 377 drivers/rtc/dev.c err = rtc_read_alarm(rtc, &alarm); alarm 381 drivers/rtc/dev.c if (copy_to_user(uarg, &alarm, sizeof(alarm))) alarm 179 drivers/rtc/interface.c struct rtc_wkalrm *alarm) alarm 192 drivers/rtc/interface.c alarm->enabled = 0; alarm 193 drivers/rtc/interface.c alarm->pending = 0; alarm 194 drivers/rtc/interface.c alarm->time.tm_sec = -1; alarm 195 drivers/rtc/interface.c alarm->time.tm_min = -1; alarm 196 drivers/rtc/interface.c alarm->time.tm_hour = -1; alarm 197 drivers/rtc/interface.c alarm->time.tm_mday = -1; alarm 198 drivers/rtc/interface.c alarm->time.tm_mon = -1; alarm 199 drivers/rtc/interface.c alarm->time.tm_year = -1; alarm 200 drivers/rtc/interface.c alarm->time.tm_wday = -1; alarm 201 drivers/rtc/interface.c alarm->time.tm_yday = -1; alarm 202 drivers/rtc/interface.c alarm->time.tm_isdst = -1; alarm 203 drivers/rtc/interface.c err = rtc->ops->read_alarm(rtc->dev.parent, alarm); alarm 208 drivers/rtc/interface.c trace_rtc_read_alarm(rtc_tm_to_time64(&alarm->time), err); alarm 212 drivers/rtc/interface.c int __rtc_read_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm) alarm 272 drivers/rtc/interface.c err = rtc_read_alarm_internal(rtc, alarm); alarm 277 drivers/rtc/interface.c if (rtc_valid_tm(&alarm->time) == 0) { alarm 278 drivers/rtc/interface.c rtc_add_offset(rtc, &alarm->time); alarm 296 drivers/rtc/interface.c if (alarm->time.tm_sec == -1) alarm 297 drivers/rtc/interface.c alarm->time.tm_sec = now.tm_sec; alarm 298 drivers/rtc/interface.c if (alarm->time.tm_min == -1) alarm 299 drivers/rtc/interface.c alarm->time.tm_min = now.tm_min; alarm 300 drivers/rtc/interface.c if (alarm->time.tm_hour == -1) alarm 301 drivers/rtc/interface.c alarm->time.tm_hour = now.tm_hour; alarm 304 drivers/rtc/interface.c if (alarm->time.tm_mday < 1 || alarm->time.tm_mday > 31) { alarm 305 drivers/rtc/interface.c alarm->time.tm_mday = now.tm_mday; alarm 308 drivers/rtc/interface.c if ((unsigned int)alarm->time.tm_mon >= 12) { alarm 309 drivers/rtc/interface.c alarm->time.tm_mon = now.tm_mon; alarm 313 drivers/rtc/interface.c if (alarm->time.tm_year == -1) { alarm 314 drivers/rtc/interface.c alarm->time.tm_year = now.tm_year; alarm 322 drivers/rtc/interface.c err = rtc_valid_tm(&alarm->time); alarm 328 drivers/rtc/interface.c t_alm = rtc_tm_to_time64(&alarm->time); alarm 341 drivers/rtc/interface.c rtc_time64_to_tm(t_alm, &alarm->time); alarm 352 drivers/rtc/interface.c if (alarm->time.tm_mon < 11) { alarm 353 drivers/rtc/interface.c alarm->time.tm_mon++; alarm 355 drivers/rtc/interface.c alarm->time.tm_mon = 0; alarm 356 drivers/rtc/interface.c alarm->time.tm_year++; alarm 358 drivers/rtc/interface.c days = rtc_month_days(alarm->time.tm_mon, alarm 359 drivers/rtc/interface.c alarm->time.tm_year); alarm 360 drivers/rtc/interface.c } while (days < alarm->time.tm_mday); alarm 367 drivers/rtc/interface.c alarm->time.tm_year++; alarm 368 drivers/rtc/interface.c } while (!is_leap_year(alarm->time.tm_year + 1900) && alarm 369 drivers/rtc/interface.c rtc_valid_tm(&alarm->time) != 0); alarm 376 drivers/rtc/interface.c err = rtc_valid_tm(&alarm->time); alarm 381 drivers/rtc/interface.c &alarm->time); alarm 386 drivers/rtc/interface.c int rtc_read_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm) alarm 398 drivers/rtc/interface.c memset(alarm, 0, sizeof(struct rtc_wkalrm)); alarm 399 drivers/rtc/interface.c alarm->enabled = rtc->aie_timer.enabled; alarm 400 drivers/rtc/interface.c alarm->time = rtc_ktime_to_tm(rtc->aie_timer.node.expires); alarm 404 drivers/rtc/interface.c trace_rtc_read_alarm(rtc_tm_to_time64(&alarm->time), err); alarm 409 drivers/rtc/interface.c static int __rtc_set_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm) alarm 415 drivers/rtc/interface.c err = rtc_valid_tm(&alarm->time); alarm 419 drivers/rtc/interface.c scheduled = rtc_tm_to_time64(&alarm->time); alarm 435 drivers/rtc/interface.c rtc_subtract_offset(rtc, &alarm->time); alarm 442 drivers/rtc/interface.c err = rtc->ops->set_alarm(rtc->dev.parent, alarm); alarm 444 drivers/rtc/interface.c trace_rtc_set_alarm(rtc_tm_to_time64(&alarm->time), err); alarm 448 drivers/rtc/interface.c int rtc_set_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm) alarm 457 drivers/rtc/interface.c err = rtc_valid_tm(&alarm->time); alarm 461 drivers/rtc/interface.c err = rtc_valid_range(rtc, &alarm->time); alarm 471 drivers/rtc/interface.c rtc->aie_timer.node.expires = rtc_tm_to_ktime(alarm->time); alarm 473 drivers/rtc/interface.c if (alarm->enabled) alarm 483 drivers/rtc/interface.c int rtc_initialize_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm) alarm 488 drivers/rtc/interface.c err = rtc_valid_tm(&alarm->time); alarm 500 drivers/rtc/interface.c rtc->aie_timer.node.expires = rtc_tm_to_ktime(alarm->time); alarm 504 drivers/rtc/interface.c if (alarm->enabled && (rtc_tm_to_ktime(now) < alarm 811 drivers/rtc/interface.c struct rtc_wkalrm alarm; alarm 814 drivers/rtc/interface.c alarm.time = rtc_ktime_to_tm(timer->node.expires); alarm 815 drivers/rtc/interface.c alarm.enabled = 1; alarm 816 drivers/rtc/interface.c err = __rtc_set_alarm(rtc, &alarm); alarm 859 drivers/rtc/interface.c struct rtc_wkalrm alarm; alarm 867 drivers/rtc/interface.c alarm.time = rtc_ktime_to_tm(next->expires); alarm 868 drivers/rtc/interface.c alarm.enabled = 1; alarm 869 drivers/rtc/interface.c err = __rtc_set_alarm(rtc, &alarm); alarm 926 drivers/rtc/interface.c struct rtc_wkalrm alarm; alarm 930 drivers/rtc/interface.c alarm.time = rtc_ktime_to_tm(next->expires); alarm 931 drivers/rtc/interface.c alarm.enabled = 1; alarm 933 drivers/rtc/interface.c err = __rtc_set_alarm(rtc, &alarm); alarm 298 drivers/rtc/rtc-ab-b5ze-s3.c struct rtc_wkalrm *alarm) alarm 301 drivers/rtc/rtc-ab-b5ze-s3.c struct rtc_time rtc_tm, *alarm_tm = &alarm->time; alarm 344 drivers/rtc/rtc-ab-b5ze-s3.c alarm->enabled = !!(reg & ABB5ZES3_REG_CTRL2_WTAIE); alarm 351 drivers/rtc/rtc-ab-b5ze-s3.c struct rtc_wkalrm *alarm) alarm 354 drivers/rtc/rtc-ab-b5ze-s3.c struct rtc_time rtc_tm, *alarm_tm = &alarm->time; alarm 405 drivers/rtc/rtc-ab-b5ze-s3.c alarm->enabled = !!(reg & ABB5ZES3_REG_CTRL1_AIE); alarm 419 drivers/rtc/rtc-ab-b5ze-s3.c static int abb5zes3_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 425 drivers/rtc/rtc-ab-b5ze-s3.c ret = _abb5zes3_rtc_read_timer(dev, alarm); alarm 427 drivers/rtc/rtc-ab-b5ze-s3.c ret = _abb5zes3_rtc_read_alarm(dev, alarm); alarm 437 drivers/rtc/rtc-ab-b5ze-s3.c static int _abb5zes3_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 440 drivers/rtc/rtc-ab-b5ze-s3.c struct rtc_time *alarm_tm = &alarm->time; alarm 445 drivers/rtc/rtc-ab-b5ze-s3.c if (!alarm->enabled) { alarm 505 drivers/rtc/rtc-ab-b5ze-s3.c static int _abb5zes3_rtc_set_timer(struct device *dev, struct rtc_wkalrm *alarm, alarm 532 drivers/rtc/rtc-ab-b5ze-s3.c return _abb5zes3_rtc_update_timer(dev, alarm->enabled); alarm 541 drivers/rtc/rtc-ab-b5ze-s3.c static int abb5zes3_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 544 drivers/rtc/rtc-ab-b5ze-s3.c struct rtc_time *alarm_tm = &alarm->time; alarm 577 drivers/rtc/rtc-ab-b5ze-s3.c ret = _abb5zes3_rtc_set_timer(dev, alarm, alarm 580 drivers/rtc/rtc-ab-b5ze-s3.c ret = _abb5zes3_rtc_set_alarm(dev, alarm); alarm 112 drivers/rtc/rtc-ab3100.c static int ab3100_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 126 drivers/rtc/rtc-ab3100.c alarm->enabled = 1; alarm 128 drivers/rtc/rtc-ab3100.c alarm->enabled = 0; alarm 130 drivers/rtc/rtc-ab3100.c alarm->pending = 0; alarm 140 drivers/rtc/rtc-ab3100.c rtc_time64_to_tm(time, &alarm->time); alarm 142 drivers/rtc/rtc-ab3100.c return rtc_valid_tm(&alarm->time); alarm 145 drivers/rtc/rtc-ab3100.c static int ab3100_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 154 drivers/rtc/rtc-ab3100.c secs = rtc_tm_to_time64(&alarm->time); alarm 171 drivers/rtc/rtc-ab3100.c alarm->enabled << 2); alarm 140 drivers/rtc/rtc-ab8500.c static int ab8500_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 154 drivers/rtc/rtc-ab8500.c alarm->enabled = 1; alarm 156 drivers/rtc/rtc-ab8500.c alarm->enabled = 0; alarm 158 drivers/rtc/rtc-ab8500.c alarm->pending = 0; alarm 171 drivers/rtc/rtc-ab8500.c rtc_time_to_tm(secs, &alarm->time); alarm 183 drivers/rtc/rtc-ab8500.c static int ab8500_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 191 drivers/rtc/rtc-ab8500.c rtc_tm_to_time(&alarm->time, &secs); alarm 219 drivers/rtc/rtc-ab8500.c return ab8500_rtc_irq_enable(dev, alarm->enabled); alarm 301 drivers/rtc/rtc-abx80x.c u8 alarm[6]; alarm 307 drivers/rtc/rtc-abx80x.c alarm[0] = 0x0; alarm 308 drivers/rtc/rtc-abx80x.c alarm[1] = bin2bcd(t->time.tm_sec); alarm 309 drivers/rtc/rtc-abx80x.c alarm[2] = bin2bcd(t->time.tm_min); alarm 310 drivers/rtc/rtc-abx80x.c alarm[3] = bin2bcd(t->time.tm_hour); alarm 311 drivers/rtc/rtc-abx80x.c alarm[4] = bin2bcd(t->time.tm_mday); alarm 312 drivers/rtc/rtc-abx80x.c alarm[5] = bin2bcd(t->time.tm_mon + 1); alarm 315 drivers/rtc/rtc-abx80x.c sizeof(alarm), alarm); alarm 95 drivers/rtc/rtc-ac100.c unsigned long alarm; alarm 83 drivers/rtc/rtc-armada38x.c #define ALARM_REG(base, alarm) ((base) + (alarm) * sizeof(u32)) alarm 91 drivers/rtc/rtc-armada38x.c u32 alarm; alarm 265 drivers/rtc/rtc-armada38x.c u32 reg = ALARM_REG(RTC_ALARM1, rtc->data->alarm); alarm 266 drivers/rtc/rtc-armada38x.c u32 reg_irq = ALARM_REG(RTC_IRQ1_CONF, rtc->data->alarm); alarm 285 drivers/rtc/rtc-armada38x.c u32 reg = ALARM_REG(RTC_ALARM1, rtc->data->alarm); alarm 286 drivers/rtc/rtc-armada38x.c u32 reg_irq = ALARM_REG(RTC_IRQ1_CONF, rtc->data->alarm); alarm 309 drivers/rtc/rtc-armada38x.c u32 reg_irq = ALARM_REG(RTC_IRQ1_CONF, rtc->data->alarm); alarm 329 drivers/rtc/rtc-armada38x.c u32 reg_irq = ALARM_REG(RTC_IRQ1_CONF, rtc->data->alarm); alarm 340 drivers/rtc/rtc-armada38x.c rtc_delayed_write(1 << rtc->data->alarm, rtc, RTC_STATUS); alarm 474 drivers/rtc/rtc-armada38x.c .alarm = ALARM1, alarm 482 drivers/rtc/rtc-armada38x.c .alarm = ALARM2, alarm 133 drivers/rtc/rtc-at91sam9.c u32 offset, alarm, mr; alarm 153 drivers/rtc/rtc-at91sam9.c alarm = rtt_readl(rtc, AR); alarm 154 drivers/rtc/rtc-at91sam9.c if (alarm != ALARM_DISABLED) { alarm 157 drivers/rtc/rtc-at91sam9.c alarm += (offset - secs); alarm 158 drivers/rtc/rtc-at91sam9.c } else if ((alarm + offset) > secs) { alarm 160 drivers/rtc/rtc-at91sam9.c alarm -= (secs - offset); alarm 163 drivers/rtc/rtc-at91sam9.c alarm = ALARM_DISABLED; alarm 166 drivers/rtc/rtc-at91sam9.c rtt_writel(rtc, AR, alarm); alarm 179 drivers/rtc/rtc-at91sam9.c u32 alarm = rtt_readl(rtc, AR); alarm 187 drivers/rtc/rtc-at91sam9.c if (alarm != ALARM_DISABLED && offset != 0) { alarm 188 drivers/rtc/rtc-at91sam9.c rtc_time64_to_tm(offset + alarm, tm); alarm 146 drivers/rtc/rtc-brcmstb-waketimer.c struct rtc_wkalrm *alarm) alarm 155 drivers/rtc/rtc-brcmstb-waketimer.c alarm->enabled = 1; alarm 156 drivers/rtc/rtc-brcmstb-waketimer.c rtc_time64_to_tm(sec, &alarm->time); alarm 160 drivers/rtc/rtc-brcmstb-waketimer.c alarm->pending = !!(reg & 1); alarm 166 drivers/rtc/rtc-brcmstb-waketimer.c struct rtc_wkalrm *alarm) alarm 171 drivers/rtc/rtc-brcmstb-waketimer.c if (alarm->enabled) alarm 172 drivers/rtc/rtc-brcmstb-waketimer.c sec = rtc_tm_to_time64(&alarm->time); alarm 202 drivers/rtc/rtc-cadence.c static int cdns_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 208 drivers/rtc/rtc-cadence.c cdns_rtc_reg2time(reg, &alarm->time); alarm 211 drivers/rtc/rtc-cadence.c alarm->time.tm_mday = bcd2bin(FIELD_GET(CDNS_RTC_CAL_D, reg)); alarm 212 drivers/rtc/rtc-cadence.c alarm->time.tm_mon = bcd2bin(FIELD_GET(CDNS_RTC_CAL_M, reg)) - 1; alarm 217 drivers/rtc/rtc-cadence.c static int cdns_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 226 drivers/rtc/rtc-cadence.c timar = cdns_rtc_time2reg(&alarm->time); alarm 227 drivers/rtc/rtc-cadence.c calar = FIELD_PREP(CDNS_RTC_CAL_D, bin2bcd(alarm->time.tm_mday)) alarm 228 drivers/rtc/rtc-cadence.c | FIELD_PREP(CDNS_RTC_CAL_M, bin2bcd(alarm->time.tm_mon + 1)); alarm 243 drivers/rtc/rtc-cadence.c cdns_rtc_alarm_irq_enable(dev, alarm->enabled); alarm 964 drivers/rtc/rtc-cmos.c struct rtc_wkalrm alarm; alarm 967 drivers/rtc/rtc-cmos.c rtc_time64_to_tm(t_now - 1, &alarm.time); alarm 968 drivers/rtc/rtc-cmos.c alarm.enabled = 0; alarm 969 drivers/rtc/rtc-cmos.c retval = cmos_set_alarm(dev, &alarm); alarm 104 drivers/rtc/rtc-coh901331.c static int coh901331_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 109 drivers/rtc/rtc-coh901331.c rtc_time64_to_tm(readl(rtap->virtbase + COH901331_ALARM), &alarm->time); alarm 110 drivers/rtc/rtc-coh901331.c alarm->pending = readl(rtap->virtbase + COH901331_IRQ_EVENT) & 1U; alarm 111 drivers/rtc/rtc-coh901331.c alarm->enabled = readl(rtap->virtbase + COH901331_IRQ_MASK) & 1U; alarm 117 drivers/rtc/rtc-coh901331.c static int coh901331_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 120 drivers/rtc/rtc-coh901331.c unsigned long time = rtc_tm_to_time64(&alarm->time); alarm 124 drivers/rtc/rtc-coh901331.c writel(alarm->enabled, rtap->virtbase + COH901331_IRQ_MASK); alarm 112 drivers/rtc/rtc-digicolor.c static int dc_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 121 drivers/rtc/rtc-digicolor.c rtc_time64_to_tm(reference + alarm_reg, &alarm->time); alarm 127 drivers/rtc/rtc-digicolor.c alarm->pending = alarm_reg + reference > now; alarm 128 drivers/rtc/rtc-digicolor.c alarm->enabled = readl_relaxed(rtc->regs + DC_RTC_INTENABLE); alarm 133 drivers/rtc/rtc-digicolor.c static int dc_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 139 drivers/rtc/rtc-digicolor.c alarm_time = rtc_tm_to_time64(&alarm->time); alarm 144 drivers/rtc/rtc-digicolor.c writeb_relaxed(!!alarm->enabled, rtc->regs + DC_RTC_INTENABLE); alarm 170 drivers/rtc/rtc-ds1307.c unsigned alarm:1; alarm 884 drivers/rtc/rtc-ds1307.c .alarm = 1, alarm 893 drivers/rtc/rtc-ds1307.c .alarm = 1, alarm 916 drivers/rtc/rtc-ds1307.c .alarm = 1, alarm 922 drivers/rtc/rtc-ds1307.c .alarm = 1, alarm 943 drivers/rtc/rtc-ds1307.c .alarm = 1, alarm 1622 drivers/rtc/rtc-ds1307.c want_irq = client->irq > 0 && chip->alarm; alarm 1647 drivers/rtc/rtc-ds1307.c if (chip->alarm && of_property_read_bool(client->dev.of_node, alarm 348 drivers/rtc/rtc-ds1343.c static int ds1343_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 363 drivers/rtc/rtc-ds1343.c alarm->enabled = !!(priv->irqen & RTC_AF); alarm 364 drivers/rtc/rtc-ds1343.c alarm->pending = !!(stat & DS1343_IRQF0); alarm 366 drivers/rtc/rtc-ds1343.c alarm->time.tm_sec = priv->alarm_sec < 0 ? 0 : priv->alarm_sec; alarm 367 drivers/rtc/rtc-ds1343.c alarm->time.tm_min = priv->alarm_min < 0 ? 0 : priv->alarm_min; alarm 368 drivers/rtc/rtc-ds1343.c alarm->time.tm_hour = priv->alarm_hour < 0 ? 0 : priv->alarm_hour; alarm 369 drivers/rtc/rtc-ds1343.c alarm->time.tm_mday = priv->alarm_mday < 0 ? 0 : priv->alarm_mday; alarm 376 drivers/rtc/rtc-ds1343.c static int ds1343_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 386 drivers/rtc/rtc-ds1343.c priv->alarm_sec = alarm->time.tm_sec; alarm 387 drivers/rtc/rtc-ds1343.c priv->alarm_min = alarm->time.tm_min; alarm 388 drivers/rtc/rtc-ds1343.c priv->alarm_hour = alarm->time.tm_hour; alarm 389 drivers/rtc/rtc-ds1343.c priv->alarm_mday = alarm->time.tm_mday; alarm 391 drivers/rtc/rtc-ds1343.c if (alarm->enabled) alarm 186 drivers/rtc/rtc-ds1374.c static int ds1374_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 215 drivers/rtc/rtc-ds1374.c rtc_time_to_tm(now + cur_alarm, &alarm->time); alarm 216 drivers/rtc/rtc-ds1374.c alarm->enabled = !!(cr & DS1374_REG_CR_WACE); alarm 217 drivers/rtc/rtc-ds1374.c alarm->pending = !!(sr & DS1374_REG_SR_AF); alarm 224 drivers/rtc/rtc-ds1374.c static int ds1374_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 240 drivers/rtc/rtc-ds1374.c rtc_tm_to_time(&alarm->time, &new_alarm); alarm 272 drivers/rtc/rtc-ds1374.c if (alarm->enabled) { alarm 181 drivers/rtc/rtc-ds3232.c static int ds3232_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 198 drivers/rtc/rtc-ds3232.c alarm->time.tm_sec = bcd2bin(buf[0] & 0x7F); alarm 199 drivers/rtc/rtc-ds3232.c alarm->time.tm_min = bcd2bin(buf[1] & 0x7F); alarm 200 drivers/rtc/rtc-ds3232.c alarm->time.tm_hour = bcd2bin(buf[2] & 0x7F); alarm 201 drivers/rtc/rtc-ds3232.c alarm->time.tm_mday = bcd2bin(buf[3] & 0x7F); alarm 203 drivers/rtc/rtc-ds3232.c alarm->enabled = !!(control & DS3232_REG_CR_A1IE); alarm 204 drivers/rtc/rtc-ds3232.c alarm->pending = !!(stat & DS3232_REG_SR_A1F); alarm 215 drivers/rtc/rtc-ds3232.c static int ds3232_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 225 drivers/rtc/rtc-ds3232.c buf[0] = bin2bcd(alarm->time.tm_sec); alarm 226 drivers/rtc/rtc-ds3232.c buf[1] = bin2bcd(alarm->time.tm_min); alarm 227 drivers/rtc/rtc-ds3232.c buf[2] = bin2bcd(alarm->time.tm_hour); alarm 228 drivers/rtc/rtc-ds3232.c buf[3] = bin2bcd(alarm->time.tm_mday); alarm 252 drivers/rtc/rtc-ds3232.c if (alarm->enabled) { alarm 605 drivers/rtc/rtc-imxdi.c static int dryice_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 611 drivers/rtc/rtc-imxdi.c rtc_time64_to_tm(dcamr, &alarm->time); alarm 614 drivers/rtc/rtc-imxdi.c alarm->enabled = (readl(imxdi->ioaddr + DIER) & DIER_CAIE) != 0; alarm 620 drivers/rtc/rtc-imxdi.c alarm->pending = (readl(imxdi->ioaddr + DSR) & DSR_CAF) != 0; alarm 630 drivers/rtc/rtc-imxdi.c static int dryice_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 636 drivers/rtc/rtc-imxdi.c rc = di_write_wait(imxdi, rtc_tm_to_time64(&alarm->time), DCAMR); alarm 640 drivers/rtc/rtc-imxdi.c if (alarm->enabled) alarm 347 drivers/rtc/rtc-isl1208.c isl1208_i2c_read_alarm(struct i2c_client *client, struct rtc_wkalrm *alarm) alarm 349 drivers/rtc/rtc-isl1208.c struct rtc_time *const tm = &alarm->time; alarm 388 drivers/rtc/rtc-isl1208.c alarm->enabled = !!(icr & ISL1208_REG_INT_ALME); alarm 394 drivers/rtc/rtc-isl1208.c isl1208_i2c_set_alarm(struct i2c_client *client, struct rtc_wkalrm *alarm) alarm 396 drivers/rtc/rtc-isl1208.c struct rtc_time *alarm_tm = &alarm->time; alarm 407 drivers/rtc/rtc-isl1208.c if (!alarm->enabled || rtc_tm_sub(alarm_tm, &rtc_tm) <= 0) alarm 513 drivers/rtc/rtc-isl1208.c isl1208_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 515 drivers/rtc/rtc-isl1208.c return isl1208_i2c_read_alarm(to_i2c_client(dev), alarm); alarm 519 drivers/rtc/rtc-isl1208.c isl1208_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 521 drivers/rtc/rtc-isl1208.c return isl1208_i2c_set_alarm(to_i2c_client(dev), alarm); alarm 58 drivers/rtc/rtc-lp8788.c enum lp8788_alarm_sel alarm; alarm 163 drivers/rtc/rtc-lp8788.c static int lp8788_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 167 drivers/rtc/rtc-lp8788.c struct rtc_time *tm = &alarm->time; alarm 171 drivers/rtc/rtc-lp8788.c addr = addr_alarm_sec[rtc->alarm]; alarm 183 drivers/rtc/rtc-lp8788.c alarm->enabled = data[LPTIME_WDAY] & LP8788_ALM_EN_M; alarm 188 drivers/rtc/rtc-lp8788.c static int lp8788_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 192 drivers/rtc/rtc-lp8788.c struct rtc_time *tm = &alarm->time; alarm 211 drivers/rtc/rtc-lp8788.c addr = addr_alarm_sec[rtc->alarm] + i; alarm 217 drivers/rtc/rtc-lp8788.c alarm->enabled = 1; alarm 218 drivers/rtc/rtc-lp8788.c addr = addr_alarm_en[rtc->alarm]; alarm 221 drivers/rtc/rtc-lp8788.c alarm->enabled << LP8788_ALM_EN_S); alarm 233 drivers/rtc/rtc-lp8788.c mask = mask_alarm_en[rtc->alarm]; alarm 234 drivers/rtc/rtc-lp8788.c shift = shift_alarm_en[rtc->alarm]; alarm 270 drivers/rtc/rtc-lp8788.c if (rtc->alarm == LP8788_ALARM_1) alarm 293 drivers/rtc/rtc-lp8788.c rtc->alarm = lp->pdata ? lp->pdata->alarm_sel : DEFAULT_ALARM_SEL; alarm 155 drivers/rtc/rtc-mc13xxx.c static int mc13xxx_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 186 drivers/rtc/rtc-mc13xxx.c alarm->enabled = enabled; alarm 187 drivers/rtc/rtc-mc13xxx.c alarm->pending = pending; alarm 191 drivers/rtc/rtc-mc13xxx.c rtc_time64_to_tm(s1970, &alarm->time); alarm 197 drivers/rtc/rtc-mc13xxx.c static int mc13xxx_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 215 drivers/rtc/rtc-mc13xxx.c s1970 = rtc_tm_to_time64(&alarm->time); alarm 217 drivers/rtc/rtc-mc13xxx.c dev_dbg(dev, "%s: %s %lld\n", __func__, alarm->enabled ? "on" : "off", alarm 220 drivers/rtc/rtc-mc13xxx.c ret = mc13xxx_rtc_irq_enable_unlocked(dev, alarm->enabled, alarm 38 drivers/rtc/rtc-meson-vrtc.c static int meson_vrtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 42 drivers/rtc/rtc-meson-vrtc.c dev_dbg(dev, "%s: alarm->enabled=%d\n", __func__, alarm->enabled); alarm 43 drivers/rtc/rtc-meson-vrtc.c if (alarm->enabled) alarm 44 drivers/rtc/rtc-meson-vrtc.c vrtc->alarm_time = rtc_tm_to_time64(&alarm->time); alarm 198 drivers/rtc/rtc-mpc5121.c static int mpc5121_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 203 drivers/rtc/rtc-mpc5121.c *alarm = rtc->wkalarm; alarm 205 drivers/rtc/rtc-mpc5121.c alarm->pending = in_8(®s->alm_status); alarm 210 drivers/rtc/rtc-mpc5121.c static int mpc5121_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 218 drivers/rtc/rtc-mpc5121.c if (alarm->time.tm_sec) { alarm 219 drivers/rtc/rtc-mpc5121.c alarm->time.tm_sec = 0; alarm 220 drivers/rtc/rtc-mpc5121.c alarm->time.tm_min++; alarm 221 drivers/rtc/rtc-mpc5121.c if (alarm->time.tm_min >= 60) { alarm 222 drivers/rtc/rtc-mpc5121.c alarm->time.tm_min = 0; alarm 223 drivers/rtc/rtc-mpc5121.c alarm->time.tm_hour++; alarm 224 drivers/rtc/rtc-mpc5121.c if (alarm->time.tm_hour >= 24) alarm 225 drivers/rtc/rtc-mpc5121.c alarm->time.tm_hour = 0; alarm 229 drivers/rtc/rtc-mpc5121.c alarm->time.tm_mday = -1; alarm 230 drivers/rtc/rtc-mpc5121.c alarm->time.tm_mon = -1; alarm 231 drivers/rtc/rtc-mpc5121.c alarm->time.tm_year = -1; alarm 233 drivers/rtc/rtc-mpc5121.c out_8(®s->alm_min_set, alarm->time.tm_min); alarm 234 drivers/rtc/rtc-mpc5121.c out_8(®s->alm_hour_set, alarm->time.tm_hour); alarm 236 drivers/rtc/rtc-mpc5121.c out_8(®s->alm_enable, alarm->enabled); alarm 238 drivers/rtc/rtc-mpc5121.c rtc->wkalarm = *alarm; alarm 114 drivers/rtc/rtc-opal.c static int opal_get_tpo_time(struct device *dev, struct rtc_wkalrm *alarm) alarm 160 drivers/rtc/rtc-opal.c opal_to_tm(y_m_d, h_m_s_ms, &alarm->time); alarm 168 drivers/rtc/rtc-opal.c static int opal_set_tpo_time(struct device *dev, struct rtc_wkalrm *alarm) alarm 176 drivers/rtc/rtc-opal.c if (alarm->enabled) { alarm 177 drivers/rtc/rtc-opal.c tm_to_opal(&alarm->time, &y_m_d, &h_m_s_ms); alarm 217 drivers/rtc/rtc-opal.c struct rtc_wkalrm alarm = { .enabled = 0 }; alarm 224 drivers/rtc/rtc-opal.c return enabled ? 0 : opal_set_tpo_time(dev, &alarm); alarm 192 drivers/rtc/rtc-pl031.c static int pl031_stv2_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 198 drivers/rtc/rtc-pl031.c readl(ldata->base + RTC_YMR), &alarm->time); alarm 200 drivers/rtc/rtc-pl031.c alarm->pending = readl(ldata->base + RTC_RIS) & RTC_BIT_AI; alarm 201 drivers/rtc/rtc-pl031.c alarm->enabled = readl(ldata->base + RTC_IMSC) & RTC_BIT_AI; alarm 206 drivers/rtc/rtc-pl031.c static int pl031_stv2_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 214 drivers/rtc/rtc-pl031.c ret = rtc_valid_tm(&alarm->time); alarm 216 drivers/rtc/rtc-pl031.c ret = pl031_stv2_tm_to_time(dev, &alarm->time, alarm 222 drivers/rtc/rtc-pl031.c pl031_alarm_irq_enable(dev, alarm->enabled); alarm 270 drivers/rtc/rtc-pl031.c static int pl031_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 274 drivers/rtc/rtc-pl031.c rtc_time_to_tm(readl(ldata->base + RTC_MR), &alarm->time); alarm 276 drivers/rtc/rtc-pl031.c alarm->pending = readl(ldata->base + RTC_RIS) & RTC_BIT_AI; alarm 277 drivers/rtc/rtc-pl031.c alarm->enabled = readl(ldata->base + RTC_IMSC) & RTC_BIT_AI; alarm 282 drivers/rtc/rtc-pl031.c static int pl031_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 289 drivers/rtc/rtc-pl031.c ret = rtc_valid_tm(&alarm->time); alarm 291 drivers/rtc/rtc-pl031.c ret = rtc_tm_to_time(&alarm->time, &time); alarm 294 drivers/rtc/rtc-pl031.c pl031_alarm_irq_enable(dev, alarm->enabled); alarm 218 drivers/rtc/rtc-pm8xxx.c static int pm8xxx_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 227 drivers/rtc/rtc-pm8xxx.c rtc_tm_to_time(&alarm->time, &secs); alarm 247 drivers/rtc/rtc-pm8xxx.c if (alarm->enabled) alarm 259 drivers/rtc/rtc-pm8xxx.c &alarm->time, &alarm->time); alarm 265 drivers/rtc/rtc-pm8xxx.c static int pm8xxx_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 283 drivers/rtc/rtc-pm8xxx.c rtc_time_to_tm(secs, &alarm->time); alarm 285 drivers/rtc/rtc-pm8xxx.c rc = rtc_valid_tm(&alarm->time); alarm 292 drivers/rtc/rtc-pm8xxx.c &alarm->time, &alarm->time); alarm 137 drivers/rtc/rtc-r7301.c bool alarm) alarm 150 drivers/rtc/rtc-r7301.c if (alarm) { alarm 171 drivers/rtc/rtc-r7301.c bool alarm) alarm 188 drivers/rtc/rtc-r7301.c rtc7301_write(priv, alarm ? RTC7301_AE : tm->tm_wday, alarm 191 drivers/rtc/rtc-r7301.c if (alarm) alarm 250 drivers/rtc/rtc-r7301.c static int rtc7301_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 262 drivers/rtc/rtc-r7301.c rtc7301_get_time(priv, &alarm->time, true); alarm 266 drivers/rtc/rtc-r7301.c alarm->enabled = !!(alrm_ctrl & RTC7301_ALARM_CONTROL_AIE); alarm 267 drivers/rtc/rtc-r7301.c alarm->pending = !!(alrm_ctrl & RTC7301_ALARM_CONTROL_AF); alarm 274 drivers/rtc/rtc-r7301.c static int rtc7301_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 285 drivers/rtc/rtc-r7301.c rtc7301_write_time(priv, &alarm->time, true); alarm 286 drivers/rtc/rtc-r7301.c rtc7301_alarm_irq(priv, alarm->enabled); alarm 412 drivers/rtc/rtc-rv3029c2.c static int rv3029_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 414 drivers/rtc/rtc-rv3029c2.c struct rtc_time *const tm = &alarm->time; alarm 451 drivers/rtc/rtc-rv3029c2.c alarm->enabled = !!(controls & RV3029_IRQ_CTRL_AIE); alarm 452 drivers/rtc/rtc-rv3029c2.c alarm->pending = (flags & RV3029_IRQ_FLAGS_AF) && alarm->enabled; alarm 483 drivers/rtc/rtc-rv3029c2.c static int rv3029_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 485 drivers/rtc/rtc-rv3029c2.c struct rtc_time *const tm = &alarm->time; alarm 523 drivers/rtc/rtc-rv3029c2.c if (alarm->enabled) { alarm 238 drivers/rtc/rtc-s5m.c struct rtc_wkalrm *alarm) alarm 263 drivers/rtc/rtc-s5m.c alarm->pending = 1; alarm 265 drivers/rtc/rtc-s5m.c alarm->pending = 0; alarm 43 drivers/rtc/rtc-st-lpc.c struct rtc_wkalrm alarm; alarm 131 drivers/rtc/rtc-st-lpc.c memcpy(wkalrm, &rtc->alarm, sizeof(struct rtc_wkalrm)); alarm 165 drivers/rtc/rtc-st-lpc.c memcpy(&rtc->alarm, t, sizeof(struct rtc_wkalrm)); alarm 290 drivers/rtc/rtc-st-lpc.c memset(&rtc->alarm, 0, sizeof(struct rtc_wkalrm)); alarm 143 drivers/rtc/rtc-sun6i.c unsigned long alarm; alarm 503 drivers/rtc/rtc-sun6i.c rtc_time_to_tm(chip->alarm, &wkalrm->time); alarm 543 drivers/rtc/rtc-sun6i.c chip->alarm = time_set; alarm 148 drivers/rtc/rtc-tegra.c static int tegra_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 157 drivers/rtc/rtc-tegra.c alarm->enabled = 0; alarm 160 drivers/rtc/rtc-tegra.c alarm->enabled = 1; alarm 161 drivers/rtc/rtc-tegra.c rtc_time64_to_tm(sec, &alarm->time); alarm 165 drivers/rtc/rtc-tegra.c alarm->pending = (value & TEGRA_RTC_INTR_STATUS_SEC_ALARM0) != 0; alarm 193 drivers/rtc/rtc-tegra.c static int tegra_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) alarm 198 drivers/rtc/rtc-tegra.c if (alarm->enabled) alarm 199 drivers/rtc/rtc-tegra.c sec = rtc_tm_to_time64(&alarm->time); alarm 211 drivers/rtc/rtc-tegra.c dev_vdbg(dev, "alarm set as %u, %ptR\n", sec, &alarm->time); alarm 18 drivers/rtc/rtc-test.c struct timer_list alarm; alarm 27 drivers/rtc/rtc-test.c time64_t alarm; alarm 29 drivers/rtc/rtc-test.c alarm = (rtd->alarm.expires - jiffies) / HZ; alarm 30 drivers/rtc/rtc-test.c alarm += ktime_get_real_seconds() + rtd->offset; alarm 32 drivers/rtc/rtc-test.c rtc_time64_to_tm(alarm, &alrm->time); alarm 47 drivers/rtc/rtc-test.c del_timer(&rtd->alarm); alarm 54 drivers/rtc/rtc-test.c rtd->alarm.expires = expires; alarm 57 drivers/rtc/rtc-test.c add_timer(&rtd->alarm); alarm 88 drivers/rtc/rtc-test.c add_timer(&rtd->alarm); alarm 90 drivers/rtc/rtc-test.c del_timer(&rtd->alarm); alarm 111 drivers/rtc/rtc-test.c struct rtc_test_data *rtd = from_timer(rtd, t, alarm); alarm 139 drivers/rtc/rtc-test.c timer_setup(&rtd->alarm, test_rtc_alarm_handler, 0); alarm 140 drivers/rtc/rtc-test.c rtd->alarm.expires = 0; alarm 148 drivers/rtc/rtc-vt8500.c u32 isr, alarm; alarm 150 drivers/rtc/rtc-vt8500.c alarm = readl(vt8500_rtc->regbase + VT8500_RTC_AS); alarm 153 drivers/rtc/rtc-vt8500.c alrm->time.tm_mday = bcd2bin((alarm & ALARM_DAY_MASK) >> ALARM_DAY_S); alarm 154 drivers/rtc/rtc-vt8500.c alrm->time.tm_hour = bcd2bin((alarm & TIME_HOUR_MASK) >> TIME_HOUR_S); alarm 155 drivers/rtc/rtc-vt8500.c alrm->time.tm_min = bcd2bin((alarm & TIME_MIN_MASK) >> TIME_MIN_S); alarm 156 drivers/rtc/rtc-vt8500.c alrm->time.tm_sec = bcd2bin((alarm & TIME_SEC_MASK)); alarm 158 drivers/rtc/rtc-vt8500.c alrm->enabled = (alarm & ALARM_ENABLE_MASK) ? 1 : 0; alarm 127 drivers/rtc/sysfs.c time64_t alarm; alarm 140 drivers/rtc/sysfs.c alarm = rtc_tm_to_time64(&alm.time); alarm 141 drivers/rtc/sysfs.c retval = sprintf(buf, "%lld\n", alarm); alarm 152 drivers/rtc/sysfs.c time64_t now, alarm; alarm 177 drivers/rtc/sysfs.c retval = kstrtos64(buf_ptr, 0, &alarm); alarm 181 drivers/rtc/sysfs.c alarm += now; alarm 182 drivers/rtc/sysfs.c if (alarm > now || push) { alarm 193 drivers/rtc/sysfs.c alarm += push; alarm 205 drivers/rtc/sysfs.c alarm = now + 300; alarm 207 drivers/rtc/sysfs.c rtc_time64_to_tm(alarm, &alm.time); alarm 1016 drivers/scsi/megaraid/megaraid_sas.h u32 alarm:1; alarm 942 drivers/thermal/tegra/soctherm.c enum soctherm_throttle_id alarm, alarm 951 drivers/thermal/tegra/soctherm.c switch (alarm) { alarm 980 drivers/thermal/tegra/soctherm.c static int soctherm_handle_alarm(enum soctherm_throttle_id alarm) alarm 984 drivers/thermal/tegra/soctherm.c switch (alarm) { alarm 1011 drivers/thermal/tegra/soctherm.c throt_names[alarm]); alarm 33 fs/timerfd.c struct alarm alarm; alarm 81 fs/timerfd.c static enum alarmtimer_restart timerfd_alarmproc(struct alarm *alarm, alarm 84 fs/timerfd.c struct timerfd_ctx *ctx = container_of(alarm, struct timerfd_ctx, alarm 85 fs/timerfd.c t.alarm); alarm 165 fs/timerfd.c remaining = alarm_expires_remaining(&ctx->t.alarm); alarm 188 fs/timerfd.c alarm_init(&ctx->t.alarm, alarm 201 fs/timerfd.c alarm_start(&ctx->t.alarm, texp); alarm 203 fs/timerfd.c alarm_start_relative(&ctx->t.alarm, texp); alarm 223 fs/timerfd.c alarm_cancel(&ctx->t.alarm); alarm 284 fs/timerfd.c &ctx->t.alarm, ctx->tintv) - 1; alarm 285 fs/timerfd.c alarm_restart(&ctx->t.alarm); alarm 418 fs/timerfd.c alarm_init(&ctx->t.alarm, alarm 467 fs/timerfd.c if (alarm_try_to_cancel(&ctx->t.alarm) >= 0) alarm 476 fs/timerfd.c hrtimer_cancel_wait_running(&ctx->t.alarm.timer); alarm 489 fs/timerfd.c alarm_forward_now(&ctx->t.alarm, ctx->tintv); alarm 523 fs/timerfd.c &ctx->t.alarm, ctx->tintv) - 1; alarm 524 fs/timerfd.c alarm_restart(&ctx->t.alarm); alarm 45 include/linux/alarmtimer.h enum alarmtimer_restart (*function)(struct alarm *, ktime_t now); alarm 51 include/linux/alarmtimer.h void alarm_init(struct alarm *alarm, enum alarmtimer_type type, alarm 52 include/linux/alarmtimer.h enum alarmtimer_restart (*function)(struct alarm *, ktime_t)); alarm 53 include/linux/alarmtimer.h void alarm_start(struct alarm *alarm, ktime_t start); alarm 54 include/linux/alarmtimer.h void alarm_start_relative(struct alarm *alarm, ktime_t start); alarm 55 include/linux/alarmtimer.h void alarm_restart(struct alarm *alarm); alarm 56 include/linux/alarmtimer.h int alarm_try_to_cancel(struct alarm *alarm); alarm 57 include/linux/alarmtimer.h int alarm_cancel(struct alarm *alarm); alarm 59 include/linux/alarmtimer.h u64 alarm_forward(struct alarm *alarm, ktime_t now, ktime_t interval); alarm 60 include/linux/alarmtimer.h u64 alarm_forward_now(struct alarm *alarm, ktime_t interval); alarm 61 include/linux/alarmtimer.h ktime_t alarm_expires_remaining(const struct alarm *alarm); alarm 218 include/linux/posix-timers.h struct alarm alarmtimer; alarm 219 include/linux/posix-timers.h } alarm; alarm 179 include/linux/rtc.h int __rtc_read_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm); alarm 47 include/trace/events/alarmtimer.h TP_PROTO(struct alarm *alarm, ktime_t now), alarm 49 include/trace/events/alarmtimer.h TP_ARGS(alarm, now), alarm 52 include/trace/events/alarmtimer.h __field(void *, alarm) alarm 59 include/trace/events/alarmtimer.h __entry->alarm = alarm; alarm 60 include/trace/events/alarmtimer.h __entry->alarm_type = alarm->type; alarm 61 include/trace/events/alarmtimer.h __entry->expires = alarm->node.expires; alarm 66 include/trace/events/alarmtimer.h __entry->alarm, alarm 75 include/trace/events/alarmtimer.h TP_PROTO(struct alarm *alarm, ktime_t now), alarm 77 include/trace/events/alarmtimer.h TP_ARGS(alarm, now) alarm 82 include/trace/events/alarmtimer.h TP_PROTO(struct alarm *alarm, ktime_t now), alarm 84 include/trace/events/alarmtimer.h TP_ARGS(alarm, now) alarm 89 include/trace/events/alarmtimer.h TP_PROTO(struct alarm *alarm, ktime_t now), alarm 91 include/trace/events/alarmtimer.h TP_ARGS(alarm, now) alarm 169 kernel/time/alarmtimer.c static void alarmtimer_enqueue(struct alarm_base *base, struct alarm *alarm) alarm 171 kernel/time/alarmtimer.c if (alarm->state & ALARMTIMER_STATE_ENQUEUED) alarm 172 kernel/time/alarmtimer.c timerqueue_del(&base->timerqueue, &alarm->node); alarm 174 kernel/time/alarmtimer.c timerqueue_add(&base->timerqueue, &alarm->node); alarm 175 kernel/time/alarmtimer.c alarm->state |= ALARMTIMER_STATE_ENQUEUED; alarm 187 kernel/time/alarmtimer.c static void alarmtimer_dequeue(struct alarm_base *base, struct alarm *alarm) alarm 189 kernel/time/alarmtimer.c if (!(alarm->state & ALARMTIMER_STATE_ENQUEUED)) alarm 192 kernel/time/alarmtimer.c timerqueue_del(&base->timerqueue, &alarm->node); alarm 193 kernel/time/alarmtimer.c alarm->state &= ~ALARMTIMER_STATE_ENQUEUED; alarm 208 kernel/time/alarmtimer.c struct alarm *alarm = container_of(timer, struct alarm, timer); alarm 209 kernel/time/alarmtimer.c struct alarm_base *base = &alarm_bases[alarm->type]; alarm 215 kernel/time/alarmtimer.c alarmtimer_dequeue(base, alarm); alarm 218 kernel/time/alarmtimer.c if (alarm->function) alarm 219 kernel/time/alarmtimer.c restart = alarm->function(alarm, base->gettime()); alarm 223 kernel/time/alarmtimer.c hrtimer_set_expires(&alarm->timer, alarm->node.expires); alarm 224 kernel/time/alarmtimer.c alarmtimer_enqueue(base, alarm); alarm 229 kernel/time/alarmtimer.c trace_alarmtimer_fired(alarm, base->gettime()); alarm 234 kernel/time/alarmtimer.c ktime_t alarm_expires_remaining(const struct alarm *alarm) alarm 236 kernel/time/alarmtimer.c struct alarm_base *base = &alarm_bases[alarm->type]; alarm 237 kernel/time/alarmtimer.c return ktime_sub(alarm->node.expires, base->gettime()); alarm 335 kernel/time/alarmtimer.c __alarm_init(struct alarm *alarm, enum alarmtimer_type type, alarm 336 kernel/time/alarmtimer.c enum alarmtimer_restart (*function)(struct alarm *, ktime_t)) alarm 338 kernel/time/alarmtimer.c timerqueue_init(&alarm->node); alarm 339 kernel/time/alarmtimer.c alarm->timer.function = alarmtimer_fired; alarm 340 kernel/time/alarmtimer.c alarm->function = function; alarm 341 kernel/time/alarmtimer.c alarm->type = type; alarm 342 kernel/time/alarmtimer.c alarm->state = ALARMTIMER_STATE_INACTIVE; alarm 351 kernel/time/alarmtimer.c void alarm_init(struct alarm *alarm, enum alarmtimer_type type, alarm 352 kernel/time/alarmtimer.c enum alarmtimer_restart (*function)(struct alarm *, ktime_t)) alarm 354 kernel/time/alarmtimer.c hrtimer_init(&alarm->timer, alarm_bases[type].base_clockid, alarm 356 kernel/time/alarmtimer.c __alarm_init(alarm, type, function); alarm 365 kernel/time/alarmtimer.c void alarm_start(struct alarm *alarm, ktime_t start) alarm 367 kernel/time/alarmtimer.c struct alarm_base *base = &alarm_bases[alarm->type]; alarm 371 kernel/time/alarmtimer.c alarm->node.expires = start; alarm 372 kernel/time/alarmtimer.c alarmtimer_enqueue(base, alarm); alarm 373 kernel/time/alarmtimer.c hrtimer_start(&alarm->timer, alarm->node.expires, HRTIMER_MODE_ABS); alarm 376 kernel/time/alarmtimer.c trace_alarmtimer_start(alarm, base->gettime()); alarm 385 kernel/time/alarmtimer.c void alarm_start_relative(struct alarm *alarm, ktime_t start) alarm 387 kernel/time/alarmtimer.c struct alarm_base *base = &alarm_bases[alarm->type]; alarm 390 kernel/time/alarmtimer.c alarm_start(alarm, start); alarm 394 kernel/time/alarmtimer.c void alarm_restart(struct alarm *alarm) alarm 396 kernel/time/alarmtimer.c struct alarm_base *base = &alarm_bases[alarm->type]; alarm 400 kernel/time/alarmtimer.c hrtimer_set_expires(&alarm->timer, alarm->node.expires); alarm 401 kernel/time/alarmtimer.c hrtimer_restart(&alarm->timer); alarm 402 kernel/time/alarmtimer.c alarmtimer_enqueue(base, alarm); alarm 414 kernel/time/alarmtimer.c int alarm_try_to_cancel(struct alarm *alarm) alarm 416 kernel/time/alarmtimer.c struct alarm_base *base = &alarm_bases[alarm->type]; alarm 421 kernel/time/alarmtimer.c ret = hrtimer_try_to_cancel(&alarm->timer); alarm 423 kernel/time/alarmtimer.c alarmtimer_dequeue(base, alarm); alarm 426 kernel/time/alarmtimer.c trace_alarmtimer_cancel(alarm, base->gettime()); alarm 438 kernel/time/alarmtimer.c int alarm_cancel(struct alarm *alarm) alarm 441 kernel/time/alarmtimer.c int ret = alarm_try_to_cancel(alarm); alarm 444 kernel/time/alarmtimer.c hrtimer_cancel_wait_running(&alarm->timer); alarm 450 kernel/time/alarmtimer.c u64 alarm_forward(struct alarm *alarm, ktime_t now, ktime_t interval) alarm 455 kernel/time/alarmtimer.c delta = ktime_sub(now, alarm->node.expires); alarm 465 kernel/time/alarmtimer.c alarm->node.expires = ktime_add_ns(alarm->node.expires, alarm 468 kernel/time/alarmtimer.c if (alarm->node.expires > now) alarm 477 kernel/time/alarmtimer.c alarm->node.expires = ktime_add_safe(alarm->node.expires, interval); alarm 482 kernel/time/alarmtimer.c u64 alarm_forward_now(struct alarm *alarm, ktime_t interval) alarm 484 kernel/time/alarmtimer.c struct alarm_base *base = &alarm_bases[alarm->type]; alarm 486 kernel/time/alarmtimer.c return alarm_forward(alarm, base->gettime(), interval); alarm 542 kernel/time/alarmtimer.c static enum alarmtimer_restart alarm_handle_timer(struct alarm *alarm, alarm 545 kernel/time/alarmtimer.c struct k_itimer *ptr = container_of(alarm, struct k_itimer, alarm 546 kernel/time/alarmtimer.c it.alarm.alarmtimer); alarm 562 kernel/time/alarmtimer.c ptr->it_overrun += alarm_forward_now(alarm, ptr->it_interval); alarm 578 kernel/time/alarmtimer.c struct alarm *alarm = &timr->it.alarm.alarmtimer; alarm 580 kernel/time/alarmtimer.c timr->it_overrun += alarm_forward_now(alarm, timr->it_interval); alarm 581 kernel/time/alarmtimer.c alarm_start(alarm, alarm->node.expires); alarm 591 kernel/time/alarmtimer.c struct alarm *alarm = &timr->it.alarm.alarmtimer; alarm 593 kernel/time/alarmtimer.c return alarm_forward(alarm, timr->it_interval, now); alarm 603 kernel/time/alarmtimer.c struct alarm *alarm = &timr->it.alarm.alarmtimer; alarm 605 kernel/time/alarmtimer.c return ktime_sub(alarm->node.expires, now); alarm 614 kernel/time/alarmtimer.c return alarm_try_to_cancel(&timr->it.alarm.alarmtimer); alarm 627 kernel/time/alarmtimer.c hrtimer_cancel_wait_running(&timr->it.alarm.alarmtimer.timer); alarm 640 kernel/time/alarmtimer.c struct alarm *alarm = &timr->it.alarm.alarmtimer; alarm 641 kernel/time/alarmtimer.c struct alarm_base *base = &alarm_bases[alarm->type]; alarm 646 kernel/time/alarmtimer.c alarm->node.expires = expires; alarm 648 kernel/time/alarmtimer.c alarm_start(&timr->it.alarm.alarmtimer, expires); alarm 703 kernel/time/alarmtimer.c alarm_init(&new_timer->it.alarm.alarmtimer, type, alarm_handle_timer); alarm 713 kernel/time/alarmtimer.c static enum alarmtimer_restart alarmtimer_nsleep_wakeup(struct alarm *alarm, alarm 716 kernel/time/alarmtimer.c struct task_struct *task = (struct task_struct *)alarm->data; alarm 718 kernel/time/alarmtimer.c alarm->data = NULL; alarm 731 kernel/time/alarmtimer.c static int alarmtimer_do_nsleep(struct alarm *alarm, ktime_t absexp, alarm 735 kernel/time/alarmtimer.c alarm->data = (void *)current; alarm 738 kernel/time/alarmtimer.c alarm_start(alarm, absexp); alarm 739 kernel/time/alarmtimer.c if (likely(alarm->data)) alarm 742 kernel/time/alarmtimer.c alarm_cancel(alarm); alarm 743 kernel/time/alarmtimer.c } while (alarm->data && !signal_pending(current)); alarm 747 kernel/time/alarmtimer.c destroy_hrtimer_on_stack(&alarm->timer); alarm 749 kernel/time/alarmtimer.c if (!alarm->data) alarm 771 kernel/time/alarmtimer.c alarm_init_on_stack(struct alarm *alarm, enum alarmtimer_type type, alarm 772 kernel/time/alarmtimer.c enum alarmtimer_restart (*function)(struct alarm *, ktime_t)) alarm 774 kernel/time/alarmtimer.c hrtimer_init_on_stack(&alarm->timer, alarm_bases[type].base_clockid, alarm 776 kernel/time/alarmtimer.c __alarm_init(alarm, type, function); alarm 789 kernel/time/alarmtimer.c struct alarm alarm; alarm 791 kernel/time/alarmtimer.c alarm_init_on_stack(&alarm, type, alarmtimer_nsleep_wakeup); alarm 793 kernel/time/alarmtimer.c return alarmtimer_do_nsleep(&alarm, exp, type); alarm 810 kernel/time/alarmtimer.c struct alarm alarm; alarm 823 kernel/time/alarmtimer.c alarm_init_on_stack(&alarm, type, alarmtimer_nsleep_wakeup); alarm 833 kernel/time/alarmtimer.c ret = alarmtimer_do_nsleep(&alarm, exp, type); alarm 280 kernel/time/itimer.c SYSCALL_DEFINE1(alarm, unsigned int, seconds) alarm 50 kernel/time/posix-stubs.c SYS_NI(alarm); alarm 151 tools/laptop/freefall/freefall.c alarm(0); alarm 165 tools/laptop/freefall/freefall.c alarm(2); alarm 167 tools/laptop/freefall/freefall.c alarm(20); alarm 1612 tools/perf/builtin-record.c alarm(rec->switch_output.time); alarm 2344 tools/perf/builtin-record.c alarm(rec->switch_output.time); alarm 411 tools/testing/selftests/bpf/map_tests/sk_storage_map.c alarm(runtime_s); alarm 428 tools/testing/selftests/bpf/map_tests/sk_storage_map.c alarm(0); alarm 445 tools/testing/selftests/bpf/map_tests/sk_storage_map.c alarm(runtime_s); alarm 454 tools/testing/selftests/bpf/map_tests/sk_storage_map.c alarm(0); alarm 153 tools/testing/selftests/breakpoints/breakpoint_test_arm64.c alarm(3); alarm 160 tools/testing/selftests/breakpoints/breakpoint_test_arm64.c alarm(0); alarm 706 tools/testing/selftests/kselftest_harness.h alarm(t->timeout); alarm 755 tools/testing/selftests/kselftest_harness.h alarm(0); alarm 78 tools/testing/selftests/pidfd/pidfd_poll_test.c alarm(3); alarm 145 tools/testing/selftests/powerpc/benchmarks/context_switch.c alarm(1); alarm 174 tools/testing/selftests/powerpc/benchmarks/context_switch.c alarm(1); alarm 219 tools/testing/selftests/powerpc/benchmarks/context_switch.c alarm(1); alarm 349 tools/testing/selftests/powerpc/benchmarks/context_switch.c alarm(1); alarm 187 tools/testing/selftests/powerpc/benchmarks/fork.c alarm(1); alarm 198 tools/testing/selftests/powerpc/benchmarks/fork.c alarm(1); alarm 49 tools/testing/selftests/powerpc/harness.c alarm(timeout); alarm 68 tools/testing/selftests/powerpc/harness.c alarm(KILL_TIMEOUT); alarm 706 tools/testing/selftests/powerpc/mm/tlbie_test.c alarm(run_time); alarm 66 tools/testing/selftests/powerpc/signal/signal.c alarm(0); /* Disable any pending */ alarm 67 tools/testing/selftests/powerpc/signal/signal.c alarm(2); alarm 82 tools/testing/selftests/powerpc/signal/signal.c alarm(0); /* Disable any pending */ alarm 84 tools/testing/selftests/powerpc/signal/signal.c alarm(TIMEOUT); alarm 68 tools/testing/selftests/powerpc/signal/signal_tm.c alarm(0); /* Disable any pending */ alarm 70 tools/testing/selftests/powerpc/signal/signal_tm.c alarm(TIMEOUT); alarm 52 tools/testing/selftests/prctl/disable-tsc-ctxt-sw-stress-test.c alarm(10); alarm 73 tools/testing/selftests/prctl/disable-tsc-ctxt-sw-stress-test.c alarm(10); alarm 63 tools/testing/selftests/prctl/disable-tsc-on-off-stress-test.c alarm(10); alarm 167 tools/testing/selftests/rtc/rtctest.c struct rtc_wkalrm alarm = { 0 }; alarm 174 tools/testing/selftests/rtc/rtctest.c rc = ioctl(self->fd, RTC_RD_TIME, &alarm.time); alarm 177 tools/testing/selftests/rtc/rtctest.c secs = timegm((struct tm *)&alarm.time) + ALARM_DELTA; alarm 178 tools/testing/selftests/rtc/rtctest.c gmtime_r(&secs, (struct tm *)&alarm.time); alarm 180 tools/testing/selftests/rtc/rtctest.c alarm.enabled = 1; alarm 182 tools/testing/selftests/rtc/rtctest.c rc = ioctl(self->fd, RTC_WKALM_SET, &alarm); alarm 189 tools/testing/selftests/rtc/rtctest.c rc = ioctl(self->fd, RTC_WKALM_RD, &alarm); alarm 193 tools/testing/selftests/rtc/rtctest.c alarm.time.tm_mday, alarm.time.tm_mon + 1, alarm 194 tools/testing/selftests/rtc/rtctest.c alarm.time.tm_year + 1900, alarm.time.tm_hour, alarm 195 tools/testing/selftests/rtc/rtctest.c alarm.time.tm_min, alarm.time.tm_sec); alarm 269 tools/testing/selftests/rtc/rtctest.c struct rtc_wkalrm alarm = { 0 }; alarm 276 tools/testing/selftests/rtc/rtctest.c rc = ioctl(self->fd, RTC_RD_TIME, &alarm.time); alarm 279 tools/testing/selftests/rtc/rtctest.c secs = timegm((struct tm *)&alarm.time) + 60 - alarm.time.tm_sec; alarm 280 tools/testing/selftests/rtc/rtctest.c gmtime_r(&secs, (struct tm *)&alarm.time); alarm 282 tools/testing/selftests/rtc/rtctest.c alarm.enabled = 1; alarm 284 tools/testing/selftests/rtc/rtctest.c rc = ioctl(self->fd, RTC_WKALM_SET, &alarm); alarm 291 tools/testing/selftests/rtc/rtctest.c rc = ioctl(self->fd, RTC_WKALM_RD, &alarm); alarm 295 tools/testing/selftests/rtc/rtctest.c alarm.time.tm_mday, alarm.time.tm_mon + 1, alarm 296 tools/testing/selftests/rtc/rtctest.c alarm.time.tm_year + 1900, alarm.time.tm_hour, alarm 297 tools/testing/selftests/rtc/rtctest.c alarm.time.tm_min, alarm.time.tm_sec); alarm 1289 tools/testing/selftests/vm/userfaultfd.c alarm(ALARM_INTERVAL_SECS); alarm 1299 tools/testing/selftests/vm/userfaultfd.c alarm(ALARM_INTERVAL_SECS); alarm 43 tools/testing/vsock/timeout.c alarm(seconds); alarm 58 tools/testing/vsock/timeout.c alarm(0);