/linux/net/tipc/ |
A D | monitor.c | 358 if (!mon) in tipc_mon_remove_peer() 449 if (!mon) in tipc_mon_peer_down() 631 struct tipc_monitor *mon = from_timer(mon, t, timer); in mon_timeout() local 642 mod_timer(&mon->timer, jiffies + mon->timer_intv); in mon_timeout() 655 mon = kzalloc(sizeof(*mon), GFP_ATOMIC); in tipc_mon_create() 659 kfree(mon); in tipc_mon_create() 676 mod_timer(&mon->timer, jiffies + mon->timer_intv); in tipc_mon_create() 687 if (!mon) in tipc_mon_delete() 704 kfree(mon); in tipc_mon_delete() 714 if (!mon) in tipc_mon_reinit_self() [all …]
|
/linux/tools/power/cpupower/utils/idle_monitor/ |
A D | cpupower-monitor.c | 97 int unsigned mon; in print_header() local 105 for (mon = 0; mon < avail_monitors; mon++) { in print_header() 108 if (mon != 0) in print_header() 123 for (mon = 0; mon < avail_monitors; mon++) { in print_header() 124 if (mon != 0) in print_header() 142 unsigned int mon; in print_results() local 162 for (mon = 0; mon < avail_monitors; mon++) { in print_results() 163 if (mon != 0) in print_results() 228 for (mon = 0; mon < MONITORS_MAX; mon++, tmp = NULL) { in parse_monitor_param() 263 for (mon = 0; mon < avail_monitors; mon++) { in list_monitors() [all …]
|
/linux/tools/testing/selftests/timers/ |
A D | raw_skew.c | 69 void get_monotonic_and_raw(struct timespec *mon, struct timespec *raw) in get_monotonic_and_raw() argument 87 *mon = nsec_to_ts(tmp); in get_monotonic_and_raw() 94 struct timespec mon, raw, start, end; in main() local 107 get_monotonic_and_raw(&mon, &raw); in main() 108 start = mon; in main() 109 delta1 = diff_timespec(mon, raw); in main() 118 get_monotonic_and_raw(&mon, &raw); in main() 119 end = mon; in main() 122 delta2 = diff_timespec(mon, raw); in main()
|
/linux/arch/arm/mach-shmobile/ |
A D | regulator-quirk-rcar-gen2.c | 81 u32 mon; in regulator_quirk_notify() local 86 mon = ioread32(irqc + IRQC_MONITOR); in regulator_quirk_notify() 87 dev_dbg(dev, "%s: %ld, IRQC_MONITOR = 0x%x\n", __func__, action, mon); in regulator_quirk_notify() 88 if (mon & REGULATOR_IRQ_MASK) in regulator_quirk_notify() 117 mon = ioread32(irqc + IRQC_MONITOR); in regulator_quirk_notify() 118 if (mon & REGULATOR_IRQ_MASK) in regulator_quirk_notify() 146 u32 mon, addr; in rcar_gen2_regulator_quirk() local 207 mon = ioread32(irqc + IRQC_MONITOR); in rcar_gen2_regulator_quirk() 208 if (mon & REGULATOR_IRQ_MASK) { in rcar_gen2_regulator_quirk()
|
/linux/arch/m68k/bvme6000/ |
A D | rtc.c | 74 unsigned char mon, day, hrs, min, sec, leap_yr; in rtc_ioctl() local 86 mon = rtc_tm.tm_mon + 1; /* tm_mon starts at zero */ 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() 117 rtc->bcd_mth = bin2bcd(mon); in rtc_ioctl()
|
/linux/arch/m68k/mvme16x/ |
A D | rtc.c | 69 unsigned char mon, day, hrs, min, sec, leap_yr; in rtc_ioctl() local 81 mon = rtc_tm.tm_mon + 1; /* tm_mon starts at zero */ in rtc_ioctl() 89 if ((mon > 12) || (day == 0)) in rtc_ioctl() 92 if (day > (days_in_mo[mon] + ((mon == 2) && leap_yr))) in rtc_ioctl() 108 rtc->bcd_mth = bin2bcd(mon); in rtc_ioctl()
|
/linux/arch/x86/kernel/cpu/resctrl/ |
A D | rdtgroup.c | 385 list_for_each_entry(crgrp, &r->mon.crdtgrp_list, mon.crdtgrp_list) in cpumask_rdtgrp_clear() 809 mon.crdtgrp_list) { in proc_resctrl_show() 2387 free_rmid(sentry->mon.rmid); in free_all_child_rdtgrp() 2514 list_for_each_entry(crgrp, &prgrp->mon.crdtgrp_list, mon.crdtgrp_list) in rmdir_mondata_subdir_allrdtgrp() 2902 rdtgrp->mon.rmid = ret; in mkdir_rdt_prepare() 2918 free_rmid(rdtgrp->mon.rmid); in mkdir_rdt_prepare() 2932 free_rmid(rgrp->mon.rmid); in mkdir_rdt_prepare_clean() 2951 prgrp = rdtgrp->mon.parent; in rdtgroup_mkdir_mon() 2958 list_add_tail(&rdtgrp->mon.crdtgrp_list, &prgrp->mon.crdtgrp_list); in rdtgroup_mkdir_mon() 3081 free_rmid(rdtgrp->mon.rmid); in rdtgroup_rmdir_mon() [all …]
|
A D | monitor.c | 368 ret_val = __mon_event_count(rdtgrp->mon.rmid, rr); in mon_event_count() 375 head = &rdtgrp->mon.crdtgrp_list; in mon_event_count() 379 if (__mon_event_count(entry->mon.rmid, rr) == 0) in mon_event_count() 439 rmid = rgrp->mon.rmid; in update_mba_bw() 461 head = &rgrp->mon.crdtgrp_list; in update_mba_bw() 463 cmbm_data = &dom_mbm->mbm_local[entry->mon.rmid]; in update_mba_bw() 507 cmbm_data = &dom_mbm->mbm_local[entry->mon.rmid]; in update_mba_bw() 595 mbm_update(r, d, prgrp->mon.rmid); in mbm_handle_overflow() 597 head = &prgrp->mon.crdtgrp_list; in mbm_handle_overflow() 598 list_for_each_entry(crgrp, head, mon.crdtgrp_list) in mbm_handle_overflow() [all …]
|
/linux/arch/mips/include/asm/ |
A D | mc146818-time.h | 91 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 mktime64(year, mon, day, hour, min, sec); in mc146818_get_cmos_time()
|
/linux/arch/sh/boards/mach-sh03/ |
A D | rtc.c | 43 unsigned int year, mon, day, hour, min, sec; in sh03_rtc_gettimeofday() local 52 mon = (__raw_readb(RTC_MON1) & 0xf) + (__raw_readb(RTC_MON10) & 0xf) * 10; in sh03_rtc_gettimeofday() 57 if (year == 0 || mon < 1 || mon > 12 || day > 31 || day < 1 || in sh03_rtc_gettimeofday() 62 year, mon, day, hour, min, sec); in sh03_rtc_gettimeofday() 83 tm->tm_mon = mon; in sh03_rtc_gettimeofday()
|
/linux/arch/m68k/atari/ |
A D | time.c | 201 int sec=0, min=0, hour=0, day=0, mon=0, year=0, wday=0; in atari_tt_hwclk() local 216 mon = t->tm_mon + 1; in atari_tt_hwclk() 235 mon = bin2bcd(mon); in atari_tt_hwclk() 268 mon = RTC_READ( RTC_MONTH ); in atari_tt_hwclk() 277 RTC_WRITE( RTC_MONTH, mon ); in atari_tt_hwclk() 297 mon = bcd2bin(mon); in atari_tt_hwclk() 313 t->tm_mon = mon - 1; in atari_tt_hwclk()
|
/linux/arch/mips/dec/ |
A D | time.c | 24 unsigned int year, mon, day, hour, min, sec, real_year; in read_persistent_clock64() local 34 mon = CMOS_READ(RTC_MONTH); in read_persistent_clock64() 51 mon = bcd2bin(mon); in read_persistent_clock64() 57 ts->tv_sec = mktime64(year, mon, day, hour, min, sec); in read_persistent_clock64()
|
/linux/drivers/rtc/ |
A D | rtc-mc146818-lib.c | 127 unsigned char mon, day, hrs, min, sec; in mc146818_set_time() local 136 mon = time->tm_mon + 1; /* tm_mon starts at zero */ in mc146818_set_time() 156 if (!leap_yr && mon < 3) { in mc146818_set_time() 185 mon = bin2bcd(mon); in mc146818_set_time() 200 CMOS_WRITE(mon, RTC_MONTH); in mc146818_set_time()
|
A D | rtc-m48t35.c | 100 unsigned char mon, day, hrs, min, sec; in m48t35_set_time() local 105 mon = tm->tm_mon + 1; /* tm_mon starts at zero */ in m48t35_set_time() 128 mon = bin2bcd(mon); in m48t35_set_time() 135 writeb(mon, &priv->reg->month); in m48t35_set_time()
|
A D | rtc-bq4802.c | 95 u8 sec, min, hrs, day, mon, yrs, century, val; in bq4802_set_time() local 103 mon = tm->tm_mon + 1; /* tm_mon starts at zero */ in bq4802_set_time() 113 mon = bin2bcd(mon); in bq4802_set_time() 126 p->write(p, 0x09, mon); in bq4802_set_time()
|
A D | rtc-ds1511.c | 176 u8 mon, day, dow, hrs, min, sec, yrs, cen; in ds1511_rtc_set_time() local 190 mon = rtc_tm->tm_mon + 1; /* tm_mon starts at zero */ in ds1511_rtc_set_time() 197 if ((mon > 12) || (day == 0)) in ds1511_rtc_set_time() 213 mon = bin2bcd(mon) & 0x1f; in ds1511_rtc_set_time() 221 rtc_write((rtc_read(RTC_MON) & 0xe0) | mon, RTC_MON); in ds1511_rtc_set_time()
|
A D | rtc-ds1286.c | 216 unsigned char mon, day, hrs, min, sec; in ds1286_set_time() local 222 mon = tm->tm_mon + 1; /* tm_mon starts at zero */ in ds1286_set_time() 242 mon = bin2bcd(mon); in ds1286_set_time() 250 ds1286_rtc_write(priv, mon, RTC_MONTH); in ds1286_set_time()
|
/linux/arch/powerpc/platforms/chrp/ |
A D | time.c | 134 unsigned int year, mon, day, hour, min, sec; in chrp_get_rtc_time() local 141 mon = chrp_cmos_clock_read(RTC_MONTH); in chrp_get_rtc_time() 150 mon = bcd2bin(mon); in chrp_get_rtc_time() 159 tm->tm_mon = mon; in chrp_get_rtc_time()
|
/linux/arch/x86/kernel/ |
A D | rtc.c | 65 unsigned int status, year, mon, day, hour, min, sec, century = 0; in mach_get_cmos_time() local 92 mon = CMOS_READ(RTC_MONTH); in mach_get_cmos_time() 111 mon = bcd2bin(mon); in mach_get_cmos_time() 121 now->tv_sec = mktime64(year, mon, day, hour, min, sec); in mach_get_cmos_time()
|
/linux/arch/powerpc/platforms/maple/ |
A D | time.c | 80 int sec, min, hour, mon, mday, year; in maple_set_rtc_time() local 95 mon = tm->tm_mon; in maple_set_rtc_time() 103 mon = bin2bcd(mon); in maple_set_rtc_time() 110 maple_clock_write(mon, RTC_MONTH); in maple_set_rtc_time()
|
/linux/arch/mips/sibyte/swarm/ |
A D | rtc_m41t81.c | 188 unsigned int year, mon, day, hour, min, sec; in m41t81_get_time() local 203 mon = m41t81_read(M41T81REG_MO); in m41t81_get_time() 211 mon = bcd2bin(mon); in m41t81_get_time() 216 return mktime64(year, mon, day, hour, min, sec); in m41t81_get_time()
|
A D | rtc_xicor1241.c | 169 unsigned int year, mon, day, hour, min, sec, y2k; in xicor_get_time() local 185 mon = xicor_read(X1241REG_MO); in xicor_get_time() 194 mon = bcd2bin(mon); in xicor_get_time() 200 return mktime64(year, mon, day, hour, min, sec); in xicor_get_time()
|
/linux/tools/gpio/ |
A D | Makefile | 21 ALL_TARGETS := lsgpio gpio-hammer gpio-event-mon gpio-watch 63 GPIO_EVENT_MON_IN := $(OUTPUT)gpio-event-mon-in.o 65 $(Q)$(MAKE) $(build)=gpio-event-mon 66 $(OUTPUT)gpio-event-mon: $(GPIO_EVENT_MON_IN)
|
A D | Build | 4 gpio-event-mon-y += gpio-event-mon.o gpio-utils.o
|
/linux/drivers/video/fbdev/ |
A D | bw2.c | 233 u8 status, mon; in bw2_do_default_mode() local 237 mon = status & BWTWO_SR_RES_MASK; in bw2_do_default_mode() 240 if (mon == BWTWO_SR_1600_1280) { in bw2_do_default_mode() 254 if (mon == BWTWO_SR_1152_900_76_A || in bw2_do_default_mode() 255 mon == BWTWO_SR_1152_900_76_B) in bw2_do_default_mode()
|