| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-4.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 …]
|
| /kernel/linux/linux-4.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 23 #print "event %s cpu %d, thread %d, time %d, val %d, ena %d, run %d" % \ 24 # (event, cpu, thread, time, val, ena, run) 26 store_key(time, cpu, thread) 27 key = get_key(time, event, cpu, thread) [all …]
|
| /kernel/linux/linux-5.10/tools/perf/scripts/python/ |
| 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 24 #print("event %s cpu %d, thread %d, time %d, val %d, ena %d, run %d" % 25 # (event, cpu, thread, time, val, ena, run)) 27 store_key(time, cpu, thread) 28 key = get_key(time, event, cpu, thread) [all …]
|
| /kernel/linux/linux-4.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 …]
|
| /kernel/linux/linux-5.10/fs/ntfs/ |
| D | time.h | 3 * time.h - NTFS time conversion functions. Part of the Linux-NTFS project. 11 #include <linux/time.h> /* For current_kernel_time(). */ 19 * utc2ntfs - convert Linux UTC time to NTFS time 20 * @ts: Linux UTC time to convert to NTFS time 22 * Convert the Linux UTC time @ts to its corresponding NTFS time and return 25 * Linux stores time in a struct timespec64 consisting of a time64_t tv_sec 30 * NTFS uses Microsoft's standard time format which is stored in a s64 and is 38 * converted to 100ns intervals, and then add the NTFS time offset. in utc2ntfs() 45 * get_current_ntfs_time - get the current time in little endian NTFS format 47 * Get the current time from the Linux kernel, convert it to its corresponding [all …]
|
| /kernel/linux/linux-4.19/include/linux/platform_data/ |
| D | gpmc-omap.h | 18 /* bool type time settings */ 38 u32 cs_on; /* Assertion time */ 39 u32 cs_rd_off; /* Read deassertion time */ 40 u32 cs_wr_off; /* Write deassertion time */ 43 u32 adv_on; /* Assertion time */ 44 u32 adv_rd_off; /* Read deassertion time */ 45 u32 adv_wr_off; /* Write deassertion time */ 46 u32 adv_aad_mux_on; /* ADV assertion time for AAD */ 47 u32 adv_aad_mux_rd_off; /* ADV read deassertion time for AAD */ 48 u32 adv_aad_mux_wr_off; /* ADV write deassertion time for AAD */ [all …]
|
| /kernel/linux/linux-5.10/include/linux/platform_data/ |
| D | gpmc-omap.h | 15 /* bool type time settings */ 35 u32 cs_on; /* Assertion time */ 36 u32 cs_rd_off; /* Read deassertion time */ 37 u32 cs_wr_off; /* Write deassertion time */ 40 u32 adv_on; /* Assertion time */ 41 u32 adv_rd_off; /* Read deassertion time */ 42 u32 adv_wr_off; /* Write deassertion time */ 43 u32 adv_aad_mux_on; /* ADV assertion time for AAD */ 44 u32 adv_aad_mux_rd_off; /* ADV read deassertion time for AAD */ 45 u32 adv_aad_mux_wr_off; /* ADV write deassertion time for AAD */ [all …]
|
| /kernel/linux/linux-4.19/fs/ntfs/ |
| D | time.h | 2 * time.h - NTFS time conversion functions. Part of the Linux-NTFS project. 25 #include <linux/time.h> /* For current_kernel_time(). */ 33 * utc2ntfs - convert Linux UTC time to NTFS time 34 * @ts: Linux UTC time to convert to NTFS time 36 * Convert the Linux UTC time @ts to its corresponding NTFS time and return 39 * Linux stores time in a struct timespec64 consisting of a time64_t tv_sec 44 * NTFS uses Microsoft's standard time format which is stored in a s64 and is 52 * converted to 100ns intervals, and then add the NTFS time offset. in utc2ntfs() 59 * get_current_ntfs_time - get the current time in little endian NTFS format 61 * Get the current time from the Linux kernel, convert it to its corresponding [all …]
|
| /kernel/linux/linux-4.19/drivers/rtc/ |
| D | rtc-mc146818-lib.c | 24 unsigned int mc146818_get_time(struct rtc_time *time) in mc146818_get_time() argument 41 * Once the read clears, read the RTC time (again via ioctl). Easy. in mc146818_get_time() 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() [all …]
|
| D | rtc-wm8350.c | 2 * Real Time Clock driver for Wolfson Microelectronics WM8350 18 #include <linux/time.h> 34 * Read current time and date in RTC 43 * Read the time twice and compare. in wm8350_rtc_readtime() 44 * If time1 == time2, then time is valid else retry. in wm8350_rtc_readtime() 88 dev_err(dev, "timed out reading RTC time\n"); in wm8350_rtc_readtime() 93 * Set current time and date in RTC 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() [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-rk808.c | 30 /* RK808 has a shadowed register for saving a "frozen" RTC time. 31 * When user setting "GET_TIME" to 1, the time will save in this shadowed 32 * register. If set "READSEL" to 1, user read rtc time register, actually 33 * get the time of that moment. If we need the real time, clr this bit. 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() 95 /* Read current time and date in RTC */ [all …]
|
| /kernel/linux/linux-5.10/drivers/rtc/ |
| D | rtc-mc146818-lib.c | 25 unsigned int mc146818_get_time(struct rtc_time *time) in mc146818_get_time() argument 42 * Once the read clears, read the RTC time (again via ioctl). Easy. in mc146818_get_time() 54 time->tm_sec = CMOS_READ(RTC_SECONDS); in mc146818_get_time() 55 time->tm_min = CMOS_READ(RTC_MINUTES); in mc146818_get_time() 56 time->tm_hour = CMOS_READ(RTC_HOURS); in mc146818_get_time() 57 time->tm_mday = CMOS_READ(RTC_DAY_OF_MONTH); in mc146818_get_time() 58 time->tm_mon = CMOS_READ(RTC_MONTH); in mc146818_get_time() 59 time->tm_year = CMOS_READ(RTC_YEAR); in mc146818_get_time() 73 time->tm_sec = bcd2bin(time->tm_sec); in mc146818_get_time() 74 time->tm_min = bcd2bin(time->tm_min); in mc146818_get_time() [all …]
|
| D | rtc-wm8350.c | 3 * Real Time Clock driver for Wolfson Microelectronics WM8350 13 #include <linux/time.h> 29 * Read current time and date in RTC 38 * Read the time twice and compare. in wm8350_rtc_readtime() 39 * If time1 == time2, then time is valid else retry. in wm8350_rtc_readtime() 83 dev_err(dev, "timed out reading RTC time\n"); in wm8350_rtc_readtime() 88 * Set current time and date in RTC 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() [all …]
|
| 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 …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/rtc/ |
| D | trivial-rtc.yaml | 23 # AB-RTCMC-32.768kHz-B5ZE-S3: Real Time Clock/Calendar Module with I2C Interface 25 # AB-RTCMC-32.768kHz-EOZ9: Real Time Clock/Calendar Module with I2C Interface 29 # Dallas DS1672 Real-time Clock 33 # I2C-BUS INTERFACE REAL TIME CLOCK MODULE 35 # I2C-BUS INTERFACE REAL TIME CLOCK MODULE with Battery Backed RAM 37 # I2C-BUS INTERFACE REAL TIME CLOCK MODULE 43 # Intersil ISL12022 Real-time Clock 45 # Real Time Clock Module with I2C-Bus 47 # Real Time Clock Module with I2C-Bus 49 # Real Time Clock [all …]
|
| /kernel/linux/linux-4.19/scripts/ |
| D | show_delta | 4 # time data, and format with time deltas. 19 have time data prefixed because the CONFIG_PRINTK_TIME option is set, or 20 the kernel command line option "time" is specified. When run with no 21 options, the time information is converted to show the time delta between 23 are relative to a single (base) point in time. 27 -b <base> Specify a base for time references. 31 line) is used as the time reference. 50 time = string.atof(time_str) 52 #print "time=", time 53 return (time, rest) [all …]
|
| /kernel/linux/linux-5.10/scripts/ |
| D | show_delta | 5 # time data, and format with time deltas. 19 have time data prefixed because the CONFIG_PRINTK_TIME option is set, or 20 the kernel command line option "time" is specified. When run with no 21 options, the time information is converted to show the time delta between 23 are relative to a single (base) point in time. 27 -b <base> Specify a base for time references. 31 line) is used as the time reference. 50 time = string.atof(time_str) 52 #print "time=", time 53 return (time, rest) [all …]
|
| /kernel/linux/linux-5.10/sound/core/seq/ |
| D | seq_prioq.c | 7 #include <linux/time.h> 91 return (snd_seq_compare_tick_time(&a->time.tick, &b->time.tick)); in compare_timestamp() 93 /* compare real time */ 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() 115 /* compare real time */ 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() [all …]
|
| /kernel/linux/linux-5.10/lib/ |
| 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 …]
|
| /kernel/linux/linux-5.10/arch/um/kernel/ |
| D | time.c | 22 #include <linux/time-internal.h> 47 panic("time-travel: time goes backwards %lld -> %lld\n", in time_travel_set_time() 89 panic("time-travel external link is broken\n"); in time_travel_handle_message() 91 panic("invalid time-travel message - %d bytes\n", ret); in time_travel_handle_message() 95 WARN_ONCE(1, "time-travel: unexpected message %lld\n", in time_travel_handle_message() 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() 133 * current time (for UM_TIMETRAVEL_GET) and getting another in time_travel_ext_req() [all …]
|
| /kernel/linux/linux-4.19/sound/core/seq/ |
| D | seq_prioq.c | 22 #include <linux/time.h> 106 return (snd_seq_compare_tick_time(&a->time.tick, &b->time.tick)); in compare_timestamp() 108 /* compare real time */ 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() 130 /* compare real time */ 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() [all …]
|
| /kernel/linux/linux-4.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 …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/core/ |
| 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 …]
|