/kernel/linux/linux-5.10/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 [all...] |
/kernel/linux/linux-6.6/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 [all...] |
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/liteos_m/testsuites/unittest/fuzz/src/unistd/ |
H A D | usleep_fuzz.c | 48 useconds_t usec; in UsleepFuzzTest() local 59 usec = (*(useconds_t *)DT_SetGetS64(&g_element[0], DEFAULT_USECONDS_VALUE)) % USECONDS_MODE_VALUE; in UsleepFuzzTest() 60 (void)usleep(usec); in UsleepFuzzTest()
|
/kernel/linux/linux-6.6/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() [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | ktime.h | 179 static inline ktime_t ktime_add_us(const ktime_t kt, const u64 usec) 181 return ktime_add_ns(kt, usec * NSEC_PER_USEC); 189 static inline ktime_t ktime_sub_us(const ktime_t kt, const u64 usec) 191 return ktime_sub_ns(kt, usec * NSEC_PER_USEC);
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | ktime.h | 179 static inline ktime_t ktime_add_us(const ktime_t kt, const u64 usec) 181 return ktime_add_ns(kt, usec * NSEC_PER_USEC); 189 static inline ktime_t ktime_sub_us(const ktime_t kt, const u64 usec) 191 return ktime_sub_ns(kt, usec * NSEC_PER_USEC);
|
/kernel/linux/linux-5.10/drivers/hv/ |
H A D | connection.c | 374 u32 usec = 1; in vmbus_post_msg() local 419 if (can_sleep && usec > 1000) in vmbus_post_msg() 420 msleep(usec / 1000); in vmbus_post_msg() 421 else if (usec < MAX_UDELAY_MS * 1000) in vmbus_post_msg() 422 udelay(usec); in vmbus_post_msg() 424 mdelay(usec / 1000); in vmbus_post_msg() 427 usec *= 2; in vmbus_post_msg()
|
/kernel/linux/linux-6.6/drivers/hv/ |
H A D | connection.c | 416 u32 usec = 1; in vmbus_post_msg() local 461 if (can_sleep && usec > 1000) in vmbus_post_msg() 462 msleep(usec / 1000); in vmbus_post_msg() 463 else if (usec < MAX_UDELAY_MS * 1000) in vmbus_post_msg() 464 udelay(usec); in vmbus_post_msg() 466 mdelay(usec / 1000); in vmbus_post_msg() 469 usec *= 2; in vmbus_post_msg()
|
/kernel/linux/linux-5.10/drivers/idle/ |
H A D | intel_idle.c | 1392 unsigned int usec; in bxt_idle_state_table_update() local 1395 usec = irtl_2_usec(msr); in bxt_idle_state_table_update() 1396 if (usec) { in bxt_idle_state_table_update() 1397 bxt_cstates[2].exit_latency = usec; in bxt_idle_state_table_update() 1398 bxt_cstates[2].target_residency = usec; in bxt_idle_state_table_update() 1402 usec = irtl_2_usec(msr); in bxt_idle_state_table_update() 1403 if (usec) { in bxt_idle_state_table_update() 1404 bxt_cstates[3].exit_latency = usec; in bxt_idle_state_table_update() 1405 bxt_cstates[3].target_residency = usec; in bxt_idle_state_table_update() 1409 usec in bxt_idle_state_table_update() [all...] |
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/include/aarch64/ |
H A D | delay.h | 20 static inline void udelay(unsigned long usec) in udelay() argument 22 __delay(usec_to_cycles(usec)); in udelay()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/bus/ |
H A D | hwsq.c | 169 u8 shift = 0, usec = nsec / 1000; in nvkm_hwsq_nsec() local 170 while (usec & ~3) { in nvkm_hwsq_nsec() 171 usec >>= 2; in nvkm_hwsq_nsec() 176 hwsq_cmd(hwsq, 1, (u8[]){ 0x00 | (shift << 2) | usec }); in nvkm_hwsq_nsec()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/bus/ |
H A D | hwsq.c | 169 u8 shift = 0, usec = nsec / 1000; in nvkm_hwsq_nsec() local 170 while (usec & ~3) { in nvkm_hwsq_nsec() 171 usec >>= 2; in nvkm_hwsq_nsec() 176 hwsq_cmd(hwsq, 1, (u8[]){ 0x00 | (shift << 2) | usec }); in nvkm_hwsq_nsec()
|
/kernel/liteos_a/syscall/ |
H A D | misc_syscall.c | 198 clock_t usec, sec; in SysGetrusage() local 212 usec = time.tms_utime; in SysGetrusage() 217 usec = time.tms_cutime; in SysGetrusage() 224 ConvertClocks(&kru.ru_utime, usec); in SysGetrusage()
|
/kernel/liteos_m/kal/posix/include/ |
H A D | rtc_time_hook.h | 53 * INT32 RtcGetTimeHook(UINT64 *usec) 55 * output: UINT64 *usec, pointer to get the time, value is counted in microsecond(us) 58 * INT32 RtcSetTimeHook(UINT64 msec, UINT64 *usec) 61 * input: UINT64 *usec, the time to be set counted in microsecond(us) 76 INT32 (*RtcGetTimeHook)(UINT64 *usec); 77 INT32 (*RtcSetTimeHook)(UINT64 msec, UINT64 *usec);
|
/kernel/linux/linux-5.10/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 b in gtm_set_exact_timer16() [all...] |
/kernel/linux/linux-6.6/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 b in gtm_set_exact_timer16() [all...] |
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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
|
/kernel/linux/linux-6.6/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
|