Home
last modified time | relevance | path

Searched refs:usecs (Results 1 – 25 of 51) sorted by relevance

123

/drivers/ufs/core/
A Dufs_trace.h194 TP_PROTO(struct ufs_hba *hba, int err, s64 usecs,
197 TP_ARGS(hba, err, usecs, dev_state, link_state),
200 __field(s64, usecs)
208 __entry->usecs = usecs;
218 __entry->usecs,
226 TP_PROTO(struct ufs_hba *hba, int err, s64 usecs,
228 TP_ARGS(hba, err, usecs, dev_state, link_state));
231 TP_PROTO(struct ufs_hba *hba, int err, s64 usecs,
233 TP_ARGS(hba, err, usecs, dev_state, link_state));
236 TP_PROTO(struct ufs_hba *hba, int err, s64 usecs,
[all …]
/drivers/media/cec/core/
A Dcec-pin-error-inj.c152 u32 usecs; in cec_pin_error_inj_parse_line() local
154 if (kstrtou32(p, 0, &usecs) || usecs > 10000000) in cec_pin_error_inj_parse_line()
156 pin->tx_custom_low_usecs = usecs; in cec_pin_error_inj_parse_line()
160 u32 usecs; in cec_pin_error_inj_parse_line() local
162 if (kstrtou32(p, 0, &usecs) || usecs > 10000000) in cec_pin_error_inj_parse_line()
164 pin->tx_glitch_high_usecs = usecs; in cec_pin_error_inj_parse_line()
168 u32 usecs; in cec_pin_error_inj_parse_line() local
170 if (kstrtou32(p, 0, &usecs) || usecs > 100) in cec_pin_error_inj_parse_line()
172 pin->tx_glitch_low_usecs = usecs; in cec_pin_error_inj_parse_line()
176 u32 usecs; in cec_pin_error_inj_parse_line() local
[all …]
A Dcec-pin.c68 unsigned int usecs; member
876 u32 usecs; in cec_pin_timer() local
1035 usecs = pin->tx_custom_low_usecs; in cec_pin_timer()
1040 usecs = pin->tx_custom_high_usecs; in cec_pin_timer()
1043 usecs = states[pin->state].usecs; in cec_pin_timer()
1047 if (!adap->monitor_pin_cnt || usecs <= 150) { in cec_pin_timer()
1049 pin->timer_ts = ktime_add_us(ts, usecs); in cec_pin_timer()
1050 hrtimer_forward_now(timer, us_to_ktime(usecs)); in cec_pin_timer()
1053 pin->wait_usecs = usecs - 100; in cec_pin_timer()
/drivers/usb/host/
A Dehci-sched.c211 int usecs = qh->ps.usecs; in reserve_release_intr_bandwidth() local
223 usecs = -usecs; in reserve_release_intr_bandwidth()
387 if (usecs > 125) { in tt_available()
579 : (qh->ps.usecs * 8); in qh_link_periodic()
617 : (qh->ps.usecs * 8); in qh_unlink_periodic()
747 unsigned usecs in check_period() argument
756 usecs = ehci->uframe_periodic_max - usecs; in check_period()
1307 int usecs = stream->ps.usecs; in reserve_release_iso_bandwidth() local
1319 usecs = -usecs; in reserve_release_iso_bandwidth()
1370 unsigned usecs; in itd_slot_ok() local
[all …]
A Doxu210hp-hcd.c1816 qh->usecs = HS_USECS(1); in qh_make()
2247 unsigned usecs = 0; in periodic_usecs() local
2255 usecs += q->qh->usecs; in periodic_usecs()
2258 usecs += q->qh->c_usecs; in periodic_usecs()
2265 if (usecs > 100) in periodic_usecs()
2269 return usecs; in periodic_usecs()
2383 : (qh->usecs * 8); in qh_link_periodic()
2416 : (qh->usecs * 8); in qh_unlink_periodic()
2474 usecs = 100 - usecs; in check_period()
2483 if (claimed > usecs) in check_period()
[all …]
/drivers/spi/
A Dspi-lp8841-rtc.c67 unsigned usecs, unsigned cpol, unsigned flags, in bitbang_txrx_be_cpha0_lsb() argument
80 usleep_range(usecs, usecs + 1); /* T(setup) */ in bitbang_txrx_be_cpha0_lsb()
88 usleep_range(usecs, usecs + 1); in bitbang_txrx_be_cpha0_lsb()
A Dspi-sc18is602.c54 int usecs = 1000000 * len / hw->speed + 1; in sc18is602_wait_ready() local
61 usleep_range(usecs, usecs * 2); in sc18is602_wait_ready()
/drivers/cpufreq/
A Dsparc-us2e-cpufreq.c103 unsigned long usecs; in frob_mem_refresh() local
108 usecs = (MCTRL0_REFR_CLKS_P_CNT * in frob_mem_refresh()
112 udelay(usecs + 1UL); in frob_mem_refresh()
/drivers/media/radio/si4713/
A Dsi4713.c156 static int usecs_to_dev(unsigned long usecs, unsigned long const array[], in usecs_to_dev() argument
163 if (array[(i * 2) + 1] >= usecs) { in usecs_to_dev()
195 u8 response[], const int respn, const int usecs) in si4713_send_command() argument
217 until_jiffies = jiffies + usecs_to_jiffies(usecs) + 1; in si4713_send_command()
222 usecs_to_jiffies(usecs) + 1)) in si4713_send_command()
243 if (usecs <= 1000) in si4713_send_command()
244 usleep_range(usecs, 1000); in si4713_send_command()
494 static int si4713_wait_stc(struct si4713_device *sdev, const int usecs) in si4713_wait_stc() argument
502 !wait_for_completion_timeout(&sdev->work, usecs_to_jiffies(usecs) + 1)) in si4713_wait_stc()
521 if (jiffies_to_usecs(jiffies - start_jiffies) > usecs) in si4713_wait_stc()
/drivers/net/ethernet/google/gve/
A Dgve_dqo.h108 u32 usecs) in gve_set_itr_coalesce_usecs_dqo() argument
111 gve_setup_itr_interval_dqo(usecs)); in gve_set_itr_coalesce_usecs_dqo()
/drivers/gpu/drm/msm/adreno/
A Da5xx_gpu.h140 static inline int spin_usecs(struct msm_gpu *gpu, uint32_t usecs, in spin_usecs() argument
143 while (usecs--) { in spin_usecs()
/drivers/usb/fotg210/
A Dfotg210-hcd.c3332 unsigned usecs = 0; in periodic_usecs() local
3341 usecs += q->qh->usecs; in periodic_usecs()
3362 usecs += q->itd->stream->usecs; in periodic_usecs()
3371 return usecs; in periodic_usecs()
3530 : (qh->usecs * 8); in qh_link_periodic()
3571 : (qh->usecs * 8); in qh_unlink_periodic()
3675 usecs = fotg210->uframe_periodic_max - usecs; in check_period()
3685 if (claimed > usecs) in check_period()
3694 if (claimed > usecs) in check_period()
3950 stream->usecs /= 8; in iso_stream_init()
[all …]
A Dfotg210-hcd.h459 u8 usecs; /* intr bandwidth */ member
517 u8 usecs, c_usecs; member
/drivers/gpio/
A Dgpio-aspeed.c709 static int usecs_to_cycles(struct aspeed_gpio *gpio, unsigned long usecs, in usecs_to_cycles() argument
720 n = rate * usecs; in usecs_to_cycles()
789 unsigned long usecs) in enable_debounce() argument
799 rc = usecs_to_cycles(gpio, usecs, &requested_cycles); in enable_debounce()
802 usecs, clk_get_rate(gpio->clk), rc); in enable_debounce()
838 usecs); in enable_debounce()
881 unsigned long usecs) in set_debounce() argument
888 if (usecs) in set_debounce()
889 return enable_debounce(chip, offset, usecs); in set_debounce()
/drivers/gpu/drm/vc4/
A Dvc4_hdmi.c2568 const u32 usecs = 1000000 / CEC_CLOCK_FREQ; in vc4_hdmi_cec_enable() local
2603 ((1500 / usecs) << VC4_HDMI_CEC_CNT_TO_1500_US_SHIFT) | in vc4_hdmi_cec_enable()
2604 ((1300 / usecs) << VC4_HDMI_CEC_CNT_TO_1300_US_SHIFT) | in vc4_hdmi_cec_enable()
2605 ((800 / usecs) << VC4_HDMI_CEC_CNT_TO_800_US_SHIFT) | in vc4_hdmi_cec_enable()
2606 ((600 / usecs) << VC4_HDMI_CEC_CNT_TO_600_US_SHIFT) | in vc4_hdmi_cec_enable()
2607 ((400 / usecs) << VC4_HDMI_CEC_CNT_TO_400_US_SHIFT)); in vc4_hdmi_cec_enable()
2609 ((2750 / usecs) << VC4_HDMI_CEC_CNT_TO_2750_US_SHIFT) | in vc4_hdmi_cec_enable()
2610 ((2400 / usecs) << VC4_HDMI_CEC_CNT_TO_2400_US_SHIFT) | in vc4_hdmi_cec_enable()
2611 ((2050 / usecs) << VC4_HDMI_CEC_CNT_TO_2050_US_SHIFT) | in vc4_hdmi_cec_enable()
2612 ((1700 / usecs) << VC4_HDMI_CEC_CNT_TO_1700_US_SHIFT)); in vc4_hdmi_cec_enable()
[all …]
/drivers/net/ethernet/pensando/ionic/
A Dionic_lif.h314 static inline u32 ionic_coal_usec_to_hw(struct ionic *ionic, u32 usecs) in ionic_coal_usec_to_hw() argument
324 usecs += (div / mult) >> 1; in ionic_coal_usec_to_hw()
327 return (usecs * mult) / div; in ionic_coal_usec_to_hw()
/drivers/gpu/drm/i915/display/
A Dintel_crtc.h33 int usecs);
/drivers/net/ethernet/intel/ice/
A Dice_txrx.h301 #define ICE_GLINT_DYN_CTL_WB_ON_ITR(usecs, itr_idx) \ argument
302 ((((usecs) << (GLINT_DYN_CTL_INTERVAL_S - ICE_ITR_GRAN_S)) & \
/drivers/net/ethernet/engleder/
A Dtsnep_main.c126 int tsnep_set_irq_coalesce(struct tsnep_queue *queue, u32 usecs) in tsnep_set_irq_coalesce() argument
128 if (usecs > TSNEP_COALESCE_USECS_MAX) in tsnep_set_irq_coalesce()
131 usecs /= ECM_INT_DELAY_BASE_US; in tsnep_set_irq_coalesce()
132 usecs <<= ECM_INT_DELAY_SHIFT; in tsnep_set_irq_coalesce()
133 usecs &= ECM_INT_DELAY_MASK; in tsnep_set_irq_coalesce()
136 queue->irq_delay |= usecs; in tsnep_set_irq_coalesce()
144 u32 usecs; in tsnep_get_irq_coalesce() local
146 usecs = (queue->irq_delay & ECM_INT_DELAY_MASK); in tsnep_get_irq_coalesce()
147 usecs >>= ECM_INT_DELAY_SHIFT; in tsnep_get_irq_coalesce()
148 usecs *= ECM_INT_DELAY_BASE_US; in tsnep_get_irq_coalesce()
[all …]
/drivers/net/vmxnet3/
A Dvmxnet3_int.h514 #define VMXNET3_COAL_RBC_RATE(usecs) (1000000 / usecs) argument
/drivers/net/ethernet/broadcom/
A Dbcmsysport.c559 u32 usecs, u32 pkts) in bcm_sysport_set_rx_coalesce() argument
567 reg |= DIV_ROUND_UP(usecs * 1000, 8192) << RDMA_TIMEOUT_SHIFT; in bcm_sysport_set_rx_coalesce()
615 u32 usecs, pkts; in bcm_sysport_set_coalesce() local
637 usecs = priv->rx_coalesce_usecs; in bcm_sysport_set_coalesce()
642 usecs = moder.usec; in bcm_sysport_set_coalesce()
649 bcm_sysport_set_rx_coalesce(priv, usecs, pkts); in bcm_sysport_set_coalesce()
1464 u32 usecs, pkts; in bcm_sysport_init_rx_coalesce() local
1466 usecs = priv->rx_coalesce_usecs; in bcm_sysport_init_rx_coalesce()
1472 usecs = moder.usec; in bcm_sysport_init_rx_coalesce()
1476 bcm_sysport_set_rx_coalesce(priv, usecs, pkts); in bcm_sysport_init_rx_coalesce()
/drivers/net/ethernet/sfc/siena/
A Defx.c419 unsigned int efx_siena_usecs_to_ticks(struct efx_nic *efx, unsigned int usecs) in efx_siena_usecs_to_ticks() argument
421 if (usecs == 0) in efx_siena_usecs_to_ticks()
423 if (usecs * 1000 < efx->timer_quantum_ns) in efx_siena_usecs_to_ticks()
425 return usecs * 1000 / efx->timer_quantum_ns; in efx_siena_usecs_to_ticks()
A Defx.h154 unsigned int efx_siena_usecs_to_ticks(struct efx_nic *efx, unsigned int usecs);
/drivers/net/ethernet/sfc/
A Defx.c412 unsigned int efx_usecs_to_ticks(struct efx_nic *efx, unsigned int usecs) in efx_usecs_to_ticks() argument
414 if (usecs == 0) in efx_usecs_to_ticks()
416 if (usecs * 1000 < efx->timer_quantum_ns) in efx_usecs_to_ticks()
418 return usecs * 1000 / efx->timer_quantum_ns; in efx_usecs_to_ticks()
/drivers/base/power/
A Dmain.c472 int usecs; in dpm_show_time() local
477 usecs = usecs64; in dpm_show_time()
478 if (usecs == 0) in dpm_show_time()
479 usecs = 1; in dpm_show_time()
484 usecs / USEC_PER_MSEC, usecs % USEC_PER_MSEC); in dpm_show_time()

Completed in 130 milliseconds

123