/openbmc/linux/tools/testing/selftests/netfilter/ |
H A D | nft_zones_many.sh | 7 ns="ns-$sfx" 18 ip netns del $ns 31 checktool "ip netns add $ns" "create net namespace" 40 ip -net "$ns" link set lo up 45 ip netns exec $ns sysctl -q net.netfilter.nf_conntrack_udp_timeout=3600 46 ip netns exec $ns nft -f /dev/stdin<<EOF 69 ) | ip netns exec $ns nft -f /dev/stdin 78 i=$((i + 1000)) 81 …dd if=/dev/zero of=/dev/stdout bs=8k count=1000 2>/dev/null | ip netns exec "$ns" socat STDIN UDP:… 89 echo "PASS: added 1000 entries in $duration ms (now $i total, loop $j)" [all …]
|
H A D | xt_string.sh | 24 ns="ns-$(mktemp -u XXXXXXXX)" 25 trap 'ip netns del $ns' EXIT 26 ip netns add "$ns" 27 ip -net "$ns" link add d0 type dummy 28 ip -net "$ns" link set d0 up 29 ip -net "$ns" addr add 10.1.2.1/24 dev d0 31 #ip netns exec "$ns" tcpdump -npXi d0 & 33 #trap 'kill $tcpdump_pid; ip netns del $ns' EXIT 36 ip netns exec "$ns" \ 41 ip netns exec "$ns" iptables -v -S OUTPUT | grep '^-A' [all …]
|
H A D | nft_nat_zones.sh | 35 gw="ns-gw-$sfx" 36 cl1="ns-cl1-$sfx" 37 cl2="ns-cl2-$sfx" 38 srv="ns-srv-$sfx" 52 ip netns del ns-cl$i-$sfx 2>/dev/null 114 cl="ns-cl$i-$sfx" 129 cl="ns-cl$i-$sfx" 148 echo netns exec "$gw" ip route add 10.1.0.0/24 dev veth$i table $((1000+i)) 149 echo netns exec "$gw" ip route add dead:1::0/64 dev veth$i table $((1000+i)) 150 echo netns exec "$gw" ip route add 10.3.0.0/24 dev veth0 table $((1000+i)) [all …]
|
/openbmc/linux/tools/testing/selftests/tc-testing/tc-tests/actions/ |
H A D | gate.json | 17 … "cmdUnderTest": "$TC action add action gate priority 1 sched-entry close 100000000ns index 100", 41 …derTest": "$TC action add action gate base-time 200000000000ns sched-entry close 100000000ns index… 65 …t": "$TC action add action gate cycle-time 200000000000ns sched-entry close 100000000ns index 1000… 68 "matchPattern": "action order [0-9]*: .*cycle-time 200s.*index 1000 ref", 89 … "$TC action add action gate cycle-time-ext 20000000000ns sched-entry close 100000000ns index 1000… 91 "verifyCmd": "$TC action get action gate index 1000", 92 "matchPattern": "action order [0-9]*: .*cycle-time-ext 20s.*index 1000 ref", 113 …"$TC action add action gate base-time 200000000000ns sched-entry open 200000000ns -1 8000000b inde… 119 "cmdUnderTest": "$TC action replace action gate base-time 400000000000ns index 20", 143 …"$TC action add action gate base-time 200000000000ns sched-entry open 200000000ns -1 8000000b inde… [all …]
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | cmsg_time.sh | 4 NS=ns 12 ip netns del $NS 18 ip netns add $NS 20 ip netns exec $NS sysctl -w net.ipv4.ping_group_range='0 2147483647' > /dev/null 23 ip -netns $NS link add type dummy 24 ip -netns $NS link set dev dummy0 up 25 ip -netns $NS addr add $IP4 dev dummy0 26 ip -netns $NS addr add $IP6 dev dummy0 29 ip netns exec $NS tc qdisc replace dev dummy0 root fq 52 ts=$(ip netns exec $NS ./cmsg_sender -p $p $i 1234) [all …]
|
/openbmc/linux/arch/arm/boot/dts/nvidia/ |
H A 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 …]
|
H A 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 …]
|
/openbmc/linux/drivers/gpu/drm/i915/gt/ |
H A D | intel_gt_clock_utils.c | 116 * "The PCU TSC counts 10ns increments; this timestamp in gen6_read_clock_frequency() 117 * reflects bits 38:3 of the TSC (i.e. 80ns granularity, in gen6_read_clock_frequency() 126 * 63:32 increments every 1000 ns in gen5_read_clock_frequency() 129 return 1000000000 / 1000; in gen5_read_clock_frequency() 135 * 63:20 increments every 1/4 ns in g4x_read_clock_frequency() 138 * -> 63:32 increments every 1024 ns in g4x_read_clock_frequency() 154 return RUNTIME_INFO(uncore->i915)->rawclk_freq * 1000; in gen4_read_clock_frequency() 187 gt->clock_frequency / 1000, in intel_gt_init_clock_frequency() 219 u64 intel_gt_ns_to_clock_interval(const struct intel_gt *gt, u64 ns) in intel_gt_ns_to_clock_interval() argument 221 return div_u64_roundup(gt->clock_frequency * ns, NSEC_PER_SEC); in intel_gt_ns_to_clock_interval() [all …]
|
/openbmc/linux/drivers/memory/ |
H A D | omap-gpmc.c | 298 rate /= 1000; in gpmc_get_fclk_period() 342 return (time_ns * 1000 + tick_ps - 1) / tick_ps; in gpmc_ns_to_clk_ticks() 363 return ticks * gpmc_get_clk_period(cs, cd) / 1000; in gpmc_clk_ticks_to_ns() 430 * tick format: gpmc,name = <value> /‍* x ns -- y ns; x ticks *‍/ 431 * Where x ns -- y ns result in the same tick value. 463 /* DTS tick format for timings in ns */ in get_gpmc_timing_reg() 470 pr_info("gpmc,%s = <%u>; /* %u ns - %u ns; %i ticks%s*/\n", in get_gpmc_timing_reg() 547 GPMC_GET_TICKS(GPMC_CS_CONFIG2, 0, 3, "cs-on-ns"); in gpmc_cs_show_timings() 548 GPMC_GET_TICKS(GPMC_CS_CONFIG2, 8, 12, "cs-rd-off-ns"); in gpmc_cs_show_timings() 549 GPMC_GET_TICKS(GPMC_CS_CONFIG2, 16, 20, "cs-wr-off-ns"); in gpmc_cs_show_timings() [all …]
|
/openbmc/linux/drivers/video/fbdev/omap/ |
H A 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 …]
|
/openbmc/linux/arch/loongarch/include/asm/ |
H A 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)
|
/openbmc/linux/Documentation/arch/m68k/ |
H A 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 …]
|
/openbmc/linux/arch/mips/include/asm/ |
H A 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)
|
/openbmc/linux/Documentation/devicetree/bindings/i2c/ |
H A D | i2c-rk3x.yaml | 82 i2c-scl-rising-time-ns: 83 default: 1000 87 the maximum the specification allows(1000 ns for Standard-mode, 88 300 ns for Fast-mode) which might cause slightly slower communication. 90 i2c-scl-falling-time-ns: 95 be the maximum the specification allows (300 ns) which might cause 98 i2c-sda-falling-time-ns: 138 i2c-scl-falling-time-ns = <100>; 139 i2c-scl-rising-time-ns = <800>;
|
/openbmc/linux/arch/arm/boot/dts/st/ |
H A 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>;
|
H A 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 …]
|
/openbmc/linux/tools/testing/selftests/timers/ |
H A 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()
|
/openbmc/qemu/tests/qtest/ |
H A D | cmsdk-apb-dualtimer-test.c | 20 /* IoTKit/ARMSSE dualtimer; driven at 25MHz in mps2-an385, so 40ns per tick */ 52 /* Start timer: will fire after 40000 ns */ in test_dualtimer() 53 writel(TIMER_BASE + TIMER1LOAD, 1000); in test_dualtimer() 62 /* Just past the 1000th tick: timer should have fired */ in test_dualtimer() 86 /* Start timer: will fire after 40 * 256 * 1000 == 1024000 ns */ in test_prescale() 87 writel(TIMER_BASE + TIMER2LOAD, 1000); in test_prescale() 97 /* Just past the 1000th tick: timer should have fired */ in test_prescale() 104 g_assert_cmpuint(readl(TIMER_BASE + TIMER2VALUE), ==, 1000); in test_prescale()
|
/openbmc/linux/drivers/media/i2c/cx25840/ |
H A 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 …]
|
/openbmc/u-boot/drivers/ddr/fsl/ |
H A D | ddr1_dimm_params.c | 53 * (That is, cycle times of .25, .33, .66 and .75 ns are 81 unsigned int ps = whole_ns * 1000 + tenths_ps[tenth_ns]; in convert_bcd_tenths_to_cycle_time_ps() 110 return ((trctrfc_ext & 0x1) * 256 + trfc) * 1000 in compute_trfc_ps_from_spd() 117 return trc * 1000 + byte40_table_ps[(trctrfc_ext >> 4) & 0x7]; in compute_trc_ps_from_spd() 123 * Bits 7:2 == whole ns 124 * Bits 1:0 == quarter ns 125 * 00 == 0.00 ns 126 * 01 == 0.25 ns 127 * 10 == 0.50 ns 128 * 11 == 0.75 ns [all …]
|
/openbmc/u-boot/board/xes/xpedite537x/ |
H A D | ddr.c | 46 * Minimum chip delay (Ch 0): 1.372ns 47 * Maximum chip delay (Ch 0): 2.914ns 48 * Minimum chip delay (Ch 1): 1.220ns 49 * Maximum chip delay (Ch 1): 2.595ns 51 * CLK adjust = 5 (from simulations) = 5/8* 3.33ns = 2080ps 57 * = 3.808ns 63 * = 6.240ns 69 * = 3.288ns 75 * = 5.536ns 77 * Ch.0: 3.808ns to 6.240ns additional delay needed (pick 5ns as target) [all …]
|
/openbmc/linux/drivers/nvme/target/ |
H A 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 …]
|
/openbmc/linux/drivers/ssb/ |
H A 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()
|
/openbmc/linux/drivers/video/fbdev/riva/ |
H A 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 …]
|
/openbmc/u-boot/arch/arm/mach-socfpga/ |
H A D | freeze_controller.c | 51 * Note: Delay for 20ns at min in sys_mgr_frzctrl_freeze_req() 132 * Note: Delay for 20ns at min in sys_mgr_frzctrl_thaw_req() 141 * Note: Delay for 20ns at min in sys_mgr_frzctrl_thaw_req() 157 * Note: Delay for 40ns at min in sys_mgr_frzctrl_thaw_req() 163 /* Delay 1000 intosc cycles. The intosc is based on eosc1. */ in sys_mgr_frzctrl_thaw_req() 164 eosc1_freq = cm_get_osc_clk_hz(1) / 1000; /* kHz */ in sys_mgr_frzctrl_thaw_req() 181 * is 1/50MHz * 33 = 660ns ~= 1us in sys_mgr_frzctrl_thaw_req() 193 * Note: Delay for 40ns at min in sys_mgr_frzctrl_thaw_req() 200 * Note: Delay for 40ns at min in sys_mgr_frzctrl_thaw_req()
|