/Linux-v5.10/kernel/time/ |
D | alarmtimer.c | 6 * but triggers a RTC alarm if the box is suspend. 8 * This interface is influenced by the Android RTC Alarm timer 37 * struct alarm_base - Alarm timer bases 61 /* rtc timer and device for setting alarm wakeups at suspend */ 152 * alarmtimer_enqueue - Adds an alarm timer to an alarm_base timerqueue 154 * @alarm: pointer to alarm being enqueued. 156 * Adds alarm to a alarm_base timerqueue 160 static void alarmtimer_enqueue(struct alarm_base *base, struct alarm *alarm) in alarmtimer_enqueue() argument 162 if (alarm->state & ALARMTIMER_STATE_ENQUEUED) in alarmtimer_enqueue() 163 timerqueue_del(&base->timerqueue, &alarm->node); in alarmtimer_enqueue() [all …]
|
/Linux-v5.10/include/linux/ |
D | alarmtimer.h | 33 * struct alarm - Alarm timer structure 38 * @type: Alarm type (BOOTTIME/REALTIME). 39 * @state: Flag that represents if the alarm is set to fire or not. 42 struct alarm { struct 45 enum alarmtimer_restart (*function)(struct alarm *, ktime_t now); argument 51 void alarm_init(struct alarm *alarm, enum alarmtimer_type type, argument 52 enum alarmtimer_restart (*function)(struct alarm *, ktime_t)); 53 void alarm_start(struct alarm *alarm, ktime_t start); 54 void alarm_start_relative(struct alarm *alarm, ktime_t start); 55 void alarm_restart(struct alarm *alarm); [all …]
|
/Linux-v5.10/drivers/rtc/ |
D | interface.c | 179 struct rtc_wkalrm *alarm) in rtc_read_alarm_internal() argument 192 alarm->enabled = 0; in rtc_read_alarm_internal() 193 alarm->pending = 0; in rtc_read_alarm_internal() 194 alarm->time.tm_sec = -1; in rtc_read_alarm_internal() 195 alarm->time.tm_min = -1; in rtc_read_alarm_internal() 196 alarm->time.tm_hour = -1; in rtc_read_alarm_internal() 197 alarm->time.tm_mday = -1; in rtc_read_alarm_internal() 198 alarm->time.tm_mon = -1; in rtc_read_alarm_internal() 199 alarm->time.tm_year = -1; in rtc_read_alarm_internal() 200 alarm->time.tm_wday = -1; in rtc_read_alarm_internal() [all …]
|
D | rtc-ab-b5ze-s3.c | 4 * I2C RTC / Alarm chip 29 #define ABB5ZES3_REG_CTRL1_AIE BIT(1) /* Alarm interrupt enable */ 40 #define ABB5ZES3_REG_CTRL2_AF BIT(3) /* Alarm interrupt status */ 70 /* Alarm section (enable bits are all active low) */ 71 #define ABB5ZES3_REG_ALRM_MN 0x0A /* Alarm - minute register */ 73 #define ABB5ZES3_REG_ALRM_HR 0x0B /* Alarm - hours register */ 75 #define ABB5ZES3_REG_ALRM_DT 0x0C /* Alarm - date register */ 77 #define ABB5ZES3_REG_ALRM_DW 0x0D /* Alarm - day of the week reg. */ 126 bool timer_alarm; /* current alarm is via timer A */ 155 /* Clear alarm status bit. */ [all …]
|
D | rtc-sc27xx.c | 83 /* alarm lock definition for SPRD_RTC_SPG_UPD register */ 99 /* timeout of synchronizing time and alarm registers (us) */ 114 * alarm and auxiliary alarm. The time group registers are used to set RTC time, 115 * the normal alarm registers are used to set normal alarm, and the auxiliary 116 * alarm registers are used to set auxiliary alarm. Both alarm event and 117 * auxiliary alarm event can wake up system from deep sleep, but only alarm 283 * Since the time and normal alarm registers are put in always-power-on in sprd_rtc_set_secs() 294 dev_err(rtc->dev, "set time/alarm values timeout\n"); in sprd_rtc_set_secs() 335 /* clear the auxiliary alarm interrupt status */ in sprd_rtc_set_aux_alarm() 419 * alarm already set in RTC hardware, and we always read the normal in sprd_rtc_read_alarm() [all …]
|
D | dev.c | 210 struct rtc_wkalrm alarm; in rtc_dev_ioctl() local 249 * RTC and alarm times will be in UTC, by preference, in rtc_dev_ioctl() 258 err = rtc_read_alarm(rtc, &alarm); in rtc_dev_ioctl() 262 if (copy_to_user(uarg, &alarm.time, sizeof(tm))) in rtc_dev_ioctl() 269 if (copy_from_user(&alarm.time, uarg, sizeof(tm))) in rtc_dev_ioctl() 272 alarm.enabled = 0; in rtc_dev_ioctl() 273 alarm.pending = 0; in rtc_dev_ioctl() 274 alarm.time.tm_wday = -1; in rtc_dev_ioctl() 275 alarm.time.tm_yday = -1; in rtc_dev_ioctl() 276 alarm.time.tm_isdst = -1; in rtc_dev_ioctl() [all …]
|
D | rtc-test.c | 18 struct timer_list alarm; member 27 time64_t alarm; in test_rtc_read_alarm() local 29 alarm = (rtd->alarm.expires - jiffies) / HZ; in test_rtc_read_alarm() 30 alarm += ktime_get_real_seconds() + rtd->offset; in test_rtc_read_alarm() 32 rtc_time64_to_tm(alarm, &alrm->time); in test_rtc_read_alarm() 47 del_timer(&rtd->alarm); in test_rtc_set_alarm() 54 rtd->alarm.expires = expires; in test_rtc_set_alarm() 57 add_timer(&rtd->alarm); in test_rtc_set_alarm() 88 add_timer(&rtd->alarm); in test_rtc_alarm_irq_enable() 90 del_timer(&rtd->alarm); in test_rtc_alarm_irq_enable() [all …]
|
D | rtc-pm8xxx.c | 31 * @alarm_ctrl: base address of alarm control register 32 * @alarm_ctrl2: base address of alarm control2 register 33 * @alarm_rw: base address of alarm read-write register 34 * @alarm_en: alarm enable mask 51 * @rtc_alarm_irq: rtc alarm irq number. 68 * 1. Disable alarm if enabled. 73 * 6. Enable alarm if disabled in step 1. 107 dev_err(dev, "Write to RTC Alarm control register failed\n"); in pm8xxx_rtc_set_time() 163 dev_err(dev, "Write to RTC Alarm control register failed\n"); in pm8xxx_rtc_set_time() 218 static int pm8xxx_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) in pm8xxx_rtc_set_alarm() argument [all …]
|
D | rtc-cros-ec.c | 23 * @saved_alarm: Alarm to restore when interrupts are reenabled 49 command == EC_CMD_RTC_GET_VALUE ? "time" : "alarm", in cros_ec_rtc_get() 76 command == EC_CMD_RTC_SET_VALUE ? "time" : "alarm", in cros_ec_rtc_set() 120 /* Read alarm time from RTC. */ 129 * The EC host command for getting the alarm is relative (i.e. 5 in cros_ec_rtc_read_alarm() 141 dev_err(dev, "error getting alarm: %d\n", ret); in cros_ec_rtc_read_alarm() 150 /* Set the EC's RTC alarm. */ 160 * The EC host command for setting the alarm is relative in cros_ec_rtc_set_alarm() 178 * If the alarm is being disabled, send an alarm in cros_ec_rtc_set_alarm() 184 /* Don't set an alarm in the past. */ in cros_ec_rtc_set_alarm() [all …]
|
D | rtc-ab3100.c | 24 * Bit 2: Alarm on, 0 = off, 1 = on 28 /* default setting, buffer disabled, alarm on */ 30 /* Alarm when AL0-AL3 == TI0-TI3 */ 112 static int ab3100_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) in ab3100_rtc_read_alarm() argument 120 /* Figure out if alarm is enabled or not */ in ab3100_rtc_read_alarm() 126 alarm->enabled = 1; in ab3100_rtc_read_alarm() 128 alarm->enabled = 0; in ab3100_rtc_read_alarm() 130 alarm->pending = 0; in ab3100_rtc_read_alarm() 131 /* Read out alarm registers, only 4 bytes */ in ab3100_rtc_read_alarm() 140 rtc_time64_to_tm(time, &alarm->time); in ab3100_rtc_read_alarm() [all …]
|
/Linux-v5.10/include/trace/events/ |
D | alarmtimer.h | 47 TP_PROTO(struct alarm *alarm, ktime_t now), 49 TP_ARGS(alarm, now), 52 __field(void *, alarm) 59 __entry->alarm = alarm; 60 __entry->alarm_type = alarm->type; 61 __entry->expires = alarm->node.expires; 66 __entry->alarm, 75 TP_PROTO(struct alarm *alarm, ktime_t now), 77 TP_ARGS(alarm, now) 82 TP_PROTO(struct alarm *alarm, ktime_t now), [all …]
|
/Linux-v5.10/Documentation/hwmon/ |
D | max1668.rst | 35 temp1_max rw local temperature maximum threshold for alarm 36 temp1_max_alarm ro local temperature maximum threshold alarm 37 temp1_min rw local temperature minimum threshold for alarm 38 temp1_min_alarm ro local temperature minimum threshold alarm 40 temp2_max rw remote temperature 1 maximum threshold for alarm 41 temp2_max_alarm ro remote temperature 1 maximum threshold alarm 42 temp2_min rw remote temperature 1 minimum threshold for alarm 43 temp2_min_alarm ro remote temperature 1 minimum threshold alarm 45 temp3_max rw remote temperature 2 maximum threshold for alarm 46 temp3_max_alarm ro remote temperature 2 maximum threshold alarm [all …]
|
D | ina209.rst | 44 in0_max shunt voltage max alarm limit (mV) 45 in0_min shunt voltage min alarm limit (mV) 46 in0_crit_max shunt voltage crit max alarm limit (mV) 47 in0_crit_min shunt voltage crit min alarm limit (mV) 48 in0_max_alarm shunt voltage max alarm limit exceeded 49 in0_min_alarm shunt voltage min alarm limit exceeded 50 in0_crit_max_alarm shunt voltage crit max alarm limit exceeded 51 in0_crit_min_alarm shunt voltage crit min alarm limit exceeded 57 in1_max bus voltage max alarm limit (mV) 58 in1_min bus voltage min alarm limit (mV) [all …]
|
D | isl68137.rst | 437 curr1_crit_alarm Current critical high alarm 442 curr[2-3]_crit_alarm Current critical high alarm 447 in1_lcrit_alarm Input voltage critical low alarm 449 in1_crit_alarm Input voltage critical high alarm 454 in[2-3]_lcrit_alarm Output voltage critical low alarm 456 in[2-3]_crit_alarm Output voltage critical high alarm 460 power1_alarm Input power high alarm 467 temp[1-3]_crit_alarm Chip temperature critical high alarm 469 temp[1-3]_max_alarm Chip temperature high alarm 479 curr1_crit_alarm Current critical high alarm [all …]
|
D | ir35221.rst | 42 curr1_max_alarm Current high alarm 47 curr[2-3]_crit_alarm Current critical high alarm 51 curr[2-3]_max_alarm Current high alarm 56 in1_crit_alarm Input voltage critical high alarm 60 in1_min_alarm Input voltage low alarm 65 in[2-3]_lcrit_alarm Output voltage critical low alarm 67 in[2-3]_crit_alarm Output voltage critical high alarm 71 in[2-3]_max_alarm Output voltage high alarm 73 in[2-3]_min_alarm Output voltage low alarm 77 power1_alarm Input power high alarm [all …]
|
D | ir38064.rst | 36 curr1_crit_alarm Current critical high alarm 38 curr1_max_alarm Current high alarm 43 in1_crit_alarm Input voltage critical high alarm 45 in1_min_alarm Input voltage low alarm 50 in2_lcrit_alarm Output voltage critical low alarm 52 in2_crit_alarm Output voltage critical high alarm 54 in2_max_alarm Output voltage high alarm 56 in2_min_alarm Output voltage low alarm 63 temp1_crit_alarm Chip temperature critical high alarm 65 temp1_max_alarm Chip temperature high alarm
|
D | ltc2947.rst | 47 in0_min_alarm Undervoltage alarm 48 in0_max_alarm Overvoltage alarm 57 in1_min_alarm Undervoltage alarm 58 in1_max_alarm Overvoltage alarm 67 curr1_min_alarm Undercurrent alarm 68 curr1_max_alarm Overcurrent alarm 77 power1_min_alarm Low power alarm 78 power1_max_alarm High power alarm 87 temp1_min_alarm Low temperature alarm 88 temp1_max_alarm High temperature alarm [all …]
|
D | max20751.rst | 55 in1_min_alarm Input voltage low alarm. 56 in1_lcrit_alarm Input voltage critical low alarm. 57 in1_min_alarm Input voltage low alarm. 58 in1_max_alarm Input voltage high alarm. 66 in2_min_alarm Output voltage low alarm. 67 in2_lcrit_alarm Output voltage critical low alarm. 68 in2_min_alarm Output voltage low alarm. 69 in2_max_alarm Output voltage high alarm. 74 curr1_alarm Current high alarm. 79 temp1_max_alarm Chip temperature high alarm. [all …]
|
D | inspur-ipsps1.rst | 32 curr1_max_alarm Current high alarm 36 curr2_crit_alarm Current critical high alarm 38 curr2_max_alarm Current high alarm 44 in1_alarm Input voltage under-voltage alarm. 50 in2_lcrit_alarm Output voltage critical low alarm 52 in2_max_alarm Output voltage high alarm 54 in2_min_alarm Output voltage low alarm 56 power1_alarm Input fault or alarm. 60 power2_max_alarm Output power high alarm 67 temp[1-3]_max_alarm Temperature high alarm
|
D | max16601.rst | 51 in1_alarm Input voltage alarm. 55 in2_alarm Output voltage alarm. 61 curr1_max_alarm Current high alarm. 96 curr12_crit_alarm Output current critical alarm. 98 curr12_max_alarm Output current high alarm. 129 curr21_crit_alarm Output current critical alarm. 131 curr21_max_alarm Output current high alarm. 135 power1_alarm Input power alarm. 145 temp1_crit_alarm Chip temperature critical high alarm. 147 temp1_max_alarm Chip temperature high alarm. [all …]
|
D | ltc4245.rst | 57 in1_min_alarm 12v input undervoltage alarm 58 in2_min_alarm 5v input undervoltage alarm 59 in3_min_alarm 3v input undervoltage alarm 60 in4_min_alarm Vee (-12v) input undervoltage alarm 67 curr1_max_alarm 12v overcurrent alarm 68 curr2_max_alarm 5v overcurrent alarm 69 curr3_max_alarm 3v overcurrent alarm 70 curr4_max_alarm Vee (-12v) overcurrent alarm 77 in5_min_alarm 12v output undervoltage alarm 78 in6_min_alarm 5v output undervoltage alarm [all …]
|
/Linux-v5.10/tools/testing/selftests/rtc/ |
D | rtctest.c | 136 TH_LOG("Alarm time now set to %02d:%02d:%02d.", in TEST_F() 139 /* Enable alarm interrupts */ in TEST_F() 150 /* Disable alarm interrupts */ in TEST_F() 167 struct rtc_wkalrm alarm = { 0 }; in TEST_F() local 174 rc = ioctl(self->fd, RTC_RD_TIME, &alarm.time); in TEST_F() 177 secs = timegm((struct tm *)&alarm.time) + ALARM_DELTA; in TEST_F() 178 gmtime_r(&secs, (struct tm *)&alarm.time); in TEST_F() 180 alarm.enabled = 1; in TEST_F() 182 rc = ioctl(self->fd, RTC_WKALM_SET, &alarm); in TEST_F() 189 rc = ioctl(self->fd, RTC_WKALM_RD, &alarm); in TEST_F() [all …]
|
/Linux-v5.10/drivers/gpu/drm/nouveau/nvkm/subdev/timer/ |
D | base.c | 71 struct nvkm_alarm *alarm, *atemp; in nvkm_timer_alarm_trigger() local 77 list_for_each_entry_safe(alarm, atemp, &tmr->alarms, head) { in nvkm_timer_alarm_trigger() 78 /* Have we hit the earliest alarm that hasn't gone off? */ in nvkm_timer_alarm_trigger() 79 if (alarm->timestamp > nvkm_timer_read(tmr)) { in nvkm_timer_alarm_trigger() 81 tmr->func->alarm_init(tmr, alarm->timestamp); in nvkm_timer_alarm_trigger() 82 if (alarm->timestamp > nvkm_timer_read(tmr)) in nvkm_timer_alarm_trigger() 89 list_del_init(&alarm->head); in nvkm_timer_alarm_trigger() 90 list_add(&alarm->exec, &exec); in nvkm_timer_alarm_trigger() 99 list_for_each_entry_safe(alarm, atemp, &exec, exec) { in nvkm_timer_alarm_trigger() 100 list_del(&alarm->exec); in nvkm_timer_alarm_trigger() [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/rtc/ |
D | rtc-fsl-ftm-alarm.txt | 1 Freescale FlexTimer Module (FTM) Alarm 4 - compatible : Should be "fsl,<chip>-ftm-alarm", the 6 "fsl,ls1012a-ftm-alarm" 7 "fsl,ls1021a-ftm-alarm" 8 "fsl,ls1028a-ftm-alarm" 9 "fsl,ls1043a-ftm-alarm" 10 "fsl,ls1046a-ftm-alarm" 11 "fsl,ls1088a-ftm-alarm" 12 "fsl,ls208xa-ftm-alarm" 13 "fsl,lx2160a-ftm-alarm" [all …]
|
/Linux-v5.10/Documentation/ABI/testing/ |
D | sysfs-devices-platform-ACPI-TAD | 1 ACPI Time and Alarm (TAD) device attributes. 28 (RW) The AC alarm timer value. 30 Reads return the current AC alarm timer value in seconds or 31 "disabled", if the AC alarm is not set to wake up the system. 33 Write a new AC alarm timer value in seconds or "disabled" to it 34 to set the AC alarm timer or to disable it, respectively. 36 If the AC alarm timer is set through this attribute and it 45 (RW) The AC alarm expired timer wake policy (see ACPI 6.2, 49 alarm timer or "never", if the policy is to discard AC timer 52 Write a new expired timer wake delay for the AC alarm timer in [all …]
|