/openbmc/linux/kernel/time/ |
H A 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 */ 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 …]
|
/openbmc/linux/include/linux/ |
H A 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 …]
|
/openbmc/linux/drivers/rtc/ |
H A 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 …]
|
H A 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 …]
|
H A 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() 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 …]
|
/openbmc/linux/include/trace/events/ |
H A 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 …]
|
/openbmc/linux/Documentation/hwmon/ |
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A D | crps.rst | 45 curr1_max_alarm Input maximum current high alarm 47 curr1_crit_alarm Input critical current high alarm 53 curr2_max_alarm Output maximum current high alarm 55 curr2_crit_alarm Output critical current high alarm 61 in1_crit_alarm Critical input over voltage alarm 63 in1_max_alarm Maximum input over voltage alarm 70 in2_crit_alarm Critical input over voltage alarm 72 in2_lcrit_alarm Critical input under voltage fault alarm 74 in2_max_alarm Maximum input over voltage alarm 76 in2_min_alarm Minimum input under voltage warning alarm [all …]
|
H A 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 …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/timer/ |
H A 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 …]
|
/openbmc/linux/Documentation/devicetree/bindings/rtc/ |
H A 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 …]
|
/openbmc/linux/tools/testing/selftests/rtc/ |
H A D | rtctest.c | 221 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 …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A 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 …]
|
/openbmc/phosphor-fan-presence/sensor-monitor/ |
H A D | shutdown_alarm_monitor.hpp | 40 * and then watches the high and low alarm properties. If they trip 43 * options. If the alarm is cleared before the timer expires, then 48 * Note that the SoftShutdown alarm code actually implements a hard shutdown. 80 * If the power is on, the new alarm values will be checked to see 86 * @brief Checks an alarm value to see if a shutdown timer needs 89 * If the alarm is on and the timer isn't running, start it. 90 * If the alarm is off and the timer is running, stop it. 92 * @param[in] value - The alarm property value 93 * @param[in] alarmKey - The alarm key 98 * @brief Checks all currently known alarm properties on D-Bus. [all …]
|
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/dbus/fan-fault-led/ |
H A D | board-0-fan-1.yaml | 1 - name: board 0 fan 1 current critical alarm path group 10 - name: current fan critical alarm property 22 - name: board 0 fan 1 critical alarm assert 25 paths: board 0 fan 1 current critical alarm path group 26 properties: current fan critical alarm property 29 - name: board 0 fan 1 critical alarm deassert 32 paths: board 0 fan 1 current critical alarm path group 33 properties: current fan critical alarm property 39 paths: board 0 fan 1 current critical alarm path group 40 properties: current fan critical alarm property [all …]
|
H A D | board-0-fan-5.yaml | 1 - name: board 0 fan 5 current critical alarm path group 10 - name: current fan critical alarm property 22 - name: board 0 fan 5 critical alarm assert 25 paths: board 0 fan 5 current critical alarm path group 26 properties: current fan critical alarm property 29 - name: board 0 fan 5 critical alarm deassert 32 paths: board 0 fan 5 current critical alarm path group 33 properties: current fan critical alarm property 39 paths: board 0 fan 5 current critical alarm path group 40 properties: current fan critical alarm property [all …]
|
H A D | board-0-fan-9.yaml | 1 - name: board 0 fan 9 current critical alarm path group 10 - name: current fan critical alarm property 22 - name: board 0 fan 9 critical alarm assert 25 paths: board 0 fan 9 current critical alarm path group 26 properties: current fan critical alarm property 29 - name: board 0 fan 9 critical alarm deassert 32 paths: board 0 fan 9 current critical alarm path group 33 properties: current fan critical alarm property 39 paths: board 0 fan 9 current critical alarm path group 40 properties: current fan critical alarm property [all …]
|
H A D | board-1-fan-3.yaml | 1 - name: board 1 fan 3 current critical alarm path group 10 - name: current fan critical alarm property 22 - name: board 1 fan 3 critical alarm assert 25 paths: board 1 fan 3 current critical alarm path group 26 properties: current fan critical alarm property 29 - name: board 1 fan 3 critical alarm deassert 32 paths: board 1 fan 3 current critical alarm path group 33 properties: current fan critical alarm property 39 paths: board 1 fan 3 current critical alarm path group 40 properties: current fan critical alarm property [all …]
|
H A D | board-0-fan-8.yaml | 1 - name: board 0 fan 8 current critical alarm path group 10 - name: current fan critical alarm property 22 - name: board 0 fan 8 critical alarm assert 25 paths: board 0 fan 8 current critical alarm path group 26 properties: current fan critical alarm property 29 - name: board 0 fan 8 critical alarm deassert 32 paths: board 0 fan 8 current critical alarm path group 33 properties: current fan critical alarm property 39 paths: board 0 fan 8 current critical alarm path group 40 properties: current fan critical alarm property [all …]
|
H A D | board-1-fan-6.yaml | 1 - name: board 1 fan 6 current critical alarm path group 10 - name: current fan critical alarm property 22 - name: board 1 fan 6 critical alarm assert 25 paths: board 1 fan 6 current critical alarm path group 26 properties: current fan critical alarm property 29 - name: board 1 fan 6 critical alarm deassert 32 paths: board 1 fan 6 current critical alarm path group 33 properties: current fan critical alarm property 39 paths: board 1 fan 6 current critical alarm path group 40 properties: current fan critical alarm property [all …]
|
H A D | board-1-fan-11.yaml | 1 - name: board 1 fan 11 current critical alarm path group 10 - name: current fan critical alarm property 22 - name: board 1 fan 11 critical alarm assert 25 paths: board 1 fan 11 current critical alarm path group 26 properties: current fan critical alarm property 29 - name: board 1 fan 11 critical alarm deassert 32 paths: board 1 fan 11 current critical alarm path group 33 properties: current fan critical alarm property 39 paths: board 1 fan 11 current critical alarm path group 40 properties: current fan critical alarm property [all …]
|
H A D | board-1-fan-2.yaml | 1 - name: board 1 fan 2 current critical alarm path group 10 - name: current fan critical alarm property 22 - name: board 1 fan 2 critical alarm assert 25 paths: board 1 fan 2 current critical alarm path group 26 properties: current fan critical alarm property 29 - name: board 1 fan 2 critical alarm deassert 32 paths: board 1 fan 2 current critical alarm path group 33 properties: current fan critical alarm property 39 paths: board 1 fan 2 current critical alarm path group 40 properties: current fan critical alarm property [all …]
|
H A D | board-0-fan-4.yaml | 1 - name: board 0 fan 4 current critical alarm path group 10 - name: current fan critical alarm property 22 - name: board 0 fan 4 critical alarm assert 25 paths: board 0 fan 4 current critical alarm path group 26 properties: current fan critical alarm property 29 - name: board 0 fan 4 critical alarm deassert 32 paths: board 0 fan 4 current critical alarm path group 33 properties: current fan critical alarm property 39 paths: board 0 fan 4 current critical alarm path group 40 properties: current fan critical alarm property [all …]
|