Home
last modified time | relevance | path

Searched refs:alarm (Results 1 – 25 of 398) sorted by relevance

12345678910>>...16

/linux-6.1.9/kernel/time/
Dalarmtimer.c160 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()
165 timerqueue_add(&base->timerqueue, &alarm->node); in alarmtimer_enqueue()
166 alarm->state |= ALARMTIMER_STATE_ENQUEUED; in alarmtimer_enqueue()
178 static void alarmtimer_dequeue(struct alarm_base *base, struct alarm *alarm) in alarmtimer_dequeue() argument
180 if (!(alarm->state & ALARMTIMER_STATE_ENQUEUED)) in alarmtimer_dequeue()
183 timerqueue_del(&base->timerqueue, &alarm->node); in alarmtimer_dequeue()
184 alarm->state &= ~ALARMTIMER_STATE_ENQUEUED; in alarmtimer_dequeue()
199 struct alarm *alarm = container_of(timer, struct alarm, timer); in alarmtimer_fired() local
[all …]
/linux-6.1.9/include/linux/
Dalarmtimer.h42 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);
56 int alarm_try_to_cancel(struct alarm *alarm);
57 int alarm_cancel(struct alarm *alarm);
59 u64 alarm_forward(struct alarm *alarm, ktime_t now, ktime_t interval);
[all …]
/linux-6.1.9/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 …]
/linux-6.1.9/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-test.c18 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()
53 rtd->alarm.expires = expires; in test_rtc_set_alarm()
56 add_timer(&rtd->alarm); in test_rtc_set_alarm()
87 add_timer(&rtd->alarm); in test_rtc_alarm_irq_enable()
89 del_timer(&rtd->alarm); in test_rtc_alarm_irq_enable()
[all …]
Ddev.c210 struct rtc_wkalrm alarm; in rtc_dev_ioctl() local
260 err = rtc_read_alarm(rtc, &alarm); in rtc_dev_ioctl()
264 if (copy_to_user(uarg, &alarm.time, sizeof(tm))) in rtc_dev_ioctl()
271 if (copy_from_user(&alarm.time, uarg, sizeof(tm))) in rtc_dev_ioctl()
274 alarm.enabled = 0; in rtc_dev_ioctl()
275 alarm.pending = 0; in rtc_dev_ioctl()
276 alarm.time.tm_wday = -1; in rtc_dev_ioctl()
277 alarm.time.tm_yday = -1; in rtc_dev_ioctl()
278 alarm.time.tm_isdst = -1; in rtc_dev_ioctl()
301 alarm.time.tm_mday = tm.tm_mday; in rtc_dev_ioctl()
[all …]
Drtc-lp8788.c58 enum lp8788_alarm_sel alarm; member
163 static int lp8788_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) in lp8788_read_alarm() argument
167 struct rtc_time *tm = &alarm->time; in lp8788_read_alarm()
171 addr = addr_alarm_sec[rtc->alarm]; in lp8788_read_alarm()
183 alarm->enabled = data[LPTIME_WDAY] & LP8788_ALM_EN_M; in lp8788_read_alarm()
188 static int lp8788_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) in lp8788_set_alarm() argument
192 struct rtc_time *tm = &alarm->time; in lp8788_set_alarm()
211 addr = addr_alarm_sec[rtc->alarm] + i; in lp8788_set_alarm()
217 alarm->enabled = 1; in lp8788_set_alarm()
218 addr = addr_alarm_en[rtc->alarm]; in lp8788_set_alarm()
[all …]
/linux-6.1.9/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 …]
Dir35221.rst42 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 …]
Dmax20751.rst55 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 …]
Dpli1209bc.rst37 in1_max_alarm Input voltage high alarm.
39 in1_crit_alarm Input voltage critical alarm.
45 in2_alarm Output voltage alarm
50 curr1_max_alarm Maximum input current high alarm.
52 curr1_crit_alarm Input current critical alarm.
57 curr2_crit_alarm Output current critical alarm.
59 curr2_max_alarm Output current high alarm.
63 power1_alarm Input power alarm.
70 temp1_alarm Die temperature alarm.
72 temp1_max_alarm Die temperature high alarm.
[all …]
Dbpa-rs600.rst34 curr1_max_alarm Input current high alarm
39 curr2_max_alarm Output current high alarm
48 in1_max_alarm Input voltage high alarm
50 in1_min_alarm Input voltage low alarm
55 in2_max_alarm Output voltage high alarm
57 in2_min_alarm Output voltage low alarm
61 power1_alarm Input power alarm
67 power2_max_alarm Output power high alarm
70 temp1_alarm Temperature alarm
73 temp2_alarm Temperature alarm
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 …]
Dinspur-ipsps1.rst32 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
Dir38064.rst60 curr1_crit_alarm Current critical high alarm
62 curr1_max_alarm Current high alarm
67 in1_crit_alarm Input voltage critical high alarm
69 in1_min_alarm Input voltage low alarm
74 in2_lcrit_alarm Output voltage critical low alarm
76 in2_crit_alarm Output voltage critical high alarm
78 in2_max_alarm Output voltage high alarm
80 in2_min_alarm Output voltage low alarm
87 temp1_crit_alarm Chip temperature critical high alarm
89 temp1_max_alarm Chip temperature high alarm
Dir36021.rst37 curr1_alarm Input fault alarm
41 curr2_alarm Output over-current alarm
45 in1_alarm Input under-voltage alarm
49 in2_alarm Output over-voltage alarm
53 power1_alarm Input under-voltage alarm
59 temp1_alarm Temperature alarm
62 temp2_alarm Temperature alarm
Dltc2947.rst47 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 …]
Dmax16601.rst67 in1_alarm Input voltage alarm.
71 in2_alarm Output voltage alarm.
77 curr1_max_alarm Current high alarm.
93 curr[N+4]_crit_alarm Output current critical alarm.
95 curr[N+4]_max_alarm Output current high alarm.
105 curr[2*N+5]_crit_alarm Output current critical alarm.
107 curr[2*N+5]_max_alarm Output current high alarm.
112 power1_alarm Input power alarm.
122 temp1_crit_alarm Chip temperature critical high alarm.
124 temp1_max_alarm Chip temperature high alarm.
[all …]
Dlt7182s.rst48 curr[1-2]_max_alarm Current high alarm
54 curr[3-4]_max_alarm Output current high alarm
60 in[1-2]_crit_alarm Input voltage critical high alarm
62 in[1-2]_min_alarm Input voltage low alarm
76 in[3-4|6-7]_lcrit_alarm Output voltage critical low alarm
78 in[3-4|6-7]_max_alarm Output voltage low alarm
80 in[3-4|6-7]_max_alarm Output voltage high alarm
82 in[3-4|6-7]_crit_alarm Output voltage critical high alarm
89 temp1_crit_alarm Chip temperature critical high alarm
91 temp1_max_alarm Chip temperature high alarm
Dtps53679.rst92 in1_lcrit_alarm Input voltage critical low alarm.
98 in1_crit_alarm Input voltage critical high alarm.
111 in[N]_lcrit_alarm Critical minimum voltage alarm.
115 in[N]_alarm Output voltage alarm.
123 in[N]_crit_alarm Output voltage critical high alarm.
136 temp[N]_max_alarm Temperature high alarm.
138 temp[N]_crit_alarm Temperature critical high alarm.
157 curr1_max_alarm Input current high alarm.
161 curr1_crit_alarm Input current critical alarm.
180 curr[N]_max_alarm Output current high alarm.
[all …]
/linux-6.1.9/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()
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()
101 alarm->func(alarm); in nvkm_timer_alarm_trigger()
[all …]
/linux-6.1.9/tools/testing/selftests/rtc/
Drtctest.c233 struct rtc_wkalrm alarm = { 0 }; in TEST_F() local
240 rc = ioctl(self->fd, RTC_RD_TIME, &alarm.time); in TEST_F()
243 secs = timegm((struct tm *)&alarm.time) + ALARM_DELTA; in TEST_F()
244 gmtime_r(&secs, (struct tm *)&alarm.time); in TEST_F()
246 alarm.enabled = 1; in TEST_F()
248 rc = ioctl(self->fd, RTC_WKALM_SET, &alarm); in TEST_F()
255 rc = ioctl(self->fd, RTC_WKALM_RD, &alarm); in TEST_F()
259 alarm.time.tm_mday, alarm.time.tm_mon + 1, in TEST_F()
260 alarm.time.tm_year + 1900, alarm.time.tm_hour, in TEST_F()
261 alarm.time.tm_min, alarm.time.tm_sec); in TEST_F()
[all …]
/linux-6.1.9/Documentation/devicetree/bindings/rtc/
Drtc-fsl-ftm-alarm.txt4 - 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"
32 compatible = "fsl,ls1088a-ftm-alarm";
/linux-6.1.9/Documentation/ABI/testing/
Dsysfs-devices-platform-ACPI-TAD28 (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
54 the AC alarm timer or to set its expired wake policy to discard
[all …]

12345678910>>...16