Home
last modified time | relevance | path

Searched refs:mon (Results 1 – 16 of 16) sorted by relevance

/drivers/char/
Dds1302.c178 unsigned char mon, day, hrs, min, sec, leap_yr; in rtc_ioctl() local
188 mon = rtc_tm.tm_mon + 1; /* tm_mon starts at zero */ in rtc_ioctl()
200 if ((mon > 12) || (day == 0)) in rtc_ioctl()
203 if (day > (days_in_mo[mon] + ((mon == 2) && leap_yr))) in rtc_ioctl()
218 mon = bin2bcd(mon); in rtc_ioctl()
224 CMOS_WRITE(mon, RTC_MONTH); in rtc_ioctl()
Drtc.c549 unsigned char mon, day, hrs, min, sec, leap_yr; in rtc_do_ioctl() local
564 mon = rtc_tm.tm_mon + 1; /* tm_mon starts at zero */ in rtc_do_ioctl()
575 if ((mon > 12) || (day == 0)) in rtc_do_ioctl()
578 if (day > (days_in_mo[mon] + ((mon == 2) && leap_yr))) in rtc_do_ioctl()
598 if (!leap_yr && mon < 3) { in rtc_do_ioctl()
619 mon = bin2bcd(mon); in rtc_do_ioctl()
632 CMOS_WRITE(mon, RTC_MONTH); in rtc_do_ioctl()
/drivers/rtc/
Drtc-m48t35.c94 unsigned char mon, day, hrs, min, sec; in m48t35_set_time() local
99 mon = tm->tm_mon + 1; /* tm_mon starts at zero */ in m48t35_set_time()
122 mon = bin2bcd(mon); in m48t35_set_time()
129 writeb(mon, &priv->reg->month); in m48t35_set_time()
Drtc-bq4802.c96 u8 sec, min, hrs, day, mon, yrs, century, val; in bq4802_set_time() local
104 mon = tm->tm_mon + 1; /* tm_mon starts at zero */ in bq4802_set_time()
114 mon = bin2bcd(mon); in bq4802_set_time()
127 p->write(p, 0x09, mon); in bq4802_set_time()
Drtc-ds1286.c222 unsigned char mon, day, hrs, min, sec; in ds1286_set_time() local
228 mon = tm->tm_mon + 1; /* tm_mon starts at zero */ in ds1286_set_time()
248 mon = bin2bcd(mon); in ds1286_set_time()
256 ds1286_rtc_write(priv, mon, RTC_MONTH); in ds1286_set_time()
Drtc-ds1511.c188 u8 mon, day, dow, hrs, min, sec, yrs, cen; in ds1511_rtc_set_time() local
203 mon = rtc_tm->tm_mon + 1; /* tm_mon starts at zero */ in ds1511_rtc_set_time()
210 if ((mon > 12) || (day == 0)) { in ds1511_rtc_set_time()
229 mon = bin2bcd(mon) & 0x1f; in ds1511_rtc_set_time()
237 rtc_write((rtc_read(RTC_MON) & 0xe0) | mon, RTC_MON); in ds1511_rtc_set_time()
Drtc-davinci.c247 int tmp_days, year, mon; in convertfromdays() local
254 for (mon = 0;; mon++) { in convertfromdays()
255 tmp_days = rtc_month_days(mon, year); in convertfromdays()
260 tm->tm_mon = mon; in convertfromdays()
Drtc-cmos.c329 unsigned char mon, mday, hrs, min, sec, rtc_control; in cmos_set_alarm() local
334 mon = t->time.tm_mon + 1; in cmos_set_alarm()
343 mon = (mon <= 12) ? bin2bcd(mon) : 0xff; in cmos_set_alarm()
364 CMOS_WRITE(mon, cmos->mon_alrm); in cmos_set_alarm()
Drtc-mrst.c115 unsigned char mon, day, hrs, min, sec; in mrst_set_time() local
119 mon = time->tm_mon + 1; /* tm_mon starts at zero */ in mrst_set_time()
132 vrtc_cmos_write(mon, RTC_MONTH); in mrst_set_time()
Drtc-sh.c545 int mon, err; in sh_rtc_set_alarm() local
564 mon = tm->tm_mon; in sh_rtc_set_alarm()
565 if (mon >= 0) in sh_rtc_set_alarm()
566 mon += 1; in sh_rtc_set_alarm()
567 sh_rtc_write_alarm_value(rtc, mon, RMONAR); in sh_rtc_set_alarm()
/drivers/video/
Dbw2.c232 u8 status, mon; in bw2_do_default_mode() local
236 mon = status & BWTWO_SR_RES_MASK; in bw2_do_default_mode()
239 if (mon == BWTWO_SR_1600_1280) { in bw2_do_default_mode()
253 if (mon == BWTWO_SR_1152_900_76_A || in bw2_do_default_mode()
254 mon == BWTWO_SR_1152_900_76_B) in bw2_do_default_mode()
Dcg3.c319 u8 status = sbus_readb(&par->regs->status), mon; in cg3_do_default_mode() local
321 mon = status & CG3_SR_RES_MASK; in cg3_do_default_mode()
322 if (mon == CG3_SR_1152_900_76_A || in cg3_do_default_mode()
323 mon == CG3_SR_1152_900_76_B) in cg3_do_default_mode()
/drivers/input/misc/
Dhp_sdc_rtc.c610 unsigned char mon, day, hrs, min, sec, leap_yr; in hp_sdc_rtc_ioctl()
620 mon = hp_sdc_rtc_tm.tm_mon + 1; /* tm_mon starts at zero */ in hp_sdc_rtc_ioctl()
631 if ((mon > 12) || (day == 0)) in hp_sdc_rtc_ioctl()
633 if (day > (days_in_mo[mon] + ((mon == 2) && leap_yr))) in hp_sdc_rtc_ioctl()
/drivers/usb/
DMakefile11 obj-$(CONFIG_USB_MON) += mon/
DKconfig129 source "drivers/usb/mon/Kconfig"
/drivers/tty/
Dcyclades.c543 ++info->mon.int_count; in cyy_chip_rx()
544 info->mon.char_count += char_count; in cyy_chip_rx()
545 if (char_count > info->mon.char_max) in cyy_chip_rx()
546 info->mon.char_max = char_count; in cyy_chip_rx()
547 info->mon.char_last = char_count; in cyy_chip_rx()
947 info->mon.int_count++; in cyz_handle_rx()
948 info->mon.char_count += char_count; in cyz_handle_rx()
949 if (char_count > info->mon.char_max) in cyz_handle_rx()
950 info->mon.char_max = char_count; in cyz_handle_rx()
951 info->mon.char_last = char_count; in cyz_handle_rx()
[all …]