| /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/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/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/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/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/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/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/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/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/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/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/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/test/async/ |
| H A D | watchdog.cpp | 24 MOCK_METHOD(int, sd_watchdog_enabled, (int, uint64_t* usec), (override)); 60 .WillOnce([](int, uint64_t* usec) { in TEST_F() argument 61 *usec = 100000; // .1 second in TEST_F() 88 .WillOnce([](int, uint64_t* usec) { in TEST_F() argument 89 *usec = 0; // Watchdog disabled in TEST_F()
|
| /openbmc/pldm/platform-mc/test/ |
| H A D | utils_test.hpp | 11 uint64_t usec = sec * 1000000; in runEventLoopForSeconds() local 16 if (!sd_event_run(event.get(), usec - elapsed)) in runEventLoopForSeconds() 22 } while (elapsed < usec); in runEventLoopForSeconds()
|
| /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/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/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/include/linux/ |
| H A D | delay.h | 8 void __udelay(unsigned long usec); 9 void udelay(unsigned long usec);
|
| /openbmc/u-boot/examples/api/ |
| H A D | libgenwrap.c | 28 void __udelay(unsigned long usec) in __udelay() argument 30 ub_udelay(usec); in __udelay()
|
| /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()
|
| /openbmc/u-boot/arch/arm/cpu/arm926ejs/spear/ |
| H A D | timer.c | 71 void __udelay(unsigned long usec) in __udelay() argument 78 rndoff = (usec % 10) ? 1 : 0; in __udelay() 81 tmo = ((usec / 10) + rndoff) * tenudelcnt; in __udelay()
|
| /openbmc/u-boot/arch/powerpc/cpu/mpc85xx/ |
| H A D | spl_minimal.c | 37 void udelay(unsigned long usec) in udelay() argument 40 u32 ticks = ticks_per_usec * usec; in udelay()
|
| /openbmc/u-boot/arch/arm/cpu/arm920t/imx/ |
| H A D | timer.c | 49 void __udelay (unsigned long usec) in __udelay() argument 51 ulong endtime = get_timer_masked() + usec; in __udelay()
|