Home
last modified time | relevance | path

Searched refs:hrs (Results 1 – 12 of 12) sorted by relevance

/drivers/rtc/
Drtc-ds1286.c222 unsigned char mon, day, hrs, min, sec; in ds1286_set_time() local
230 hrs = tm->tm_hour; in ds1286_set_time()
246 hrs = bin2bcd(hrs); in ds1286_set_time()
258 ds1286_rtc_write(priv, hrs, RTC_HOURS); in ds1286_set_time()
293 unsigned char hrs, min, sec; in ds1286_set_alarm() local
295 hrs = alm->time.tm_hour; in ds1286_set_alarm()
299 if (hrs >= 24) in ds1286_set_alarm()
300 hrs = 0xff; in ds1286_set_alarm()
309 hrs = bin2bcd(hrs); in ds1286_set_alarm()
312 ds1286_rtc_write(priv, hrs, RTC_HOURS_ALARM); in ds1286_set_alarm()
Drtc-m48t35.c94 unsigned char mon, day, hrs, min, sec; in m48t35_set_time() local
101 hrs = tm->tm_hour; in m48t35_set_time()
120 hrs = bin2bcd(hrs); in m48t35_set_time()
131 writeb(hrs, &priv->reg->hour); in m48t35_set_time()
Drtc-bq4802.c96 u8 sec, min, hrs, day, mon, yrs, century, val; in bq4802_set_time() local
106 hrs = tm->tm_hour; in bq4802_set_time()
112 hrs = bin2bcd(hrs); in bq4802_set_time()
125 p->write(p, 0x04, hrs); in bq4802_set_time()
Drtc-mrst.c115 unsigned char mon, day, hrs, min, sec; in mrst_set_time() local
121 hrs = time->tm_hour; in mrst_set_time()
134 vrtc_cmos_write(hrs, RTC_HOURS); in mrst_set_time()
219 unsigned char hrs, min, sec; in mrst_set_alarm() local
225 hrs = t->time.tm_hour; in mrst_set_alarm()
234 vrtc_cmos_write(hrs, RTC_HOURS_ALARM); in mrst_set_alarm()
Drtc-ds1511.c188 u8 mon, day, dow, hrs, min, sec, yrs, cen; in ds1511_rtc_set_time() local
206 hrs = rtc_tm->tm_hour; in ds1511_rtc_set_time()
218 if ((hrs >= 24) || (min >= 60) || (sec >= 60)) { in ds1511_rtc_set_time()
227 hrs = bin2bcd(hrs) & 0x3f; in ds1511_rtc_set_time()
239 rtc_write(hrs, RTC_HOUR); in ds1511_rtc_set_time()
Drtc-cmos.c114 hpet_set_alarm_time(unsigned char hrs, unsigned char min, unsigned char sec) in hpet_set_alarm_time() argument
329 unsigned char mon, mday, hrs, min, sec, rtc_control; in cmos_set_alarm() local
336 hrs = t->time.tm_hour; in cmos_set_alarm()
345 hrs = (hrs < 24) ? bin2bcd(hrs) : 0xff; in cmos_set_alarm()
356 CMOS_WRITE(hrs, RTC_HOURS_ALARM); in cmos_set_alarm()
/drivers/char/
Dds1302.c178 unsigned char mon, day, hrs, min, sec, leap_yr; in rtc_ioctl() local
190 hrs = rtc_tm.tm_hour; in rtc_ioctl()
206 if ((hrs >= 24) || (min >= 60) || (sec >= 60)) in rtc_ioctl()
216 hrs = bin2bcd(hrs); in rtc_ioctl()
226 CMOS_WRITE(hrs, RTC_HOURS); in rtc_ioctl()
Drtc.c110 #define hpet_set_alarm_time(hrs, min, sec) 0 argument
498 unsigned char hrs, min, sec; in rtc_do_ioctl() local
505 hrs = alm_tm.tm_hour; in rtc_do_ioctl()
510 if (hpet_set_alarm_time(hrs, min, sec)) { in rtc_do_ioctl()
528 if (hrs < 24) in rtc_do_ioctl()
529 hrs = bin2bcd(hrs); in rtc_do_ioctl()
531 hrs = 0xff; in rtc_do_ioctl()
533 CMOS_WRITE(hrs, RTC_HOURS_ALARM); in rtc_do_ioctl()
549 unsigned char mon, day, hrs, min, sec, leap_yr; in rtc_do_ioctl() local
566 hrs = rtc_tm.tm_hour; in rtc_do_ioctl()
[all …]
/drivers/net/wan/
Dhdlc_cisco.c230 u32 sec, min, hrs, days; in cisco_rx() local
233 hrs = min / 60; min -= hrs * 60; in cisco_rx()
234 days = hrs / 24; hrs -= days * 24; in cisco_rx()
236 days, hrs, min, sec); in cisco_rx()
/drivers/input/misc/
Dhp_sdc_rtc.c610 unsigned char mon, day, hrs, min, sec, leap_yr; in hp_sdc_rtc_ioctl()
622 hrs = hp_sdc_rtc_tm.tm_hour; in hp_sdc_rtc_ioctl()
635 if ((hrs >= 24) || (min >= 60) || (sec >= 60)) in hp_sdc_rtc_ioctl()
/drivers/usb/misc/sisusbvga/
Dsisusb_init.c691 unsigned short hrs = in SiS_SetCRT1ModeRegs() local
699 data = hrs - (hto >> 1) + 3; in SiS_SetCRT1ModeRegs()
/drivers/video/sis/
Dinit.c2685 int hrs = (SiS_GetReg(SiS_Pr->SiS_P3d4,0x04) | in SiS_SetCRT1ModeRegs() local
2689 data = hrs - (hto >> 1) + 3; in SiS_SetCRT1ModeRegs()