/linux-6.12.1/tools/testing/selftests/tc-testing/tc-tests/actions/ |
D | gate.json | 20 … "cmdUnderTest": "$TC action add action gate priority 1 sched-entry close 100000000ns index 100", 47 …derTest": "$TC action add action gate base-time 200000000000ns sched-entry close 100000000ns index… 74 …t": "$TC action add action gate cycle-time 200000000000ns sched-entry close 100000000ns index 1000… 77 "matchPattern": "action order [0-9]*: .*cycle-time 200s.*index 1000 ref", 101 … "$TC action add action gate cycle-time-ext 20000000000ns sched-entry close 100000000ns index 1000… 103 "verifyCmd": "$TC action get action gate index 1000", 104 "matchPattern": "action order [0-9]*: .*cycle-time-ext 20s.*index 1000 ref", 128 …"$TC action add action gate base-time 200000000000ns sched-entry open 200000000ns -1 8000000b inde… 134 "cmdUnderTest": "$TC action replace action gate base-time 400000000000ns index 20", 161 …"$TC action add action gate base-time 200000000000ns sched-entry open 200000000ns -1 8000000b inde… [all …]
|
/linux-6.12.1/tools/testing/selftests/net/ |
D | cmsg_time.sh | 13 cleanup_ns $NS 19 setup_ns NS 21 ip netns exec $NS sysctl -w net.ipv4.ping_group_range='0 2147483647' > /dev/null 24 ip -netns $NS link add type dummy 25 ip -netns $NS link set dev dummy0 up 26 ip -netns $NS addr add $IP4 dev dummy0 27 ip -netns $NS addr add $IP6 dev dummy0 30 ip netns exec $NS tc qdisc replace dev dummy0 root fq 53 ts=$(ip netns exec $NS ./cmsg_sender -p $p $i 1234) 56 ts=$(ip netns exec $NS ./cmsg_sender -p $p $i 1234 -t | wc -l) [all …]
|
D | lib.sh | 9 BUSYWAIT_TIMEOUT=$((WAIT_TIMEOUT * 1000)) # ms 98 loopy_wait "sleep 0.1" "$((timeout_sec * 1000))" "$@" 146 local ns 150 for ns in "${ns_list[@]}"; do 151 if [ "${ns}" != "${item}" ]; then 152 NS_LIST+=("${ns}") 159 local ns="" 162 for ns in "$@"; do 163 [ -z "${ns}" ] && continue 164 ip netns pids "${ns}" 2> /dev/null | xargs -r kill || true [all …]
|
D | cmsg_so_mark.sh | 10 MARK=1000 14 cleanup_ns $NS 20 setup_ns NS 22 ip netns exec $NS sysctl -w net.ipv4.ping_group_range='0 2147483647' > /dev/null 25 ip -netns $NS link add type dummy 26 ip -netns $NS link set dev dummy0 up 27 ip -netns $NS addr add $IP4 dev dummy0 28 ip -netns $NS addr add $IP6 dev dummy0 30 ip -netns $NS rule add fwmark $MARK lookup 300 31 ip -6 -netns $NS rule add fwmark $MARK lookup 300 [all …]
|
/linux-6.12.1/arch/arm/boot/dts/nvidia/ |
D | tegra20-cpu-opp.dtsi | 9 clock-latency-ns = <400000>; 16 clock-latency-ns = <400000>; 23 clock-latency-ns = <400000>; 29 clock-latency-ns = <400000>; 35 clock-latency-ns = <400000>; 41 clock-latency-ns = <400000>; 48 clock-latency-ns = <400000>; 54 clock-latency-ns = <400000>; 60 clock-latency-ns = <400000>; 66 clock-latency-ns = <400000>; [all …]
|
D | tegra30-cpu-opp.dtsi | 9 clock-latency-ns = <100000>; 15 clock-latency-ns = <100000>; 21 clock-latency-ns = <100000>; 27 clock-latency-ns = <100000>; 33 clock-latency-ns = <100000>; 39 clock-latency-ns = <100000>; 45 clock-latency-ns = <100000>; 52 clock-latency-ns = <100000>; 59 clock-latency-ns = <100000>; 66 clock-latency-ns = <100000>; [all …]
|
/linux-6.12.1/drivers/gpu/drm/i915/gt/ |
D | intel_gt_clock_utils.c | 117 * "The PCU TSC counts 10ns increments; this timestamp in gen6_read_clock_frequency() 118 * reflects bits 38:3 of the TSC (i.e. 80ns granularity, in gen6_read_clock_frequency() 127 * 63:32 increments every 1000 ns in gen5_read_clock_frequency() 130 return 1000000000 / 1000; in gen5_read_clock_frequency() 136 * 63:20 increments every 1/4 ns in g4x_read_clock_frequency() 139 * -> 63:32 increments every 1024 ns in g4x_read_clock_frequency() 155 return DIV_ROUND_CLOSEST(i9xx_fsb_freq(uncore->i915), 4) * 1000; in gen4_read_clock_frequency() 188 gt->clock_frequency / 1000, in intel_gt_init_clock_frequency() 220 u64 intel_gt_ns_to_clock_interval(const struct intel_gt *gt, u64 ns) in intel_gt_ns_to_clock_interval() argument 222 return div_u64_roundup(gt->clock_frequency * ns, NSEC_PER_SEC); in intel_gt_ns_to_clock_interval() [all …]
|
/linux-6.12.1/drivers/memory/ |
D | omap-gpmc.c | 299 rate /= 1000; in gpmc_get_fclk_period() 343 return (time_ns * 1000 + tick_ps - 1) / tick_ps; in gpmc_ns_to_clk_ticks() 364 return ticks * gpmc_get_clk_period(cs, cd) / 1000; in gpmc_clk_ticks_to_ns() 431 * tick format: gpmc,name = <value> /‍* x ns -- y ns; x ticks *‍/ 432 * Where x ns -- y ns result in the same tick value. 464 /* DTS tick format for timings in ns */ in get_gpmc_timing_reg() 471 pr_info("gpmc,%s = <%u>; /* %u ns - %u ns; %i ticks%s*/\n", in get_gpmc_timing_reg() 548 GPMC_GET_TICKS(GPMC_CS_CONFIG2, 0, 3, "cs-on-ns"); in gpmc_cs_show_timings() 549 GPMC_GET_TICKS(GPMC_CS_CONFIG2, 8, 12, "cs-rd-off-ns"); in gpmc_cs_show_timings() 550 GPMC_GET_TICKS(GPMC_CS_CONFIG2, 16, 20, "cs-wr-off-ns"); in gpmc_cs_show_timings() [all …]
|
/linux-6.12.1/drivers/video/fbdev/omap/ |
D | hwa742.c | 215 if ((width * hwa742.pix_tx_time / 1000) * height < in enable_tearsync() 216 (y + height) * (hwa742.line_upd_time / 1000)) { in enable_tearsync() 640 /* CSOnTime 0, WEOnTime 2 ns, REOnTime 2 ns, in calc_reg_timing() 641 * AccessTime 2 ns + 12.2 ns (regs), in calc_reg_timing() 642 * WEOffTime = WEOnTime + 1 ns, in calc_reg_timing() 643 * REOffTime = REOnTime + 16 ns (regs), in calc_reg_timing() 644 * CSOffTime = REOffTime + 1 ns in calc_reg_timing() 645 * ReadCycle = 2ns + 2*SYSCLK (regs), in calc_reg_timing() 646 * WriteCycle = 2*SYSCLK + 2 ns, in calc_reg_timing() 647 * CSPulseWidth = 10 ns */ in calc_reg_timing() [all …]
|
/linux-6.12.1/Documentation/arch/m68k/ |
D | buddha-driver.rst | 23 Rom-vector: $1000 97 $1000-$ffff Buddha-Rom with offset $1000 in the rom 124 A6=1 (for example $840 for port 0, register set 0), a 780ns 142 about 30ns to the clocks on the Zorro bus, that's why the 143 values are no multiple of 71. One clock-cycle is 71ns long 147 497ns Select (7 clock cycles) , IOR/IOW after 172ns (2 clock cycles) 152 639ns Select (9 clock cycles), IOR/IOW after 243ns (3 clock cycles) 155 781ns Select (11 clock cycles), IOR/IOW after 314ns (4 clock cycles) 158 355ns Select (5 clock cycles), IOR/IOW after 101ns (1 clock cycle) 161 355ns Select (5 clock cycles), IOR/IOW after 172ns (2 clock cycles) [all …]
|
/linux-6.12.1/arch/loongarch/include/asm/ |
D | delay.h | 11 extern void __ndelay(unsigned long ns); 14 #define ndelay(ns) __ndelay(ns) argument 18 #if HZ >= 1000 23 #define MAX_UDELAY_MS (1000 / HZ)
|
/linux-6.12.1/Documentation/devicetree/bindings/i2c/ |
D | i2c-rk3x.yaml | 83 i2c-scl-rising-time-ns: 84 default: 1000 88 the maximum the specification allows(1000 ns for Standard-mode, 89 300 ns for Fast-mode) which might cause slightly slower communication. 91 i2c-scl-falling-time-ns: 96 be the maximum the specification allows (300 ns) which might cause 99 i2c-sda-falling-time-ns: 139 i2c-scl-falling-time-ns = <100>; 140 i2c-scl-rising-time-ns = <800>;
|
/linux-6.12.1/arch/mips/include/asm/ |
D | delay.h | 17 extern void __ndelay(unsigned long ns); 20 #define ndelay(ns) __ndelay(ns) argument 24 #if HZ >= 1000 29 #define MAX_UDELAY_MS (1000 / HZ)
|
/linux-6.12.1/arch/arm/boot/dts/st/ |
D | stm32mp15xx-dhcor-drc-compact.dtsi | 63 st,min-sample-time-ns = <5000>; 67 st,min-sample-time-ns = <5000>; 71 st,min-sample-time-ns = <5000>; 79 st,min-sample-time-ns = <5000>; 83 st,min-sample-time-ns = <5000>; 87 st,min-sample-time-ns = <5000>; 98 max-speed = <1000>; 106 reset-delay-us = <1000>; 107 reset-post-delay-us = <1000>; 142 /* Timing values are in nS */ [all …]
|
D | stm32mp15xx-dhcor-testbench.dtsi | 47 st,min-sample-time-ns = <5000>; 51 st,min-sample-time-ns = <5000>; 55 st,min-sample-time-ns = <5000>; 63 st,min-sample-time-ns = <5000>; 67 st,min-sample-time-ns = <5000>; 71 st,min-sample-time-ns = <5000>; 82 max-speed = <1000>; 90 reset-delay-us = <1000>; 91 reset-post-delay-us = <1000>;
|
/linux-6.12.1/drivers/media/i2c/cx25840/ |
D | cx25840-ir.c | 125 * (0xffff + 1) * 1000 / 108/2 MHz = 1,213,629.629... ns 161 * 0xffff * 1000 / 108/2 MHz = 1,213,611.11... ns 173 static inline u16 ns_to_lpf_count(unsigned int ns) in ns_to_lpf_count() argument 176 DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ / 1000000 * ns, 1000)); in ns_to_lpf_count() 181 /* Duration of the Low Pass Filter rejection window in ns */ in lpf_count_to_ns() 182 return DIV_ROUND_CLOSEST(count * 1000, in lpf_count_to_ns() 200 * not readable, hence the << 2. This function returns ns. in clock_divider_to_resolution() 202 return DIV_ROUND_CLOSEST((1 << 2) * ((u32) divider + 1) * 1000, in clock_divider_to_resolution() 215 n = (((u64) count << 2) | 0x3) * (divider + 1) * 1000; /* millicycles */ in pulse_width_count_to_ns() 216 rem = do_div(n, CX25840_IR_REFCLK_FREQ / 1000000); /* / MHz => ns */ in pulse_width_count_to_ns() [all …]
|
/linux-6.12.1/tools/testing/selftests/timers/ |
D | raw_skew.c | 51 struct timespec nsec_to_ts(long long ns) in nsec_to_ts() argument 55 ts.tv_sec = ns/NSEC_PER_SEC; in nsec_to_ts() 56 ts.tv_nsec = ns%NSEC_PER_SEC; in nsec_to_ts() 129 printf("%lld.%i(est)", eppm/1000, abs((int)(eppm%1000))); in main() 132 ppm = (long long)(tx1.freq + tx2.freq) * 1000 / 2; in main() 134 printf(" %lld.%i(act)", ppm/1000, abs((int)(ppm%1000))); in main() 136 if (llabs(eppm - ppm) > 1000) { in main()
|
/linux-6.12.1/drivers/nvme/target/ |
D | admin-cmd.c | 84 /* we don't have the right data for file backed ns */ in nvmet_get_smart_log_nsid() 85 if (!req->ns->bdev) in nvmet_get_smart_log_nsid() 88 host_reads = part_stat_read(req->ns->bdev, ios[READ]); in nvmet_get_smart_log_nsid() 90 DIV_ROUND_UP(part_stat_read(req->ns->bdev, sectors[READ]), 1000); in nvmet_get_smart_log_nsid() 91 host_writes = part_stat_read(req->ns->bdev, ios[WRITE]); in nvmet_get_smart_log_nsid() 93 DIV_ROUND_UP(part_stat_read(req->ns->bdev, sectors[WRITE]), 1000); in nvmet_get_smart_log_nsid() 108 struct nvmet_ns *ns; in nvmet_get_smart_log_all() local 113 xa_for_each(&ctrl->subsys->namespaces, idx, ns) { in nvmet_get_smart_log_all() 114 /* we don't have the right data for file backed ns */ in nvmet_get_smart_log_all() 115 if (!ns->bdev) in nvmet_get_smart_log_all() [all …]
|
/linux-6.12.1/drivers/media/pci/cx23885/ |
D | cx23888-ir.c | 164 * (0xffff + 1) * 1000 / 108/2 MHz = 1,213,629.629... ns 200 * 0xffff * 1000 / 108/2 MHz = 1,213,611.11... ns 212 static inline u16 ns_to_lpf_count(unsigned int ns) in ns_to_lpf_count() argument 215 DIV_ROUND_CLOSEST(CX23888_IR_REFCLK_FREQ / 1000000 * ns, 1000)); in ns_to_lpf_count() 220 /* Duration of the Low Pass Filter rejection window in ns */ in lpf_count_to_ns() 221 return DIV_ROUND_CLOSEST(count * 1000, in lpf_count_to_ns() 239 * not readable, hence the << 2. This function returns ns. in clock_divider_to_resolution() 241 return DIV_ROUND_CLOSEST((1 << 2) * ((u32) divider + 1) * 1000, in clock_divider_to_resolution() 254 n = (((u64) count << 2) | 0x3) * (divider + 1) * 1000; /* millicycles */ in pulse_width_count_to_ns() 255 rem = do_div(n, CX23888_IR_REFCLK_FREQ / 1000000); /* / MHz => ns */ in pulse_width_count_to_ns() [all …]
|
/linux-6.12.1/drivers/ssb/ |
D | driver_extif.c | 86 void ssb_extif_timing_init(struct ssb_extif *extif, unsigned long ns) in ssb_extif_timing_init() argument 94 tmp = DIV_ROUND_UP(10, ns) << SSB_PROG_WCNT_3_SHIFT; in ssb_extif_timing_init() 95 tmp |= DIV_ROUND_UP(40, ns) << SSB_PROG_WCNT_1_SHIFT; in ssb_extif_timing_init() 96 tmp |= DIV_ROUND_UP(120, ns); in ssb_extif_timing_init() 100 tmp = DIV_ROUND_UP(10, ns) << SSB_PROG_WCNT_3_SHIFT; in ssb_extif_timing_init() 101 tmp |= DIV_ROUND_UP(20, ns) << SSB_PROG_WCNT_2_SHIFT; in ssb_extif_timing_init() 102 tmp |= DIV_ROUND_UP(100, ns) << SSB_PROG_WCNT_1_SHIFT; in ssb_extif_timing_init() 103 tmp |= DIV_ROUND_UP(120, ns); in ssb_extif_timing_init() 125 u32 ticks = (SSB_EXTIF_WATCHDOG_CLK / 1000) * ms; in ssb_extif_watchdog_timer_set_ms() 129 return (ticks * 1000) / SSB_EXTIF_WATCHDOG_CLK; in ssb_extif_watchdog_timer_set_ms()
|
/linux-6.12.1/drivers/video/fbdev/riva/ |
D | riva_hw.c | 253 long ns; in nv3_iterate() local 272 ns = 1000000 * ainfo->vburst_size/(state->memory_width/8)/state->mclk_khz; in nv3_iterate() 273 vfsize = ns * ainfo->vdrain_rate / 1000000; in nv3_iterate() 284 ns = 1000000 * (ainfo->gburst_size/(state->memory_width/8))/state->mclk_khz; in nv3_iterate() 285 gfsize = (ns * (long) ainfo->gdrain_rate)/1000000; in nv3_iterate() 339 … ns = 1000000 * (vmisses*state->mem_page_miss + state->mem_latency)/state->mclk_khz; in nv3_iterate() 340 vlwm = ns * ainfo->vdrain_rate/ 1000000; in nv3_iterate() 343 …ns = 1000000*(misses*state->mem_page_miss + ainfo->vburst_size)/(state->memory_width/8)/state->mcl… in nv3_iterate() 344 ainfo->vocc = ainfo->vocc + ainfo->vburst_size - ns*ainfo->vdrain_rate/1000000; in nv3_iterate() 345 ainfo->gocc = ainfo->gocc - ns*ainfo->gdrain_rate/1000000; in nv3_iterate() [all …]
|
/linux-6.12.1/arch/sparc/vdso/ |
D | vclock_gettime.c | 150 u64 ns; in do_realtime() local 155 ns = vvar->wall_time_snsec; in do_realtime() 156 ns += vgetsns(vvar); in do_realtime() 157 ns >>= vvar->clock.shift; in do_realtime() 160 ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in do_realtime() 161 ts->tv_nsec = ns; in do_realtime() 170 u64 ns; in do_realtime_stick() local 175 ns = vvar->wall_time_snsec; in do_realtime_stick() 176 ns += vgetsns_stick(vvar); in do_realtime_stick() 177 ns >>= vvar->clock.shift; in do_realtime_stick() [all …]
|
/linux-6.12.1/drivers/i2c/busses/ |
D | i2c-mxs.c | 305 unsigned long timeout = jiffies + msecs_to_jiffies(1000); in mxs_i2c_pio_wait_xfer_end() 603 msecs_to_jiffies(1000)); in mxs_i2c_xfer_msg() 717 speed / 1000, speed % 1000, in mxs_i2c_derive_timing() 718 clk / divider / 1000, clk / divider % 1000); in mxs_i2c_derive_timing() 727 speed / 1000, speed % 1000, in mxs_i2c_derive_timing() 728 clk / divider / 1000, clk / divider % 1000); in mxs_i2c_derive_timing() 734 * tLOW (SCL LOW period) 4700 ns 1300 ns in mxs_i2c_derive_timing() 735 * tHIGH (SCL HIGH period) 4000 ns 600 ns in mxs_i2c_derive_timing() 736 * tSU;DAT (data setup time) 250 ns 100 ns in mxs_i2c_derive_timing() 737 * tHD;STA (START hold time) 4000 ns 600 ns in mxs_i2c_derive_timing() [all …]
|
/linux-6.12.1/arch/x86/kernel/ |
D | tsc.c | 40 #define KHZ 1000 103 * ns = cycles / (freq / ns_per_sec) 104 * ns = cycles * (ns_per_sec / freq) 105 * ns = cycles * (10^9 / (cpu_khz * 10^3)) 106 * ns = cycles * (10^6 / cpu_khz) 109 * ns = cycles * (10^6 * SC / cpu_khz) / SC 110 * ns = cycles * cyc2ns_scale / SC 126 unsigned long long ns; in __cycles_2_ns() local 130 ns = data.cyc2ns_offset; in __cycles_2_ns() 131 ns += mul_u64_u32_shr(cyc, data.cyc2ns_mul, data.cyc2ns_shift); in __cycles_2_ns() [all …]
|
/linux-6.12.1/arch/arm64/boot/dts/mediatek/ |
D | mt8186-evb.dts | 39 i2c-scl-internal-delay-ns = <8000>; 48 i2c-scl-internal-delay-ns = <10000>; 115 drive-strength-microamp = <1000>; 125 drive-strength-microamp = <1000>; 135 drive-strength-microamp = <1000>; 145 drive-strength-microamp = <1000>; 155 drive-strength-microamp = <1000>; 165 drive-strength-microamp = <1000>; 175 drive-strength-microamp = <1000>; 185 drive-strength-microamp = <1000>; [all …]
|