| /OK3568_Linux_fs/u-boot/drivers/rtc/ |
| H A D | sandbox_rtc.c | 16 static int sandbox_rtc_get(struct udevice *dev, struct rtc_time *time) in sandbox_rtc_get() argument 18 time->tm_sec = dm_i2c_reg_read(dev, REG_SEC); in sandbox_rtc_get() 19 if (time->tm_sec < 0) in sandbox_rtc_get() 20 return time->tm_sec; in sandbox_rtc_get() 21 time->tm_min = dm_i2c_reg_read(dev, REG_MIN); in sandbox_rtc_get() 22 if (time->tm_min < 0) in sandbox_rtc_get() 23 return time->tm_min; in sandbox_rtc_get() 24 time->tm_hour = dm_i2c_reg_read(dev, REG_HOUR); in sandbox_rtc_get() 25 if (time->tm_hour < 0) in sandbox_rtc_get() 26 return time->tm_hour; in sandbox_rtc_get() [all …]
|
| H A D | mvrtc.c | 23 u32 time; in rtc_get() local 30 time = readl(&mvrtc_regs->time); in rtc_get() 36 if (time & MVRTC_HRFMT_MSK) { in rtc_get() 42 t->tm_sec = bcd2bin((time >> MVRTC_SEC_SFT) & MVRTC_SEC_MSK); in rtc_get() 43 t->tm_min = bcd2bin((time >> MVRTC_MIN_SFT) & MVRTC_MIN_MSK); in rtc_get() 44 t->tm_hour = bcd2bin((time >> MVRTC_HOUR_SFT) & MVRTC_HOUR_MSK); in rtc_get() 45 t->tm_wday = bcd2bin((time >> MVRTC_DAY_SFT) & MVRTC_DAY_MSK); in rtc_get() 63 u32 time = 0; /* sets hour format bit to zero, 24hr format. */ in rtc_set() local 74 time |= (bin2bcd(t->tm_sec) & MVRTC_SEC_MSK) << MVRTC_SEC_SFT; in rtc_set() 75 time |= (bin2bcd(t->tm_min) & MVRTC_MIN_MSK) << MVRTC_MIN_SFT; in rtc_set() [all …]
|
| H A D | i2c_rtc_emul.c | 89 static int sandbox_i2c_rtc_get(struct udevice *dev, struct rtc_time *time) in sandbox_i2c_rtc_get() argument 102 return rtc_to_tm(now + plat->offset, time); in sandbox_i2c_rtc_get() 105 static int sandbox_i2c_rtc_set(struct udevice *dev, const struct rtc_time *time) in sandbox_i2c_rtc_set() argument 117 plat->offset = rtc_mktime(time) - now; in sandbox_i2c_rtc_set() 126 struct rtc_time time; in sandbox_i2c_rtc_prepare_read() local 129 ret = sandbox_i2c_rtc_get(emul, &time); in sandbox_i2c_rtc_prepare_read() 133 plat->reg[REG_SEC] = time.tm_sec; in sandbox_i2c_rtc_prepare_read() 134 plat->reg[REG_MIN] = time.tm_min; in sandbox_i2c_rtc_prepare_read() 135 plat->reg[REG_HOUR] = time.tm_hour; in sandbox_i2c_rtc_prepare_read() 136 plat->reg[REG_MDAY] = time.tm_mday; in sandbox_i2c_rtc_prepare_read() [all …]
|
| /OK3568_Linux_fs/kernel/tools/perf/scripts/python/ |
| H A D | stat-cpi.py | 10 def get_key(time, event, cpu, thread): argument 11 return "%d-%s-%d-%d" % (time, event, cpu, thread) 13 def store_key(time, cpu, thread): argument 14 if (time not in times): 15 times.append(time) 23 def store(time, event, cpu, thread, val, ena, run): argument 27 store_key(time, cpu, thread) 28 key = get_key(time, event, cpu, thread) 31 def get(time, event, cpu, thread): argument 32 key = get_key(time, event, cpu, thread) [all …]
|
| /OK3568_Linux_fs/kernel/drivers/rtc/ |
| H A D | rtc-mc146818-lib.c | 106 int mc146818_get_time(struct rtc_time *time) in mc146818_get_time() argument 120 memset(time, 0, sizeof(*time)); in mc146818_get_time() 136 time->tm_sec = CMOS_READ(RTC_SECONDS); in mc146818_get_time() 145 if (time->tm_sec != CMOS_READ(RTC_SECONDS)) { in mc146818_get_time() 156 time->tm_min = CMOS_READ(RTC_MINUTES); in mc146818_get_time() 157 time->tm_hour = CMOS_READ(RTC_HOURS); in mc146818_get_time() 158 time->tm_mday = CMOS_READ(RTC_DAY_OF_MONTH); in mc146818_get_time() 159 time->tm_mon = CMOS_READ(RTC_MONTH); in mc146818_get_time() 160 time->tm_year = CMOS_READ(RTC_YEAR); in mc146818_get_time() 181 retry |= time->tm_sec != CMOS_READ(RTC_SECONDS); in mc146818_get_time() [all …]
|
| H A D | rtc-pcf50633.c | 51 u_int8_t time[PCF50633_TI_EXTENT]; member 64 rtc->tm_sec = bcd2bin(pcf->time[PCF50633_TI_SEC]); in pcf2rtc_time() 65 rtc->tm_min = bcd2bin(pcf->time[PCF50633_TI_MIN]); in pcf2rtc_time() 66 rtc->tm_hour = bcd2bin(pcf->time[PCF50633_TI_HOUR]); in pcf2rtc_time() 67 rtc->tm_wday = bcd2bin(pcf->time[PCF50633_TI_WKDAY]); in pcf2rtc_time() 68 rtc->tm_mday = bcd2bin(pcf->time[PCF50633_TI_DAY]); in pcf2rtc_time() 69 rtc->tm_mon = bcd2bin(pcf->time[PCF50633_TI_MONTH]) - 1; in pcf2rtc_time() 70 rtc->tm_year = bcd2bin(pcf->time[PCF50633_TI_YEAR]) + 100; in pcf2rtc_time() 75 pcf->time[PCF50633_TI_SEC] = bin2bcd(rtc->tm_sec); in rtc2pcf_time() 76 pcf->time[PCF50633_TI_MIN] = bin2bcd(rtc->tm_min); in rtc2pcf_time() [all …]
|
| H A D | rtc-wm8350.c | 93 u16 time[4]; in wm8350_rtc_settime() local 97 time[0] = tm->tm_sec; in wm8350_rtc_settime() 98 time[0] |= tm->tm_min << WM8350_RTC_MINS_SHIFT; in wm8350_rtc_settime() 99 time[1] = tm->tm_hour; in wm8350_rtc_settime() 100 time[1] |= (tm->tm_wday + 1) << WM8350_RTC_DAY_SHIFT; in wm8350_rtc_settime() 101 time[2] = tm->tm_mday; in wm8350_rtc_settime() 102 time[2] |= (tm->tm_mon + 1) << WM8350_RTC_MTH_SHIFT; in wm8350_rtc_settime() 103 time[3] = ((tm->tm_year + 1900) / 100) << WM8350_RTC_YHUNDREDS_SHIFT; in wm8350_rtc_settime() 104 time[3] |= (tm->tm_year + 1900) % 100; in wm8350_rtc_settime() 107 time[0], time[1], time[2], time[3]); in wm8350_rtc_settime() [all …]
|
| H A D | rtc-dm355evm.c | 35 union evm_time time; in dm355evm_rtc_read_time() local 48 if (tries && time.bytes[0] == status) in dm355evm_rtc_read_time() 50 time.bytes[0] = status; in dm355evm_rtc_read_time() 55 if (tries && time.bytes[1] == status) in dm355evm_rtc_read_time() 57 time.bytes[1] = status; in dm355evm_rtc_read_time() 62 if (tries && time.bytes[2] == status) in dm355evm_rtc_read_time() 64 time.bytes[2] = status; in dm355evm_rtc_read_time() 69 if (tries && time.bytes[3] == status) in dm355evm_rtc_read_time() 71 time.bytes[3] = status; in dm355evm_rtc_read_time() 75 dev_dbg(dev, "read timestamp %08x\n", time.value); in dm355evm_rtc_read_time() [all …]
|
| H A D | interface.c | 70 time64_t time = rtc_tm_to_time64(tm); in rtc_valid_range() local 77 if (time < range_min || time > range_max) in rtc_valid_range() 194 alarm->time.tm_sec = -1; in rtc_read_alarm_internal() 195 alarm->time.tm_min = -1; in rtc_read_alarm_internal() 196 alarm->time.tm_hour = -1; in rtc_read_alarm_internal() 197 alarm->time.tm_mday = -1; in rtc_read_alarm_internal() 198 alarm->time.tm_mon = -1; in rtc_read_alarm_internal() 199 alarm->time.tm_year = -1; in rtc_read_alarm_internal() 200 alarm->time.tm_wday = -1; in rtc_read_alarm_internal() 201 alarm->time.tm_yday = -1; in rtc_read_alarm_internal() [all …]
|
| H A D | rtc-ds1305.c | 170 static int ds1305_get_time(struct device *dev, struct rtc_time *time) in ds1305_get_time() argument 188 time->tm_sec = bcd2bin(buf[DS1305_SEC]); in ds1305_get_time() 189 time->tm_min = bcd2bin(buf[DS1305_MIN]); in ds1305_get_time() 190 time->tm_hour = bcd2hour(buf[DS1305_HOUR]); in ds1305_get_time() 191 time->tm_wday = buf[DS1305_WDAY] - 1; in ds1305_get_time() 192 time->tm_mday = bcd2bin(buf[DS1305_MDAY]); in ds1305_get_time() 193 time->tm_mon = bcd2bin(buf[DS1305_MON]) - 1; in ds1305_get_time() 194 time->tm_year = bcd2bin(buf[DS1305_YEAR]) + 100; in ds1305_get_time() 198 "read", time->tm_sec, time->tm_min, in ds1305_get_time() 199 time->tm_hour, time->tm_mday, in ds1305_get_time() [all …]
|
| H A D | rtc-spear.c | 205 unsigned int time, date; in spear_rtc_read_time() local 210 time = readl(config->ioaddr + TIME_REG); in spear_rtc_read_time() 212 tm->tm_sec = (time >> SECOND_SHIFT) & SECOND_MASK; in spear_rtc_read_time() 213 tm->tm_min = (time >> MINUTE_SHIFT) & MIN_MASK; in spear_rtc_read_time() 214 tm->tm_hour = (time >> HOUR_SHIFT) & HOUR_MASK; in spear_rtc_read_time() 234 unsigned int time, date; in spear_rtc_set_time() local 239 time = (tm->tm_sec << SECOND_SHIFT) | (tm->tm_min << MINUTE_SHIFT) | in spear_rtc_set_time() 243 writel(time, config->ioaddr + TIME_REG); in spear_rtc_set_time() 260 unsigned int time, date; in spear_rtc_read_alarm() local 264 time = readl(config->ioaddr + ALARM_TIME_REG); in spear_rtc_read_alarm() [all …]
|
| H A D | rtc-ds1302.c | 37 static int ds1302_rtc_set_time(struct device *dev, struct rtc_time *time) in ds1302_rtc_set_time() argument 58 *bp++ = bin2bcd(time->tm_sec); in ds1302_rtc_set_time() 59 *bp++ = bin2bcd(time->tm_min); in ds1302_rtc_set_time() 60 *bp++ = bin2bcd(time->tm_hour); in ds1302_rtc_set_time() 61 *bp++ = bin2bcd(time->tm_mday); in ds1302_rtc_set_time() 62 *bp++ = bin2bcd(time->tm_mon + 1); in ds1302_rtc_set_time() 63 *bp++ = time->tm_wday + 1; in ds1302_rtc_set_time() 64 *bp++ = bin2bcd(time->tm_year % 100); in ds1302_rtc_set_time() 72 static int ds1302_rtc_get_time(struct device *dev, struct rtc_time *time) in ds1302_rtc_get_time() argument 88 time->tm_sec = bcd2bin(buf[RTC_ADDR_SEC]); in ds1302_rtc_get_time() [all …]
|
| H A D | rtc-mcp795.c | 274 later = rtc_tm_to_time64(&alm->time); in mcp795_set_alarm() 279 (SEC_PER_DAY * (365 + is_leap_year(alm->time.tm_year)))) in mcp795_set_alarm() 290 alm->time.tm_year = -1; in mcp795_set_alarm() 291 alm->time.tm_isdst = -1; in mcp795_set_alarm() 292 alm->time.tm_yday = -1; in mcp795_set_alarm() 294 tmp[0] = (tmp[0] & 0x80) | bin2bcd(alm->time.tm_sec); in mcp795_set_alarm() 295 tmp[1] = (tmp[1] & 0x80) | bin2bcd(alm->time.tm_min); in mcp795_set_alarm() 296 tmp[2] = (tmp[2] & 0xE0) | bin2bcd(alm->time.tm_hour); in mcp795_set_alarm() 297 tmp[3] = (tmp[3] & 0x80) | bin2bcd(alm->time.tm_wday + 1); in mcp795_set_alarm() 300 tmp[4] = (tmp[4] & 0xC0) | bin2bcd(alm->time.tm_mday); in mcp795_set_alarm() [all …]
|
| /OK3568_Linux_fs/kernel/sound/core/seq/ |
| H A D | seq_prioq.c | 91 return (snd_seq_compare_tick_time(&a->time.tick, &b->time.tick)); in compare_timestamp() 94 return (snd_seq_compare_real_time(&a->time.time, &b->time.time)); in compare_timestamp() 108 if (a->time.tick > b->time.tick) in compare_timestamp_rel() 110 else if (a->time.tick == b->time.tick) in compare_timestamp_rel() 116 if (a->time.time.tv_sec > b->time.time.tv_sec) in compare_timestamp_rel() 118 else if (a->time.time.tv_sec == b->time.time.tv_sec) { in compare_timestamp_rel() 119 if (a->time.time.tv_nsec > b->time.time.tv_nsec) in compare_timestamp_rel() 121 else if (a->time.time.tv_nsec == b->time.time.tv_nsec) in compare_timestamp_rel() 206 return snd_seq_compare_tick_time(current_time, &ev->time.tick); in event_is_ready() 208 return snd_seq_compare_real_time(current_time, &ev->time.time); in event_is_ready() [all …]
|
| /OK3568_Linux_fs/kernel/lib/ |
| H A D | find_bit_benchmark.c | 39 ktime_t time; in test_find_first_bit() local 41 time = ktime_get(); in test_find_first_bit() 46 time = ktime_get() - time; in test_find_first_bit() 47 pr_err("find_first_bit: %18llu ns, %6ld iterations\n", time, cnt); in test_find_first_bit() 55 ktime_t time; in test_find_next_bit() local 57 time = ktime_get(); in test_find_next_bit() 60 time = ktime_get() - time; in test_find_next_bit() 61 pr_err("find_next_bit: %18llu ns, %6ld iterations\n", time, cnt); in test_find_next_bit() 69 ktime_t time; in test_find_next_zero_bit() local 71 time = ktime_get(); in test_find_next_zero_bit() [all …]
|
| H A D | rbtree_test.c | 245 cycles_t time1, time2, time; in rbtree_test_init() local 267 time = time2 - time1; in rbtree_test_init() 269 time = div_u64(time, perf_loops); in rbtree_test_init() 271 (unsigned long long)time); in rbtree_test_init() 283 time = time2 - time1; in rbtree_test_init() 285 time = div_u64(time, perf_loops); in rbtree_test_init() 287 (unsigned long long)time); in rbtree_test_init() 300 time = time2 - time1; in rbtree_test_init() 302 time = div_u64(time, perf_loops); in rbtree_test_init() 304 (unsigned long long)time); in rbtree_test_init() [all …]
|
| /OK3568_Linux_fs/u-boot/test/dm/ |
| H A D | rtc.c | 29 static void show_time(const char *msg, struct rtc_time *time) in show_time() argument 32 time->tm_mday, time->tm_mon, time->tm_year, in show_time() 33 time->tm_hour, time->tm_min, time->tm_sec); in show_time() 36 static int cmp_times(struct rtc_time *expect, struct rtc_time *time, bool show) in cmp_times() argument 40 same = expect->tm_sec == time->tm_sec; in cmp_times() 41 same &= expect->tm_min == time->tm_min; in cmp_times() 42 same &= expect->tm_hour == time->tm_hour; in cmp_times() 43 same &= expect->tm_mday == time->tm_mday; in cmp_times() 44 same &= expect->tm_mon == time->tm_mon; in cmp_times() 45 same &= expect->tm_year == time->tm_year; in cmp_times() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/core/ |
| H A D | subdev.c | 114 s64 time; in nvkm_subdev_fini() local 117 time = ktime_to_us(ktime_get()); in nvkm_subdev_fini() 130 time = ktime_to_us(ktime_get()) - time; in nvkm_subdev_fini() 131 nvkm_trace(subdev, "%s completed in %lldus\n", action, time); in nvkm_subdev_fini() 138 s64 time; in nvkm_subdev_preinit() local 141 time = ktime_to_us(ktime_get()); in nvkm_subdev_preinit() 151 time = ktime_to_us(ktime_get()) - time; in nvkm_subdev_preinit() 152 nvkm_trace(subdev, "preinit completed in %lldus\n", time); in nvkm_subdev_preinit() 159 s64 time; in nvkm_subdev_init() local 163 time = ktime_to_us(ktime_get()); in nvkm_subdev_init() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/sound/designs/ |
| H A D | timestamping.rst | 7 - Trigger_tstamp is the system time snapshot taken when the .trigger 19 The difference (tstamp - trigger_tstamp) defines the elapsed time. 26 The use of these different pointers and time information depends on 30 - ``delay`` reports the time it will take to hear a new sample after all 34 along with a snapshot of system time. Applications can select from 42 of time as measured by different components of audio hardware. In 47 --------------------------------------------------------------> time 51 time time time time time 58 The analog time is taken at the last stage of the playback, as close 61 The link time is taken at the output of the SoC/chipset as the samples [all …]
|
| /OK3568_Linux_fs/yocto/poky/scripts/pybootchartgui/pybootchartgui/ |
| H A D | samples.py | 18 def __init__(self, time): argument 19 self.time = time 25 def __init__(self, time, user, sys, io = 0.0, swap = 0.0): argument 26 self.time = time 37 return str(self.time) + "\t" + str(self.user) + "\t" + \ 43 def __init__(self, time): argument 44 self.time = time 63 self.time = mem_sample.time 73 def __init__(self, time): argument 74 self.time = time [all …]
|
| /OK3568_Linux_fs/kernel/arch/um/kernel/ |
| H A D | time.c | 101 time_travel_set_time(msg->time); in time_travel_handle_message() 105 time_travel_ext_free_until = msg->time; in time_travel_handle_message() 113 static u64 time_travel_ext_req(u32 op, u64 time) in time_travel_ext_req() argument 119 .time = time, in time_travel_ext_req() 147 msg.op, msg.seq, mseq, msg.time); in time_travel_ext_req() 150 time_travel_set_time(msg.time); in time_travel_ext_req() 153 return msg.time; in time_travel_ext_req() 173 static void time_travel_ext_update_request(unsigned long long time) in time_travel_ext_update_request() argument 180 time == time_travel_ext_prev_request) in time_travel_ext_update_request() 183 time_travel_ext_prev_request = time; in time_travel_ext_update_request() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/base/power/ |
| H A D | trace.c | 91 static struct rtc_time time = { in set_magic_time() local 103 time.tm_year = (n % 100); in set_magic_time() 105 time.tm_mon = (n % 12); in set_magic_time() 107 time.tm_mday = (n % 28) + 1; in set_magic_time() 109 time.tm_hour = (n % 24); in set_magic_time() 111 time.tm_min = (n % 20) * 3; in set_magic_time() 113 mc146818_set_time(&time); in set_magic_time() 120 struct rtc_time time; in read_magic_time() local 123 if (mc146818_get_time(&time) < 0) { in read_magic_time() 128 pr_info("RTC time: %ptRt, date: %ptRd\n", &time, &time); in read_magic_time() [all …]
|
| /OK3568_Linux_fs/buildroot/dl/unixbench/git/UnixBench/testdir/ |
| H A D | cctest.c | 43 int time; member 71 time(); 76 time(); 81 t = (now.time - then.time)*1000 + i; 100 time(); 105 time(); 110 t = (now.time - then.time)*1000 + i; 129 time(); 136 time(); 141 t = (now.time - then.time)*1000 + i;
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/timers/ |
| H A D | valid-adjtimex.c | 205 tmx.time.tv_sec = offset / NSEC_PER_SEC; in set_offset() 206 tmx.time.tv_usec = offset % NSEC_PER_SEC; in set_offset() 208 if (offset < 0 && tmx.time.tv_usec) { in set_offset() 209 tmx.time.tv_sec -= 1; in set_offset() 210 tmx.time.tv_usec += NSEC_PER_SEC; in set_offset() 213 tmx.time.tv_sec = offset / USEC_PER_SEC; in set_offset() 214 tmx.time.tv_usec = offset % USEC_PER_SEC; in set_offset() 216 if (offset < 0 && tmx.time.tv_usec) { in set_offset() 217 tmx.time.tv_sec -= 1; in set_offset() 218 tmx.time.tv_usec += USEC_PER_SEC; in set_offset() [all …]
|
| /OK3568_Linux_fs/external/xserver/Xi/ |
| H A D | allowev.c | 78 swapl(&stuff->time); in SProcXAllowDeviceEvents() 91 TimeStamp time; in ProcXAllowDeviceEvents() local 101 time = ClientTimeToServerTime(stuff->time); in ProcXAllowDeviceEvents() 105 AllowSome(client, time, thisdev, NOT_GRABBED); in ProcXAllowDeviceEvents() 108 AllowSome(client, time, thisdev, FREEZE_NEXT_EVENT); in ProcXAllowDeviceEvents() 111 AllowSome(client, time, thisdev, THAWED); in ProcXAllowDeviceEvents() 114 AllowSome(client, time, thisdev, THAW_OTHERS); in ProcXAllowDeviceEvents() 117 AllowSome(client, time, thisdev, FREEZE_BOTH_NEXT_EVENT); in ProcXAllowDeviceEvents() 120 AllowSome(client, time, thisdev, THAWED_BOTH); in ProcXAllowDeviceEvents()
|