/drivers/gpu/drm/msm/ |
D | msm_gpu_devfreq.c | 61 u64 busy_cycles, busy_time; in get_raw_dev_status() local 74 status->busy_time = 0; in get_raw_dev_status() 79 busy_time = busy_cycles - df->busy_cycles; in get_raw_dev_status() 84 busy_time *= USEC_PER_SEC; in get_raw_dev_status() 85 busy_time = div64_ul(busy_time, sample_rate); in get_raw_dev_status() 86 if (WARN_ON(busy_time > ~0LU)) in get_raw_dev_status() 87 busy_time = ~0LU; in get_raw_dev_status() 89 status->busy_time = busy_time; in get_raw_dev_status() 130 avg->busy_time = div_u64( in update_average_dev_status() 131 mul_u32_u32(avg->busy_time, new_total_time), in update_average_dev_status() [all …]
|
/drivers/gpu/drm/lima/ |
D | lima_devfreq.c | 27 devfreq->busy_time += ktime_sub(now, last); in lima_devfreq_update_utilization() 49 devfreq->busy_time = 0; in lima_devfreq_reset() 67 status->total_time = ktime_to_ns(ktime_add(devfreq->busy_time, in lima_devfreq_get_dev_status() 69 status->busy_time = ktime_to_ns(devfreq->busy_time); in lima_devfreq_get_dev_status() 76 status->busy_time, status->total_time, in lima_devfreq_get_dev_status() 77 status->busy_time / (status->total_time / 100), in lima_devfreq_get_dev_status()
|
D | lima_devfreq.h | 21 ktime_t busy_time; member
|
/drivers/gpu/drm/panfrost/ |
D | panfrost_devfreq.c | 21 pfdevfreq->busy_time += ktime_sub(now, last); in panfrost_devfreq_update_utilization() 43 pfdevfreq->busy_time = 0; in panfrost_devfreq_reset() 61 status->total_time = ktime_to_ns(ktime_add(pfdevfreq->busy_time, in panfrost_devfreq_get_dev_status() 64 status->busy_time = ktime_to_ns(pfdevfreq->busy_time); in panfrost_devfreq_get_dev_status() 71 status->busy_time, status->total_time, in panfrost_devfreq_get_dev_status() 72 status->busy_time / (status->total_time / 100), in panfrost_devfreq_get_dev_status()
|
D | panfrost_devfreq.h | 22 ktime_t busy_time; member
|
/drivers/devfreq/ |
D | governor_simpleondemand.c | 51 if (stat->busy_time >= (1 << 24) || stat->total_time >= (1 << 24)) { in devfreq_simple_ondemand_func() 52 stat->busy_time >>= 7; in devfreq_simple_ondemand_func() 57 if (stat->busy_time * 100 > in devfreq_simple_ondemand_func() 70 if (stat->busy_time * 100 > in devfreq_simple_ondemand_func() 77 a = stat->busy_time; in devfreq_simple_ondemand_func()
|
D | exynos-bus.c | 131 stat->total_time = stat->busy_time = 0; in exynos_bus_get_dev_status() 135 stat->busy_time = (edata.load_count * 100) / bus->ratio; in exynos_bus_get_dev_status() 138 dev_dbg(dev, "Usage of devfreq-event : %lu/%lu\n", stat->busy_time, in exynos_bus_get_dev_status()
|
D | sun8i-a33-mbus.c | 246 stat->busy_time = sun8i_a33_mbus_get_peak_bw(priv); in sun8i_a33_mbus_get_dram_status() 253 stat->busy_time, stat->total_time, in sun8i_a33_mbus_get_dram_status() 254 DIV_ROUND_CLOSEST(stat->busy_time * 100, stat->total_time), in sun8i_a33_mbus_get_dram_status()
|
D | tegra30-devfreq.c | 673 stat->busy_time = device_readl(actmon_dev, ACTMON_DEV_AVG_COUNT); in tegra_devfreq_get_dev_status() 676 stat->busy_time *= 100 / BUS_SATURATION_RATIO; in tegra_devfreq_get_dev_status() 681 stat->busy_time = min(stat->busy_time, stat->total_time); in tegra_devfreq_get_dev_status()
|
D | rk3399_dmc.c | 230 stat->busy_time = edata.load_count; in rk3399_dmcfreq_get_dev_status()
|
/drivers/powercap/ |
D | dtpm_devfreq.c | 75 status->busy_time >>= 10; in _normalize_load() 78 status->busy_time <<= 10; in _normalize_load() 79 status->busy_time /= status->total_time ? : 1; in _normalize_load() 81 status->busy_time = status->busy_time ? : 1; in _normalize_load() 109 power *= status.busy_time; in get_pd_power_uw()
|
/drivers/thermal/ |
D | devfreq_cooling.c | 168 status->busy_time >>= 10; in _normalize_load() 171 status->busy_time <<= 10; in _normalize_load() 172 status->busy_time /= status->total_time ? : 1; in _normalize_load() 174 status->busy_time = status->busy_time ? : 1; in _normalize_load() 231 *power *= status.busy_time; in devfreq_cooling_get_requested_power() 284 est_power /= status.busy_time; in devfreq_cooling_power2state()
|
/drivers/cpufreq/ |
D | cpufreq.c | 131 u64 busy_time; in get_cpu_idle_time_jiffy() local 137 busy_time = kcpustat.cpustat[CPUTIME_USER]; in get_cpu_idle_time_jiffy() 138 busy_time += kcpustat.cpustat[CPUTIME_SYSTEM]; in get_cpu_idle_time_jiffy() 139 busy_time += kcpustat.cpustat[CPUTIME_IRQ]; in get_cpu_idle_time_jiffy() 140 busy_time += kcpustat.cpustat[CPUTIME_SOFTIRQ]; in get_cpu_idle_time_jiffy() 141 busy_time += kcpustat.cpustat[CPUTIME_STEAL]; in get_cpu_idle_time_jiffy() 142 busy_time += kcpustat.cpustat[CPUTIME_NICE]; in get_cpu_idle_time_jiffy() 144 idle_time = cur_wall_time - busy_time; in get_cpu_idle_time_jiffy()
|
/drivers/net/wireless/mediatek/mt76/mt7921/ |
D | mac.c | 812 u64 busy_time, tx_time, rx_time, obss_time; in mt7921_phy_update_channel() local 815 busy_time = mt76_get_field(dev, MT_MIB_SDR9(idx), in mt7921_phy_update_channel() 831 state->cc_busy += busy_time; in mt7921_phy_update_channel()
|
/drivers/memory/samsung/ |
D | exynos5422-dmc.c | 942 stat->busy_time = dmc->load; in exynos5_dmc_get_status() 950 stat->busy_time = load >> 10; in exynos5_dmc_get_status()
|
/drivers/net/wireless/mediatek/mt76/mt7615/ |
D | mac.c | 1912 u64 busy_time, tx_time, rx_time, obss_time; in mt7615_phy_update_channel() local 1916 busy_time = mt76_get_field(dev, MT_MIB_SDR9(idx), in mt7615_phy_update_channel() 1931 state->cc_busy += busy_time; in mt7615_phy_update_channel()
|
/drivers/memory/tegra/ |
D | tegra20-emc.c | 1152 stat->busy_time = readl_relaxed(emc->regs + EMC_STAT_PWR_COUNT); in tegra_emc_devfreq_get_dev_status()
|
/drivers/net/wireless/ath/wil6210/ |
D | wmi.h | 2480 __le16 busy_time; member
|
/drivers/scsi/lpfc/ |
D | lpfc_init.c | 1296 u64 wall, wall_idle, diff_wall, diff_idle, busy_time; in lpfc_idle_stat_delay_work() local 1327 busy_time = 0; in lpfc_idle_stat_delay_work() 1329 busy_time = diff_wall - diff_idle; in lpfc_idle_stat_delay_work() 1331 idle_percent = div64_u64(100 * busy_time, diff_wall); in lpfc_idle_stat_delay_work()
|
/drivers/ufs/core/ |
D | ufshcd.c | 1545 stat->busy_time = scaling->tot_busy_t; in ufshcd_devfreq_get_dev_status()
|