Home
last modified time | relevance | path

Searched full:alarm (Results 1 – 25 of 1495) sorted by relevance

12345678910>>...60

/kernel/linux/linux-6.6/kernel/time/
Dalarmtimer.c6 * 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 */
151 * alarmtimer_enqueue - Adds an alarm timer to an alarm_base timerqueue
153 * @alarm: pointer to alarm being enqueued.
155 * Adds alarm to a alarm_base timerqueue
159 static void alarmtimer_enqueue(struct alarm_base *base, struct alarm *alarm) in alarmtimer_enqueue() argument
161 if (alarm->state & ALARMTIMER_STATE_ENQUEUED) in alarmtimer_enqueue()
162 timerqueue_del(&base->timerqueue, &alarm->node); in alarmtimer_enqueue()
[all …]
/kernel/linux/linux-5.10/kernel/time/
Dalarmtimer.c6 * 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 …]
/kernel/linux/linux-6.6/include/linux/
Dalarmtimer.h33 * 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 …]
/kernel/linux/linux-5.10/include/linux/
Dalarmtimer.h33 * 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 …]
/kernel/linux/linux-6.6/drivers/rtc/
Dinterface.c179 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 …]
Drtc-ab-b5ze-s3.c4 * 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 …]
Drtc-sc27xx.c83 /* 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()
308 /* clear the auxiliary alarm interrupt status */ in sprd_rtc_set_aux_alarm()
391 * The RTC core checks to see if there is an alarm already set in RTC in sprd_rtc_read_alarm()
[all …]
/kernel/linux/linux-5.10/drivers/rtc/
Dinterface.c179 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 …]
Drtc-ab-b5ze-s3.c4 * 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 …]
/kernel/linux/linux-5.10/include/trace/events/
Dalarmtimer.h47 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 …]
/kernel/linux/linux-6.6/include/trace/events/
Dalarmtimer.h47 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 …]
/kernel/linux/linux-5.10/Documentation/hwmon/
Dmax1668.rst35 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 …]
Dina209.rst44 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 …]
Disl68137.rst437 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 …]
/kernel/linux/linux-6.6/Documentation/hwmon/
Dmax1668.rst35 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 …]
Dina209.rst44 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 …]
Disl68137.rst437 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 …]
/kernel/linux/linux-5.10/tools/testing/selftests/rtc/
Drtctest.c136 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 …]
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/timer/
Dbase.c71 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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/timer/
Dbase.c71 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 …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/rtc/
Drtc-fsl-ftm-alarm.txt1 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 …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/rtc/
Drtc-fsl-ftm-alarm.txt1 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 …]
/kernel/linux/linux-6.6/tools/testing/selftests/rtc/
Drtctest.c221 TH_LOG("Alarm time now set to %02d:%02d:%02d.", in TEST_F()
224 /* Enable alarm interrupts */ in TEST_F()
235 /* Disable alarm interrupts */ in TEST_F()
252 struct rtc_wkalrm alarm = { 0 }; in TEST_F() local
263 rc = ioctl(self->fd, RTC_RD_TIME, &alarm.time); in TEST_F()
266 secs = timegm((struct tm *)&alarm.time) + ALARM_DELTA; in TEST_F()
267 gmtime_r(&secs, (struct tm *)&alarm.time); in TEST_F()
269 alarm.enabled = 1; in TEST_F()
271 rc = ioctl(self->fd, RTC_WKALM_SET, &alarm); in TEST_F()
278 rc = ioctl(self->fd, RTC_WKALM_RD, &alarm); in TEST_F()
[all …]
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-devices-platform-ACPI-TAD1 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 …]
/kernel/linux/linux-6.6/Documentation/ABI/testing/
Dsysfs-devices-platform-ACPI-TAD1 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 …]

12345678910>>...60