/drivers/rtc/ |
D | rtc-ds1286.c | 222 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()
|
D | rtc-m48t35.c | 94 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()
|
D | rtc-bq4802.c | 96 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()
|
D | rtc-mrst.c | 115 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()
|
D | rtc-ds1511.c | 188 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()
|
D | rtc-cmos.c | 114 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/ |
D | ds1302.c | 178 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()
|
D | rtc.c | 110 #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/ |
D | hdlc_cisco.c | 230 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/ |
D | hp_sdc_rtc.c | 610 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/ |
D | sisusb_init.c | 691 unsigned short hrs = in SiS_SetCRT1ModeRegs() local 699 data = hrs - (hto >> 1) + 3; in SiS_SetCRT1ModeRegs()
|
/drivers/video/sis/ |
D | init.c | 2685 int hrs = (SiS_GetReg(SiS_Pr->SiS_P3d4,0x04) | in SiS_SetCRT1ModeRegs() local 2689 data = hrs - (hto >> 1) + 3; in SiS_SetCRT1ModeRegs()
|