/openbmc/linux/lib/dim/ |
H A D | net_dim.c | 21 {.usec = 1, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,}, \ 22 {.usec = 8, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,}, \ 23 {.usec = 64, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,}, \ 24 {.usec = 128, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,}, \ 25 {.usec = 256, .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,} \ [all …]
|
/openbmc/u-boot/arch/arm/cpu/armv7/ls102xa/ |
H A D | timer.c | 19 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/u-boot/arch/m68k/lib/ |
H A D | time.c | 33 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 D | syscounter.c | 22 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 D | timer.c | 128 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 D | sdevent.cpp | 38 sd_event* event, sd_event_source** source, clockid_t clock, uint64_t usec, in sd_event_add_time() argument 41 return ::sd_event_add_time(event, source, clock, usec, accuracy, callback, in sd_event_add_time() 71 int SdEventImpl::sd_event_wait(sd_event* event, uint64_t usec) const in sd_event_wait() 73 return ::sd_event_wait(event, usec); in sd_event_wait() 81 int SdEventImpl::sd_event_run(sd_event* event, uint64_t usec) const in sd_event_run() 83 return ::sd_event_run(event, usec); in sd_event_run() 97 uint64_t* usec) const in sd_event_now() 99 return ::sd_event_now(event, clock, usec); in sd_event_now() 216 uint64_t* usec) const in sd_event_source_get_time() 218 return ::sd_event_source_get_time(source, usec); in sd_event_source_get_time() [all …]
|
H A D | sdevent.hpp | 28 uint64_t usec, uint64_t accuracy, sd_event_time_handler_t callback, 47 virtual int sd_event_wait(sd_event* event, uint64_t usec) const = 0; 49 virtual int sd_event_run(sd_event* event, uint64_t usec) const = 0; 54 uint64_t* usec) const = 0; 95 uint64_t* usec) const = 0; 97 uint64_t usec) const = 0; 99 uint64_t* usec) const = 0; 101 uint64_t usec) const = 0; 130 clockid_t clock, uint64_t usec, uint64_t accuracy, 160 int sd_event_wait(sd_event* event, uint64_t usec) const override; [all …]
|
/openbmc/u-boot/lib/ |
H A D | time.c | 142 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/powerpc/lib/ |
H A D | time.c | 17 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/arch/arm/cpu/armv7/vf610/ |
H A D | timer.c | 26 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 D | leds-ti-lmu-common.c | 57 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 D | 0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch | 50 &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 D | time.cpp | 39 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 D | timer.c | 25 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 D | rk_timer.c | 23 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 D | delay.h | 47 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 D | generic_timer.c | 97 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 D | timer.hpp | 92 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/linux/drivers/clocksource/ |
H A D | timer-tegra186.c | 88 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/u-boot/arch/nds32/cpu/n1213/ag101/ |
H A D | timer.c | 146 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 D | time.c | 49 void __udelay(unsigned long usec) in __udelay() argument 56 lo = usec & ((1<<22)-1); in __udelay() 57 hi = usec >> 22UL; in __udelay()
|
/openbmc/linux/samples/timers/ |
H A D | hpet_example.c | 139 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/linux/drivers/hv/ |
H A D | connection.c | 431 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/linux/drivers/iio/light/ |
H A D | bh1750.c | 70 static int bh1750_change_int_time(struct bh1750_data *data, int usec) in bh1750_change_int_time() argument 77 if ((usec % chip_info->mtreg_to_usec) != 0) in bh1750_change_int_time() 80 val = usec / chip_info->mtreg_to_usec; in bh1750_change_int_time() 234 int ret, usec; in bh1750_probe() local 251 usec = data->chip_info->mtreg_to_usec * data->chip_info->mtreg_default; in bh1750_probe() 252 ret = bh1750_change_int_time(data, usec); in bh1750_probe()
|
/openbmc/u-boot/arch/arm/cpu/armv7/stv0991/ |
H A D | timer.c | 62 void __udelay(unsigned long usec) in __udelay() argument 69 rndoff = (usec % 10) ? 1 : 0; in __udelay() 72 tmo = ((usec / 10) + rndoff) * tenudelcnt; in __udelay()
|