Searched refs:usec (Results 1 - 25 of 116) sorted by relevance

12345

/linux-master/tools/testing/selftests/kvm/include/aarch64/
H A Ddelay.h20 static inline void udelay(unsigned long usec) argument
22 __delay(usec_to_cycles(usec));
H A Darch_timer.h23 #define usec_to_cycles(usec) \
24 (timer_get_cntfrq() * (uint64_t)(usec) / 1000000)
/linux-master/arch/xtensa/include/asm/
H A Ddelay.h47 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 Darch_timer.h19 #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 Dnet_dim.c21 {.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 Dleds-ti-lmu-common.c57 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 Dfsl_gtm.h36 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 Dbnxt_dim.c26 cpr->rx_ring_coal.coal_ticks = cur_moder.usec;
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/bus/
H A Dhwsq.c169 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 Dktime.h177 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 Dbh1750.c70 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 Dtimer-tegra186.c88 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 Dconnection.c431 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 Dhpet_example.c139 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 Drdma_core.h169 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 Dfsl_gtm.c233 * @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 Dulpi.c21 unsigned long usec = 10000; local
23 while (usec--) {
/linux-master/drivers/input/
H A Dinput-compat.c25 event->input_event_usec = compat_event.usec;
45 compat_event.usec = event->input_event_usec;
H A Dinput-compat.h19 compat_ulong_t usec; member in struct:input_event_compat
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_dim.c40 mlx5_core_modify_cq_moderation(mdev, mcq, moder.usec, moder.pkts);
/linux-master/include/uapi/linux/netfilter/
H A Dnfnetlink_log.h33 __aligned_be64 usec; member in struct:nfulnl_msg_packet_timestamp
H A Dnfnetlink_queue.h31 __aligned_be64 usec; member in struct:nfqnl_msg_packet_timestamp
/linux-master/drivers/net/ethernet/fungible/funeth/
H A Dfuneth_txrx.h45 #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 Dieee1284.c88 * @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 Dintel_idle.c1784 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...]

Completed in 331 milliseconds

12345