/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/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/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/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/linux/drivers/net/wireless/intel/iwlwifi/fw/api/ |
H A D | sf.h | 39 /* SF Scenarios timers for default configuration (aligned to 32 uSec) */ 40 #define SF_SINGLE_UNICAST_IDLE_TIMER_DEF 160 /* 150 uSec */ 42 #define SF_AGG_UNICAST_IDLE_TIMER_DEF 160 /* 150 uSec */ 46 #define SF_BA_IDLE_TIMER_DEF 160 /* 150 uSec */ 48 #define SF_TX_RE_IDLE_TIMER_DEF 160 /* 150 uSec */ 51 /* SF Scenarios timers for BSS MAC configuration (aligned to 32 uSec) */ 52 #define SF_SINGLE_UNICAST_IDLE_TIMER 320 /* 300 uSec */ 54 #define SF_AGG_UNICAST_IDLE_TIMER 320 /* 300 uSec */ 58 #define SF_BA_IDLE_TIMER 320 /* 300 uSec */ 60 #define SF_TX_RE_IDLE_TIMER 320 /* 300 uSec */
|
/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/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/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() 49 /* usec = ticks * 1000000 / tbclk in ticks2usec() 52 * usec = ( ( ticks * 1000) / tbclk ) * 1000; in ticks2usec()
|
/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/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/linux/Documentation/accounting/ |
H A D | taskstats-struct.rst | 81 /* The elapsed time of a task, in [usec]. */ 82 __u64 ac_etime; /* Elapsed time [usec] */ 84 /* The user CPU time of a task, in [usec]. */ 85 __u64 ac_utime; /* User CPU time [usec] */ 87 /* The system CPU time of a task, in [usec]. */ 88 __u64 ac_stime; /* System CPU time [usec] */ 159 __u64 coremem; /* accumulated RSS usage in MB-usec */ 164 __u64 virtmem; /* accumulated VM usage in MB-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/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() 427 dev_err(dev, "failed to register USEC counter: %d\n", err); in tegra186_timer_probe() 441 clocksource_unregister(&tegra->usec); in tegra186_timer_probe() [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/linux/fs/freevxfs/ |
H A D | vxfs_inode.h | 82 __fs32 vdi_autime; /* Last time accessed - usec */ 84 __fs32 vdi_mutime; /* Last modify time - usec */ 86 __fs32 vdi_cutime; /* Create time - usec */ 138 __u32 vii_autime; /* Last time accessed - usec */ 140 __u32 vii_mutime; /* Last modify time - usec */ 142 __u32 vii_cutime; /* Create time - usec */
|
/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/linux/include/uapi/linux/ |
H A D | timex.h | 67 __kernel_long_t offset; /* time offset (usec) */ 69 __kernel_long_t maxerror;/* maximum error (usec) */ 70 __kernel_long_t esterror;/* estimated error (usec) */ 73 __kernel_long_t precision;/* clock precision (usec) (read only) */ 105 long long offset; /* time offset (usec) */ 107 long long maxerror;/* maximum error (usec) */ 108 long long esterror;/* estimated error (usec) */ 112 long long precision;/* clock precision (usec) (read only) */
|
/openbmc/linux/arch/powerpc/sysdev/ |
H A D | fsl_gtm.c | 233 * @usec: timer interval in microseconds 243 int gtm_set_timer16(struct gtm_timer *tmr, unsigned long usec, bool reload) in gtm_set_timer16() argument 249 bit = fls_long(usec); in gtm_set_timer16() 252 usec >>= bit - 15; in gtm_set_timer16() 258 return gtm_set_ref_timer16(tmr, freq, usec, reload); in gtm_set_timer16() 265 * @usec: timer interval in microseconds 276 * crop precision of the "usec" argument, thus usec is limited to 16 bits 279 int gtm_set_exact_timer16(struct gtm_timer *tmr, u16 usec, bool reload) in gtm_set_exact_timer16() argument 286 * dividing both frequency and usec by 2 until there is no remainder. in gtm_set_exact_timer16() 291 return gtm_set_ref_timer16(tmr, freq, usec, reload); in gtm_set_exact_timer16()
|
/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() 179 [](sd_event_source* /*eventSource*/, uint64_t /*usec*/, in initialize() 244 auto usec = steady_clock::now().time_since_epoch(); in getTime() local 245 return duration_cast<microseconds>(usec); in getTime()
|
/openbmc/linux/include/trace/events/ |
H A D | rdma_core.h | 169 u16 usec 172 TP_ARGS(cq, comps, usec), 177 __field(unsigned int, usec) 183 __entry->usec = usec; 186 TP_printk("cq.id=%u comps=%u usec=%u", 187 __entry->cq_id, __entry->comps, __entry->usec
|
/openbmc/u-boot/arch/xtensa/lib/ |
H A D | time.c | 49 void __udelay(unsigned long usec) in __udelay() argument 54 /* Scale to support full 32-bit usec range */ in __udelay() 56 lo = usec & ((1<<22)-1); in __udelay() 57 hi = usec >> 22UL; in __udelay()
|