/linux/lib/dim/ |
H A D | net_dim.c | 16 {.usec = 1, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,}, \ 17 {.usec = 8, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,}, \ 18 {.usec = 64, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,}, \ 19 {.usec = 128, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,}, \ 20 {.usec = 256, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,} \ 24 {.usec = 2, .pkts = 256,}, \ 25 {.usec = 8, .pkts = 128,}, \ 26 {.usec = 16, .pkts = 64,}, \ 27 {.usec = 32, .pkts = 64,}, \ 28 {.usec = 64, .pkts = 64,} \ [all …]
|
/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()
|
/linux/include/asm-generic/ |
H A D | delay.h | 56 static __always_inline void udelay(unsigned long usec) in udelay() argument 58 if (__builtin_constant_p(usec)) { in udelay() 59 if (usec >= DELAY_CONST_MAX) in udelay() 62 __const_udelay(usec * UDELAY_CONST_MULT); in udelay() 64 __udelay(usec); in udelay()
|
/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()
|
/linux/tools/testing/selftests/kvm/include/riscv/ |
H A D | arch_timer.h | 19 #define usec_to_cycles(usec) \ argument 20 ((timer_freq) * (uint64_t)(usec) / 1000000) 66 static inline void udelay(unsigned long usec) in udelay() argument 68 __delay(usec_to_cycles(usec)); in udelay()
|
/linux/tools/testing/selftests/kvm/arm64/ |
H A D | arch_timer_edge_cases.c | 85 typedef void (*sleep_method_t)(enum arch_timer timer, uint64_t usec); 87 static void sleep_poll(enum arch_timer timer, uint64_t usec); 88 static void sleep_sched_poll(enum arch_timer timer, uint64_t usec); 89 static void sleep_in_userspace(enum arch_timer timer, uint64_t usec); 90 static void sleep_migrate(enum arch_timer timer, uint64_t usec); 278 static void guest_poll(enum arch_timer test_timer, uint64_t usec, in guest_poll() argument 281 uint64_t cycles = usec_to_cycles(usec); in guest_poll() 294 static void sleep_poll(enum arch_timer timer, uint64_t usec) in sleep_poll() argument 296 guest_poll(timer, usec, NO_USERSPACE_CMD); in sleep_poll() 299 static void sleep_sched_poll(enum arch_timer timer, uint64_t usec) in sleep_sched_poll() argument [all …]
|
/linux/tools/testing/vsock/ |
H A D | timeout.c | 70 int timeout_usleep(useconds_t usec) in timeout_usleep() argument 73 .tv_sec = usec / 1000000, in timeout_usleep() 74 .tv_nsec = (usec % 1000000) * 1000, in timeout_usleep()
|
/linux/tools/testing/selftests/bpf/ |
H A D | io_helpers.c | 6 int read_with_timeout(int fd, char *buf, size_t count, long usec) in read_with_timeout() argument 9 struct timeval tv = { usec / M, usec % M }; in read_with_timeout()
|
/linux/drivers/clocksource/ |
H A D | timer-tegra186.c | 93 struct clocksource usec; member 402 usec); in tegra186_timer_usec_read() 409 tegra->usec.name = "usec"; in tegra186_timer_usec_init() 410 tegra->usec.rating = 300; in tegra186_timer_usec_init() 411 tegra->usec.read = tegra186_timer_usec_read; in tegra186_timer_usec_init() 412 tegra->usec.mask = CLOCKSOURCE_MASK(32); in tegra186_timer_usec_init() 413 tegra->usec.flags = CLOCK_SOURCE_IS_CONTINUOUS; in tegra186_timer_usec_init() 415 return clocksource_register_hz(&tegra->usec, USEC_PER_SEC); in tegra186_timer_usec_init() 479 clocksource_unregister(&tegra->usec); in tegra186_timer_remove()
|
/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()
|
/linux/drivers/hv/ |
H A D | connection.c | 442 u32 usec = 1; in vmbus_post_msg() local 487 if (can_sleep && usec > 1000) in vmbus_post_msg() 488 msleep(usec / 1000); in vmbus_post_msg() 489 else if (usec < MAX_UDELAY_MS * 1000) in vmbus_post_msg() 490 udelay(usec); in vmbus_post_msg() 492 mdelay(usec / 1000); in vmbus_post_msg() 495 usec *= 2; in vmbus_post_msg()
|
/linux/include/linux/ |
H A D | ktime.h | 177 static inline ktime_t ktime_add_us(const ktime_t kt, const u64 usec) in ktime_add_us() argument 179 return ktime_add_ns(kt, usec * NSEC_PER_USEC); in ktime_add_us() 187 static inline ktime_t ktime_sub_us(const ktime_t kt, const u64 usec) in ktime_sub_us() argument 189 return ktime_sub_ns(kt, usec * NSEC_PER_USEC); in ktime_sub_us()
|
/linux/drivers/iio/light/ |
H A D | bh1750.c | 75 static int bh1750_change_int_time(struct bh1750_data *data, int usec) in bh1750_change_int_time() argument 82 if ((usec % chip_info->mtreg_to_usec) != 0) in bh1750_change_int_time() 85 val = usec / chip_info->mtreg_to_usec; in bh1750_change_int_time() 239 int ret, usec; in bh1750_probe() local 275 usec = data->chip_info->mtreg_to_usec * data->chip_info->mtreg_default; in bh1750_probe() 276 ret = bh1750_change_int_time(data, usec); in bh1750_probe()
|
/linux/tools/testing/selftests/kvm/include/arm64/ |
H A D | delay.h | 20 static inline void udelay(unsigned long usec) in udelay() argument 22 __delay(usec_to_cycles(usec)); in udelay()
|
H A D | arch_timer.h | 23 #define usec_to_cycles(usec) \ argument 24 (timer_get_cntfrq() * (uint64_t)(usec) / 1000000)
|
/linux/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()
|
/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; 187 __entry->cq_id, __entry->comps, __entry->usec
|
/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 */
|
/linux/arch/powerpc/include/asm/ |
H A D | fsl_gtm.h | 36 extern int gtm_set_timer16(struct gtm_timer *tmr, unsigned long usec, 38 extern int gtm_set_exact_timer16(struct gtm_timer *tmr, u16 usec,
|
/linux/drivers/idle/ |
H A D | intel_idle.c | 1943 unsigned int usec; in bxt_idle_state_table_update() local 1946 usec = irtl_2_usec(msr); in bxt_idle_state_table_update() 1947 if (usec) { in bxt_idle_state_table_update() 1948 bxt_cstates[2].exit_latency = usec; in bxt_idle_state_table_update() 1949 bxt_cstates[2].target_residency = usec; in bxt_idle_state_table_update() 1953 usec = irtl_2_usec(msr); in bxt_idle_state_table_update() 1954 if (usec) { in bxt_idle_state_table_update() 1955 bxt_cstates[3].exit_latency = usec; in bxt_idle_state_table_update() 1956 bxt_cstates[3].target_residency = usec; in bxt_idle_state_table_update() 1960 usec = irtl_2_usec(msr); in bxt_idle_state_table_update() [all …]
|
/linux/arch/s390/pci/ |
H A D | pci_report.c | 57 unsigned long sec, usec; in debug_log_header_fn() local 64 usec = do_div(sec, USEC_PER_SEC); in debug_log_header_fn() 71 sec, usec, level, except_str, in debug_log_header_fn()
|
/linux/drivers/net/ethernet/fungible/funeth/ |
H A D | funeth_txrx.h | 45 #define FUN_IRQ_CQ_DB(usec, pkts) \ argument 46 (FUN_DB_IRQ_ARM_F | ((usec) << FUN_DB_INTCOAL_USEC_S) | \ 50 #define FUN_IRQ_SQ_DB(usec, pkts) \ argument 52 ((usec) << FUN_DB_INTCOAL_USEC_S) | \
|
/linux/drivers/parport/ |
H A D | ieee1284.c | 110 int usec) in parport_poll_peripheral() argument 113 int count = usec / 5 + 2; in parport_poll_peripheral() 161 int usec; in parport_wait_peripheral() local 165 usec = port->physport->spintime; /* usecs of fast polling */ in parport_wait_peripheral() 169 usec = 35000; in parport_wait_peripheral() 177 ret = parport_poll_peripheral (port, mask, result, usec); in parport_wait_peripheral()
|
/linux/Documentation/devicetree/bindings/regulator/ |
H A D | lp872x.txt | 14 bit[0]: time step unit(usec). 1 = 25, 0 = 50 17 bit[7:6]: time step unit(usec). 00 = 32, 01 = 64, 10 = 128, 11 = 256 49 /* external DVS pin used, timestep is 25usec */ 101 /* Enable BUCK1,2, no DVS, normal LDO mode, timestep is 256usec */
|
/linux/drivers/staging/gpib/include/ |
H A D | gpib_proto.h | 14 static inline unsigned long usec_to_jiffies(unsigned int usec) in usec_to_jiffies() argument 18 return 1 + (usec + usec_per_jiffy - 1) / usec_per_jiffy; in usec_to_jiffies()
|