Searched refs:hour (Results 1 - 147 of 147) sorted by relevance

/linux-4.1.27/arch/m68k/atari/
H A Dtime.c109 int hour, year; atari_mste_hwclk() local
124 hour = t->tm_hour; atari_mste_hwclk()
126 if (hour > 11) atari_mste_hwclk()
127 hour += 20 - 12; atari_mste_hwclk()
128 if (hour == 0 || hour == 20) atari_mste_hwclk()
129 hour += 12; atari_mste_hwclk()
131 val.hr_ones = hour % 10; atari_mste_hwclk()
132 val.hr_tens = hour / 10; atari_mste_hwclk()
150 hour = val.hr_ones + val.hr_tens * 10; atari_mste_hwclk()
152 if (hour == 12 || hour == 12 + 20) atari_mste_hwclk()
153 hour -= 12; atari_mste_hwclk()
154 if (hour >= 20) atari_mste_hwclk()
155 hour += 12 - 20; atari_mste_hwclk()
157 t->tm_hour = hour; atari_mste_hwclk()
168 int sec=0, min=0, hour=0, day=0, mon=0, year=0, wday=0; atari_tt_hwclk() local
181 hour = t->tm_hour; atari_tt_hwclk()
188 if (hour > 11) { atari_tt_hwclk()
190 if (hour != 12) atari_tt_hwclk()
191 hour -= 12; atari_tt_hwclk()
193 else if (hour == 0) atari_tt_hwclk()
194 hour = 12; atari_tt_hwclk()
200 hour = bin2bcd(hour); atari_tt_hwclk()
233 hour = RTC_READ( RTC_HOURS ); atari_tt_hwclk()
242 RTC_WRITE( RTC_HOURS, hour + pm); atari_tt_hwclk()
254 if (hour & 0x80) { atari_tt_hwclk()
255 hour &= ~0x80; atari_tt_hwclk()
262 hour = bcd2bin(hour); atari_tt_hwclk()
270 if (!pm && hour == 12) atari_tt_hwclk()
271 hour = 0; atari_tt_hwclk()
272 else if (pm && hour != 12) atari_tt_hwclk()
273 hour += 12; atari_tt_hwclk()
278 t->tm_hour = hour; atari_tt_hwclk()
329 with hour overflow. This avoids messing with unknown time zones atari_tt_set_clock_mmss()
/linux-4.1.27/arch/mips/sibyte/swarm/
H A Drtc_xicor1241.c147 /* hour is the most tricky one */ xicor_set_time()
150 /* 24 hour format */ xicor_set_time()
154 /* 12 hour format, with 0x2 for pm */ xicor_set_time()
173 unsigned int year, mon, day, hour, min, sec, y2k; xicor_get_time() local
179 hour = xicor_read(X1241REG_HR); xicor_get_time()
181 if (hour & X1241REG_HR_MIL) { xicor_get_time()
182 hour &= 0x3f; xicor_get_time()
184 if (hour & 0x20) xicor_get_time()
185 hour = (hour & 0xf) + 0x12; xicor_get_time()
196 hour = bcd2bin(hour); xicor_get_time()
204 return mktime(year, mon, day, hour, min, sec); xicor_get_time()
H A Drtc_m41t81.c69 #define M41T81REG_HR 0x03 /* hour/century */
78 #define M41T81REG_AHR 0x0C /* alarm: hour */
193 unsigned int year, mon, day, hour, min, sec; m41t81_get_time() local
206 hour = m41t81_read(M41T81REG_HR) & 0x3f; m41t81_get_time()
214 hour = bcd2bin(hour); m41t81_get_time()
221 return mktime(year, mon, day, hour, min, sec); m41t81_get_time()
/linux-4.1.27/drivers/rtc/
H A Drtc-ds1216.c20 u8 hour; member in struct:ds1216_regs
90 if (regs.hour & DS1216_HOUR_1224) { ds1216_rtc_read_time()
92 tm->tm_hour = bcd2bin(regs.hour & 0x1f); ds1216_rtc_read_time()
93 if (regs.hour & DS1216_HOUR_AMPM) ds1216_rtc_read_time()
96 tm->tm_hour = bcd2bin(regs.hour & 0x3f); ds1216_rtc_read_time()
119 regs.hour &= DS1216_HOUR_1224; ds1216_rtc_set_time()
120 if (regs.hour && tm->tm_hour > 12) { ds1216_rtc_set_time()
121 regs.hour |= DS1216_HOUR_AMPM; ds1216_rtc_set_time()
124 regs.hour |= bin2bcd(tm->tm_hour); ds1216_rtc_set_time()
H A Drtc-m41t94.c63 int ret, hour; m41t94_read_time() local
87 hour = spi_w8r8(spi, M41T94_REG_HOURS); m41t94_read_time()
88 tm->tm_hour = bcd2bin(hour & 0x3f); m41t94_read_time()
93 if ((hour & M41T94_BIT_CB) || !(hour & M41T94_BIT_CEB)) m41t94_read_time()
H A Drtc-s35390a.c126 static char s35390a_hr2reg(struct s35390a *s35390a, int hour) s35390a_hr2reg() argument
129 return bin2bcd(hour); s35390a_hr2reg()
131 if (hour < 12) s35390a_hr2reg()
132 return bin2bcd(hour); s35390a_hr2reg()
134 return 0x40 | bin2bcd(hour - 12); s35390a_hr2reg()
139 unsigned hour; s35390a_reg2hr() local
144 hour = bcd2bin(reg & 0x3f); s35390a_reg2hr()
146 hour += 12; s35390a_reg2hr()
148 return hour; s35390a_reg2hr()
377 dev_err(&client->dev, "error checking 12/24 hour mode\n"); s35390a_probe()
H A Drtc-mpc5121.c45 u8 hour; /* RTC + 0x11 */ member in struct:mpc5121_rtc_regs
88 * Update second/minute/hour registers.
120 * update second minute hour registers mpc5121_rtc_read_time()
144 * update second minute hour registers mpc5121_rtc_set_time()
161 /* 12 hour format? */ mpc5200_rtc_read_time()
162 if (in_8(&regs->hour) & 0x20) mpc5200_rtc_read_time()
163 tm->tm_hour = (in_8(&regs->hour) >> 1) + mpc5200_rtc_read_time()
164 (in_8(&regs->hour) & 1 ? 12 : 0); mpc5200_rtc_read_time()
166 tm->tm_hour = in_8(&regs->hour); mpc5200_rtc_read_time()
H A Drtc-mv.c73 unsigned int year, month, day, hour, minute, second, wday; mv_rtc_read_time() local
80 hour = (rtc_time >> RTC_HOURS_OFFS) & 0x3f; /* assume 24 hours mode */ mv_rtc_read_time()
89 tm->tm_hour = bcd2bin(hour); mv_rtc_read_time()
104 unsigned int year, month, day, hour, minute, second, wday; mv_rtc_read_alarm() local
111 hour = (rtc_time >> RTC_HOURS_OFFS) & 0x3f; /* assume 24 hours mode */ mv_rtc_read_alarm()
120 alm->time.tm_hour = bcd2bin(hour); mv_rtc_read_alarm()
H A Drtc-ds1305.c31 * - Need fancy "hours" encoding in 12hour mode
48 /* The two alarms have only sec/min/hour/wday fields (ALM_LEN).
105 * Utilities ... tolerate 12-hour AM/PM notation in case of non-Linux
112 unsigned hour = 0; bcd2hour() local
116 hour = 12; bcd2hour()
119 hour += bcd2bin(bcd); bcd2hour()
120 return hour - 1; bcd2hour()
125 static u8 hour2bcd(bool hr12, int hour) hour2bcd() argument
128 hour++; hour2bcd()
129 if (hour <= 12) hour2bcd()
130 return DS1305_HR_12 | bin2bcd(hour); hour2bcd()
131 hour -= 12; hour2bcd()
132 return DS1305_HR_12 | DS1305_HR_PM | bin2bcd(hour); hour2bcd()
134 return bin2bcd(hour); hour2bcd()
H A Drtc-rs5c372.c156 unsigned hour; rs5c_reg2hr() local
161 hour = bcd2bin(reg & 0x1f); rs5c_reg2hr()
162 if (hour == 12) rs5c_reg2hr()
163 hour = 0; rs5c_reg2hr()
165 hour += 12; rs5c_reg2hr()
166 return hour; rs5c_reg2hr()
169 static unsigned rs5c_hr2reg(struct rs5c372 *rs5c, unsigned hour) rs5c_hr2reg() argument
172 return bin2bcd(hour); rs5c_hr2reg()
174 if (hour > 12) rs5c_hr2reg()
175 return 0x20 | bin2bcd(hour - 12); rs5c_hr2reg()
176 if (hour == 12) rs5c_hr2reg()
178 if (hour == 0) rs5c_hr2reg()
180 return bin2bcd(hour); rs5c_hr2reg()
H A Drtc-efi.c74 eft->hour = wtime->tm_hour; convert_to_efi_time()
95 if (eft->hour >= 24) convert_from_efi_time()
97 wtime->tm_hour = eft->hour; convert_from_efi_time()
H A Drtc-m48t35.c32 u8 hour; member in struct:m48t35_rtc
66 tm->tm_hour = readb(&priv->reg->hour); m48t35_read_time()
132 writeb(hrs, &priv->reg->hour); m48t35_set_time()
H A Drtc-msm6242.c26 MSM6242_HOUR1 = 0x4, /* 1-hour digit register */
27 MSM6242_HOUR10 = 0x5, /* PM/AM, 10-hour digit register */
61 #define MSM6242_CE_T_1HOUR (3 << 2) /* period 1 hour */
H A Drtc-ds1307.c493 * report alarm time (ALARM1); assume 24 hour and day-of-month modes, ds1337_read_alarm()
553 /* set ALARM1, using 24 hour and day-of-month modes */ ds1337_set_alarm()
690 /* Report alarm 0 time assuming 24-hour and day-of-month modes. */ mcp794xx_read_alarm()
701 dev_dbg(dev, "%s, sec=%d min=%d hour=%d wday=%d mday=%d mon=%d " mcp794xx_read_alarm()
722 dev_dbg(dev, "%s, sec=%d min=%d hour=%d wday=%d mday=%d mon=%d " mcp794xx_set_alarm()
733 /* Set alarm 0, using 24-hour and day-of-month modes. */ mcp794xx_set_alarm()
743 /* Set alarm match: second, minute, hour, day, date, month. */ mcp794xx_set_alarm()
1020 /* make sure we are running in 24hour mode */ ds1307_probe()
1022 u8 hour; ds1307_probe() local
1024 /* switch to 24 hour mode */ ds1307_probe()
1038 /* correct hour */ ds1307_probe()
1039 hour = bcd2bin(ds1307->regs[DS1307_REG_HOUR]); ds1307_probe()
1040 if (hour == 12) ds1307_probe()
1041 hour = 0; ds1307_probe()
1043 hour += 12; ds1307_probe()
1047 hour); ds1307_probe()
1158 * Be sure we're in 24 hour mode. Multi-master systems ds1307_probe()
H A Drtc-isl12022.c38 #define ISL12022_HR_MIL (1 << 7) /* military or 24 hour time */
107 * rtc_time -- month 0-11, hour 0-23, yr = calendar year-epoch.
185 "init write enable and 24 hour format\n"); isl12022_set_datetime()
195 * HR register, setting the MIL bit to use the 24 hour isl12022_set_datetime()
H A Drtc-ds3232.c108 unsigned int year, month, day, hour, minute, second; ds3232_read_time() local
121 hour = buf[2]; ds3232_read_time()
129 twelve_hr = hour & 0x40; ds3232_read_time()
130 am_pm = hour & 0x20; ds3232_read_time()
140 time->tm_hour = bcd2bin(hour & 0x1F) + 12; ds3232_read_time()
142 time->tm_hour = bcd2bin(hour & 0x1F); ds3232_read_time()
144 time->tm_hour = bcd2bin(hour); ds3232_read_time()
H A Drtc-m48t59.c211 u8 mday, hour, min, sec; m48t59_rtc_setalarm() local
235 hour = tm->tm_hour; m48t59_rtc_setalarm()
236 hour = (hour < 24) ? bin2bcd(hour) : 0x00; m48t59_rtc_setalarm()
249 M48T59_WRITE(hour, M48T59_ALARM_HOUR); m48t59_rtc_setalarm()
H A Drtc-ds1742.c93 unsigned int year, month, day, hour, minute, second, week; ds1742_rtc_read_time() local
103 hour = readb(ioaddr + RTC_HOURS); ds1742_rtc_read_time()
112 tm->tm_hour = bcd2bin(hour); ds1742_rtc_read_time()
H A Drtc-rs5c313.c223 /* Initialize control reg. 24 hour */ rs5c313_rtc_read_time()
284 /* Initiatlize control reg. 24 hour */ rs5c313_rtc_set_time()
341 /* Initialize control reg. 24 hour & adjust */ rs5c313_check_xstp_bit()
H A Drtc-ds1553.c106 unsigned int year, month, day, hour, minute, second, week; ds1553_rtc_read_time() local
116 hour = readb(ioaddr + RTC_HOURS); ds1553_rtc_read_time()
125 tm->tm_hour = bcd2bin(hour); ds1553_rtc_read_time()
H A Drtc-mxc.c59 #define RTC_HOURMIN 0x00 /* 32bit rtc hour/min counter reg */
61 #define RTC_ALRM_HM 0x08 /* 32bit rtc alarm hour/min reg */
151 /* time is within an hour now */ set_alarm_or_time()
H A Drtc-stk17ta8.c105 unsigned int year, month, day, hour, minute, second, week; stk17ta8_rtc_read_time() local
118 hour = readb(ioaddr + RTC_HOURS); stk17ta8_rtc_read_time()
127 tm->tm_hour = bcd2bin(hour); stk17ta8_rtc_read_time()
H A Drtc-x1205.c82 #define X1205_HR_MIL 0x80 /* Set in ccr.hour for 24 hr mode */
90 * rtc_time -- month 0-11, hour 0-23, yr = calendar year-epoch
193 "%s: sec=%d min=%d hour=%d mday=%d mon=%d year=%d wday=%d\n", x1205_set_datetime()
200 /* set hour and 24hr bit */ x1205_set_datetime()
H A Drtc-moxart.c199 if (v & 0x80) { /* 12-hour mode */ moxart_rtc_read_time()
206 } else { /* 24-hour mode */ moxart_rtc_read_time()
H A Drtc-opal.c105 * TPO get/set OPAL calls care about the hour and min and to make it consistent
170 /* TPO, we care about hour and minute */ opal_set_tpo_time()
H A Drtc-ds1302.c36 #define RTC_ADDR_HOUR 0x02 /* Address of hour register */
H A Drtc-ds1672.c30 * rtc_time -- month 0-11, hour 0-23, yr = calendar year-epoch
H A Drtc-m48t86.c75 /* correct the hour if the clock is in 12h mode */ m48t86_rtc_read_time()
H A Drtc-mcp795.c173 /* Clear the 12 hour mode flag*/ mcp795_probe()
H A Drtc-pcf85063.c44 * rtc_time -- month 0-11, hour 0-23, yr = calendar year-epoch.
H A Drtc-bfin.c90 u32 hour = (now % (60 * 60 * 24)) / (60 * 60); rtc_time_to_bfin() local
94 (hour << HOUR_BITS_OFF) + rtc_time_to_bfin()
H A Drtc-pcf8563.c191 * rtc_time -- month 0-11, hour 0-23, yr = calendar year-epoch.
375 dev_dbg(dev, "%s, min=%d hour=%d wday=%d mday=%d " pcf8563_rtc_set_alarm()
H A Drtc-hid-sensor-time.c58 "year", "month", "day", "hour", "minute", "second",
H A Drtc-max8925.c233 /* only enable alarm on year/month/day/hour/min/sec */ max8925_rtc_set_alarm()
H A Drtc-pcf2127.c45 * rtc_time -- month 0-11, hour 0-23, yr = calendar year-epoch.
H A Drtc-rs5c348.c84 /* hour 0 is AM12, noon is PM12 */ rs5c348_rtc_set_time()
H A Drtc-rx4581.c100 * rtc_time -- month 0-11, hour 0-23, yr = calendar year-epoch.
H A Drtc-vt8500.c233 /* Enable RTC and set it to 24-hour mode */ vt8500_rtc_probe()
H A Drtc-isl12057.c97 } else { /* 24 hour mode */ isl12057_rtc_regs_to_tm()
130 regs[ISL12057_REG_RTC_HR] = bin2bcd(tm->tm_hour); /* 24-hour format */ isl12057_rtc_tm_to_regs()
H A Drtc-sh.c41 #define RHRCNT RTC_REG(3) /* RTC hour */
48 #define RHRAR RTC_REG(10) /* ALARM hour */
H A Drtc-max77686.c403 /* Set RTC control register : Binary mode, 24hour mdoe */ max77686_rtc_init_reg()
H A Drtc-max77802.c374 /* Set RTC control register : Binary mode, 24hour mdoe */ max77802_rtc_init_reg()
H A Drtc-max8997.c437 /* Set RTC control register : Binary mode, 24hour mdoe */ max8997_rtc_init_reg()
H A Drtc-rk808.c271 * bit 2: every hour
H A Drtc-rx8581.c96 * rtc_time -- month 0-11, hour 0-23, yr = calendar year-epoch.
H A Drtc-wm8350.c393 dev_err(&pdev->dev, "RTC 12 hour mode not supported\n"); wm8350_rtc_probe()
H A Drtc-ds1685.c879 ((ctrlb & RTC_CTRL_B_2412) ? "24-hour" : "12-hour"), ds1685_rtc_proc()
1966 /* Force 24-hour mode (2412 = 1). */ ds1685_rtc_probe()
1975 /* Enable 24-hour mode. */ ds1685_rtc_probe()
2000 /* 24-hour mode is already set, so write Control B back. */ ds1685_rtc_probe()
H A Drtc-at91rm9200.c411 at91_rtc_write(AT91_RTC_MR, 0); /* 24 hour mode */ at91_rtc_probe()
H A Drtc-mrst.c152 /* Basic alarms only support hour, minute, and seconds fields. mrst_read_alarm()
H A Dinterface.c178 * to set up as e.g. "alarm 15 minutes after each hour". __rtc_read_alarm()
273 /* 24 hour rollover ... if it's now 10am Monday, an alarm that __rtc_read_alarm()
H A Drtc-cmos.c219 /* Basic alarms only support hour, minute, and seconds fields. cmos_read_alarm()
763 * <asm-generic/rtc.h> doesn't know 12-hour mode either. cmos_do_probe()
H A Drtc-omap.c605 /* force to 24 hour mode */ omap_rtc_probe()
H A Drtc-s5m.c627 /* Set RTC control register : Binary mode, 24hour mode */ s5m8767_rtc_init_reg()
H A Drtc-ab-b5ze-s3.c281 regs[ABB5ZES3_REG_RTC_HR] = bin2bcd(tm->tm_hour); /* 24-hour format */ abb5zes3_rtc_set_time()
/linux-4.1.27/arch/mips/include/asm/
H A Dmc146818-time.h28 * BUG: This routine does not handle hour overflow properly; it just
51 * don't interfere with hour overflow. This avoids mc146818_set_rtc_mmss()
58 real_minutes += 30; /* correct for half hour time zone */ mc146818_set_rtc_mmss()
91 unsigned int year, mon, day, hour, min, sec; mc146818_get_cmos_time() local
99 hour = CMOS_READ(RTC_HOURS); mc146818_get_cmos_time()
108 hour = bcd2bin(hour); mc146818_get_cmos_time()
116 return mktime(year, mon, day, hour, min, sec); mc146818_get_cmos_time()
H A Dm48t37.h24 volatile u8 hour; member in struct:m48t37_rtc
/linux-4.1.27/arch/m68k/sun3x/
H A Dtime.h12 volatile unsigned char hour; member in struct:mostek_dt
H A Dtime.c51 h->hour = bin2bcd(t->tm_hour); sun3x_hwclk()
61 t->tm_hour = bcd2bin(h->hour); sun3x_hwclk()
/linux-4.1.27/arch/sh/boards/mach-sh03/
H A Drtc.c42 unsigned int year, mon, day, hour, min, sec; get_cmos_time() local
49 hour = (__raw_readb(RTC_HOU1) & 0xf) + (__raw_readb(RTC_HOU10) & 0xf) * 10; get_cmos_time()
57 hour > 23 || min > 59 || sec > 59) { get_cmos_time()
60 printk("year=%d, mon=%d, day=%d, hour=%d, min=%d, sec=%d\n", get_cmos_time()
61 year, mon, day, hour, min, sec); get_cmos_time()
77 return mktime(year, mon, day, hour, min, sec); get_cmos_time()
102 real_minutes += 30; /* correct for half hour time zone */ set_rtc_mmss()
/linux-4.1.27/arch/powerpc/platforms/chrp/
H A Dtime.c131 unsigned int year, mon, day, hour, min, sec; chrp_get_rtc_time() local
136 hour = chrp_cmos_clock_read(RTC_HOURS); chrp_get_rtc_time()
145 hour = bcd2bin(hour); chrp_get_rtc_time()
154 tm->tm_hour = hour; chrp_get_rtc_time()
/linux-4.1.27/arch/frv/kernel/
H A Dtime.c90 unsigned int year, mon, day, hour, min, sec; read_persistent_clock() local
92 extern void arch_gettod(int *year, int *mon, int *day, int *hour, int *min, int *sec); read_persistent_clock()
99 hour = min = sec = 0; read_persistent_clock()
100 arch_gettod (&year, &mon, &day, &hour, &min, &sec); read_persistent_clock()
104 ts->tv_sec = mktime(year, mon, day, hour, min, sec); read_persistent_clock()
H A Dsetup.c1121 void arch_gettod(int *year, int *mon, int *day, int *hour, arch_gettod() argument
1124 *year = *mon = *day = *hour = *min = *sec = 0; arch_gettod()
/linux-4.1.27/arch/mips/dec/
H A Dtime.c23 unsigned int year, mon, day, hour, min, sec, real_year; read_persistent_clock() local
31 hour = CMOS_READ(RTC_HOURS); read_persistent_clock()
48 hour = bcd2bin(hour); read_persistent_clock()
56 ts->tv_sec = mktime(year, mon, day, hour, min, sec); read_persistent_clock()
89 * don't interfere with hour overflow. This avoids rtc_mips_set_mmss()
96 real_minutes += 30; /* correct for half hour time zone */ rtc_mips_set_mmss()
/linux-4.1.27/drivers/md/bcache/
H A Dstats.c18 * rescale each set of numbers; that gets us half lives of 5 minutes, one hour,
102 ret = ret ?: kobject_add(&acc->hour.kobj, parent, bch_cache_accounting_add_kobjs()
120 kobject_put(&acc->hour.kobj); bch_cache_accounting_destroy()
157 acc->hour.name += t; \ scale_accounting()
172 scale_stats(&acc->hour, HOUR_RESCALE); scale_accounting()
232 kobject_init(&acc->hour.kobj, &bch_stats_ktype); bch_cache_accounting_init()
H A Dstats.h37 struct cache_stats hour; member in struct:cache_accounting
/linux-4.1.27/fs/isofs/
H A Dutil.c20 int year, month, day, hour, minute, second, tz; iso_date() local
26 hour = p[3]; iso_date()
35 crtime = mktime64(year+1900, month, day, hour, minute, second); iso_date()
/linux-4.1.27/arch/sh/include/asm/
H A Drtc.h13 #define RTC_24H 0x02 /* 24 hour mode - else hours bit 7 means pm */
/linux-4.1.27/arch/m68k/include/asm/
H A Dintersil.h29 unsigned char hour; member in struct:intersil_dt
H A Drtc.h28 #define RTC_24H 0x02 /* 24 hour mode - else hours bit 7 means pm */
H A DMC68EZ328.h1076 #define RTCISR_DAY 0x0008 /* 24-hour rollover interrupt has occurred */
1078 #define RTCISR_HR 0x0020 /* 1-hour interrupt has occurred */
1097 #define RTCIENR_DAY 0x0008 /* 24-hour rollover interrupt enable */
1099 #define RTCIENR_HR 0x0020 /* 1-hour interrupt enable */
H A DMC68VZ328.h1172 #define RTCISR_DAY 0x0008 /* 24-hour rollover interrupt has occurred */
1174 #define RTCISR_HR 0x0020 /* 1-hour interrupt has occurred */
1193 #define RTCIENR_DAY 0x0008 /* 24-hour rollover interrupt enable */
1195 #define RTCIENR_HR 0x0020 /* 1-hour interrupt enable */
H A DMC68328.h1242 #define RTCISR_DAY 0x0008 /* 24-hour rollover interrupt has occurred */
1254 #define RTCIENR_DAY 0x0008 /* 24-hour rollover interrupt enable */
/linux-4.1.27/arch/m68k/sun3/
H A Dintersil.c48 todintersil->hour = t->tm_hour; sun3_hwclk()
58 t->tm_hour = todintersil->hour; sun3_hwclk()
/linux-4.1.27/arch/x86/kernel/
H A Drtc.c64 unsigned int status, year, mon, day, hour, min, sec, century = 0; mach_get_cmos_time() local
80 hour = CMOS_READ(RTC_HOURS); mach_get_cmos_time()
99 hour = bcd2bin(hour); mach_get_cmos_time()
111 now->tv_sec = mktime(year, mon, day, hour, min, sec); mach_get_cmos_time()
/linux-4.1.27/arch/x86/platform/intel-mid/
H A Dintel_mid_vrtc.c61 u8 sec, min, hour, mday, mon; vrtc_get_time() local
72 hour = vrtc_cmos_read(RTC_HOURS); vrtc_get_time()
82 pr_info("vRTC: sec: %d min: %d hour: %d day: %d " vrtc_get_time()
83 "mon: %d year: %d\n", sec, min, hour, mday, mon, year); vrtc_get_time()
85 now->tv_sec = mktime(year, mon, mday, hour, min, sec); vrtc_get_time()
/linux-4.1.27/arch/powerpc/platforms/maple/
H A Dtime.c86 int sec, min, hour, mon, mday, year; maple_set_rtc_time() local
100 hour = tm->tm_hour; maple_set_rtc_time()
108 hour = bin2bcd(hour); maple_set_rtc_time()
115 maple_clock_write(hour, RTC_HOURS); maple_set_rtc_time()
/linux-4.1.27/arch/arm/mach-footbridge/
H A Disa-rtc.c43 * (24 hour mode, update enabled) isa_rtc_init()
/linux-4.1.27/arch/mn10300/kernel/
H A Drtc.c48 * BUG: This routine does not handle hour overflow properly; it just
73 * don't interfere with hour overflow. This avoids set_rtc_mmss()
80 /* correct for half hour time zone */ set_rtc_mmss()
/linux-4.1.27/arch/m32r/kernel/
H A Dtime.c142 unsigned int epoch, year, mon, day, hour, min, sec; read_persistent_clock() local
144 sec = min = hour = day = mon = year = 0; read_persistent_clock()
160 ts->tv_sec = mktime(year, mon, day, hour, min, sec); read_persistent_clock()
/linux-4.1.27/drivers/staging/iio/accel/
H A Dadis16240.h44 /* Clock, hour and minute */
50 /* Wake-up setting, hour and minute */
/linux-4.1.27/arch/mn10300/include/asm/
H A Drtc-regs.h53 #define RTCRB_TM_12HR 0x00 /* - 12 hour format */
54 #define RTCRB_TM_24HR 0x02 /* - 24 hour format */
/linux-4.1.27/drivers/staging/rtl8188eu/include/
H A Dfw.h47 u8 hour; member in struct:rtl92c_firmware_header
/linux-4.1.27/drivers/char/
H A Defirtc.c109 eft->hour = wtime->tm_hour; convert_to_efi_time()
123 wtime->tm_hour = eft->hour; convert_from_efi_time()
322 eft.hour, eft.minute, eft.second, eft.nanosecond, efi_rtc_proc_show()
339 alm.hour, alm.minute, alm.second, alm.nanosecond, efi_rtc_proc_show()
/linux-4.1.27/include/linux/
H A Dtime.h43 const unsigned int day, const unsigned int hour,
51 const unsigned int hour, const unsigned int min, mktime()
54 return mktime64(year, mon, day, hour, min, sec); mktime()
166 /* the number of minutes after the hour, in the range 0 to 59*/
49 mktime(const unsigned int year, const unsigned int mon, const unsigned int day, const unsigned int hour, const unsigned int min, const unsigned int sec) mktime() argument
H A Dmc146818rtc.h97 # define RTC_24H 0x02 /* 24 hour mode - else hours bit 7 means pm */
H A Defi.h142 u8 hour; member in struct:__anon11626
/linux-4.1.27/arch/powerpc/include/asm/
H A Drtc.h42 #define RTC_24H 0x02 /* 24 hour mode - else hours bit 7 means pm */
H A Dsmu.h90 * [sec] [min] [hour] [weekday] [month day] [month] [year]
/linux-4.1.27/arch/alpha/include/asm/
H A Derr_common.h72 u8 hour; member in struct:el_timestamp::__anon57
/linux-4.1.27/fs/udf/
H A Dudftime.c113 dest->tv_sec += (((yday * 24) + src.hour) * 60 + src.minute) * 60 + src.second; udf_disk_stamp_to_time()
136 dest->hour = rem / SECS_PER_HOUR; udf_time_to_disk_stamp()
H A Decma_167.h65 uint8_t hour; member in struct:timestamp
H A Dsuper.c925 le16_to_cpu(ts->year), ts->month, ts->day, ts->hour, udf_load_pvoldesc()
2211 ts.hour, ts.minute, le16_to_cpu(ts.typeAndTimezone)); udf_fill_super()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8723com/
H A Dfw_common.h62 u8 hour; member in struct:rtl8723e_firmware_header
/linux-4.1.27/arch/parisc/include/asm/
H A Drtc.h32 #define RTC_24H 0x02 /* 24 hour mode - else hours bit 7 means pm */
/linux-4.1.27/net/netfilter/
H A Dxt_time.c23 u_int8_t hour; /* (0-23) */ member in struct:xtm
81 /* Each day has 86400s, so finding the hour/minute is actually easy. */ localtime_1()
86 r->hour = w / 60; localtime_1()
/linux-4.1.27/drivers/mfd/
H A Dmenelaus.c858 int hour, status; time_to_menelaus() local
869 hour = t->tm_hour + 1; time_to_menelaus()
870 if (hour > 12) time_to_menelaus()
871 hour = RTC_HR_PM | bin2bcd(hour - 12); time_to_menelaus()
873 hour = bin2bcd(hour); time_to_menelaus()
875 hour = bin2bcd(t->tm_hour); time_to_menelaus()
876 status = menelaus_write_reg(regnum++, hour); time_to_menelaus()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192c/
H A Dfw_common.h81 u8 hour; member in struct:rtl92c_firmware_header
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192de/
H A Dfw.h123 u8 hour; member in struct:rtl92d_firmware_header
/linux-4.1.27/crypto/asymmetric_keys/
H A Dx509_cert_parser.c502 unsigned year, mon, day, hour, min, sec, mon_len; x509_decode_time() local
529 hour = DD2bin(p); x509_decode_time()
551 hour < 0 || hour > 23 || x509_decode_time()
556 *_t = mktime64(year, mon, day, hour, min, sec); x509_decode_time()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192ee/
H A Dfw.h101 u8 hour; member in struct:rtl92c_firmware_header
/linux-4.1.27/include/asm-generic/
H A Drtc.h28 #define RTC_24H 0x02 /* 24 hour mode - else hours bit 7 means pm */
/linux-4.1.27/arch/ia64/hp/sim/boot/
H A Dfw-emu.c44 and store year, yday, mon, mday, wday, hour, min, sec into *TP.
69 tp->hour = rem / SECS_PER_HOUR; offtime()
/linux-4.1.27/arch/powerpc/kernel/
H A Drtas-proc.c400 unsigned int year, mon, day, hour, min, sec; ppc_rtas_clock_show() local
402 hour = ret[3]; min = ret[4]; sec = ret[5]; ppc_rtas_clock_show()
404 mktime(year, mon, day, hour, min, sec)); ppc_rtas_clock_show()
H A Deeh_driver.c671 pr_warn("EEH: This PCI device has failed %d times in the last hour\n", eeh_handle_normal_event()
790 "last hour and has been permanently disabled.\n" eeh_handle_normal_event()
H A Deeh_pe.c505 * frozen in last hour. The function should be called to update
507 * handle, we needn't account for errors happened in last hour.
H A Deeh.c109 * frozen count in last hour exceeds this limit, the PE will
/linux-4.1.27/kernel/time/
H A Dtime.c315 * => year=1980, mon=12, day=31, hour=23, min=59, sec=59.
325 const unsigned int day, const unsigned int hour, mktime64()
339 )*24 + hour /* now have hours */ mktime64()
324 mktime64(const unsigned int year0, const unsigned int mon0, const unsigned int day, const unsigned int hour, const unsigned int min, const unsigned int sec) mktime64() argument
/linux-4.1.27/net/netfilter/ipvs/
H A Dip_vs_lblc.c17 * no partial expire check in a half hour
71 * in a half hour, do a full expiration check to collect stale
H A Dip_vs_lblcr.c71 * in a half hour, do a full expiration check to collect stale
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8188ee/
H A Dfw.h143 u8 hour; member in struct:rtl92c_firmware_header
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8821ae/
H A Dfw.h149 u8 hour; member in struct:rtl8821a_firmware_header
/linux-4.1.27/drivers/base/power/
H A Dtrace.c44 * - hour: 0-23
/linux-4.1.27/include/acpi/
H A Dacbuffer.h82 u8 hour; member in struct:acpi_grt_info
/linux-4.1.27/drivers/watchdog/
H A Ddiag288_wdt.c39 #define MAX_INTERVAL 3600 /* One hour should be enough - pure estimation */
H A Dpcwd_pci.c109 3600, /* ON-ON-ON = 1 hour */
H A Dpcwd_usb.c108 3600, /* ON-ON-ON = 1 hour */
H A Dpcwd.c156 7200, /* ON-ON-ON = 2 hour */
/linux-4.1.27/include/uapi/linux/
H A Dtelephony.h101 char hour[3]; member in struct:__anon13715
/linux-4.1.27/arch/m68k/q40/
H A Dconfig.c220 * unsigned hour; 0..23
/linux-4.1.27/arch/alpha/kernel/
H A Derr_common.c176 timestamp->b.year, timestamp->b.hour,
H A Drtc.c162 /* correct for half hour time zone */ alpha_rtc_set_mmss()
/linux-4.1.27/fs/fat/
H A Dmisc.c171 * time: 11 - 15: hour (0 - 23)
/linux-4.1.27/drivers/media/rc/
H A Dimon.c688 * hour - 0..23, minute - 0..59, second - 0..59
693 unsigned int hour, unsigned int minute, send_set_imon_clock()
711 clock_enable_pkt[0][4] = hour; send_set_imon_clock()
738 clock_enable_pkt[0][4] = hour; send_set_imon_clock()
849 unsigned int year, month, day, dow, hour, minute, second; store_imon_clock() local
865 &hour, &minute, &second) != 7) { store_imon_clock()
872 (hour > 23) || (minute > 59) || (second > 59)) { store_imon_clock()
878 hour, minute, second); store_imon_clock()
690 send_set_imon_clock(struct imon_context *ictx, unsigned int year, unsigned int month, unsigned int day, unsigned int dow, unsigned int hour, unsigned int minute, unsigned int second) send_set_imon_clock() argument
/linux-4.1.27/arch/m68k/bvme6000/
H A Dconfig.c261 * unsigned hour; 0..23
/linux-4.1.27/security/tomoyo/
H A Daudit.c166 stamp.day, stamp.hour, stamp.min, stamp.sec, r->profile, tomoyo_print_header()
H A Dutil.c103 stamp->hour = time % 24; tomoyo_convert_time()
H A Dcommon.h891 u8 hour; member in struct:tomoyo_time
H A Dcommon.c2300 stamp.hour, stamp.min, stamp.sec); tomoyo_read_stat()
/linux-4.1.27/drivers/infiniband/hw/ipath/
H A Dipath_eeprom.c957 * now update active-time. We would like to round to the nearest hour ipath_update_eeprom_log()
960 * if we log an hour at 31 minutes, then we would need to set ipath_update_eeprom_log()
961 * active_time to -29 to accurately count the _next_ hour. ipath_update_eeprom_log()
/linux-4.1.27/drivers/staging/unisys/common-spar/include/channels/
H A Ddiagchannel.h113 u8 hour; /* 0 - 23 */ member in struct:diag_efi_time
/linux-4.1.27/include/xen/interface/
H A Dplatform.h140 uint8_t hour; member in struct:xenpf_efi_runtime_call::__anon13918::__anon13919::xenpf_efi_time
/linux-4.1.27/fs/nfsd/
H A Dnfsctl.c954 * to take more than an hour? Or to make other __nfsd4_write_time()
955 * clients wait an hour before being able to __nfsd4_write_time()
/linux-4.1.27/drivers/net/wireless/ath/wil6210/
H A Dwmi.h643 u8 hour; member in struct:wmi_notify_req_cmd
/linux-4.1.27/sound/oss/
H A Daudio.c651 dmap->bytes_in_use; /* Approximately one hour */ reorganize_buffers()
/linux-4.1.27/drivers/scsi/esas2r/
H A Datvda.h609 u8 hour; member in struct:atto_vda_schedule_info
/linux-4.1.27/drivers/scsi/
H A Dips.h570 uint8_t hour; member in struct:__anon9007
H A Dips.c6029 scb->cmd.ffdc.hour = (rem / IPS_SECS_HOUR); ips_fix_ffdc_time()
/linux-4.1.27/drivers/infiniband/hw/nes/
H A Dnes_utils.c896 nesadapter->lc_timer.expires = jiffies + 3600 * HZ; /* 1 hour */ nes_clc()
H A Dnes_hw.c620 nesadapter->lc_timer.expires = jiffies + 3600 * HZ; /* 1 hour */ nes_init_adapter()
/linux-4.1.27/arch/x86/platform/efi/
H A Defi.c115 now->tv_sec = mktime(eft.year, eft.month, eft.day, eft.hour, efi_get_time()
/linux-4.1.27/arch/ia64/kernel/
H A Defi.c249 tm.hour, tm.minute, tm.second); STUB_GET_TIME()
/linux-4.1.27/drivers/ide/
H A Dide-tape.c89 * range from several seconds to even an hour). Again, we postpone our request
/linux-4.1.27/drivers/power/
H A Dabx500_chargalg.c41 /* One hour expressed in seconds */
/linux-4.1.27/tools/testing/ktest/
H A Dktest.pl579 doprint "$hours hour";
/linux-4.1.27/drivers/md/
H A Draid10.c2286 * We halve the read error count for every hour that has elapsed
H A Dmd.c86 * count by 2 for every hour elapsed between read errors.
/linux-4.1.27/drivers/net/ethernet/neterion/
H A Ds2io.c4431 /* waiting for an hour */ s2io_handle_errors()

Completed in 10865 milliseconds