Home
last modified time | relevance | path

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

/linux-4.4.14/tools/power/cpupower/utils/idle_monitor/
Dcpupower-monitor.c87 int unsigned mon; in print_header() local
96 for (mon = 0; mon < avail_monitors; mon++) { in print_header()
97 need_len = monitors[mon]->hw_states_num * (percent_width + 3) in print_header()
99 if (mon != 0) { in print_header()
103 sprintf(buf, "%s", monitors[mon]->name); in print_header()
116 for (mon = 0; mon < avail_monitors; mon++) { in print_header()
117 if (mon != 0) in print_header()
121 for (state = 0; state < monitors[mon]->hw_states_num; state++) { in print_header()
124 s = monitors[mon]->hw_states[state]; in print_header()
137 unsigned int mon; in print_results() local
[all …]
/linux-4.4.14/arch/arm/mach-shmobile/
Dregulator-quirk-rcar-gen2.c83 u32 mon; in regulator_quirk_notify() local
85 mon = ioread32(irqc + IRQC_MONITOR); in regulator_quirk_notify()
86 dev_dbg(dev, "%s: %ld, IRQC_MONITOR = 0x%x\n", __func__, action, mon); in regulator_quirk_notify()
87 if (mon & REGULATOR_IRQ_MASK) in regulator_quirk_notify()
103 mon = ioread32(irqc + IRQC_MONITOR); in regulator_quirk_notify()
104 if (mon & REGULATOR_IRQ_MASK) in regulator_quirk_notify()
123 u32 mon; in rcar_gen2_regulator_quirk() local
134 mon = ioread32(irqc + IRQC_MONITOR); in rcar_gen2_regulator_quirk()
135 if (mon & REGULATOR_IRQ_MASK) { in rcar_gen2_regulator_quirk()
/linux-4.4.14/tools/testing/selftests/timers/
Draw_skew.c81 void get_monotonic_and_raw(struct timespec *mon, struct timespec *raw) in get_monotonic_and_raw() argument
99 *mon = nsec_to_ts(tmp); in get_monotonic_and_raw()
106 struct timespec mon, raw, start, end; in main() local
119 get_monotonic_and_raw(&mon, &raw); in main()
120 start = mon; in main()
121 delta1 = diff_timespec(mon, raw); in main()
129 get_monotonic_and_raw(&mon, &raw); in main()
130 end = mon; in main()
133 delta2 = diff_timespec(mon, raw); in main()
Dadjtick.c80 void get_monotonic_and_raw(struct timespec *mon, struct timespec *raw) in get_monotonic_and_raw() argument
86 clock_gettime(CLOCK_MONOTONIC, mon); in get_monotonic_and_raw()
102 *mon = nsec_to_ts(tmp); in get_monotonic_and_raw()
/linux-4.4.14/arch/m68k/bvme6000/
Drtc.c73 unsigned char mon, day, hrs, min, sec, leap_yr; in rtc_ioctl() local
85 mon = rtc_tm.tm_mon + 1; /* tm_mon starts at zero */ in rtc_ioctl()
93 if ((mon > 12) || (mon < 1) || (day == 0)) in rtc_ioctl()
96 if (day > (days_in_mo[mon] + ((mon == 2) && leap_yr))) in rtc_ioctl()
116 rtc->bcd_mth = bin2bcd(mon); in rtc_ioctl()
/linux-4.4.14/arch/frv/kernel/
Dtime.c90 unsigned int year, mon, day, hour, min, sec; in read_persistent_clock() local
92 extern void arch_gettod(int *year, int *mon, int *day, int *hour, int *min, int *sec); in read_persistent_clock()
98 mon = day = 1; in read_persistent_clock()
100 arch_gettod (&year, &mon, &day, &hour, &min, &sec); in read_persistent_clock()
104 ts->tv_sec = mktime(year, mon, day, hour, min, sec); in read_persistent_clock()
Dsetup.c1121 void arch_gettod(int *year, int *mon, int *day, int *hour, in arch_gettod() argument
1124 *year = *mon = *day = *hour = *min = *sec = 0; in arch_gettod()
/linux-4.4.14/arch/m68k/mvme16x/
Drtc.c68 unsigned char mon, day, hrs, min, sec, leap_yr; in rtc_ioctl() local
80 mon = rtc_tm.tm_mon + 1; /* tm_mon starts at zero */ in rtc_ioctl()
88 if ((mon > 12) || (day == 0)) in rtc_ioctl()
91 if (day > (days_in_mo[mon] + ((mon == 2) && leap_yr))) in rtc_ioctl()
107 rtc->bcd_mth = bin2bcd(mon); in rtc_ioctl()
/linux-4.4.14/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()
/linux-4.4.14/arch/mips/include/asm/
Dmc146818-time.h91 unsigned int year, mon, day, hour, min, sec; in mc146818_get_cmos_time() local
101 mon = CMOS_READ(RTC_MONTH); in mc146818_get_cmos_time()
110 mon = bcd2bin(mon); in mc146818_get_cmos_time()
116 return mktime(year, mon, day, hour, min, sec); in mc146818_get_cmos_time()
/linux-4.4.14/arch/sh/boards/mach-sh03/
Drtc.c42 unsigned int year, mon, day, hour, min, sec; in get_cmos_time() local
51 mon = (__raw_readb(RTC_MON1) & 0xf) + (__raw_readb(RTC_MON10) & 0xf) * 10; in get_cmos_time()
56 if (year == 0 || mon < 1 || mon > 12 || day > 31 || day < 1 || in get_cmos_time()
61 year, mon, day, hour, min, sec); in get_cmos_time()
77 return mktime(year, mon, day, hour, min, sec); in get_cmos_time()
/linux-4.4.14/arch/mips/dec/
Dtime.c23 unsigned int year, mon, day, hour, min, sec, real_year; in read_persistent_clock() local
33 mon = CMOS_READ(RTC_MONTH); in read_persistent_clock()
50 mon = bcd2bin(mon); in read_persistent_clock()
56 ts->tv_sec = mktime(year, mon, day, hour, min, sec); in read_persistent_clock()
/linux-4.4.14/include/asm-generic/
Drtc.h132 unsigned char mon, day, hrs, min, sec; in __set_rtc_time() local
141 mon = time->tm_mon + 1; /* tm_mon starts at zero */ in __set_rtc_time()
162 if (!leap_yr && mon < 3) { in __set_rtc_time()
193 mon = bin2bcd(mon); in __set_rtc_time()
207 CMOS_WRITE(mon, RTC_MONTH); in __set_rtc_time()
/linux-4.4.14/arch/m68k/atari/
Dtime.c168 int sec=0, min=0, hour=0, day=0, mon=0, year=0, wday=0; in atari_tt_hwclk() local
183 mon = t->tm_mon + 1; in atari_tt_hwclk()
202 mon = bin2bcd(mon); in atari_tt_hwclk()
235 mon = RTC_READ( RTC_MONTH ); in atari_tt_hwclk()
244 RTC_WRITE( RTC_MONTH, mon ); in atari_tt_hwclk()
264 mon = bcd2bin(mon); in atari_tt_hwclk()
280 t->tm_mon = mon - 1; in atari_tt_hwclk()
/linux-4.4.14/arch/powerpc/platforms/chrp/
Dtime.c131 unsigned int year, mon, day, hour, min, sec; in chrp_get_rtc_time() local
138 mon = chrp_cmos_clock_read(RTC_MONTH); in chrp_get_rtc_time()
147 mon = bcd2bin(mon); in chrp_get_rtc_time()
156 tm->tm_mon = mon; in chrp_get_rtc_time()
/linux-4.4.14/arch/x86/kernel/
Drtc.c64 unsigned int status, year, mon, day, hour, min, sec, century = 0; in mach_get_cmos_time() local
82 mon = CMOS_READ(RTC_MONTH); in mach_get_cmos_time()
101 mon = bcd2bin(mon); in mach_get_cmos_time()
111 now->tv_sec = mktime(year, mon, day, hour, min, sec); in mach_get_cmos_time()
/linux-4.4.14/arch/powerpc/platforms/maple/
Dtime.c86 int sec, min, hour, mon, mday, year; in maple_set_rtc_time() local
101 mon = tm->tm_mon; in maple_set_rtc_time()
109 mon = bin2bcd(mon); in maple_set_rtc_time()
116 maple_clock_write(mon, RTC_MONTH); in maple_set_rtc_time()
/linux-4.4.14/arch/m32r/kernel/
Dtime.c142 unsigned int epoch, year, mon, day, hour, min, sec; in read_persistent_clock() local
144 sec = min = hour = day = mon = year = 0; in read_persistent_clock()
148 mon = 4; in read_persistent_clock()
160 ts->tv_sec = mktime(year, mon, day, hour, min, sec); in read_persistent_clock()
/linux-4.4.14/arch/mips/sibyte/swarm/
Drtc_m41t81.c193 unsigned int year, mon, day, hour, min, sec; in m41t81_get_time() local
208 mon = m41t81_read(M41T81REG_MO); in m41t81_get_time()
216 mon = bcd2bin(mon); in m41t81_get_time()
221 return mktime(year, mon, day, hour, min, sec); in m41t81_get_time()
Drtc_xicor1241.c173 unsigned int year, mon, day, hour, min, sec, y2k; in xicor_get_time() local
189 mon = xicor_read(X1241REG_MO); in xicor_get_time()
198 mon = bcd2bin(mon); in xicor_get_time()
204 return mktime(year, mon, day, hour, min, sec); in xicor_get_time()
/linux-4.4.14/arch/x86/platform/intel-mid/
Dintel_mid_vrtc.c61 u8 sec, min, hour, mday, mon; in vrtc_get_time() local
74 mon = vrtc_cmos_read(RTC_MONTH); in vrtc_get_time()
83 "mon: %d year: %d\n", sec, min, hour, mday, mon, year); in vrtc_get_time()
85 now->tv_sec = mktime(year, mon, mday, hour, min, sec); in vrtc_get_time()
/linux-4.4.14/drivers/rtc/
Drtc-m48t35.c95 unsigned char mon, day, hrs, min, sec; in m48t35_set_time() local
100 mon = tm->tm_mon + 1; /* tm_mon starts at zero */ in m48t35_set_time()
123 mon = bin2bcd(mon); in m48t35_set_time()
130 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.c187 u8 mon, day, dow, hrs, min, sec, yrs, cen; in ds1511_rtc_set_time() local
201 mon = rtc_tm->tm_mon + 1; /* tm_mon starts at zero */ in ds1511_rtc_set_time()
208 if ((mon > 12) || (day == 0)) in ds1511_rtc_set_time()
224 mon = bin2bcd(mon) & 0x1f; in ds1511_rtc_set_time()
232 rtc_write((rtc_read(RTC_MON) & 0xe0) | mon, RTC_MON); in ds1511_rtc_set_time()
Drtc-davinci.c245 int tmp_days, year, mon; in convertfromdays() local
252 for (mon = 0;; mon++) { in convertfromdays()
253 tmp_days = rtc_month_days(mon, year); in convertfromdays()
258 tm->tm_mon = mon; in convertfromdays()
Drtc-cmos.c332 unsigned char mon, mday, hrs, min, sec, rtc_control; in cmos_set_alarm() local
337 mon = t->time.tm_mon + 1; in cmos_set_alarm()
346 mon = (mon <= 12) ? bin2bcd(mon) : 0xff; in cmos_set_alarm()
367 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()
/linux-4.4.14/drivers/video/fbdev/
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()
/linux-4.4.14/include/linux/
Dtime.h42 extern time64_t mktime64(const unsigned int year, const unsigned int mon,
50 const unsigned int mon, const unsigned int day, in mktime() argument
54 return mktime64(year, mon, day, hour, min, sec); in mktime()
Dcyclades.h154 struct cyclades_monitor mon; member
/linux-4.4.14/crypto/asymmetric_keys/
Dx509_cert_parser.c500 unsigned year, mon, day, hour, min, sec, mon_len; in x509_decode_time() local
525 mon = DD2bin(p); in x509_decode_time()
535 mon < 1 || mon > 12) in x509_decode_time()
538 mon_len = month_lengths[mon - 1]; in x509_decode_time()
539 if (mon == 2) { in x509_decode_time()
556 *_t = mktime64(year, mon, day, hour, min, sec); in x509_decode_time()
/linux-4.4.14/drivers/input/misc/
Dhp_sdc_rtc.c613 unsigned char mon, day, hrs, min, sec, leap_yr; in hp_sdc_rtc_ioctl()
623 mon = hp_sdc_rtc_tm.tm_mon + 1; /* tm_mon starts at zero */ in hp_sdc_rtc_ioctl()
634 if ((mon > 12) || (day == 0)) in hp_sdc_rtc_ioctl()
636 if (day > (days_in_mo[mon] + ((mon == 2) && leap_yr))) in hp_sdc_rtc_ioctl()
/linux-4.4.14/kernel/time/
Dtime.c330 unsigned int mon = mon0, year = year0; in mktime64() local
333 if (0 >= (int) (mon -= 2)) { in mktime64()
334 mon += 12; /* Puts Feb last since it has leap day */ in mktime64()
339 (year/4 - year/100 + year/400 + 367*mon/12 + day) + in mktime64()
/linux-4.4.14/arch/powerpc/boot/dts/fsl/
Dqoriq-sec5.3-0.dtsi116 compatible = "fsl,sec-v5.3-mon", "fsl,sec-v5.0-mon", "fsl,sec-v4.0-mon";
Dqoriq-sec5.2-0.dtsi116 compatible = "fsl,sec-v5.2-mon", "fsl,sec-v5.0-mon", "fsl,sec-v4.0-mon";
Dqoriq-sec5.0-0.dtsi107 compatible = "fsl,sec-v5.0-mon", "fsl,sec-v4.0-mon";
Dqoriq-sec4.2-0.dtsi107 compatible = "fsl,sec-v4.2-mon", "fsl,sec-v4.0-mon";
Dqoriq-sec4.0-0.dtsi98 compatible = "fsl,sec-v4.0-mon";
/linux-4.4.14/fs/lockd/
DMakefile8 svcshare.o svcproc.o svcsubs.o mon.o xdr.o
Dxdr.c310 if (!(p = xdr_decode_string_inplace(p, &argp->mon, &argp->len, SM_MAXSTRLEN))) in nlmsvc_decode_reboot()
Dxdr4.c307 if (!(p = xdr_decode_string_inplace(p, &argp->mon, &argp->len, SM_MAXSTRLEN))) in nlm4svc_decode_reboot()
Dmon.c385 info->len, info->mon); in nsm_reboot_lookup()
/linux-4.4.14/Documentation/devicetree/bindings/power_supply/
Dimx-snvs-poweroff.txt14 compatible = "fsl,sec-v4.0-mon", "simple-bus";
/linux-4.4.14/include/linux/lockd/
Dxdr.h87 char *mon; member
/linux-4.4.14/drivers/usb/
DMakefile14 obj-$(CONFIG_USB_MON) += mon/
DKconfig81 source "drivers/usb/mon/Kconfig"
/linux-4.4.14/drivers/staging/rtl8188eu/
DMakefile45 os_dep/mon.o \
/linux-4.4.14/Documentation/devicetree/bindings/crypto/
Dfsl-sec4.txt314 Definition: Must include "fsl,sec-v4.0-mon" and "syscon".
362 compatible = "fsl,sec-v4.0-mon", "syscon";
377 Definition: Must include "fsl,sec-v4.0-mon-rtc-lp".
400 compatible = "fsl,sec-v4.0-mon-rtc-lp";
517 compatible = "fsl,sec-v4.0-mon";
522 compatible = "fsl,sec-v4.0-mon-rtc-lp";
/linux-4.4.14/arch/powerpc/kernel/
Drtas-proc.c400 unsigned int year, mon, day, hour, min, sec; in ppc_rtas_clock_show() local
401 year = ret[0]; mon = ret[1]; day = ret[2]; in ppc_rtas_clock_show()
404 mktime(year, mon, day, hour, min, sec)); in ppc_rtas_clock_show()
/linux-4.4.14/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 …]
/linux-4.4.14/Documentation/ABI/testing/
Dsysfs-bus-rbd9 Usage: <mon ip addr> <options> <pool name> <rbd image name> [snap name]
/linux-4.4.14/arch/arm/boot/dts/
Dvfxxx.dtsi427 compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd";
431 compatible = "fsl,sec-v4.0-mon-rtc-lp";
Dimx6ul.dtsi421 compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd";
425 compatible = "fsl,sec-v4.0-mon-rtc-lp";
Dimx6sl.dtsi583 compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd";
587 compatible = "fsl,sec-v4.0-mon-rtc-lp";
Dimx7d.dtsi534 compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd";
538 compatible = "fsl,sec-v4.0-mon-rtc-lp";
Dimx6qdl.dtsi722 compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd";
726 compatible = "fsl,sec-v4.0-mon-rtc-lp";
Dimx6sx.dtsi666 compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd";
670 compatible = "fsl,sec-v4.0-mon-rtc-lp";
/linux-4.4.14/Documentation/usb/
Dusbmon.txt69 # cat /sys/kernel/debug/usb/usbmon/3u > /tmp/1.mon.out
73 # cat /sys/kernel/debug/usb/usbmon/0u > /tmp/1.mon.out
88 At this point the output file (/tmp/1.mon.out in this example) can be saved,
/linux-4.4.14/Documentation/ioctl/
Dioctl-number.txt298 0x92 00-0F drivers/usb/mon/mon_bin.c