/Linux-v4.19/drivers/gpu/drm/amd/display/modules/stats/ |
D | stats.c | 85 struct stats_time_cache *time; member 144 core_stats->time = kcalloc(core_stats->entries, in mod_stats_create() 148 if (core_stats->time == NULL) in mod_stats_create() 175 kfree(core_stats->time); in mod_stats_create() 189 if (core_stats->time != NULL) in mod_stats_destroy() 190 kfree(core_stats->time); in mod_stats_destroy() 204 struct stats_time_cache *time = NULL; in mod_stats_dump() local 217 time = core_stats->time; in mod_stats_dump() 244 i == time[time_index].entry_id) { in mod_stats_dump() 249 time[time_index].render_time_in_us, in mod_stats_dump() [all …]
|
/Linux-v4.19/tools/perf/scripts/python/ |
D | stat-cpi.py | 9 def get_key(time, event, cpu, thread): argument 10 return "%d-%s-%d-%d" % (time, event, cpu, thread) 12 def store_key(time, cpu, thread): argument 13 if (time not in times): 14 times.append(time) 22 def store(time, event, cpu, thread, val, ena, run): argument 26 store_key(time, cpu, thread) 27 key = get_key(time, event, cpu, thread) 30 def get(time, event, cpu, thread): argument 31 key = get_key(time, event, cpu, thread) [all …]
|
/Linux-v4.19/drivers/rtc/ |
D | rtc-mc146818-lib.c | 24 unsigned int mc146818_get_time(struct rtc_time *time) in mc146818_get_time() argument 53 time->tm_sec = CMOS_READ(RTC_SECONDS); in mc146818_get_time() 54 time->tm_min = CMOS_READ(RTC_MINUTES); in mc146818_get_time() 55 time->tm_hour = CMOS_READ(RTC_HOURS); in mc146818_get_time() 56 time->tm_mday = CMOS_READ(RTC_DAY_OF_MONTH); in mc146818_get_time() 57 time->tm_mon = CMOS_READ(RTC_MONTH); in mc146818_get_time() 58 time->tm_year = CMOS_READ(RTC_YEAR); in mc146818_get_time() 72 time->tm_sec = bcd2bin(time->tm_sec); in mc146818_get_time() 73 time->tm_min = bcd2bin(time->tm_min); in mc146818_get_time() 74 time->tm_hour = bcd2bin(time->tm_hour); in mc146818_get_time() [all …]
|
D | rtc-pcf50633.c | 56 u_int8_t time[PCF50633_TI_EXTENT]; member 69 rtc->tm_sec = bcd2bin(pcf->time[PCF50633_TI_SEC]); in pcf2rtc_time() 70 rtc->tm_min = bcd2bin(pcf->time[PCF50633_TI_MIN]); in pcf2rtc_time() 71 rtc->tm_hour = bcd2bin(pcf->time[PCF50633_TI_HOUR]); in pcf2rtc_time() 72 rtc->tm_wday = bcd2bin(pcf->time[PCF50633_TI_WKDAY]); in pcf2rtc_time() 73 rtc->tm_mday = bcd2bin(pcf->time[PCF50633_TI_DAY]); in pcf2rtc_time() 74 rtc->tm_mon = bcd2bin(pcf->time[PCF50633_TI_MONTH]) - 1; in pcf2rtc_time() 75 rtc->tm_year = bcd2bin(pcf->time[PCF50633_TI_YEAR]) + 100; in pcf2rtc_time() 80 pcf->time[PCF50633_TI_SEC] = bin2bcd(rtc->tm_sec); in rtc2pcf_time() 81 pcf->time[PCF50633_TI_MIN] = bin2bcd(rtc->tm_min); in rtc2pcf_time() [all …]
|
D | rtc-dm355evm.c | 39 union evm_time time; in dm355evm_rtc_read_time() local 52 if (tries && time.bytes[0] == status) in dm355evm_rtc_read_time() 54 time.bytes[0] = status; in dm355evm_rtc_read_time() 59 if (tries && time.bytes[1] == status) in dm355evm_rtc_read_time() 61 time.bytes[1] = status; in dm355evm_rtc_read_time() 66 if (tries && time.bytes[2] == status) in dm355evm_rtc_read_time() 68 time.bytes[2] = status; in dm355evm_rtc_read_time() 73 if (tries && time.bytes[3] == status) in dm355evm_rtc_read_time() 75 time.bytes[3] = status; in dm355evm_rtc_read_time() 79 dev_dbg(dev, "read timestamp %08x\n", time.value); in dm355evm_rtc_read_time() [all …]
|
D | rtc-wm8350.c | 98 u16 time[4]; in wm8350_rtc_settime() local 102 time[0] = tm->tm_sec; in wm8350_rtc_settime() 103 time[0] |= tm->tm_min << WM8350_RTC_MINS_SHIFT; in wm8350_rtc_settime() 104 time[1] = tm->tm_hour; in wm8350_rtc_settime() 105 time[1] |= (tm->tm_wday + 1) << WM8350_RTC_DAY_SHIFT; in wm8350_rtc_settime() 106 time[2] = tm->tm_mday; in wm8350_rtc_settime() 107 time[2] |= (tm->tm_mon + 1) << WM8350_RTC_MTH_SHIFT; in wm8350_rtc_settime() 108 time[3] = ((tm->tm_year + 1900) / 100) << WM8350_RTC_YHUNDREDS_SHIFT; in wm8350_rtc_settime() 109 time[3] |= (tm->tm_year + 1900) % 100; in wm8350_rtc_settime() 112 time[0], time[1], time[2], time[3]); in wm8350_rtc_settime() [all …]
|
D | interface.c | 73 time64_t time = rtc_tm_to_time64(tm); in rtc_valid_range() local 80 if (time < range_min || time > range_max) in rtc_valid_range() 185 alarm->time.tm_sec = -1; in rtc_read_alarm_internal() 186 alarm->time.tm_min = -1; in rtc_read_alarm_internal() 187 alarm->time.tm_hour = -1; in rtc_read_alarm_internal() 188 alarm->time.tm_mday = -1; in rtc_read_alarm_internal() 189 alarm->time.tm_mon = -1; in rtc_read_alarm_internal() 190 alarm->time.tm_year = -1; in rtc_read_alarm_internal() 191 alarm->time.tm_wday = -1; in rtc_read_alarm_internal() 192 alarm->time.tm_yday = -1; in rtc_read_alarm_internal() [all …]
|
D | rtc-rk808.c | 76 time64_t time = rtc_tm_to_time64(tm); in rockchip_to_gregorian() local 77 rtc_time64_to_tm(time + nov2dec_transitions(tm) * 86400, tm); in rockchip_to_gregorian() 83 time64_t time = rtc_tm_to_time64(tm); in gregorian_to_rockchip() local 84 rtc_time64_to_tm(time - extra_days * 86400, tm); in gregorian_to_rockchip() 91 rtc_time64_to_tm(time - (extra_days - 1) * 86400, tm); in gregorian_to_rockchip() 205 alrm->time.tm_sec = bcd2bin(alrm_data[0] & SECONDS_REG_MSK); in rk808_rtc_readalarm() 206 alrm->time.tm_min = bcd2bin(alrm_data[1] & MINUTES_REG_MAK); in rk808_rtc_readalarm() 207 alrm->time.tm_hour = bcd2bin(alrm_data[2] & HOURS_REG_MSK); in rk808_rtc_readalarm() 208 alrm->time.tm_mday = bcd2bin(alrm_data[3] & DAYS_REG_MSK); in rk808_rtc_readalarm() 209 alrm->time.tm_mon = (bcd2bin(alrm_data[4] & MONTHS_REG_MSK)) - 1; in rk808_rtc_readalarm() [all …]
|
D | rtc-mcp795.c | 282 later = rtc_tm_to_time64(&alm->time); in mcp795_set_alarm() 287 (SEC_PER_DAY * (365 + is_leap_year(alm->time.tm_year)))) in mcp795_set_alarm() 298 alm->time.tm_year = -1; in mcp795_set_alarm() 299 alm->time.tm_isdst = -1; in mcp795_set_alarm() 300 alm->time.tm_yday = -1; in mcp795_set_alarm() 302 tmp[0] = (tmp[0] & 0x80) | bin2bcd(alm->time.tm_sec); in mcp795_set_alarm() 303 tmp[1] = (tmp[1] & 0x80) | bin2bcd(alm->time.tm_min); in mcp795_set_alarm() 304 tmp[2] = (tmp[2] & 0xE0) | bin2bcd(alm->time.tm_hour); in mcp795_set_alarm() 305 tmp[3] = (tmp[3] & 0x80) | bin2bcd(alm->time.tm_wday + 1); in mcp795_set_alarm() 308 tmp[4] = (tmp[4] & 0xC0) | bin2bcd(alm->time.tm_mday); in mcp795_set_alarm() [all …]
|
D | rtc-proc.c | 62 if ((unsigned int)alrm.time.tm_hour <= 24) in rtc_proc_show() 63 seq_printf(seq, "%02d:", alrm.time.tm_hour); in rtc_proc_show() 66 if ((unsigned int)alrm.time.tm_min <= 59) in rtc_proc_show() 67 seq_printf(seq, "%02d:", alrm.time.tm_min); in rtc_proc_show() 70 if ((unsigned int)alrm.time.tm_sec <= 59) in rtc_proc_show() 71 seq_printf(seq, "%02d\n", alrm.time.tm_sec); in rtc_proc_show() 76 if ((unsigned int)alrm.time.tm_year <= 200) in rtc_proc_show() 77 seq_printf(seq, "%04d-", alrm.time.tm_year + 1900); in rtc_proc_show() 80 if ((unsigned int)alrm.time.tm_mon <= 11) in rtc_proc_show() 81 seq_printf(seq, "%02d-", alrm.time.tm_mon + 1); in rtc_proc_show() [all …]
|
D | rtc-ds1302.c | 42 static int ds1302_rtc_set_time(struct device *dev, struct rtc_time *time) in ds1302_rtc_set_time() argument 63 *bp++ = bin2bcd(time->tm_sec); in ds1302_rtc_set_time() 64 *bp++ = bin2bcd(time->tm_min); in ds1302_rtc_set_time() 65 *bp++ = bin2bcd(time->tm_hour); in ds1302_rtc_set_time() 66 *bp++ = bin2bcd(time->tm_mday); in ds1302_rtc_set_time() 67 *bp++ = bin2bcd(time->tm_mon + 1); in ds1302_rtc_set_time() 68 *bp++ = time->tm_wday + 1; in ds1302_rtc_set_time() 69 *bp++ = bin2bcd(time->tm_year % 100); in ds1302_rtc_set_time() 77 static int ds1302_rtc_get_time(struct device *dev, struct rtc_time *time) in ds1302_rtc_get_time() argument 93 time->tm_sec = bcd2bin(buf[RTC_ADDR_SEC]); in ds1302_rtc_get_time() [all …]
|
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 …]
|
D | rtc-ds1305.c | 174 static int ds1305_get_time(struct device *dev, struct rtc_time *time) in ds1305_get_time() argument 192 time->tm_sec = bcd2bin(buf[DS1305_SEC]); in ds1305_get_time() 193 time->tm_min = bcd2bin(buf[DS1305_MIN]); in ds1305_get_time() 194 time->tm_hour = bcd2hour(buf[DS1305_HOUR]); in ds1305_get_time() 195 time->tm_wday = buf[DS1305_WDAY] - 1; in ds1305_get_time() 196 time->tm_mday = bcd2bin(buf[DS1305_MDAY]); in ds1305_get_time() 197 time->tm_mon = bcd2bin(buf[DS1305_MON]) - 1; in ds1305_get_time() 198 time->tm_year = bcd2bin(buf[DS1305_YEAR]) + 100; in ds1305_get_time() 202 "read", time->tm_sec, time->tm_min, in ds1305_get_time() 203 time->tm_hour, time->tm_mday, in ds1305_get_time() [all …]
|
D | rtc-pl031.c | 130 unsigned long time; in pl031_stv2_tm_to_time() local 133 rtc_tm_to_time(tm, &time); in pl031_stv2_tm_to_time() 134 rtc_time_to_tm(time, &calc_tm); in pl031_stv2_tm_to_time() 182 unsigned long time; in pl031_stv2_set_time() local 187 ret = pl031_stv2_tm_to_time(dev, tm, &time, &bcd_year); in pl031_stv2_set_time() 190 writel(time, ldata->base + RTC_LR); in pl031_stv2_set_time() 202 readl(ldata->base + RTC_YMR), &alarm->time); in pl031_stv2_read_alarm() 213 unsigned long time; in pl031_stv2_set_alarm() local 218 ret = rtc_valid_tm(&alarm->time); in pl031_stv2_set_alarm() 220 ret = pl031_stv2_tm_to_time(dev, &alarm->time, in pl031_stv2_set_alarm() [all …]
|
D | rtc-vr41xx.c | 122 static int vr41xx_rtc_read_time(struct device *dev, struct rtc_time *time) in vr41xx_rtc_read_time() argument 129 rtc_time64_to_tm(epoch_sec + elapsed_sec, time); in vr41xx_rtc_read_time() 134 static int vr41xx_rtc_set_time(struct device *dev, struct rtc_time *time) in vr41xx_rtc_set_time() argument 139 current_sec = mktime64(time->tm_year + 1900, time->tm_mon + 1, time->tm_mday, in vr41xx_rtc_set_time() 140 time->tm_hour, time->tm_min, time->tm_sec); in vr41xx_rtc_set_time() 150 struct rtc_time *time = &wkalrm->time; in vr41xx_rtc_read_alarm() local 161 rtc_time_to_tm((high << 17) | (mid << 1) | (low >> 15), time); in vr41xx_rtc_read_alarm() 169 struct rtc_time *time = &wkalrm->time; in vr41xx_rtc_set_alarm() local 171 alarm_sec = mktime64(time->tm_year + 1900, time->tm_mon + 1, time->tm_mday, in vr41xx_rtc_set_alarm() 172 time->tm_hour, time->tm_min, time->tm_sec); in vr41xx_rtc_set_alarm()
|
D | rtc-mv.c | 119 alm->time.tm_sec = bcd2bin(second); in mv_rtc_read_alarm() 120 alm->time.tm_min = bcd2bin(minute); in mv_rtc_read_alarm() 121 alm->time.tm_hour = bcd2bin(hour); in mv_rtc_read_alarm() 122 alm->time.tm_mday = bcd2bin(day); in mv_rtc_read_alarm() 123 alm->time.tm_wday = bcd2bin(wday); in mv_rtc_read_alarm() 124 alm->time.tm_mon = bcd2bin(month) - 1; in mv_rtc_read_alarm() 126 alm->time.tm_year = bcd2bin(year) + 100; in mv_rtc_read_alarm() 128 if (rtc_valid_tm(&alm->time) < 0) { in mv_rtc_read_alarm() 130 rtc_time_to_tm(0, &alm->time); in mv_rtc_read_alarm() 143 if (alm->time.tm_sec >= 0) in mv_rtc_set_alarm() [all …]
|
/Linux-v4.19/sound/core/seq/ |
D | seq_prioq.c | 106 return (snd_seq_compare_tick_time(&a->time.tick, &b->time.tick)); in compare_timestamp() 109 return (snd_seq_compare_real_time(&a->time.time, &b->time.time)); in compare_timestamp() 123 if (a->time.tick > b->time.tick) in compare_timestamp_rel() 125 else if (a->time.tick == b->time.tick) in compare_timestamp_rel() 131 if (a->time.time.tv_sec > b->time.time.tv_sec) in compare_timestamp_rel() 133 else if (a->time.time.tv_sec == b->time.time.tv_sec) { in compare_timestamp_rel() 134 if (a->time.time.tv_nsec > b->time.time.tv_nsec) in compare_timestamp_rel() 136 else if (a->time.time.tv_nsec == b->time.time.tv_nsec) in compare_timestamp_rel() 221 return snd_seq_compare_tick_time(current_time, &ev->time.tick); in event_is_ready() 223 return snd_seq_compare_real_time(current_time, &ev->time.time); in event_is_ready() [all …]
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/core/ |
D | subdev.c | 111 s64 time; in nvkm_subdev_fini() local 114 time = ktime_to_us(ktime_get()); in nvkm_subdev_fini() 127 time = ktime_to_us(ktime_get()) - time; in nvkm_subdev_fini() 128 nvkm_trace(subdev, "%s completed in %lldus\n", action, time); in nvkm_subdev_fini() 135 s64 time; in nvkm_subdev_preinit() local 138 time = ktime_to_us(ktime_get()); in nvkm_subdev_preinit() 148 time = ktime_to_us(ktime_get()) - time; in nvkm_subdev_preinit() 149 nvkm_trace(subdev, "preinit completed in %lldus\n", time); in nvkm_subdev_preinit() 156 s64 time; in nvkm_subdev_init() local 160 time = ktime_to_us(ktime_get()); in nvkm_subdev_init() [all …]
|
/Linux-v4.19/lib/ |
D | find_bit_benchmark.c | 47 ktime_t time; in test_find_first_bit() local 49 time = ktime_get(); in test_find_first_bit() 54 time = ktime_get() - time; in test_find_first_bit() 55 pr_err("find_first_bit: %18llu ns, %6ld iterations\n", time, cnt); in test_find_first_bit() 63 ktime_t time; in test_find_next_bit() local 65 time = ktime_get(); in test_find_next_bit() 68 time = ktime_get() - time; in test_find_next_bit() 69 pr_err("find_next_bit: %18llu ns, %6ld iterations\n", time, cnt); in test_find_next_bit() 77 ktime_t time; in test_find_next_zero_bit() local 79 time = ktime_get(); in test_find_next_zero_bit() [all …]
|
D | rbtree_test.c | 247 cycles_t time1, time2, time; in rbtree_test_init() local 269 time = time2 - time1; in rbtree_test_init() 271 time = div_u64(time, perf_loops); in rbtree_test_init() 273 (unsigned long long)time); in rbtree_test_init() 285 time = time2 - time1; in rbtree_test_init() 287 time = div_u64(time, perf_loops); in rbtree_test_init() 289 (unsigned long long)time); in rbtree_test_init() 302 time = time2 - time1; in rbtree_test_init() 304 time = div_u64(time, perf_loops); in rbtree_test_init() 306 (unsigned long long)time); in rbtree_test_init() [all …]
|
/Linux-v4.19/drivers/base/power/ |
D | trace.c | 88 static struct rtc_time time = { in set_magic_time() local 100 time.tm_year = (n % 100); in set_magic_time() 102 time.tm_mon = (n % 12); in set_magic_time() 104 time.tm_mday = (n % 28) + 1; in set_magic_time() 106 time.tm_hour = (n % 24); in set_magic_time() 108 time.tm_min = (n % 20) * 3; in set_magic_time() 110 mc146818_set_time(&time); in set_magic_time() 117 struct rtc_time time; in read_magic_time() local 120 mc146818_get_time(&time); in read_magic_time() 122 time.tm_hour, time.tm_min, time.tm_sec, in read_magic_time() [all …]
|
/Linux-v4.19/Documentation/sound/designs/ |
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 …]
|
/Linux-v4.19/tools/testing/selftests/timers/ |
D | valid-adjtimex.c | 204 tmx.time.tv_sec = offset / NSEC_PER_SEC; in set_offset() 205 tmx.time.tv_usec = offset % NSEC_PER_SEC; in set_offset() 207 if (offset < 0 && tmx.time.tv_usec) { in set_offset() 208 tmx.time.tv_sec -= 1; in set_offset() 209 tmx.time.tv_usec += NSEC_PER_SEC; in set_offset() 212 tmx.time.tv_sec = offset / USEC_PER_SEC; in set_offset() 213 tmx.time.tv_usec = offset % USEC_PER_SEC; in set_offset() 215 if (offset < 0 && tmx.time.tv_usec) { in set_offset() 216 tmx.time.tv_sec -= 1; in set_offset() 217 tmx.time.tv_usec += USEC_PER_SEC; in set_offset() [all …]
|
/Linux-v4.19/scripts/ |
D | show_delta | 50 time = string.atof(time_str) 53 return (time, rest) 65 (time, rest) = get_time(line) 72 delta = time - base_time 75 delta = time - last_time 76 last_time = time 78 return ("[%5.6f < %5.6f >]" % (time, delta)) + rest 111 (time, rest) = get_time(line) 115 base_time = time
|
/Linux-v4.19/drivers/input/misc/ |
D | axp20x-pek.c | 48 unsigned int time; member 53 { .time = 128, .idx = 0 }, 54 { .time = 1000, .idx = 2 }, 55 { .time = 3000, .idx = 1 }, 56 { .time = 2000, .idx = 3 }, 60 { .time = 128, .idx = 0 }, 61 { .time = 1000, .idx = 1 }, 62 { .time = 2000, .idx = 2 }, 63 { .time = 3000, .idx = 3 }, 67 { .time = 4000, .idx = 0 }, [all …]
|