Searched refs:time_ms (Results 1 – 9 of 9) sorted by relevance
490 int time_ms; in _as73211_write_raw() local500 time_ms = (val_us * f_samp_1_024mhz) / 1000; /* 1 ms, 2 ms, ... (power of two) */ in _as73211_write_raw()501 if (time_ms < 0 || !is_power_of_2(time_ms) || time_ms > AS73211_SAMPLE_TIME_MAX_MS) in _as73211_write_raw()504 reg_bits = ilog2(time_ms); in _as73211_write_raw()
701 u32 time_ms; in hisi_femac_sleep_us() local706 time_ms = DIV_ROUND_UP(time_us, 1000); in hisi_femac_sleep_us()707 if (time_ms < 20) in hisi_femac_sleep_us()710 msleep(time_ms); in hisi_femac_sleep_us()
1060 u32 time_ms; in hix5hd2_sleep_us() local1065 time_ms = DIV_ROUND_UP(time_us, 1000); in hix5hd2_sleep_us()1066 if (time_ms < 20) in hix5hd2_sleep_us()1069 msleep(time_ms); in hix5hd2_sleep_us()
306 static inline int apds990x_set_atime(struct apds990x_chip *chip, u32 time_ms) in apds990x_set_atime() argument310 chip->atime = time_ms; in apds990x_set_atime()312 reg_value = 256 - ((time_ms * TIME_STEP_SCALER) / TIMESTEP); in apds990x_set_atime()
186 int time_ms = 0; in j1939_sk_queue_activate_next_locked() local189 time_ms = 10 + prandom_u32_max(16); in j1939_sk_queue_activate_next_locked()191 j1939_tp_schedule_txtimer(first, time_ms); in j1939_sk_queue_activate_next_locked()
872 unsigned long time_ms) in bfq_bfqq_charge_time() argument876 unsigned long bounded_time_ms = min(time_ms, timeout_ms); in bfq_bfqq_charge_time()
1064 unsigned long time_ms);
935 u32 time_ms; member939 u32 time_ms; member
539 static bool mutex_trylock_limit(pthread_mutex_t *mutex, int time_ms) in mutex_trylock_limit() argument541 long time_us = time_ms * USEC_PER_MSEC; in mutex_trylock_limit()