Home
last modified time | relevance | path

Searched refs:hour (Results 1 – 18 of 18) sorted by relevance

/f-stack/freebsd/kern/
H A Dsubr_clock.c230 ct.hour = FROMBCD(bct->hour); in clock_bcd_to_ts()
238 if (ct.hour == 12) in clock_bcd_to_ts()
239 ct.hour = 0; in clock_bcd_to_ts()
241 ct.hour += 12; in clock_bcd_to_ts()
280 ct->hour = rsec / 3600; in clock_ts_to_ct()
299 KASSERT(ct->hour >= 0 && ct->hour <= 23, in clock_ts_to_ct()
318 if (ct.hour >= 12) { in clock_ts_to_bcd()
319 ct.hour -= 12; in clock_ts_to_bcd()
322 if (ct.hour == 0) in clock_ts_to_bcd()
323 ct.hour = 12; in clock_ts_to_bcd()
[all …]
/f-stack/freebsd/amd64/vmm/io/
H A Dvrtc.c60 uint8_t hour; member
187 int hour; in secs_to_rtc() local
229 hour = ct.hour; in secs_to_rtc()
237 hour = 12; in secs_to_rtc()
245 hour = ct.hour % 12; in secs_to_rtc()
250 rtc->hour = rtcset(rtc, hour); in secs_to_rtc()
311 hour = rtc->hour; in rtc_to_secs()
318 error = rtcget(rtc, hour, &ct.hour); in rtc_to_secs()
320 if (ct.hour >= 1 && ct.hour <= 12) { in rtc_to_secs()
337 rtc->hour, ct.hour); in rtc_to_secs()
[all …]
/f-stack/freebsd/mips/cavium/
H A Docteon_ds1337.c79 CT_CHECK(ct->hour < 0 || ct->hour > 23, "hour"); in validate_ct_struct()
118 ct.hour = bcd2bin(reg[2] & 0x3f); in cvmx_rtc_ds1337_read()
121 ct.hour = (ct.hour + 12) % 24; in cvmx_rtc_ds1337_read()
171 reg[2] = bin2bcd(ct.hour); /* Force 0..23 format even if using AM/PM */ in cvmx_rtc_ds1337_write()
/f-stack/app/nginx-1.16.1/src/core/
H A Dngx_parse_time.c19 ngx_uint_t day, year, hour, min, sec; in ngx_parse_http_time() local
181 hour = (*p - '0') * 10 + (*(p + 1) - '0'); in ngx_parse_http_time()
223 if (hour > 23 || min > 59 || sec > 59) { in ngx_parse_http_time()
266 - 719527 + 31 + 28) * 86400 + hour * 3600 + min * 60 + sec; in ngx_parse_http_time()
H A Dngx_times.c331 ngx_uint_t sec, min, hour, mday, mon, year, wday, days, leap; in ngx_gmtime() local
356 hour = sec / 3600; in ngx_gmtime()
424 tp->ngx_tm_hour = (ngx_tm_hour_t) hour; in ngx_gmtime()
/f-stack/freebsd/sys/
H A Dclock.h78 int hour; /* hour (0 - 23) */ member
114 uint8_t hour; /* hour (0 - 23 or 1 - 12) */ member
/f-stack/freebsd/arm/nvidia/
H A Das3722_rtc.c61 ct.hour = bcd2bin(buf[2] & 0x3F); in as3722_rtc_gettime()
86 buf[2] = bin2bcd(ct.hour); in as3722_rtc_settime()
H A Dtegra_xhci.c854 fw_clock.hour, fw_clock.min, fw_clock.sec); in load_fw()
/f-stack/freebsd/contrib/device-tree/Bindings/
H A Dproperty-units.txt29 -microamp-hours : microampere hour
32 -microwatt-hours: microwatt hour
/f-stack/freebsd/arm/mv/
H A Drtc.c144 ct.hour = FROMBCD((val & 0x3f0000) >> 16); in mv_rtc_gettime()
172 (TOBCD(ct.hour) << 16) | (TOBCD( ct.dow + 1) << 24); in mv_rtc_settime()
/f-stack/freebsd/mips/atheros/
H A Dpcf2123_rtc.c131 ct.hour = FROMBCD(rxTimedate[3] & 0x3f); in pcf2123_rtc_gettime()
177 txTimedate[3] = TOBCD(ct.hour); in pcf2123_rtc_settime()
/f-stack/freebsd/arm/ti/am335x/
H A Dam335x_rtc.c174 ct.hour = FROMBCD(RTC_READ4(rtc_sc, RTC_HOURS) & 0x3f); in am335x_rtc_pmic_pwr_toggle()
184 RTC_WRITE4(rtc_sc, RTC_ALARM2_HOURS, TOBCD(ct.hour)); in am335x_rtc_pmic_pwr_toggle()
/f-stack/freebsd/contrib/openzfs/.github/
H A Dstale.yml25 # Limit the number of actions per hour, from 1-30. Default is 30
/f-stack/freebsd/arm/allwinner/
H A Daw_rtc.c300 ct.hour = GET_HOUR_VALUE(rtime); in aw_rtc_gettime()
345 SET_HOUR_VALUE(ct.hour); in aw_rtc_settime()
/f-stack/freebsd/arm64/nvidia/tegra210/
H A Dmax77620_rtc.c256 ct.hour = bcd2bin(buf[2] & 0x3F); in max77620_rtc_gettime()
281 buf[2] = bin2bcd(ct.hour); in max77620_rtc_settime()
/f-stack/dpdk/examples/vm_power_manager/
H A Dchannel_monitor.c251 int hour = (int)json_integer_value( in parse_json_to_pkt() local
253 pkt->timer_policy.busy_hours[i] = hour; in parse_json_to_pkt()
260 int hour = (int)json_integer_value( in parse_json_to_pkt() local
262 pkt->timer_policy.quiet_hours[i] = hour; in parse_json_to_pkt()
/f-stack/freebsd/x86/isa/
H A Datrtc.c546 rtcout_locked(RTC_HRS, bct.hour); in atrtc_settime()
591 bct.hour = rtcin_locked(RTC_HRS); in atrtc_gettime()
/f-stack/dpdk/doc/guides/sample_app_ug/
H A Dvm_power_management.rst124 power adjustment (busy/quiet hour power adjustment for example). See
548 Valid hour values are 0 to 23.
554 Valid hour values are 0 to 23.
763 An array with a list of hour values (0-23).
884 An array with a list of hour numbers with values in the range 0 to 23.