Home
last modified time | relevance | path

Searched +full:start +full:- +full:year (Results 1 – 25 of 243) sorted by relevance

12345678910

/kernel/linux/linux-5.10/arch/x86/platform/intel-mid/
Dintel_mid_vrtc.c1 // SPDX-License-Identifier: GPL-2.0-only
23 #include <asm/intel-mid.h>
60 u32 year; in vrtc_get_time() local
72 year = vrtc_cmos_read(RTC_YEAR); in vrtc_get_time()
76 /* vRTC YEAR reg contains the offset to 1972 */ in vrtc_get_time()
77 year += 1972; in vrtc_get_time()
80 "mon: %d year: %d\n", sec, min, hour, mday, mon, year); in vrtc_get_time()
82 now->tv_sec = mktime64(year, mon, mday, hour, min, sec); in vrtc_get_time()
83 now->tv_nsec = 0; in vrtc_get_time()
90 int year; in vrtc_set_mmss() local
[all …]
/kernel/linux/linux-6.6/arch/mips/dec/
Dtime.c1 // SPDX-License-Identifier: GPL-2.0
6 * This file contains the time handling details for PC-style clocks as
15 #include <asm/cpu-features.h>
24 unsigned int year, mon, day, hour, min, sec, real_year; in read_persistent_clock64() local
35 year = CMOS_READ(RTC_YEAR); in read_persistent_clock64()
37 * The PROM will reset the year to either '72 or '73. in read_persistent_clock64()
38 * Therefore we store the real year separately, in one in read_persistent_clock64()
52 year = bcd2bin(year); in read_persistent_clock64()
55 year += real_year - 72 + 2000; in read_persistent_clock64()
57 ts->tv_sec = mktime64(year, mon, day, hour, min, sec); in read_persistent_clock64()
[all …]
/kernel/linux/linux-5.10/arch/mips/dec/
Dtime.c1 // SPDX-License-Identifier: GPL-2.0
6 * This file contains the time handling details for PC-style clocks as
15 #include <asm/cpu-features.h>
24 unsigned int year, mon, day, hour, min, sec, real_year; in read_persistent_clock64() local
35 year = CMOS_READ(RTC_YEAR); in read_persistent_clock64()
37 * The PROM will reset the year to either '72 or '73. in read_persistent_clock64()
38 * Therefore we store the real year separately, in one in read_persistent_clock64()
52 year = bcd2bin(year); in read_persistent_clock64()
55 year += real_year - 72 + 2000; in read_persistent_clock64()
57 ts->tv_sec = mktime64(year, mon, day, hour, min, sec); in read_persistent_clock64()
[all …]
/kernel/linux/linux-5.10/arch/x86/kernel/
Drtc.c1 // SPDX-License-Identifier: GPL-2.0
16 #include <asm/intel-mid.h>
23 * CMOS/RTC registers. See include/asm-i386/mc146818rtc.h for details.
44 unsigned long long nowtime = now->tv_sec; in mach_set_rtc_mmss()
58 retval = -EINVAL; in mach_set_rtc_mmss()
65 unsigned int status, year, mon, day, hour, min, sec, century = 0; in mach_get_cmos_time() local
73 now->tv_sec = now->tv_nsec = 0; in mach_get_cmos_time()
82 * is the reliable way to read RTC - registers. If UIP is set in mach_get_cmos_time()
93 year = CMOS_READ(RTC_YEAR); in mach_get_cmos_time()
112 year = bcd2bin(year); in mach_get_cmos_time()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/platforms/maple/
Dtime.c1 // SPDX-License-Identifier: GPL-2.0-or-later
54 tm->tm_sec = maple_clock_read(RTC_SECONDS); in maple_get_rtc_time()
55 tm->tm_min = maple_clock_read(RTC_MINUTES); in maple_get_rtc_time()
56 tm->tm_hour = maple_clock_read(RTC_HOURS); in maple_get_rtc_time()
57 tm->tm_mday = maple_clock_read(RTC_DAY_OF_MONTH); in maple_get_rtc_time()
58 tm->tm_mon = maple_clock_read(RTC_MONTH); in maple_get_rtc_time()
59 tm->tm_year = maple_clock_read(RTC_YEAR); in maple_get_rtc_time()
60 } while (tm->tm_sec != maple_clock_read(RTC_SECONDS)); in maple_get_rtc_time()
64 tm->tm_sec = bcd2bin(tm->tm_sec); in maple_get_rtc_time()
65 tm->tm_min = bcd2bin(tm->tm_min); in maple_get_rtc_time()
[all …]
/kernel/linux/linux-6.6/arch/powerpc/platforms/maple/
Dtime.c1 // SPDX-License-Identifier: GPL-2.0-or-later
54 tm->tm_sec = maple_clock_read(RTC_SECONDS); in maple_get_rtc_time()
55 tm->tm_min = maple_clock_read(RTC_MINUTES); in maple_get_rtc_time()
56 tm->tm_hour = maple_clock_read(RTC_HOURS); in maple_get_rtc_time()
57 tm->tm_mday = maple_clock_read(RTC_DAY_OF_MONTH); in maple_get_rtc_time()
58 tm->tm_mon = maple_clock_read(RTC_MONTH); in maple_get_rtc_time()
59 tm->tm_year = maple_clock_read(RTC_YEAR); in maple_get_rtc_time()
60 } while (tm->tm_sec != maple_clock_read(RTC_SECONDS)); in maple_get_rtc_time()
64 tm->tm_sec = bcd2bin(tm->tm_sec); in maple_get_rtc_time()
65 tm->tm_min = bcd2bin(tm->tm_min); in maple_get_rtc_time()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/platforms/chrp/
Dtime.c1 // SPDX-License-Identifier: GPL-2.0
51 rtcs = of_find_compatible_node(NULL, "rtc", "ds1385-rtc"); in chrp_time_init()
60 base = r.start; in chrp_time_init()
86 * Set the hardware clock. -- Cort
123 * sheets anyway ... -- Markus Kuhn in chrp_set_rtc_time()
134 unsigned int year, mon, day, hour, min, sec; in chrp_get_rtc_time() local
142 year = chrp_cmos_clock_read(RTC_YEAR); in chrp_get_rtc_time()
151 year = bcd2bin(year); in chrp_get_rtc_time()
153 if (year < 70) in chrp_get_rtc_time()
154 year += 100; in chrp_get_rtc_time()
[all …]
/kernel/linux/linux-6.6/arch/powerpc/platforms/chrp/
Dtime.c1 // SPDX-License-Identifier: GPL-2.0
49 rtcs = of_find_compatible_node(NULL, "rtc", "ds1385-rtc"); in chrp_time_init()
58 base = r.start; in chrp_time_init()
84 * Set the hardware clock. -- Cort
121 * sheets anyway ... -- Markus Kuhn in chrp_set_rtc_time()
132 unsigned int year, mon, day, hour, min, sec; in chrp_get_rtc_time() local
140 year = chrp_cmos_clock_read(RTC_YEAR); in chrp_get_rtc_time()
149 year = bcd2bin(year); in chrp_get_rtc_time()
151 if (year < 70) in chrp_get_rtc_time()
152 year += 100; in chrp_get_rtc_time()
[all …]
/kernel/linux/linux-5.10/arch/m68k/atari/
Dtime.c6 * Assembled of parts of former atari/config.c 97-12-18 by Roman Hodek
62 /* start timer C, div = 1:100 */ in atari_sched_init()
82 * the result may briefly stop changing after counter wrap-around. in atari_read_clk()
87 ticks = INT_TICKS - count; in atari_read_clk()
97 #define COPY(v) val->v=(mste_rtc.v & 0xf) in mste_read()
105 } while (val->sec_ones != (mste_rtc.sec_ones & 0xf)); in mste_read()
111 #define COPY(v) mste_rtc.v=val->v in mste_write()
119 } while (val->sec_ones != (mste_rtc.sec_ones & 0xf)); in mste_write()
141 int hour, year; in atari_mste_hwclk() local
152 val.sec_ones = t->tm_sec % 10; in atari_mste_hwclk()
[all …]
/kernel/linux/linux-6.6/arch/m68k/atari/
Dtime.c6 * Assembled of parts of former atari/config.c 97-12-18 by Roman Hodek
63 /* start timer C, div = 1:100 */ in atari_sched_init()
83 * the result may briefly stop changing after counter wrap-around. in atari_read_clk()
88 ticks = INT_TICKS - count; in atari_read_clk()
98 #define COPY(v) val->v=(mste_rtc.v & 0xf) in mste_read()
106 } while (val->sec_ones != (mste_rtc.sec_ones & 0xf)); in mste_read()
112 #define COPY(v) mste_rtc.v=val->v in mste_write()
120 } while (val->sec_ones != (mste_rtc.sec_ones & 0xf)); in mste_write()
142 int hour, year; in atari_mste_hwclk() local
153 val.sec_ones = t->tm_sec % 10; in atari_mste_hwclk()
[all …]
/kernel/linux/linux-6.6/drivers/rtc/
Drtc-lp8788.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * TI LP8788 MFD - rtc driver
100 return LP8788_WDAY_SET << (tm_wday - 1); in _to_lp8788_wday()
112 struct lp8788 *lp = rtc->lp; in lp8788_rtc_read_time()
122 tm->tm_sec = data[LPTIME_SEC]; in lp8788_rtc_read_time()
123 tm->tm_min = data[LPTIME_MIN]; in lp8788_rtc_read_time()
124 tm->tm_hour = data[LPTIME_HOUR]; in lp8788_rtc_read_time()
125 tm->tm_mday = data[LPTIME_MDAY]; in lp8788_rtc_read_time()
126 tm->tm_mon = data[LPTIME_MON] - LP8788_MONTH_OFFSET; in lp8788_rtc_read_time()
127 tm->tm_year = data[LPTIME_YEAR] + LP8788_BASE_YEAR - 1900; in lp8788_rtc_read_time()
[all …]
Drtc-m48t35.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Driver for the SGS-Thomson M48T35 Timekeeper RAM chip
28 u8 year; member
40 u8 year; member
64 * by the RTC when initially set to a non-zero value. in m48t35_read_time()
66 spin_lock_irq(&priv->lock); in m48t35_read_time()
67 control = readb(&priv->reg->control); in m48t35_read_time()
68 writeb(control | M48T35_RTC_READ, &priv->reg->control); in m48t35_read_time()
69 tm->tm_sec = readb(&priv->reg->sec); in m48t35_read_time()
70 tm->tm_min = readb(&priv->reg->min); in m48t35_read_time()
[all …]
Drtc-bq4802.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* rtc-bq4802.c: TI BQ4802 RTC driver.
32 return inb(p->ioport + off); in bq4802_read_io()
37 outb(val, p->ioport + off); in bq4802_write_io()
42 return readb(p->regs + off); in bq4802_read_mem()
47 writeb(val, p->regs + off); in bq4802_write_mem()
57 spin_lock_irqsave(&p->lock, flags); in bq4802_read_time()
59 val = p->read(p, 0x0e); in bq4802_read_time()
60 p->write(p, 0xe, val | 0x08); in bq4802_read_time()
62 tm->tm_sec = p->read(p, 0x00); in bq4802_read_time()
[all …]
Drtc-sh.c1 // SPDX-License-Identifier: GPL-2.0
3 * SuperH On-Chip RTC Support
5 * Copyright (C) 2006 - 2009 Paul Mundt
38 #define DRV_NAME "sh-rtc"
50 #define RYRCNT RTC_REG(7) /* RTC year */
72 /* ALARM Bits - or with BCD encoded value */
92 #define RCR2_ADJ 0x04 /* ADJustment (30-second) */
94 #define RCR2_START 0x01 /* Start bit */
114 tmp = readb(rtc->regbase + RCR1); in __sh_rtc_interrupt()
117 writeb(tmp, rtc->regbase + RCR1); in __sh_rtc_interrupt()
[all …]
/kernel/linux/linux-5.10/drivers/rtc/
Drtc-lp8788.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * TI LP8788 MFD - rtc driver
100 return LP8788_WDAY_SET << (tm_wday - 1); in _to_lp8788_wday()
112 struct lp8788 *lp = rtc->lp; in lp8788_rtc_read_time()
122 tm->tm_sec = data[LPTIME_SEC]; in lp8788_rtc_read_time()
123 tm->tm_min = data[LPTIME_MIN]; in lp8788_rtc_read_time()
124 tm->tm_hour = data[LPTIME_HOUR]; in lp8788_rtc_read_time()
125 tm->tm_mday = data[LPTIME_MDAY]; in lp8788_rtc_read_time()
126 tm->tm_mon = data[LPTIME_MON] - LP8788_MONTH_OFFSET; in lp8788_rtc_read_time()
127 tm->tm_year = data[LPTIME_YEAR] + LP8788_BASE_YEAR - 1900; in lp8788_rtc_read_time()
[all …]
Drtc-m48t35.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Driver for the SGS-Thomson M48T35 Timekeeper RAM chip
28 u8 year; member
40 u8 year; member
64 * by the RTC when initially set to a non-zero value. in m48t35_read_time()
66 spin_lock_irq(&priv->lock); in m48t35_read_time()
67 control = readb(&priv->reg->control); in m48t35_read_time()
68 writeb(control | M48T35_RTC_READ, &priv->reg->control); in m48t35_read_time()
69 tm->tm_sec = readb(&priv->reg->sec); in m48t35_read_time()
70 tm->tm_min = readb(&priv->reg->min); in m48t35_read_time()
[all …]
Drtc-bq4802.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* rtc-bq4802.c: TI BQ4802 RTC driver.
32 return inb(p->ioport + off); in bq4802_read_io()
37 outb(val, p->ioport + off); in bq4802_write_io()
42 return readb(p->regs + off); in bq4802_read_mem()
47 writeb(val, p->regs + off); in bq4802_write_mem()
57 spin_lock_irqsave(&p->lock, flags); in bq4802_read_time()
59 val = p->read(p, 0x0e); in bq4802_read_time()
60 p->write(p, 0xe, val | 0x08); in bq4802_read_time()
62 tm->tm_sec = p->read(p, 0x00); in bq4802_read_time()
[all …]
Drtc-pcf8523.c1 // SPDX-License-Identifier: GPL-2.0-only
12 #define DRIVER_NAME "rtc-pcf8523"
20 #define REG_CONTROL3_PM_VDD (1 << 6) /* switch-over disabled */
23 #define REG_CONTROL3_BLF (1 << 2) /* battery low bit, read-only */
44 msgs[0].addr = client->addr; in pcf8523_read()
49 msgs[1].addr = client->addr; in pcf8523_read()
54 err = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in pcf8523_read()
69 msg.addr = client->addr; in pcf8523_write()
74 err = i2c_transfer(client->adapter, &msg, 1); in pcf8523_write()
104 of_property_read_u32(client->dev.of_node, "quartz-load-femtofarads", in pcf8523_load_capacitance()
[all …]
/kernel/linux/linux-5.10/net/netfilter/
Dxt_time.c23 u_int8_t month; /* (1-12) */
24 u_int8_t monthday; /* (1-31) */
25 u_int8_t weekday; /* (1-7) */
26 u_int8_t hour; /* (0-23) */
27 u_int8_t minute; /* (0-59) */
28 u_int8_t second; /* (0-59) */
51 /* 2039 - 2030 */
53 /* 2029 - 2020 */
55 /* 2019 - 2010 */
57 /* 2009 - 2000 */
[all …]
/kernel/linux/linux-6.6/net/netfilter/
Dxt_time.c23 u_int8_t month; /* (1-12) */
24 u_int8_t monthday; /* (1-31) */
25 u_int8_t weekday; /* (1-7) */
26 u_int8_t hour; /* (0-23) */
27 u_int8_t minute; /* (0-59) */
28 u_int8_t second; /* (0-59) */
51 /* 2039 - 2030 */
53 /* 2029 - 2020 */
55 /* 2019 - 2010 */
57 /* 2009 - 2000 */
[all …]
/kernel/linux/linux-5.10/crypto/asymmetric_keys/
Dx509_cert_parser.c1 // SPDX-License-Identifier: GPL-2.0-or-later
21 unsigned long data; /* Start of data */
22 const void *cert_start; /* Start of cert content */
49 public_key_free(cert->pub); in x509_free_certificate()
50 public_key_signature_free(cert->sig); in x509_free_certificate()
51 kfree(cert->issuer); in x509_free_certificate()
52 kfree(cert->subject); in x509_free_certificate()
53 kfree(cert->id); in x509_free_certificate()
54 kfree(cert->skid); in x509_free_certificate()
70 ret = -ENOMEM; in x509_cert_parse()
[all …]
/kernel/linux/linux-5.10/arch/m68k/sun3/
Dintersil.c21 /* bits to set for start/run of the intersil */
32 todintersil = (struct intersil_dt *) &intersil_clock->counter; in sun3_hwclk()
36 intersil_clock->cmd_reg = STOP_VAL; in sun3_hwclk()
40 todintersil->csec = 0; in sun3_hwclk()
41 todintersil->hour = t->tm_hour; in sun3_hwclk()
42 todintersil->minute = t->tm_min; in sun3_hwclk()
43 todintersil->second = t->tm_sec; in sun3_hwclk()
44 todintersil->month = t->tm_mon + 1; in sun3_hwclk()
45 todintersil->day = t->tm_mday; in sun3_hwclk()
46 todintersil->year = (t->tm_year - 68) % 100; in sun3_hwclk()
[all …]
/kernel/linux/linux-6.6/arch/m68k/sun3/
Dintersil.c21 /* bits to set for start/run of the intersil */
32 todintersil = (struct intersil_dt *) &intersil_clock->counter; in sun3_hwclk()
36 intersil_clock->cmd_reg = STOP_VAL; in sun3_hwclk()
40 todintersil->csec = 0; in sun3_hwclk()
41 todintersil->hour = t->tm_hour; in sun3_hwclk()
42 todintersil->minute = t->tm_min; in sun3_hwclk()
43 todintersil->second = t->tm_sec; in sun3_hwclk()
44 todintersil->month = t->tm_mon + 1; in sun3_hwclk()
45 todintersil->day = t->tm_mday; in sun3_hwclk()
46 todintersil->year = (t->tm_year - 68) % 100; in sun3_hwclk()
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/rtc/
Drtc.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Alexandre Belloni <alexandre.belloni@bootlin.com>
18 pattern: "^rtc(@.*|-([0-9]|[1-9][0-9]+))?$"
20 aux-voltage-chargeable:
29 quartz-load-femtofarads:
31 The capacitive load of the quartz(x-tal), expressed in femto
35 start-year:
39 shifted so the first usable year is the specified one.
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/rtc/
Drtc.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Alexandre Belloni <alexandre.belloni@bootlin.com>
18 pattern: "^rtc(@.*|-[0-9a-f])*$"
20 aux-voltage-chargeable:
29 quartz-load-femtofarads:
32 The capacitive load of the quartz(x-tal), expressed in femto
36 start-year:
40 shifted so the first usable year is the specified one.
[all …]

12345678910