/linux/drivers/rtc/ |
H A D | rtc-rtd119x.c | 85 s32 day; in rtd119x_rtc_read_time() local 94 day = readl_relaxed(data->base + RTD_RTCDATE1) & RTD_RTCDATE1_RTCDATE1_MASK; in rtd119x_rtc_read_time() 95 day |= (readl_relaxed(data->base + RTD_RTCDATE2) & RTD_RTCDATE2_RTCDATE2_MASK) << 8; in rtd119x_rtc_read_time() 109 while (day >= rtd119x_rtc_days_in_year(year)) { in rtd119x_rtc_read_time() 110 day -= rtd119x_rtc_days_in_year(year); in rtd119x_rtc_read_time() 114 tm->tm_yday = day; in rtd119x_rtc_read_time() 117 while (day >= rtc_month_days(tm->tm_mon, year)) { in rtd119x_rtc_read_time() 118 day -= rtc_month_days(tm->tm_mon, year); in rtd119x_rtc_read_time() 121 tm->tm_mday = day + 1; in rtd119x_rtc_read_time() 129 unsigned int day; in rtd119x_rtc_set_time() local [all...] |
H A D | lib.c | 39 int rtc_year_days(unsigned int day, unsigned int month, unsigned int year) in rtc_year_days() argument 41 return rtc_ydays[is_leap_year(year)][month] + day - 1; in rtc_year_days() 58 day_of_year, month, day; in rtc_time64_to_tm() local 75 * day of the week, 0000-03-01 was a Wednesday (in the proleptic in rtc_time64_to_tm() 85 * mathematically convenient because the day of the year does not in rtc_time64_to_tm() 88 * March 1st 0-th day of the year; in rtc_time64_to_tm() 90 * April 1st 31-st day of the year; in rtc_time64_to_tm() 92 * January 1st 306-th day of the year; (Important!) in rtc_time64_to_tm() 94 * February 28th 364-th day of the year; in rtc_time64_to_tm() 95 * February 29th 365-th day o in rtc_time64_to_tm() [all...] |
H A D | rtc-cpcap.c | 36 int day; member 57 time = tod + ((cpcap->day & DAY_MASK) * SECS_PER_DAY); in cpcap2rtc_time() 68 cpcap->day = time / SECS_PER_DAY; in rtc2cpcap_time() 101 ret |= regmap_read(rtc->regmap, CPCAP_REG_DAY, &cpcap_tm.day); in cpcap_rtc_read_time() 106 ret |= regmap_read(rtc->regmap, CPCAP_REG_DAY, &cpcap_tm.day); in cpcap_rtc_read_time() 142 DAY_MASK, cpcap_tm.day); in cpcap_rtc_set_time() 154 DAY_MASK, cpcap_tm.day); in cpcap_rtc_set_time() 179 ret = regmap_read(rtc->regmap, CPCAP_REG_DAYA, &cpcap_tm.day); in cpcap_rtc_read_alarm() 206 cpcap_tm.day); in cpcap_rtc_set_alarm()
|
H A D | rtc-m48t35.c | 31 u8 day; member 37 u8 day; member 100 unsigned char mon, day, hrs, min, sec; in m48t35_set_time() local 106 day = tm->tm_mday; in m48t35_set_time() 127 day = bin2bcd(day); in m48t35_set_time() 136 writeb(day, &priv->reg->date); in m48t35_set_time()
|
H A D | rtc-efi.c | 24 * returns day of the year [0-365] 30 return rtc_year_days(eft->day, eft->month - 1, eft->year); in compute_yday() 34 * returns day of the week [0-6] 0=Sunday 57 eft->day = wtime->tm_mday; in convert_to_efi_time() 83 if (!eft->day || eft->day > 31) in convert_from_efi_time() 85 wtime->tm_mday = eft->day; in convert_from_efi_time() 95 /* day in the year [1-365]*/ in convert_from_efi_time() 98 /* day of the week [0-6], Sunday=0 */ in convert_from_efi_time() 208 eft.year, eft.month, eft.day, in efi_procfs() [all...] |
H A D | rtc-wilco-ec.c | 41 * @day: Day value (1..31) 53 u8 day; member 67 * @day: Day value (1..31) 82 u8 day; member 110 tm->tm_mday = rtc.day; in wilco_ec_rtc_read() 132 * schedules that depend on the day of the week. in wilco_ec_rtc_write() 142 rtc.day = bin2bcd(tm->tm_mday); in wilco_ec_rtc_write()
|
H A D | rtc-mc146818-lib.c | 215 unsigned char mon, day, hrs, min, sec; in mc146818_set_time() local 225 day = time->tm_mday; in mc146818_set_time() 272 day = bin2bcd(day); in mc146818_set_time() 292 CMOS_WRITE(day, RTC_DAY_OF_MONTH); in mc146818_set_time()
|
H A D | rtc-bq4802.c | 95 u8 sec, min, hrs, day, mon, yrs, century, val; in bq4802_set_time() local 104 day = tm->tm_mday; in bq4802_set_time() 112 day = bin2bcd(day); in bq4802_set_time() 125 p->write(p, 0x06, day); in bq4802_set_time()
|
H A D | rtc-ds1286.c | 216 unsigned char mon, day, hrs, min, sec; in ds1286_set_time() local 223 day = tm->tm_mday; in ds1286_set_time() 241 day = bin2bcd(day); in ds1286_set_time() 251 ds1286_rtc_write(priv, day, RTC_DATE); in ds1286_set_time()
|
H A D | rtc-ds1511.c | 96 u8 mon, day, dow, hrs, min, sec, yrs, cen; in ds1511_rtc_set_time() local 102 day = rtc_tm->tm_mday; in ds1511_rtc_set_time() 114 day = bin2bcd(day) & 0x3f; in ds1511_rtc_set_time() 124 rtc_write(day, DS1511_DOM); in ds1511_rtc_set_time()
|
H A D | rtc-ftrtc010.c | 86 u32 sec, min, hour, day, offset; in ftrtc010_rtc_set_time() local 94 day = readl(rtc->rtc_base + FTRTC010_RTC_DAYS); in ftrtc010_rtc_set_time() 96 offset = time - (day * 86400 + hour * 3600 + min * 60 + sec); in ftrtc010_rtc_set_time()
|
H A D | rtc-bd70528.c | 36 u8 day; member 68 r->day &= ~BD70528_MASK_RTC_DAY; in tm2rtc() 82 r->day |= bin2bcd(t->tm_mday); in tm2rtc() 102 t->tm_mday = bcd2bin(r->day & BD70528_MASK_RTC_DAY); in rtc2tm()
|
/linux/kernel/time/ |
H A D | timeconv.c | 49 u32 u32tmp, day_of_century, year_of_century, day_of_year, month, day; in time64_to_tm() local 82 * mathematically convenient because the day of the year does not in time64_to_tm() 85 * March 1st 0-th day of the year; in time64_to_tm() 87 * April 1st 31-st day of the year; in time64_to_tm() 89 * January 1st 306-th day of the year; (Important!) in time64_to_tm() 91 * February 28th 364-th day of the year; in time64_to_tm() 92 * February 29th 365-th day of the year (if it exists). in time64_to_tm() 121 day = ((u16) u32tmp) / 2141; in time64_to_tm() 124 * Recall that January 1st is the 306-th day of the year in the in time64_to_tm() 132 day in time64_to_tm() [all...] |
/linux/fs/isofs/ |
H A D | util.c | 21 int year, month, day, hour, minute, second, tz; in iso_date() local 30 day = ((p[6] - '0') * 10 + (p[7] - '0')); in iso_date() 39 day = p[2]; in iso_date() 51 ts.tv_sec = mktime64(year+1900, month, day, hour, minute, second); in iso_date()
|
/linux/arch/m68k/atari/ |
H A D | time.c | 203 int sec=0, min=0, hour=0, day=0, mon=0, year=0, wday=0; in atari_tt_hwclk() local 217 day = t->tm_mday; in atari_tt_hwclk() 236 day = bin2bcd(day); in atari_tt_hwclk() 269 day = RTC_READ( RTC_DAY_OF_MONTH ); in atari_tt_hwclk() 278 RTC_WRITE( RTC_DAY_OF_MONTH, day ); in atari_tt_hwclk() 298 day = bcd2bin(day); in atari_tt_hwclk() 314 t->tm_mday = day; in atari_tt_hwclk()
|
/linux/arch/mips/dec/ |
H A D | time.c | 24 unsigned int year, mon, day, hour, min, sec, real_year; in read_persistent_clock64() local 33 day = CMOS_READ(RTC_DAY_OF_MONTH); in read_persistent_clock64() 50 day = bcd2bin(day); in read_persistent_clock64() 57 ts->tv_sec = mktime64(year, mon, day, hour, min, sec); in read_persistent_clock64()
|
/linux/arch/powerpc/platforms/chrp/ |
H A D | time.c | 132 unsigned int year, mon, day, hour, min, sec; in chrp_get_rtc_time() local 138 day = chrp_cmos_clock_read(RTC_DAY_OF_MONTH); in chrp_get_rtc_time() 147 day = bcd2bin(day); in chrp_get_rtc_time() 156 tm->tm_mday = day; in chrp_get_rtc_time()
|
/linux/arch/m68k/bvme6000/ |
H A D | rtc.c | 74 unsigned char mon, day, hrs, min, sec, leap_yr; in rtc_ioctl() local 87 day = rtc_tm.tm_mday; in rtc_ioctl() 94 if ((mon > 12) || (mon < 1) || (day == 0)) in rtc_ioctl() 97 if (day > (days_in_mo[mon] + ((mon == 2) && leap_yr))) in rtc_ioctl() 116 rtc->bcd_dom = bin2bcd(day); in rtc_ioctl()
|
/linux/arch/mips/sibyte/swarm/ |
H A D | rtc_xicor1241.c | 169 unsigned int year, mon, day, hour, min, sec, y2k; in xicor_get_time() local 184 day = xicor_read(X1241REG_DT); in xicor_get_time() 193 day = bcd2bin(day); in xicor_get_time() 200 return mktime64(year, mon, day, hour, min, sec); in xicor_get_time()
|
H A D | rtc_m41t81.c | 65 #define M41T81REG_DY 0x04 /* day of week */ 188 unsigned int year, mon, day, hour, min, sec; in m41t81_get_time() local 202 day = m41t81_read(M41T81REG_DT); in m41t81_get_time() 210 day = bcd2bin(day); in m41t81_get_time() 216 return mktime64(year, mon, day, hour, min, sec); in m41t81_get_time()
|
/linux/drivers/md/bcache/ |
H A D | stats.c | 20 * and one day. 103 ret = ret ?: kobject_add(&acc->day.kobj, parent, in bch_cache_accounting_add_kobjs() 123 kobject_put(&acc->day.kobj); in bch_cache_accounting_destroy() 159 acc->day.name += t; \ in scale_accounting() 171 scale_stats(&acc->day, DAY_RESCALE); in scale_accounting() 228 kobject_init(&acc->day.kobj, &bch_stats_ktype); in bch_cache_accounting_init()
|
/linux/include/uapi/linux/ |
H A D | cec-funcs.h | 435 __u8 day, in cec_msg_clear_analogue_timer() argument 448 msg->msg[2] = day; in cec_msg_clear_analogue_timer() 464 __u8 *day, in cec_ops_clear_analogue_timer() argument 475 *day = msg->msg[2]; in cec_ops_clear_analogue_timer() 490 __u8 day, in cec_msg_clear_digital_timer() argument 502 msg->msg[2] = day; in cec_msg_clear_digital_timer() 514 __u8 *day, in cec_ops_clear_digital_timer() argument 523 *day = msg->msg[2]; in cec_ops_clear_digital_timer() 536 __u8 day, in cec_msg_clear_ext_timer() argument 549 msg->msg[2] = day; in cec_msg_clear_ext_timer() 565 cec_ops_clear_ext_timer(const struct cec_msg * msg,__u8 * day,__u8 * month,__u8 * start_hr,__u8 * start_min,__u8 * duration_hr,__u8 * duration_min,__u8 * recording_seq,__u8 * ext_src_spec,__u8 * plug,__u16 * phys_addr) cec_ops_clear_ext_timer() argument 591 cec_msg_set_analogue_timer(struct cec_msg * msg,int reply,__u8 day,__u8 month,__u8 start_hr,__u8 start_min,__u8 duration_hr,__u8 duration_min,__u8 recording_seq,__u8 ana_bcast_type,__u16 ana_freq,__u8 bcast_system) cec_msg_set_analogue_timer() argument 620 cec_ops_set_analogue_timer(const struct cec_msg * msg,__u8 * day,__u8 * month,__u8 * start_hr,__u8 * start_min,__u8 * duration_hr,__u8 * duration_min,__u8 * recording_seq,__u8 * ana_bcast_type,__u16 * ana_freq,__u8 * bcast_system) cec_ops_set_analogue_timer() argument 646 cec_msg_set_digital_timer(struct cec_msg * msg,int reply,__u8 day,__u8 month,__u8 start_hr,__u8 start_min,__u8 duration_hr,__u8 duration_min,__u8 recording_seq,const struct cec_op_digital_service_id * digital) cec_msg_set_digital_timer() argument 670 cec_ops_set_digital_timer(const struct cec_msg * msg,__u8 * day,__u8 * month,__u8 * start_hr,__u8 * start_min,__u8 * duration_hr,__u8 * duration_min,__u8 * recording_seq,struct cec_op_digital_service_id * digital) cec_ops_set_digital_timer() argument 692 cec_msg_set_ext_timer(struct cec_msg * msg,int reply,__u8 day,__u8 month,__u8 start_hr,__u8 start_min,__u8 duration_hr,__u8 duration_min,__u8 recording_seq,__u8 ext_src_spec,__u8 plug,__u16 phys_addr) cec_msg_set_ext_timer() argument 721 cec_ops_set_ext_timer(const struct cec_msg * msg,__u8 * day,__u8 * month,__u8 * start_hr,__u8 * start_min,__u8 * duration_hr,__u8 * duration_min,__u8 * recording_seq,__u8 * ext_src_spec,__u8 * plug,__u16 * phys_addr) cec_ops_set_ext_timer() argument [all...] |
/linux/arch/m68k/sun3/ |
H A D | intersil.c | 46 todintersil->day = t->tm_mday; in sun3_hwclk() 56 t->tm_mday = todintersil->day; in sun3_hwclk()
|
/linux/Documentation/RCU/ |
H A D | RTFP.txt | 579 ,day="23" 597 ,day="24" 1199 ,day="15" 1228 ,day="30" 1242 ,day="17" 1257 ,day="18" 1288 ,day="3" 1371 ,day="6" 1385 ,day="1" 1399 ,day [all...] |
/linux/fs/udf/ |
H A D | udftime.c | 46 dest->tv_sec = mktime64(year, src.month, src.day, src.hour, src.minute, in udf_disk_stamp_to_time() 78 dest->day = tm.tm_mday; in udf_time_to_disk_stamp()
|