/drivers/media/cec/core/ |
D | cec-pin-error-inj.c | 129 u32 usecs; in cec_pin_error_inj_parse_line() local 131 if (kstrtou32(p, 0, &usecs) || usecs > 10000000) in cec_pin_error_inj_parse_line() 133 pin->tx_custom_low_usecs = usecs; in cec_pin_error_inj_parse_line() 137 u32 usecs; in cec_pin_error_inj_parse_line() local 139 if (kstrtou32(p, 0, &usecs) || usecs > 10000000) in cec_pin_error_inj_parse_line() 141 pin->tx_custom_high_usecs = usecs; in cec_pin_error_inj_parse_line()
|
D | cec-pin.c | 67 unsigned int usecs; member 848 u32 usecs; in cec_pin_timer() local 1007 usecs = pin->tx_custom_low_usecs; in cec_pin_timer() 1012 usecs = pin->tx_custom_high_usecs; in cec_pin_timer() 1015 usecs = states[pin->state].usecs; in cec_pin_timer() 1019 if (!adap->monitor_pin_cnt || usecs <= 150) { in cec_pin_timer() 1021 pin->timer_ts = ktime_add_us(ts, usecs); in cec_pin_timer() 1023 ns_to_ktime(usecs * 1000)); in cec_pin_timer() 1026 pin->wait_usecs = usecs - 100; in cec_pin_timer()
|
/drivers/usb/host/ |
D | ehci-sched.c | 203 ps->usecs, ps->c_usecs, ps->cs_mask); in bandwidth_dbg() 211 int usecs = qh->ps.usecs; in reserve_release_intr_bandwidth() local 223 usecs = -usecs; in reserve_release_intr_bandwidth() 231 ehci->bandwidth[i] += usecs; in reserve_release_intr_bandwidth() 362 unsigned usecs = ps->tt_usecs; in tt_available() local 372 if (tt->bandwidth[frame] + usecs > 900) in tt_available() 387 if (usecs > 125) { in tt_available() 388 int ufs = (usecs / 125); in tt_available() 395 tt_usecs[uframe] += usecs; in tt_available() 529 qh, qh->ps.phase, qh->ps.usecs, qh->ps.c_usecs); in qh_link_periodic() [all …]
|
D | fotg210-hcd.c | 507 (scratch >> 8) & 0x000f, type, qh->usecs, in output_buf_tds_dir() 2751 qh->usecs = NS_TO_US(usb_calc_bus_time(USB_SPEED_HIGH, in qh_make() 2779 qh->c_usecs = qh->usecs + HS_USECS(0); in qh_make() 2780 qh->usecs = HS_USECS(1); in qh_make() 2782 qh->usecs += HS_USECS(1); in qh_make() 3338 unsigned usecs = 0; in periodic_usecs() local 3347 usecs += q->qh->usecs; in periodic_usecs() 3351 usecs += q->qh->c_usecs; in periodic_usecs() 3368 usecs += q->itd->stream->usecs; in periodic_usecs() 3374 if (usecs > fotg210->uframe_periodic_max) in periodic_usecs() [all …]
|
D | oxu210hp-hcd.c | 346 u8 usecs; /* intr bandwidth */ member 1810 qh->usecs = NS_TO_US(usb_calc_bus_time(USB_SPEED_HIGH, in qh_make() 1839 qh->c_usecs = qh->usecs + HS_USECS(0); in qh_make() 1840 qh->usecs = HS_USECS(1); in qh_make() 1842 qh->usecs += HS_USECS(1); in qh_make() 2271 unsigned usecs = 0; in periodic_usecs() local 2279 usecs += q->qh->usecs; in periodic_usecs() 2282 usecs += q->qh->c_usecs; in periodic_usecs() 2289 if (usecs > 100) in periodic_usecs() 2291 frame * 8 + uframe, usecs); in periodic_usecs() [all …]
|
D | fotg210.h | 458 u8 usecs; /* intr bandwidth */ member 516 u8 usecs, c_usecs; member
|
D | ehci-q.c | 808 qh->ps.usecs = NS_TO_US(usb_calc_bus_time(USB_SPEED_HIGH, in qh_make() 843 qh->ps.c_usecs = qh->ps.usecs + HS_USECS(0); in qh_make() 844 qh->ps.usecs = HS_USECS(1); in qh_make() 846 qh->ps.usecs += HS_USECS(1); in qh_make()
|
/drivers/spi/ |
D | spi-lp8841-rtc.c | 68 unsigned usecs, unsigned cpol, unsigned flags, in bitbang_txrx_be_cpha0_lsb() argument 81 usleep_range(usecs, usecs + 1); /* T(setup) */ in bitbang_txrx_be_cpha0_lsb() 89 usleep_range(usecs, usecs + 1); in bitbang_txrx_be_cpha0_lsb()
|
D | spi-sc18is602.c | 53 int usecs = 1000000 * len / hw->speed + 1; in sc18is602_wait_ready() local 60 usleep_range(usecs, usecs * 2); in sc18is602_wait_ready()
|
/drivers/gpu/drm/msm/adreno/ |
D | a5xx_gpu.h | 138 static inline int spin_usecs(struct msm_gpu *gpu, uint32_t usecs, in spin_usecs() argument 141 while (usecs--) { in spin_usecs()
|
/drivers/cpufreq/ |
D | sparc-us2e-cpufreq.c | 105 unsigned long usecs; in frob_mem_refresh() local 110 usecs = (MCTRL0_REFR_CLKS_P_CNT * in frob_mem_refresh() 114 udelay(usecs + 1UL); in frob_mem_refresh()
|
/drivers/media/radio/si4713/ |
D | si4713.c | 156 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/gpu/drm/vc4/ |
D | vc4_hdmi.c | 1756 const u32 usecs = 1000000 / CEC_CLOCK_FREQ; in vc4_hdmi_cec_adap_enable() local 1762 val |= ((4700 / usecs) << VC4_HDMI_CEC_CNT_TO_4700_US_SHIFT) | in vc4_hdmi_cec_adap_enable() 1763 ((4500 / usecs) << VC4_HDMI_CEC_CNT_TO_4500_US_SHIFT); in vc4_hdmi_cec_adap_enable() 1770 ((1500 / usecs) << VC4_HDMI_CEC_CNT_TO_1500_US_SHIFT) | in vc4_hdmi_cec_adap_enable() 1771 ((1300 / usecs) << VC4_HDMI_CEC_CNT_TO_1300_US_SHIFT) | in vc4_hdmi_cec_adap_enable() 1772 ((800 / usecs) << VC4_HDMI_CEC_CNT_TO_800_US_SHIFT) | in vc4_hdmi_cec_adap_enable() 1773 ((600 / usecs) << VC4_HDMI_CEC_CNT_TO_600_US_SHIFT) | in vc4_hdmi_cec_adap_enable() 1774 ((400 / usecs) << VC4_HDMI_CEC_CNT_TO_400_US_SHIFT)); in vc4_hdmi_cec_adap_enable() 1776 ((2750 / usecs) << VC4_HDMI_CEC_CNT_TO_2750_US_SHIFT) | in vc4_hdmi_cec_adap_enable() 1777 ((2400 / usecs) << VC4_HDMI_CEC_CNT_TO_2400_US_SHIFT) | in vc4_hdmi_cec_adap_enable() [all …]
|
/drivers/gpio/ |
D | gpio-aspeed.c | 751 static int usecs_to_cycles(struct aspeed_gpio *gpio, unsigned long usecs, in usecs_to_cycles() argument 762 n = rate * usecs; in usecs_to_cycles() 841 unsigned long usecs) in enable_debounce() argument 852 rc = usecs_to_cycles(gpio, usecs, &requested_cycles); in enable_debounce() 855 usecs, clk_get_rate(gpio->clk), rc); in enable_debounce() 891 usecs); in enable_debounce() 942 unsigned long usecs) in set_debounce() argument 949 if (usecs) in set_debounce() 950 return enable_debounce(chip, offset, usecs); in set_debounce()
|
/drivers/media/test-drivers/vivid/ |
D | vivid-cec.c | 170 dev->cec_xfer_time_jiffies = usecs_to_jiffies(cw->usecs); in vivid_cec_xfer_try_worker() 204 cw->usecs = CEC_FREE_TIME_TO_USEC(signal_free_time) + in vivid_cec_adap_transmit() 213 dev->cec_xfer_time_jiffies = usecs_to_jiffies(cw->usecs); in vivid_cec_adap_transmit()
|
/drivers/net/ethernet/pensando/ionic/ |
D | ionic_lif.h | 272 static inline u32 ionic_coal_usec_to_hw(struct ionic *ionic, u32 usecs) in ionic_coal_usec_to_hw() argument 282 usecs += (div / mult) >> 1; in ionic_coal_usec_to_hw() 285 return (usecs * mult) / div; in ionic_coal_usec_to_hw()
|
/drivers/net/ethernet/intel/ice/ |
D | ice_txrx.h | 242 #define ICE_GLINT_DYN_CTL_WB_ON_ITR(usecs, itr_idx) \ argument 243 ((((usecs) << (GLINT_DYN_CTL_INTERVAL_S - ICE_ITR_GRAN_S)) & \
|
/drivers/gpu/drm/i915/display/ |
D | intel_sprite.h | 31 int usecs);
|
D | intel_crtc.c | 358 int usecs) in intel_usecs_to_scanlines() argument 364 return DIV_ROUND_UP(usecs * adjusted_mode->crtc_clock, in intel_usecs_to_scanlines()
|
/drivers/net/vmxnet3/ |
D | vmxnet3_int.h | 455 #define VMXNET3_COAL_RBC_RATE(usecs) (1000000 / usecs) argument
|
/drivers/base/power/ |
D | main.c | 460 int usecs; in dpm_show_time() local 465 usecs = usecs64; in dpm_show_time() 466 if (usecs == 0) in dpm_show_time() 467 usecs = 1; in dpm_show_time() 472 usecs / USEC_PER_MSEC, usecs % USEC_PER_MSEC); in dpm_show_time()
|
/drivers/net/ethernet/broadcom/ |
D | bcmsysport.c | 582 u32 usecs, u32 pkts) in bcm_sysport_set_rx_coalesce() argument 590 reg |= DIV_ROUND_UP(usecs * 1000, 8192) << RDMA_TIMEOUT_SHIFT; in bcm_sysport_set_rx_coalesce() 638 u32 usecs, pkts; in bcm_sysport_set_coalesce() local 660 usecs = priv->rx_coalesce_usecs; in bcm_sysport_set_coalesce() 665 usecs = moder.usec; in bcm_sysport_set_coalesce() 672 bcm_sysport_set_rx_coalesce(priv, usecs, pkts); in bcm_sysport_set_coalesce() 1486 u32 usecs, pkts; in bcm_sysport_init_rx_coalesce() local 1488 usecs = priv->rx_coalesce_usecs; in bcm_sysport_init_rx_coalesce() 1494 usecs = moder.usec; in bcm_sysport_init_rx_coalesce() 1498 bcm_sysport_set_rx_coalesce(priv, usecs, pkts); in bcm_sysport_init_rx_coalesce()
|
/drivers/net/ethernet/sfc/ |
D | efx.c | 410 unsigned int efx_usecs_to_ticks(struct efx_nic *efx, unsigned int usecs) in efx_usecs_to_ticks() argument 412 if (usecs == 0) in efx_usecs_to_ticks() 414 if (usecs * 1000 < efx->timer_quantum_ns) in efx_usecs_to_ticks() 416 return usecs * 1000 / efx->timer_quantum_ns; in efx_usecs_to_ticks()
|
D | efx.h | 172 unsigned int efx_usecs_to_ticks(struct efx_nic *efx, unsigned int usecs);
|
/drivers/scsi/aacraid/ |
D | src.c | 1030 unsigned long usecs = 0; in aac_src_wait_sync() local 1061 usecs = 1 * USEC_PER_MSEC; in aac_src_wait_sync() 1062 usleep_range(usecs, usecs + 50); in aac_src_wait_sync()
|