/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oal/ |
H A D | plat_pm.c | 73 unsigned long total_time; in firmware_download_function() local 99 total_time = (unsigned long)oal_ktime_to_us(trans_time); in firmware_download_function() 100 if (total_time > max_time) { in firmware_download_function() 101 max_time = total_time; in firmware_download_function() 105 oam_info_log3(0, 0, "download firmware, count [%lu], current time [%lu]us, max time [%lu]us", count, total_time, in firmware_download_function() 115 unsigned long long total_time; in wlan_power_on() local 137 total_time = (unsigned long long)oal_ktime_to_us(trans_time); in wlan_power_on() 138 if (total_time > max_download_time) { in wlan_power_on() 139 max_download_time = total_time; in wlan_power_on()
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/platform/rk/ |
H A D | mali_kbase_config_rk.c | 372 unsigned long total_time;
in utilisation_show() local 378 kbase_pm_get_dvfs_utilisation(kbdev, &total_time, &busy_time);
in utilisation_show() 384 D("total_time : %lu, busy_time : %lu.", total_time, busy_time);
in utilisation_show() 386 utilisation = busy_time * 0x64 / total_time;
in utilisation_show()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/platform/rk/ |
H A D | mali_kbase_config_rk.c | 381 unsigned long total_time; in utilisation_show() local 387 kbase_pm_get_dvfs_utilisation(kbdev, &total_time, &busy_time); in utilisation_show() 393 D("total_time : %lu, busy_time : %lu.", total_time, busy_time); in utilisation_show() 395 utilisation = busy_time * 100 / total_time; in utilisation_show()
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/platform/rk/ |
H A D | mali_kbase_config_rk.c | 393 u32 total_time = 0; in utilisation_show() local 403 total_time = metrics_diff.time_busy + metrics_diff.time_idle; in utilisation_show() 405 D("total_time : %u, busy_time : %u.", total_time, busy_time); in utilisation_show() 407 utilisation = busy_time * 0x64 / total_time; in utilisation_show()
|
/device/soc/rockchip/common/sdk_linux/kernel/power/ |
H A D | wakeup_reason.c | 334 struct timespec64 total_time; in last_suspend_time_show() local 338 * total_time is calculated from monotonic bootoffsets because in last_suspend_time_show() 341 total_time = ktime_to_timespec64(ktime_sub(curr_stime, last_stime)); in last_suspend_time_show() 349 /* sleep_time = total_time - suspend_resume_time */ in last_suspend_time_show() 350 sleep_time = timespec64_sub(total_time, suspend_resume_time); in last_suspend_time_show()
|
/device/soc/rockchip/rk3588/kernel/kernel/power/ |
H A D | wakeup_reason.c | 334 struct timespec64 total_time; in last_suspend_time_show() local 338 * total_time is calculated from monotonic bootoffsets because in last_suspend_time_show() 341 total_time = ktime_to_timespec64(ktime_sub(curr_stime, last_stime)); in last_suspend_time_show() 350 /* sleep_time = total_time - suspend_resume_time */ in last_suspend_time_show() 351 sleep_time = timespec64_sub(total_time, suspend_resume_time); in last_suspend_time_show()
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/ipa/ |
H A D | mali_kbase_ipa.c | 522 unsigned long total_time = max(status->total_time, 1ul);
in kbase_get_real_power() local 523 u64 busy_time = min(status->busy_time, total_time);
in kbase_get_real_power() 526 // *power = ((u64) *power * (u64) busy_time) / total_time;
in kbase_get_real_power() 527 *power = div_u64_rem(((u64)*power * (u64)busy_time), total_time, &remainder);
in kbase_get_real_power()
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/platform/rk/ |
H A D | rk.c | 103 unsigned long total_time; in utilisation_show() local 109 mali_pm_get_dvfs_utilisation(mdev, &total_time, &busy_time); in utilisation_show() 116 D("total_time : %lu, busy_time : %lu.", total_time, busy_time); in utilisation_show() 118 utilisation = busy_time / (total_time / 0x64); in utilisation_show()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/platform/rk/ |
H A D | rk.c | 107 unsigned long total_time; in utilisation_show() local 113 mali_pm_get_dvfs_utilisation(mdev, &total_time, &busy_time); in utilisation_show() 120 D("total_time : %lu, busy_time : %lu.", total_time, busy_time); in utilisation_show() 122 utilisation = busy_time / (total_time / 100); in utilisation_show()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/ipa/ |
H A D | mali_kbase_ipa.c | 560 unsigned long total_time = max(status->total_time, 1ul); in kbase_get_real_power() local 561 u64 busy_time = min(status->busy_time, total_time); in kbase_get_real_power() 564 // *power = ((u64) *power * (u64) busy_time) / total_time; in kbase_get_real_power() 565 *power = div_u64_rem(((u64) *power * (u64) busy_time), total_time, &remainder); in kbase_get_real_power()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/platform/rk/ |
H A D | mali_kbase_config_rk.c | 449 u32 total_time = 0; in utilisation_show() local 459 total_time = metrics_diff.time_busy + metrics_diff.time_idle; in utilisation_show() 461 D("total_time : %u, busy_time : %u.", total_time, busy_time); in utilisation_show() 463 utilisation = busy_time * 100 / total_time; in utilisation_show()
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/ipa/ |
H A D | mali_kbase_ipa.c | 561 u64 total_time; in kbase_get_real_power_locked() local 585 /* time_busy / total_time cannot be >1, so assigning the 64-bit in kbase_get_real_power_locked() 588 total_time = diff.time_busy + (u64)diff.time_idle; in kbase_get_real_power_locked() 589 *power = div_u64(*power * (u64)diff.time_busy, max(total_time, 1ull)); in kbase_get_real_power_locked()
|
/device/soc/hisilicon/hi3751v350/sdk_linux/source/msp/drv/devfreq/ |
H A D | governor_utgard_ondemand.c | 83 total = status->total_time >> TIME_SHIFT; in devfreq_hisilicon_func()
|
/device/soc/rockchip/rk3588/hardware/mpp/include/ |
H A D | utils_mpp.h | 88 typedef void (*FpsCalcCb)(RK_S64 total_time, RK_S64 total_count, RK_S64 last_time, RK_S64 last_count);
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ipa/ |
H A D | mali_kbase_ipa.c | 645 u64 total_time; in kbase_get_real_power_locked() local 701 /* time_busy / total_time cannot be >1, so assigning the 64-bit in kbase_get_real_power_locked() 704 total_time = diff.time_busy + (u64) diff.time_idle; in kbase_get_real_power_locked() 706 max(total_time, 1ull)); in kbase_get_real_power_locked()
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/linux/ |
H A D | mali_devfreq.c | 146 mali_pm_get_dvfs_utilisation(mdev, &stat->total_time, &stat->busy_time); in mali_devfreq_status()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/linux/ |
H A D | mali_devfreq.c | 148 &stat->total_time, &stat->busy_time); in mali_devfreq_status()
|
/device/soc/rockchip/common/vendor/drivers/devfreq/ |
H A D | rockchip_dmc.c | 530 stat->total_time = edata.total_count; in rockchip_dmcfreq_get_dev_status() 557 devfreq->last_status.total_time = 1; in reset_last_status() 2392 if (stat->total_time == 0) { in devfreq_dmc_ondemand_func() 2398 if (stat->busy_time >= (1 << 0x18) || stat->total_time >= (1 << 0x18)) { in devfreq_dmc_ondemand_func() 2400 stat->total_time >>= 0x7; in devfreq_dmc_ondemand_func() 2404 if (stat->busy_time * 0x64 > stat->total_time * upthreshold) { in devfreq_dmc_ondemand_func() 2416 if (stat->busy_time * 0x64 > stat->total_time * (upthreshold - downdifferential)) { in devfreq_dmc_ondemand_func() 2424 b = div_u64(a, stat->total_time); in devfreq_dmc_ondemand_func()
|
/device/soc/rockchip/rk3588/kernel/drivers/devfreq/ |
H A D | rockchip_dmc.c | 534 stat->total_time = edata.total_count; in rockchip_dmcfreq_get_dev_status() 563 devfreq->last_status.total_time = 1; in reset_last_status() 2546 if (stat->total_time == 0) { in devfreq_dmc_ondemand_func() 2552 if (stat->busy_time >= (1 << 24) || stat->total_time >= (1 << 24)) { in devfreq_dmc_ondemand_func() 2554 stat->total_time >>= 7; in devfreq_dmc_ondemand_func() 2559 stat->total_time * upthreshold) { in devfreq_dmc_ondemand_func() 2572 stat->total_time * (upthreshold - downdifferential)) { in devfreq_dmc_ondemand_func() 2580 b = div_u64(a, stat->total_time); in devfreq_dmc_ondemand_func()
|
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/cif/ |
H A D | dev.h | 305 * @total_time: totaltime of readout time in hdr
313 u64 total_time;
member
|
H A D | procfs.c | 321 time_val = div_u64(stream->readout.total_time, 1000000); in rkcif_show_format()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/backend/gpu/ |
H A D | mali_kbase_devfreq.c | 199 &stat->total_time, &stat->busy_time); in kbase_devfreq_status()
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/backend/gpu/ |
H A D | mali_kbase_devfreq.c | 191 kbase_pm_get_dvfs_utilisation(kbdev, &stat->total_time, &stat->busy_time); in kbase_devfreq_status()
|
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/cif/ |
H A D | dev.h | 319 * @total_time: totaltime of readout time in hdr 327 u64 total_time; member
|
H A D | procfs.c | 328 time_val = div_u64(stream->readout.total_time, 1000000); in rkcif_show_format()
|