/linux-4.1.27/arch/m68k/atari/ |
H A D | time.c | 109 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 D | rtc_xicor1241.c | 147 /* 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 D | rtc_m41t81.c | 69 #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 D | rtc-ds1216.c | 20 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 D | rtc-m41t94.c | 63 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 D | rtc-s35390a.c | 126 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 D | rtc-mpc5121.c | 45 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(®s->hour) & 0x20) mpc5200_rtc_read_time() 163 tm->tm_hour = (in_8(®s->hour) >> 1) + mpc5200_rtc_read_time() 164 (in_8(®s->hour) & 1 ? 12 : 0); mpc5200_rtc_read_time() 166 tm->tm_hour = in_8(®s->hour); mpc5200_rtc_read_time()
|
H A D | rtc-mv.c | 73 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 D | rtc-ds1305.c | 31 * - 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 D | rtc-rs5c372.c | 156 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 D | rtc-efi.c | 74 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 D | rtc-m48t35.c | 32 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 D | rtc-msm6242.c | 26 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 D | rtc-ds1307.c | 493 * 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 D | rtc-isl12022.c | 38 #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 D | rtc-ds3232.c | 108 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 D | rtc-m48t59.c | 211 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 D | rtc-ds1742.c | 93 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 D | rtc-rs5c313.c | 223 /* 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 D | rtc-ds1553.c | 106 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 D | rtc-mxc.c | 59 #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 D | rtc-stk17ta8.c | 105 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 D | rtc-x1205.c | 82 #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 D | rtc-moxart.c | 199 if (v & 0x80) { /* 12-hour mode */ moxart_rtc_read_time() 206 } else { /* 24-hour mode */ moxart_rtc_read_time()
|
H A D | rtc-opal.c | 105 * 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 D | rtc-ds1302.c | 36 #define RTC_ADDR_HOUR 0x02 /* Address of hour register */
|
H A D | rtc-ds1672.c | 30 * rtc_time -- month 0-11, hour 0-23, yr = calendar year-epoch
|
H A D | rtc-m48t86.c | 75 /* correct the hour if the clock is in 12h mode */ m48t86_rtc_read_time()
|
H A D | rtc-mcp795.c | 173 /* Clear the 12 hour mode flag*/ mcp795_probe()
|
H A D | rtc-pcf85063.c | 44 * rtc_time -- month 0-11, hour 0-23, yr = calendar year-epoch.
|
H A D | rtc-bfin.c | 90 u32 hour = (now % (60 * 60 * 24)) / (60 * 60); rtc_time_to_bfin() local 94 (hour << HOUR_BITS_OFF) + rtc_time_to_bfin()
|
H A D | rtc-pcf8563.c | 191 * 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 D | rtc-hid-sensor-time.c | 58 "year", "month", "day", "hour", "minute", "second",
|
H A D | rtc-max8925.c | 233 /* only enable alarm on year/month/day/hour/min/sec */ max8925_rtc_set_alarm()
|
H A D | rtc-pcf2127.c | 45 * rtc_time -- month 0-11, hour 0-23, yr = calendar year-epoch.
|
H A D | rtc-rs5c348.c | 84 /* hour 0 is AM12, noon is PM12 */ rs5c348_rtc_set_time()
|
H A D | rtc-rx4581.c | 100 * rtc_time -- month 0-11, hour 0-23, yr = calendar year-epoch.
|
H A D | rtc-vt8500.c | 233 /* Enable RTC and set it to 24-hour mode */ vt8500_rtc_probe()
|
H A D | rtc-isl12057.c | 97 } 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 D | rtc-sh.c | 41 #define RHRCNT RTC_REG(3) /* RTC hour */ 48 #define RHRAR RTC_REG(10) /* ALARM hour */
|
H A D | rtc-max77686.c | 403 /* Set RTC control register : Binary mode, 24hour mdoe */ max77686_rtc_init_reg()
|
H A D | rtc-max77802.c | 374 /* Set RTC control register : Binary mode, 24hour mdoe */ max77802_rtc_init_reg()
|
H A D | rtc-max8997.c | 437 /* Set RTC control register : Binary mode, 24hour mdoe */ max8997_rtc_init_reg()
|
H A D | rtc-rk808.c | 271 * bit 2: every hour
|
H A D | rtc-rx8581.c | 96 * rtc_time -- month 0-11, hour 0-23, yr = calendar year-epoch.
|
H A D | rtc-wm8350.c | 393 dev_err(&pdev->dev, "RTC 12 hour mode not supported\n"); wm8350_rtc_probe()
|
H A D | rtc-ds1685.c | 879 ((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 D | rtc-at91rm9200.c | 411 at91_rtc_write(AT91_RTC_MR, 0); /* 24 hour mode */ at91_rtc_probe()
|
H A D | rtc-mrst.c | 152 /* Basic alarms only support hour, minute, and seconds fields. mrst_read_alarm()
|
H A D | interface.c | 178 * 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 D | rtc-cmos.c | 219 /* 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 D | rtc-omap.c | 605 /* force to 24 hour mode */ omap_rtc_probe()
|
H A D | rtc-s5m.c | 627 /* Set RTC control register : Binary mode, 24hour mode */ s5m8767_rtc_init_reg()
|
H A D | rtc-ab-b5ze-s3.c | 281 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 D | mc146818-time.h | 28 * 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 D | m48t37.h | 24 volatile u8 hour; member in struct:m48t37_rtc
|
/linux-4.1.27/arch/m68k/sun3x/ |
H A D | time.h | 12 volatile unsigned char hour; member in struct:mostek_dt
|
H A D | time.c | 51 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 D | rtc.c | 42 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 D | time.c | 131 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 D | time.c | 90 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 D | setup.c | 1121 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 D | time.c | 23 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 D | stats.c | 18 * 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 D | stats.h | 37 struct cache_stats hour; member in struct:cache_accounting
|
/linux-4.1.27/fs/isofs/ |
H A D | util.c | 20 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 D | rtc.h | 13 #define RTC_24H 0x02 /* 24 hour mode - else hours bit 7 means pm */
|
/linux-4.1.27/arch/m68k/include/asm/ |
H A D | intersil.h | 29 unsigned char hour; member in struct:intersil_dt
|
H A D | rtc.h | 28 #define RTC_24H 0x02 /* 24 hour mode - else hours bit 7 means pm */
|
H A D | MC68EZ328.h | 1076 #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 D | MC68VZ328.h | 1172 #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 D | MC68328.h | 1242 #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 D | intersil.c | 48 todintersil->hour = t->tm_hour; sun3_hwclk() 58 t->tm_hour = todintersil->hour; sun3_hwclk()
|
/linux-4.1.27/arch/x86/kernel/ |
H A D | rtc.c | 64 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 D | intel_mid_vrtc.c | 61 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 D | time.c | 86 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 D | isa-rtc.c | 43 * (24 hour mode, update enabled) isa_rtc_init()
|
/linux-4.1.27/arch/mn10300/kernel/ |
H A D | rtc.c | 48 * 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 D | time.c | 142 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 D | adis16240.h | 44 /* Clock, hour and minute */ 50 /* Wake-up setting, hour and minute */
|
/linux-4.1.27/arch/mn10300/include/asm/ |
H A D | rtc-regs.h | 53 #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 D | fw.h | 47 u8 hour; member in struct:rtl92c_firmware_header
|
/linux-4.1.27/drivers/char/ |
H A D | efirtc.c | 109 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 D | time.h | 43 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 D | mc146818rtc.h | 97 # define RTC_24H 0x02 /* 24 hour mode - else hours bit 7 means pm */
|
H A D | efi.h | 142 u8 hour; member in struct:__anon11626
|
/linux-4.1.27/arch/powerpc/include/asm/ |
H A D | rtc.h | 42 #define RTC_24H 0x02 /* 24 hour mode - else hours bit 7 means pm */
|
H A D | smu.h | 90 * [sec] [min] [hour] [weekday] [month day] [month] [year]
|
/linux-4.1.27/arch/alpha/include/asm/ |
H A D | err_common.h | 72 u8 hour; member in struct:el_timestamp::__anon57
|
/linux-4.1.27/fs/udf/ |
H A D | udftime.c | 113 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 D | ecma_167.h | 65 uint8_t hour; member in struct:timestamp
|
H A D | super.c | 925 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 D | fw_common.h | 62 u8 hour; member in struct:rtl8723e_firmware_header
|
/linux-4.1.27/arch/parisc/include/asm/ |
H A D | rtc.h | 32 #define RTC_24H 0x02 /* 24 hour mode - else hours bit 7 means pm */
|
/linux-4.1.27/net/netfilter/ |
H A D | xt_time.c | 23 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 D | menelaus.c | 858 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 D | fw_common.h | 81 u8 hour; member in struct:rtl92c_firmware_header
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192de/ |
H A D | fw.h | 123 u8 hour; member in struct:rtl92d_firmware_header
|
/linux-4.1.27/crypto/asymmetric_keys/ |
H A D | x509_cert_parser.c | 502 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 D | fw.h | 101 u8 hour; member in struct:rtl92c_firmware_header
|
/linux-4.1.27/include/asm-generic/ |
H A D | rtc.h | 28 #define RTC_24H 0x02 /* 24 hour mode - else hours bit 7 means pm */
|
/linux-4.1.27/arch/ia64/hp/sim/boot/ |
H A D | fw-emu.c | 44 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 D | rtas-proc.c | 400 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 D | eeh_driver.c | 671 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 D | eeh_pe.c | 505 * 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 D | eeh.c | 109 * frozen count in last hour exceeds this limit, the PE will
|
/linux-4.1.27/kernel/time/ |
H A D | time.c | 315 * => 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 D | ip_vs_lblc.c | 17 * no partial expire check in a half hour 71 * in a half hour, do a full expiration check to collect stale
|
H A D | ip_vs_lblcr.c | 71 * in a half hour, do a full expiration check to collect stale
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8188ee/ |
H A D | fw.h | 143 u8 hour; member in struct:rtl92c_firmware_header
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8821ae/ |
H A D | fw.h | 149 u8 hour; member in struct:rtl8821a_firmware_header
|
/linux-4.1.27/drivers/base/power/ |
H A D | trace.c | 44 * - hour: 0-23
|
/linux-4.1.27/include/acpi/ |
H A D | acbuffer.h | 82 u8 hour; member in struct:acpi_grt_info
|
/linux-4.1.27/drivers/watchdog/ |
H A D | diag288_wdt.c | 39 #define MAX_INTERVAL 3600 /* One hour should be enough - pure estimation */
|
H A D | pcwd_pci.c | 109 3600, /* ON-ON-ON = 1 hour */
|
H A D | pcwd_usb.c | 108 3600, /* ON-ON-ON = 1 hour */
|
H A D | pcwd.c | 156 7200, /* ON-ON-ON = 2 hour */
|
/linux-4.1.27/include/uapi/linux/ |
H A D | telephony.h | 101 char hour[3]; member in struct:__anon13715
|
/linux-4.1.27/arch/m68k/q40/ |
H A D | config.c | 220 * unsigned hour; 0..23
|
/linux-4.1.27/arch/alpha/kernel/ |
H A D | err_common.c | 176 timestamp->b.year, timestamp->b.hour,
|
H A D | rtc.c | 162 /* correct for half hour time zone */ alpha_rtc_set_mmss()
|
/linux-4.1.27/fs/fat/ |
H A D | misc.c | 171 * time: 11 - 15: hour (0 - 23)
|
/linux-4.1.27/drivers/media/rc/ |
H A D | imon.c | 688 * 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 D | config.c | 261 * unsigned hour; 0..23
|
/linux-4.1.27/security/tomoyo/ |
H A D | audit.c | 166 stamp.day, stamp.hour, stamp.min, stamp.sec, r->profile, tomoyo_print_header()
|
H A D | util.c | 103 stamp->hour = time % 24; tomoyo_convert_time()
|
H A D | common.h | 891 u8 hour; member in struct:tomoyo_time
|
H A D | common.c | 2300 stamp.hour, stamp.min, stamp.sec); tomoyo_read_stat()
|
/linux-4.1.27/drivers/infiniband/hw/ipath/ |
H A D | ipath_eeprom.c | 957 * 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 D | diagchannel.h | 113 u8 hour; /* 0 - 23 */ member in struct:diag_efi_time
|
/linux-4.1.27/include/xen/interface/ |
H A D | platform.h | 140 uint8_t hour; member in struct:xenpf_efi_runtime_call::__anon13918::__anon13919::xenpf_efi_time
|
/linux-4.1.27/fs/nfsd/ |
H A D | nfsctl.c | 954 * 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 D | wmi.h | 643 u8 hour; member in struct:wmi_notify_req_cmd
|
/linux-4.1.27/sound/oss/ |
H A D | audio.c | 651 dmap->bytes_in_use; /* Approximately one hour */ reorganize_buffers()
|
/linux-4.1.27/drivers/scsi/esas2r/ |
H A D | atvda.h | 609 u8 hour; member in struct:atto_vda_schedule_info
|
/linux-4.1.27/drivers/scsi/ |
H A D | ips.h | 570 uint8_t hour; member in struct:__anon9007
|
H A D | ips.c | 6029 scb->cmd.ffdc.hour = (rem / IPS_SECS_HOUR); ips_fix_ffdc_time()
|
/linux-4.1.27/drivers/infiniband/hw/nes/ |
H A D | nes_utils.c | 896 nesadapter->lc_timer.expires = jiffies + 3600 * HZ; /* 1 hour */ nes_clc()
|
H A D | nes_hw.c | 620 nesadapter->lc_timer.expires = jiffies + 3600 * HZ; /* 1 hour */ nes_init_adapter()
|
/linux-4.1.27/arch/x86/platform/efi/ |
H A D | efi.c | 115 now->tv_sec = mktime(eft.year, eft.month, eft.day, eft.hour, efi_get_time()
|
/linux-4.1.27/arch/ia64/kernel/ |
H A D | efi.c | 249 tm.hour, tm.minute, tm.second); STUB_GET_TIME()
|
/linux-4.1.27/drivers/ide/ |
H A D | ide-tape.c | 89 * range from several seconds to even an hour). Again, we postpone our request
|
/linux-4.1.27/drivers/power/ |
H A D | abx500_chargalg.c | 41 /* One hour expressed in seconds */
|
/linux-4.1.27/tools/testing/ktest/ |
H A D | ktest.pl | 579 doprint "$hours hour";
|
/linux-4.1.27/drivers/md/ |
H A D | raid10.c | 2286 * We halve the read error count for every hour that has elapsed
|
H A D | md.c | 86 * count by 2 for every hour elapsed between read errors.
|
/linux-4.1.27/drivers/net/ethernet/neterion/ |
H A D | s2io.c | 4431 /* waiting for an hour */ s2io_handle_errors()
|