Home
last modified time | relevance | path

Searched refs:usec (Results 1 – 25 of 228) sorted by relevance

12345678910

/openbmc/u-boot/arch/arm/cpu/armv7/ls102xa/
H A Dtimer.c19 unsigned long usec2ticks(unsigned long usec) in usec2ticks() argument
23 if (usec < 1000) in usec2ticks()
24 ticks = ((usec * (get_tbclk()/1000)) + 500) / 1000; in usec2ticks()
26 ticks = ((usec / 10) * (get_tbclk() / 100000)); in usec2ticks()
43 static inline unsigned long long us_to_tick(unsigned long long usec) in us_to_tick() argument
49 usec = usec * freq + 999999; in us_to_tick()
50 do_div(usec, 1000000); in us_to_tick()
52 return usec; in us_to_tick()
99 void __udelay(unsigned long usec) in __udelay() argument
105 tmo = us_to_tick(usec); /* convert usecs to ticks */ in __udelay()
/openbmc/linux/lib/dim/
H A Dnet_dim.c21 {.usec = 1, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,}, \
29 {.usec = 2, .pkts = 256,}, \
30 {.usec = 8, .pkts = 128,}, \
31 {.usec = 16, .pkts = 64,}, \
32 {.usec = 32, .pkts = 64,}, \
33 {.usec = 64, .pkts = 64,} \
45 {.usec = 5, .pkts = 128,}, \
46 {.usec = 8, .pkts = 64,}, \
47 {.usec = 16, .pkts = 32,}, \
48 {.usec = 32, .pkts = 32,}, \
[all …]
/openbmc/u-boot/arch/m68k/lib/
H A Dtime.c33 void __udelay(unsigned long usec) in __udelay() argument
38 while (usec > 0) { in __udelay()
39 if (usec > 65000) in __udelay()
42 tmp = usec; in __udelay()
43 usec = usec - tmp; in __udelay()
118 void __udelay(unsigned long usec) in __udelay() argument
123 while (usec > 0) { in __udelay()
124 if (usec > 65000) in __udelay()
127 tmp = usec; in __udelay()
128 usec = usec - tmp; in __udelay()
[all …]
/openbmc/u-boot/arch/arm/mach-imx/
H A Dsyscounter.c22 unsigned long usec2ticks(unsigned long usec) in usec2ticks() argument
26 if (usec < 1000) in usec2ticks()
27 ticks = ((usec * (get_tbclk()/1000)) + 500) / 1000; in usec2ticks()
29 ticks = ((usec / 10) * (get_tbclk() / 100000)); in usec2ticks()
46 static inline unsigned long long us_to_tick(unsigned long long usec) in us_to_tick() argument
52 usec = usec * freq + 999999; in us_to_tick()
53 do_div(usec, 1000000); in us_to_tick()
55 return usec; in us_to_tick()
99 void __udelay(unsigned long usec) in __udelay() argument
104 tmo = us_to_tick(usec); in __udelay()
H A Dtimer.c128 unsigned long long usec = _usec; in usec2ticks() local
130 usec *= get_tbclk(); in usec2ticks()
131 usec += 999999; in usec2ticks()
132 do_div(usec, 1000000); in usec2ticks()
134 return usec; in usec2ticks()
/openbmc/sdeventplus/src/sdeventplus/internal/
H A Dsdevent.cpp39 clockid_t clock, uint64_t usec, in sd_event_add_time() argument
76 return ::sd_event_wait(event, usec); in sd_event_wait()
86 return ::sd_event_run(event, usec); in sd_event_run()
100 uint64_t* usec) const in sd_event_now()
102 return ::sd_event_now(event, clock, usec); in sd_event_now()
219 uint64_t* usec) const in sd_event_source_get_time()
221 return ::sd_event_source_get_time(source, usec); in sd_event_source_get_time()
225 uint64_t usec) const in sd_event_source_set_time()
227 return ::sd_event_source_set_time(source, usec); in sd_event_source_set_time()
233 return ::sd_event_source_get_time_accuracy(source, usec); in sd_event_source_get_time_accuracy()
[all …]
H A Dsdevent.hpp27 clockid_t clock, uint64_t usec,
49 virtual int sd_event_wait(sd_event* event, uint64_t usec) const = 0;
51 virtual int sd_event_run(sd_event* event, uint64_t usec) const = 0;
56 uint64_t* usec) const = 0;
100 uint64_t* usec) const = 0;
102 uint64_t usec) const = 0;
165 int sd_event_wait(sd_event* event, uint64_t usec) const override;
167 int sd_event_run(sd_event* event, uint64_t usec) const override;
172 uint64_t* usec) const override;
212 uint64_t* usec) const override;
[all …]
/openbmc/u-boot/arch/powerpc/lib/
H A Dtime.c17 unsigned long usec2ticks(unsigned long usec) in usec2ticks() argument
21 if (usec < 1000) { in usec2ticks()
22 ticks = ((usec * (get_tbclk()/1000)) + 500) / 1000; in usec2ticks()
24 ticks = ((usec / 10) * (get_tbclk() / 100000)); in usec2ticks()
37 void __udelay(unsigned long usec) in __udelay() argument
39 ulong ticks = usec2ticks (usec); in __udelay()
/openbmc/u-boot/lib/
H A Dtime.c142 static uint64_t usec_to_tick(unsigned long usec) in usec_to_tick() argument
144 uint64_t tick = usec; in usec_to_tick()
150 void __weak __udelay(unsigned long usec) in __udelay() argument
154 tmp = get_ticks() + usec_to_tick(usec); /* get current timestamp */ in __udelay()
162 void udelay(unsigned long usec) in udelay() argument
168 kv = usec > CONFIG_WD_PERIOD ? CONFIG_WD_PERIOD : usec; in udelay()
170 usec -= kv; in udelay()
171 } while(usec); in udelay()
/openbmc/u-boot/arch/arm/cpu/armv7/vf610/
H A Dtimer.c26 static inline unsigned long long us_to_tick(unsigned long long usec) in us_to_tick() argument
28 usec = usec * mxc_get_clock(MXC_IPG_CLK) + 999999; in us_to_tick()
29 do_div(usec, 1000000); in us_to_tick()
31 return usec; in us_to_tick()
66 void __udelay(unsigned long usec) in __udelay() argument
72 tmo = us_to_tick(usec); /* convert usecs to ticks */ in __udelay()
/openbmc/linux/drivers/leds/
H A Dleds-ti-lmu-common.c57 static unsigned int ti_lmu_common_convert_ramp_to_index(unsigned int usec) in ti_lmu_common_convert_ramp_to_index() argument
62 if (usec <= ramp_table[0]) in ti_lmu_common_convert_ramp_to_index()
65 if (usec > ramp_table[size - 1]) in ti_lmu_common_convert_ramp_to_index()
69 if (usec == ramp_table[i]) in ti_lmu_common_convert_ramp_to_index()
73 if (usec > ramp_table[i - 1] && usec < ramp_table[i]) { in ti_lmu_common_convert_ramp_to_index()
74 if (usec - ramp_table[i - 1] < ramp_table[i] - usec) in ti_lmu_common_convert_ramp_to_index()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/utouch/utouch-evemu/
H A D0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch50 &sec, &usec, &type, &code, &value);
52 - ev->time.tv_usec = usec;
54 + ev->input_event_usec = usec;
64 - usec = 1000000L * (ev->time.tv_sec - evtime->tv_sec);
65 - usec += ev->time.tv_usec - evtime->tv_usec;
70 + usec = (ev->input_event_sec - evtime->tv_sec) * 1000000L;
71 + usec += ev->input_event_usec - evtime->tv_usec;
72 if (usec > 500) {
73 usleep(usec);
/openbmc/sdeventplus/src/sdeventplus/source/
H A Dtime.cpp39 uint64_t usec; in get_time() local
42 event.getSdEvent()->sd_event_source_get_time(get(), &usec)); in get_time()
43 return Time<Id>::TimePoint(SdEventDuration(usec)); in get_time()
58 uint64_t usec; in get_accuracy() local
61 event.getSdEvent()->sd_event_source_get_time_accuracy(get(), &usec)); in get_accuracy()
62 return SdEventDuration(usec); in get_accuracy()
100 int Time<Id>::timeCallback(sd_event_source* source, uint64_t usec, in timeCallback() argument
104 "timeCallback", source, userdata, TimePoint(SdEventDuration(usec))); in timeCallback()
/openbmc/u-boot/arch/arm/cpu/sa1100/
H A Dtimer.c25 void __udelay (unsigned long usec) in __udelay() argument
31 if (usec >= 1000) { in __udelay()
32 tmo = usec / 1000; in __udelay()
36 tmo = usec * CONFIG_SYS_HZ; in __udelay()
/openbmc/u-boot/arch/arm/mach-rockchip/
H A Drk_timer.c23 static uint64_t usec_to_tick(unsigned int usec) in usec_to_tick() argument
25 uint64_t tick = usec; in usec_to_tick()
30 void rockchip_udelay(unsigned int usec) in rockchip_udelay() argument
35 tmp = rockchip_get_ticks() + usec_to_tick(usec); in rockchip_udelay()
/openbmc/linux/arch/xtensa/include/asm/
H A Ddelay.h47 static inline void udelay(unsigned long usec) in udelay() argument
49 if (__builtin_constant_p(usec) && usec >= __MAX_UDELAY) in udelay()
52 __udelay(usec); in udelay()
/openbmc/u-boot/arch/arm/cpu/armv8/
H A Dgeneric_timer.c97 unsigned long usec2ticks(unsigned long usec) in usec2ticks() argument
100 if (usec < 1000) in usec2ticks()
101 ticks = ((usec * (get_tbclk()/1000)) + 500) / 1000; in usec2ticks()
103 ticks = ((usec / 10) * (get_tbclk() / 100000)); in usec2ticks()
/openbmc/sdbusplus/include/sdbusplus/
H A Dtimer.hpp92 int start(std::chrono::microseconds usec, bool periodic = false) in start() argument
97 duration = usec; in start()
112 auto expireTime = getTime() + usec; in start()
244 auto usec = steady_clock::now().time_since_epoch(); in getTime() local
245 return duration_cast<microseconds>(usec); in getTime()
/openbmc/u-boot/arch/nds32/cpu/n1213/ag101/
H A Dtimer.c146 void __udelay(unsigned long usec) in __udelay() argument
151 long tmo = usec * (TIMER_CLOCK / 1000) / 1000; in __udelay()
153 long tmo = usec * ((CONFIG_SYS_CLK_FREQ / 2) / 1000) / 1000; in __udelay()
157 debug("%s(%lu)\n", __func__, usec); in __udelay()
/openbmc/u-boot/arch/xtensa/lib/
H A Dtime.c49 void __udelay(unsigned long usec) in __udelay() argument
56 lo = usec & ((1<<22)-1); in __udelay()
57 hi = usec >> 22UL; in __udelay()
/openbmc/linux/drivers/clocksource/
H A Dtimer-tegra186.c88 struct clocksource usec; member
352 usec); in tegra186_timer_usec_read()
359 tegra->usec.name = "usec"; in tegra186_timer_usec_init()
360 tegra->usec.rating = 300; in tegra186_timer_usec_init()
361 tegra->usec.read = tegra186_timer_usec_read; in tegra186_timer_usec_init()
362 tegra->usec.mask = CLOCKSOURCE_MASK(32); in tegra186_timer_usec_init()
363 tegra->usec.flags = CLOCK_SOURCE_IS_CONTINUOUS; in tegra186_timer_usec_init()
365 return clocksource_register_hz(&tegra->usec, USEC_PER_SEC); in tegra186_timer_usec_init()
441 clocksource_unregister(&tegra->usec); in tegra186_timer_probe()
453 clocksource_unregister(&tegra->usec); in tegra186_timer_remove()
/openbmc/linux/samples/timers/
H A Dhpet_example.c139 long usec; in hpet_poll() local
190 usec = stv.tv_sec * 1000000 + stv.tv_usec; in hpet_poll()
191 usec = (etv.tv_sec * 1000000 + etv.tv_usec) - usec; in hpet_poll()
194 "hpet_poll: expired time = 0x%lx\n", usec); in hpet_poll()
/openbmc/u-boot/arch/arm/cpu/armv7/stv0991/
H A Dtimer.c62 void __udelay(unsigned long usec) in __udelay() argument
69 rndoff = (usec % 10) ? 1 : 0; in __udelay()
72 tmo = ((usec / 10) + rndoff) * tenudelcnt; in __udelay()
/openbmc/linux/drivers/hv/
H A Dconnection.c431 u32 usec = 1; in vmbus_post_msg() local
476 if (can_sleep && usec > 1000) in vmbus_post_msg()
477 msleep(usec / 1000); in vmbus_post_msg()
478 else if (usec < MAX_UDELAY_MS * 1000) in vmbus_post_msg()
479 udelay(usec); in vmbus_post_msg()
481 mdelay(usec / 1000); in vmbus_post_msg()
484 usec *= 2; in vmbus_post_msg()
/openbmc/u-boot/include/linux/
H A Ddelay.h8 void __udelay(unsigned long usec);
9 void udelay(unsigned long usec);

12345678910