/drivers/iio/light/ |
D | as73211.c | 210 unsigned int time_us = as73211_integration_time_us(data, BIT(i)); in as73211_integration_time_calc_avail() local 212 data->int_time_avail[i * 2 + 0] = time_us / USEC_PER_SEC; in as73211_integration_time_calc_avail() 213 data->int_time_avail[i * 2 + 1] = time_us % USEC_PER_SEC; in as73211_integration_time_calc_avail() 226 unsigned int time_us = as73211_integration_time_us(data, in as73211_req_data() local 263 time_us += time_us / 3; in as73211_req_data() 265 ret = wait_for_completion_timeout(&data->completion, usecs_to_jiffies(time_us)); in as73211_req_data() 273 usleep_range(time_us, 2 * time_us); in as73211_req_data() 394 unsigned int time_us; in as73211_read_raw() local 397 time_us = as73211_integration_time_us(data, as73211_integration_time_1024cyc(data)); in as73211_read_raw() 399 *val = time_us / USEC_PER_SEC; in as73211_read_raw() [all …]
|
D | rohm-bu27034.c | 475 static int bu27034_try_set_int_time(struct bu27034_data *data, int time_us) in bu27034_try_set_int_time() argument 491 if (!iio_gts_valid_time(&data->gts, time_us)) { in bu27034_try_set_int_time() 493 time_us); in bu27034_try_set_int_time() 499 if (time_us == int_time_old) { in bu27034_try_set_int_time() 511 int_time_old, time_us, in bu27034_try_set_int_time() 520 gains[i].chan, time_us, scale1, scale2); in bu27034_try_set_int_time() 560 ret = bu27034_set_int_time(data, time_us); in bu27034_try_set_int_time()
|
/drivers/media/platform/st/sti/bdisp/ |
D | bdisp-debug.c | 21 s64 time_us; in bdisp_dbg_perf_end() local 23 time_us = ktime_us_delta(ktime_get(), bdisp->dbg.hw_start); in bdisp_dbg_perf_end() 26 bdisp->dbg.min_duration = time_us; in bdisp_dbg_perf_end() 28 bdisp->dbg.min_duration = min(time_us, bdisp->dbg.min_duration); in bdisp_dbg_perf_end() 30 bdisp->dbg.last_duration = time_us; in bdisp_dbg_perf_end() 31 bdisp->dbg.max_duration = max(time_us, bdisp->dbg.max_duration); in bdisp_dbg_perf_end() 32 bdisp->dbg.tot_duration += time_us; in bdisp_dbg_perf_end()
|
/drivers/iio/ |
D | industrialio-gts-helper.c | 327 static void iio_gts_us_to_int_micro(int *time_us, int *int_micro_times, in iio_gts_us_to_int_micro() argument 333 int_micro_times[i * 2] = time_us[i] / 1000000; in iio_gts_us_to_int_micro() 334 int_micro_times[i * 2 + 1] = time_us[i] % 1000000; in iio_gts_us_to_int_micro() 363 int new = gts->itime_table[i].time_us; in iio_gts_build_avail_time_table() 515 if (t->sel < 0 || t->time_us < 0 || t->mul <= 0) in sanity_check_time() 668 if (gts->itime_table[i].time_us == time) in iio_gts_avail_scales_for_time() 1018 ret = iio_gts_get_scale_linear(gts, old_gain, itime_old->time_us, in iio_gts_find_new_gain_sel_by_old_gain_time()
|
/drivers/media/dvb-frontends/ |
D | dib7000p.c | 1799 u64 time_us, tmp64; in dib7000p_get_time_us() local 1883 time_us = rate_denum * (1008 * 1562500L); in dib7000p_get_time_us() 1884 tmp64 = time_us; in dib7000p_get_time_us() 1886 time_us = time_us + tmp64; in dib7000p_get_time_us() 1887 time_us += denom / 2; in dib7000p_get_time_us() 1888 do_div(time_us, denom); in dib7000p_get_time_us() 1891 time_us += tmp + tmp / guard; in dib7000p_get_time_us() 1893 return time_us; in dib7000p_get_time_us() 1901 u32 time_us = 0, val, snr; in dib7000p_get_stats() local 1952 if (!time_us) in dib7000p_get_stats() [all …]
|
D | dib8000.c | 4012 u64 time_us, tmp64; in dib8000_get_time_us() local 4108 time_us = rate_denum * (1008 * 1562500L); in dib8000_get_time_us() 4109 tmp64 = time_us; in dib8000_get_time_us() 4111 time_us = time_us + tmp64; in dib8000_get_time_us() 4112 time_us += denom / 2; in dib8000_get_time_us() 4113 do_div(time_us, denom); in dib8000_get_time_us() 4116 time_us += tmp + tmp / guard; in dib8000_get_time_us() 4118 return time_us; in dib8000_get_time_us() 4127 u32 time_us = 0, snr, val; in dib8000_get_stats() local 4185 if (!time_us) in dib8000_get_stats() [all …]
|
/drivers/powercap/ |
D | arm_scmi_powercap.c | 155 u64 time_us, u32 *norm) in scmi_powercap_normalize_time() argument 162 *norm = clamp_t(u32, time_us, spz->info->min_pai, spz->info->max_pai); in scmi_powercap_normalize_time() 165 if (time_us != *norm) in scmi_powercap_normalize_time() 168 spz->info->name, time_us, *norm); in scmi_powercap_normalize_time()
|
/drivers/net/ethernet/hisilicon/ |
D | hisi_femac.c | 699 static void hisi_femac_sleep_us(u32 time_us) in hisi_femac_sleep_us() argument 703 if (!time_us) in hisi_femac_sleep_us() 706 time_ms = DIV_ROUND_UP(time_us, 1000); in hisi_femac_sleep_us() 708 usleep_range(time_us, time_us + 500); in hisi_femac_sleep_us()
|
D | hix5hd2_gmac.c | 1058 static void hix5hd2_sleep_us(u32 time_us) in hix5hd2_sleep_us() argument 1062 if (!time_us) in hix5hd2_sleep_us() 1065 time_ms = DIV_ROUND_UP(time_us, 1000); in hix5hd2_sleep_us() 1067 usleep_range(time_us, time_us + 500); in hix5hd2_sleep_us()
|
/drivers/spi/ |
D | spi-s3c64xx.c | 581 unsigned long time_us; in s3c64xx_wait_for_pio() local 584 time_us = (xfer->len * 8 * 1000 * 1000) / sdd->cur_speed; in s3c64xx_wait_for_pio() 585 ms = (time_us / 1000); in s3c64xx_wait_for_pio() 591 usleep_range(time_us / 2, time_us); in s3c64xx_wait_for_pio()
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_cs.c | 678 s64 time_us, increment_us; in amdgpu_cs_get_threshold_for_moves() local 702 time_us = ktime_to_us(ktime_get()); in amdgpu_cs_get_threshold_for_moves() 703 increment_us = time_us - adev->mm_stats.last_update_us; in amdgpu_cs_get_threshold_for_moves() 704 adev->mm_stats.last_update_us = time_us; in amdgpu_cs_get_threshold_for_moves()
|
/drivers/gpu/drm/amd/display/dc/dml/dcn32/ |
D | dcn32_fpu.c | 807 uint32_t time_us = 0; in subvp_subvp_schedulable() local 819 time_us = (microschedule_lines * phantom->timing.h_total) / in subvp_subvp_schedulable() 823 if (time_us > max_microschedule_us) in subvp_subvp_schedulable() 824 max_microschedule_us = time_us; in subvp_subvp_schedulable()
|
/drivers/net/wireless/realtek/rtw89/ |
D | phy.c | 3224 static u16 rtw89_phy_ccx_us_to_idx(struct rtw89_dev *rtwdev, u32 time_us) in rtw89_phy_ccx_us_to_idx() argument 3228 return time_us >> (ilog2(CCX_US_BASE_RATIO) + env->ccx_unit_idx); in rtw89_phy_ccx_us_to_idx()
|