/linux-master/tools/testing/selftests/kvm/include/aarch64/ |
H A D | delay.h | 20 static inline void udelay(unsigned long usec) argument 22 __delay(usec_to_cycles(usec));
|
H A D | arch_timer.h | 23 #define usec_to_cycles(usec) \ 24 (timer_get_cntfrq() * (uint64_t)(usec) / 1000000)
|
/linux-master/arch/xtensa/include/asm/ |
H A D | delay.h | 47 static inline void udelay(unsigned long usec) argument 49 if (__builtin_constant_p(usec) && usec >= __MAX_UDELAY) 52 __udelay(usec);
|
/linux-master/tools/testing/selftests/kvm/include/riscv/ |
H A D | arch_timer.h | 19 #define usec_to_cycles(usec) \ 20 ((timer_freq) * (uint64_t)(usec) / 1000000) 66 static inline void udelay(unsigned long usec) argument 68 __delay(usec_to_cycles(usec));
|
/linux-master/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...] |
/linux-master/drivers/leds/ |
H A D | leds-ti-lmu-common.c | 57 static unsigned int ti_lmu_common_convert_ramp_to_index(unsigned int usec) argument 62 if (usec <= ramp_table[0]) 65 if (usec > ramp_table[size - 1]) 69 if (usec == ramp_table[i]) 73 if (usec > ramp_table[i - 1] && usec < ramp_table[i]) { 74 if (usec - ramp_table[i - 1] < ramp_table[i] - usec)
|
/linux-master/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-master/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_dim.c | 26 cpr->rx_ring_coal.coal_ticks = cur_moder.usec;
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/bus/ |
H A D | hwsq.c | 169 u8 shift = 0, usec = nsec / 1000; local 170 while (usec & ~3) { 171 usec >>= 2; 176 hwsq_cmd(hwsq, 1, (u8[]){ 0x00 | (shift << 2) | usec });
|
/linux-master/include/linux/ |
H A D | ktime.h | 177 static inline ktime_t ktime_add_us(const ktime_t kt, const u64 usec) 179 return ktime_add_ns(kt, usec * NSEC_PER_USEC); 187 static inline ktime_t ktime_sub_us(const ktime_t kt, const u64 usec) 189 return ktime_sub_ns(kt, usec * NSEC_PER_USEC);
|
/linux-master/drivers/iio/light/ |
H A D | bh1750.c | 70 static int bh1750_change_int_time(struct bh1750_data *data, int usec) argument 77 if ((usec % chip_info->mtreg_to_usec) != 0) 80 val = usec / chip_info->mtreg_to_usec; 234 int ret, usec; local 251 usec = data->chip_info->mtreg_to_usec * data->chip_info->mtreg_default; 252 ret = bh1750_change_int_time(data, usec);
|
/linux-master/drivers/clocksource/ |
H A D | timer-tegra186.c | 88 struct clocksource usec; member in struct:tegra186_timer 352 usec); 359 tegra->usec.name = "usec"; 360 tegra->usec.rating = 300; 361 tegra->usec.read = tegra186_timer_usec_read; 362 tegra->usec.mask = CLOCKSOURCE_MASK(32); 363 tegra->usec.flags = CLOCK_SOURCE_IS_CONTINUOUS; 365 return clocksource_register_hz(&tegra->usec, USEC_PER_SEC); 441 clocksource_unregister(&tegra->usec); [all...] |
/linux-master/drivers/hv/ |
H A D | connection.c | 431 u32 usec = 1; local 476 if (can_sleep && usec > 1000) 477 msleep(usec / 1000); 478 else if (usec < MAX_UDELAY_MS * 1000) 479 udelay(usec); 481 mdelay(usec / 1000); 484 usec *= 2;
|
/linux-master/samples/timers/ |
H A D | hpet_example.c | 139 long usec; local 190 usec = stv.tv_sec * 1000000 + stv.tv_usec; 191 usec = (etv.tv_sec * 1000000 + etv.tv_usec) - usec; 194 "hpet_poll: expired time = 0x%lx\n", usec);
|
/linux-master/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
|
/linux-master/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) argument 249 bit = fls_long(usec); 252 usec >>= bit - 15; 258 return gtm_set_ref_timer16(tmr, freq, usec, reload); 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) argument 286 * dividing both frequency and usec b [all...] |
/linux-master/drivers/usb/chipidea/ |
H A D | ulpi.c | 21 unsigned long usec = 10000; local 23 while (usec--) {
|
/linux-master/drivers/input/ |
H A D | input-compat.c | 25 event->input_event_usec = compat_event.usec; 45 compat_event.usec = event->input_event_usec;
|
H A D | input-compat.h | 19 compat_ulong_t usec; member in struct:input_event_compat
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_dim.c | 40 mlx5_core_modify_cq_moderation(mdev, mcq, moder.usec, moder.pkts);
|
/linux-master/include/uapi/linux/netfilter/ |
H A D | nfnetlink_log.h | 33 __aligned_be64 usec; member in struct:nfulnl_msg_packet_timestamp
|
H A D | nfnetlink_queue.h | 31 __aligned_be64 usec; member in struct:nfqnl_msg_packet_timestamp
|
/linux-master/drivers/net/ethernet/fungible/funeth/ |
H A D | funeth_txrx.h | 45 #define FUN_IRQ_CQ_DB(usec, pkts) \ 46 (FUN_DB_IRQ_ARM_F | ((usec) << FUN_DB_INTCOAL_USEC_S) | \ 50 #define FUN_IRQ_SQ_DB(usec, pkts) \ 52 ((usec) << FUN_DB_INTCOAL_USEC_S) | \
|
/linux-master/drivers/parport/ |
H A D | ieee1284.c | 88 * @usec: timeout 97 * using udelay(). It currently has a resolution of 5usec. 110 int usec) 113 int count = usec / 5 + 2; 146 * time is configurable (using /proc), and defaults to 500usec. 161 int usec; local 165 usec = port->physport->spintime; /* usecs of fast polling */ 169 usec = 35000; 177 ret = parport_poll_peripheral (port, mask, result, usec); 107 parport_poll_peripheral(struct parport *port, unsigned char mask, unsigned char result, int usec) argument
|
/linux-master/drivers/idle/ |
H A D | intel_idle.c | 1784 unsigned int usec; local 1787 usec = irtl_2_usec(msr); 1788 if (usec) { 1789 bxt_cstates[2].exit_latency = usec; 1790 bxt_cstates[2].target_residency = usec; 1794 usec = irtl_2_usec(msr); 1795 if (usec) { 1796 bxt_cstates[3].exit_latency = usec; 1797 bxt_cstates[3].target_residency = usec; 1801 usec [all...] |