/kernel/linux/linux-6.6/drivers/iio/light/ |
H A D | bh1750.c | 70 static int bh1750_change_int_time(struct bh1750_data *data, int usec) in bh1750_change_int_time() argument 77 if ((usec % chip_info->mtreg_to_usec) != 0) in bh1750_change_int_time() 80 val = usec / chip_info->mtreg_to_usec; in bh1750_change_int_time() 234 int ret, usec; in bh1750_probe() local 251 usec = data->chip_info->mtreg_to_usec * data->chip_info->mtreg_default; in bh1750_probe() 252 ret = bh1750_change_int_time(data, usec); in bh1750_probe()
|
/kernel/liteos_m/kal/posix/src/ |
H A D | time.c | 499 UINT64 usec = 0; in time() local 504 rtcRet = g_rtcTimeFunc.RtcGetTimeHook(&usec); in time() 510 sec = usec / OS_SYS_US_PER_SECOND; in time() 723 UINT64 usec = 0; in gettimeofday() local 725 if ((g_rtcTimeFunc.RtcGetTimeHook != NULL) && (g_rtcTimeFunc.RtcGetTimeHook(&usec) == 0)) { in gettimeofday() 726 tv->tv_sec = usec / OS_SYS_US_PER_SECOND; in gettimeofday() 727 tv->tv_usec = usec % OS_SYS_US_PER_SECOND; in gettimeofday() 785 UINT64 usec; in settimeofday() local 787 usec = tv->tv_sec * OS_SYS_US_PER_SECOND + tv->tv_usec; in settimeofday() 788 if (g_rtcTimeFunc.RtcSetTimeHook(g_rtcTimeBase, &usec) < in settimeofday() [all...] |
/kernel/linux/linux-5.10/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,
|
/kernel/linux/linux-6.6/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,
|
/kernel/liteos_a/kernel/extended/perf/pmu/ |
H A D | perf_timed_pmu.c | 91 .tv.usec = period % US_PER_SECOND in OsPerfTimedConfig() 93 PRINT_INFO("hrtimer config period - sec:%d, usec:%d\n", g_perfTimed.cfgTime.tv.sec, in OsPerfTimedConfig() 94 g_perfTimed.cfgTime.tv.usec); in OsPerfTimedConfig() 156 .tv.usec = HRTIMER_DEFAULT_PERIOD_US, in OsTimedPmuInit()
|
/kernel/linux/linux-6.6/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) | \
|
/kernel/linux/linux-6.6/drivers/idle/ |
H A D | intel_idle.c | 1670 unsigned int usec; in bxt_idle_state_table_update() local 1673 usec = irtl_2_usec(msr); in bxt_idle_state_table_update() 1674 if (usec) { in bxt_idle_state_table_update() 1675 bxt_cstates[2].exit_latency = usec; in bxt_idle_state_table_update() 1676 bxt_cstates[2].target_residency = usec; in bxt_idle_state_table_update() 1680 usec = irtl_2_usec(msr); in bxt_idle_state_table_update() 1681 if (usec) { in bxt_idle_state_table_update() 1682 bxt_cstates[3].exit_latency = usec; in bxt_idle_state_table_update() 1683 bxt_cstates[3].target_residency = usec; in bxt_idle_state_table_update() 1687 usec in bxt_idle_state_table_update() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/include/aarch64/ |
H A D | arch_timer.h | 23 #define usec_to_cycles(usec) \ 24 (timer_get_cntfrq() * (uint64_t)(usec) / 1000000)
|
/kernel/linux/linux-5.10/drivers/parport/ |
H A D | ieee1284.c | 88 * @usec: timeout 97 * using udelay(). It currently has a resolution of 5usec. 110 int usec) in parport_poll_peripheral() 113 int count = usec / 5 + 2; in parport_poll_peripheral() 146 * time is configurable (using /proc), and defaults to 500usec. 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() 107 parport_poll_peripheral(struct parport *port, unsigned char mask, unsigned char result, int usec) parport_poll_peripheral() argument
|
/kernel/linux/linux-6.6/drivers/parport/ |
H A D | ieee1284.c | 88 * @usec: timeout 97 * using udelay(). It currently has a resolution of 5usec. 110 int usec) in parport_poll_peripheral() 113 int count = usec / 5 + 2; in parport_poll_peripheral() 146 * time is configurable (using /proc), and defaults to 500usec. 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() 107 parport_poll_peripheral(struct parport *port, unsigned char mask, unsigned char result, int usec) parport_poll_peripheral() argument
|
/kernel/linux/linux-5.10/drivers/input/ |
H A D | input-compat.c | 25 event->input_event_usec = compat_event.usec; in input_event_from_user() 45 compat_event.usec = event->input_event_usec; in input_event_to_user()
|
/kernel/linux/linux-5.10/drivers/usb/chipidea/ |
H A D | ulpi.c | 21 unsigned long usec = 10000; in ci_ulpi_wait() local 23 while (usec--) { in ci_ulpi_wait()
|
/kernel/linux/linux-6.6/drivers/usb/chipidea/ |
H A D | ulpi.c | 21 unsigned long usec = 10000; in ci_ulpi_wait() local 23 while (usec--) { in ci_ulpi_wait()
|
/kernel/linux/linux-6.6/drivers/input/ |
H A D | input-compat.c | 25 event->input_event_usec = compat_event.usec; in input_event_from_user() 45 compat_event.usec = event->input_event_usec; in input_event_to_user()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath5k/ |
H A D | reset.c | 91 * ath5k_hw_htoclock() - Translate usec to hw clock units 93 * @usec: value in microseconds 101 ath5k_hw_htoclock(struct ath5k_hw *ah, unsigned int usec) in ath5k_hw_htoclock() argument 104 return usec * common->clockrate; in ath5k_hw_htoclock() 108 * ath5k_hw_clocktoh() - Translate hw clock units to usec 128 * Initialize core clock parameters (usec, usec32, latencies etc), 136 u32 usec_reg, txlat, rxlat, usec, clock, sclock, txf2txs; in ath5k_hw_init_core_clock() local 176 usec = clock - 1; in ath5k_hw_init_core_clock() 177 usec = AR5K_REG_SM(usec, AR5K_USEC_ in ath5k_hw_init_core_clock() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath5k/ |
H A D | reset.c | 91 * ath5k_hw_htoclock() - Translate usec to hw clock units 93 * @usec: value in microseconds 101 ath5k_hw_htoclock(struct ath5k_hw *ah, unsigned int usec) in ath5k_hw_htoclock() argument 104 return usec * common->clockrate; in ath5k_hw_htoclock() 108 * ath5k_hw_clocktoh() - Translate hw clock units to usec 128 * Initialize core clock parameters (usec, usec32, latencies etc), 136 u32 usec_reg, txlat, rxlat, usec, clock, sclock, txf2txs; in ath5k_hw_init_core_clock() local 176 usec = clock - 1; in ath5k_hw_init_core_clock() 177 usec = AR5K_REG_SM(usec, AR5K_USEC_ in ath5k_hw_init_core_clock() [all...] |
/kernel/linux/linux-6.6/drivers/hid/ |
H A D | hid-ft260.c | 373 int ret, usec, try = 100; in ft260_hid_output_report_check_status() local 387 usec = len * 9000 / dev->clock; in ft260_hid_output_report_check_status() 388 if (usec > 2000) { in ft260_hid_output_report_check_status() 389 usec -= 1500; in ft260_hid_output_report_check_status() 390 usleep_range(usec, usec + 100); in ft260_hid_output_report_check_status() 391 ft260_dbg("wait %d usec, len %d\n", usec, len); in ft260_hid_output_report_check_status()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | dp.c | 199 int tries = 0, usec = 0, i; in nvkm_dp_train_eq() local 204 usec = (data & DPCD_RC0E_AUX_RD_INTERVAL) * 4000; in nvkm_dp_train_eq() 218 usec = (lt->outp->dp.dpcd[DPCD_RC0E] & DPCD_RC0E_AUX_RD_INTERVAL) * 4000; in nvkm_dp_train_eq() 224 nvkm_dp_train_sense(lt, lt->pc2, usec ? usec : 400)) in nvkm_dp_train_eq() 246 int tries = 0, usec = 0, i; in nvkm_dp_train_cr() local 251 usec = (lt->outp->dp.dpcd[DPCD_RC0E] & DPCD_RC0E_AUX_RD_INTERVAL) * 4000; in nvkm_dp_train_cr() 255 nvkm_dp_train_sense(lt, false, usec ? usec : 100)) in nvkm_dp_train_cr()
|
/kernel/linux/linux-5.10/drivers/infiniband/core/ |
H A D | cq.c | 45 u16 usec = rdma_dim_prof[dim->profile_ix].usec; in ib_cq_rdma_dim_work() local 50 trace_cq_modify(cq, comps, usec); in ib_cq_rdma_dim_work() 51 cq->device->ops.modify_cq(cq, comps, usec); in ib_cq_rdma_dim_work()
|
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/dvm/ |
H A D | devices.c | 83 * time in usec will be changed into a 32-bit value in extended:internal format 85 * the internal part is the time in usec within one beacon interval 87 static u32 iwl_usecs_to_beacons(struct iwl_priv *priv, u32 usec, in iwl_usecs_to_beacons() argument 94 if (!interval || !usec) in iwl_usecs_to_beacons() 97 quot = (usec / interval) & in iwl_usecs_to_beacons() 100 rem = (usec % interval) & iwl_beacon_time_mask_low(priv, in iwl_usecs_to_beacons()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/igc/ |
H A D | igc_defines.h | 556 #define IGC_PTM_CTRL_SHRT_CYC(usec) (((usec) & 0x3f) << 2) 557 #define IGC_PTM_CTRL_PTM_TO(usec) (((usec) & 0xff) << 8)
|
/kernel/linux/linux-6.6/drivers/infiniband/core/ |
H A D | cq.c | 44 u16 usec = rdma_dim_prof[dim->profile_ix].usec; in ib_cq_rdma_dim_work() local 49 trace_cq_modify(cq, comps, usec); in ib_cq_rdma_dim_work() 50 cq->device->ops.modify_cq(cq, comps, usec); in ib_cq_rdma_dim_work()
|
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/dvm/ |
H A D | devices.c | 78 * time in usec will be changed into a 32-bit value in extended:internal format 80 * the internal part is the time in usec within one beacon interval 82 static u32 iwl_usecs_to_beacons(struct iwl_priv *priv, u32 usec, in iwl_usecs_to_beacons() argument 89 if (!interval || !usec) in iwl_usecs_to_beacons() 92 quot = (usec / interval) & in iwl_usecs_to_beacons() 95 rem = (usec % interval) & iwl_beacon_time_mask_low(priv, in iwl_usecs_to_beacons()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_dim.c | 26 cpr->rx_ring_coal.coal_ticks = cur_moder.usec; in bnxt_dim_work()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_dim.c | 26 cpr->rx_ring_coal.coal_ticks = cur_moder.usec; in bnxt_dim_work()
|