Home
last modified time | relevance | path

Searched refs:sleep_time (Results 1 – 25 of 40) sorted by relevance

12

/linux-6.1.9/tools/power/cpupower/bench/
Dbenchmark.c82 long sleep_time = 0, load_time = 0; in start_benchmark() local
87 sleep_time = config->sleep; in start_benchmark()
117 _round, load_time, sleep_time); in start_benchmark()
127 usleep(sleep_time); in start_benchmark()
130 performance_time += then - now - sleep_time; in start_benchmark()
135 (long)(then - now), sleep_time, in start_benchmark()
141 progress_time += sleep_time + load_time; in start_benchmark()
153 usleep(sleep_time); in start_benchmark()
156 powersave_time += then - now - sleep_time; in start_benchmark()
161 (long)(then - now), sleep_time, in start_benchmark()
[all …]
Dsystem.c128 unsigned long sleep_time = 0; in prepare_user() local
133 sleep_time += 2 * config->cycles * in prepare_user()
142 (int)((sleep_time + load_time) / 60000000)); in prepare_user()
/linux-6.1.9/tools/power/acpi/tools/ec/
Dec_access.c30 static int sleep_time; variable
69 sleep_time = atoi(optarg); in parse_opts()
70 if (sleep_time <= 0) { in parse_opts()
71 sleep_time = 0; in parse_opts()
147 if (!sleep_time) in dump_ec()
152 sleep(sleep_time); in dump_ec()
/linux-6.1.9/tools/laptop/dslm/
Ddslm.c75 time_t sleep_time = 0; in measure() local
97 else if (last_state == 0) sleep_time += time_diff; in measure()
113 tmp = (float)sleep_time / (float)total_time * 100; in measure()
114 printf(" Time in sleep state: %lus (%.2f%%)\n", sleep_time, tmp); in measure()
/linux-6.1.9/drivers/rtc/
Dclass.c151 struct timespec64 sleep_time; in rtc_resume() local
178 sleep_time = timespec64_sub(new_rtc, old_rtc); in rtc_resume()
187 sleep_time = timespec64_sub(sleep_time, in rtc_resume()
190 if (sleep_time.tv_sec >= 0) in rtc_resume()
191 timekeeping_inject_sleeptime64(&sleep_time); in rtc_resume()
/linux-6.1.9/drivers/input/mouse/
Dcyapa.c572 u8 cyapa_sleep_time_to_pwr_cmd(u16 sleep_time) in cyapa_sleep_time_to_pwr_cmd() argument
576 sleep_time = clamp_val(sleep_time, 20, 1000); in cyapa_sleep_time_to_pwr_cmd()
577 encoded_time = sleep_time < 100 ? sleep_time / 10 : sleep_time / 20 + 5; in cyapa_sleep_time_to_pwr_cmd()
744 u16 sleep_time; in cyapa_show_suspend_scanrate() local
753 sleep_time = cyapa->suspend_sleep_time; in cyapa_show_suspend_scanrate()
770 sleep_time); in cyapa_show_suspend_scanrate()
782 u16 sleep_time; in cyapa_update_suspend_scanrate() local
793 } else if (!kstrtou16(buf, 10, &sleep_time)) { in cyapa_update_suspend_scanrate()
794 cyapa->suspend_sleep_time = min_t(u16, sleep_time, 1000); in cyapa_update_suspend_scanrate()
868 u16 sleep_time; in cyapa_show_rt_suspend_scanrate() local
[all …]
Dcyapa_gen6.c428 u8 power_mode, u16 sleep_time, enum cyapa_pm_stage pm_stage) in cyapa_gen6_set_power_mode() argument
456 PIP_DEV_GET_SLEEP_TIME(cyapa) == sleep_time) { in cyapa_gen6_set_power_mode()
522 if (interval_setting->lp1_interval == sleep_time) { in cyapa_gen6_set_power_mode()
524 } else if (interval_setting->lp2_interval == sleep_time) { in cyapa_gen6_set_power_mode()
528 interval_setting->lp1_interval = sleep_time; in cyapa_gen6_set_power_mode()
531 interval_setting->lp2_interval = sleep_time; in cyapa_gen6_set_power_mode()
545 PIP_DEV_SET_SLEEP_TIME(cyapa, sleep_time); in cyapa_gen6_set_power_mode()
547 cyapa_sleep_time_to_pwr_cmd(sleep_time)); in cyapa_gen6_set_power_mode()
Dcyapa_gen3.c913 int sleep_time; in cyapa_gen3_set_power_mode() local
937 sleep_time = (int)cyapa_get_wait_time_for_pwr_cmd(ret & PWR_MODE_MASK); in cyapa_gen3_set_power_mode()
961 while (sleep_time > 0) { in cyapa_gen3_set_power_mode()
962 if (sleep_time > interval) in cyapa_gen3_set_power_mode()
965 msleep(sleep_time); in cyapa_gen3_set_power_mode()
966 sleep_time -= interval; in cyapa_gen3_set_power_mode()
970 msleep(sleep_time); in cyapa_gen3_set_power_mode()
/linux-6.1.9/drivers/gpu/drm/nouveau/
Dnouveau_fence.c267 unsigned long sleep_time = NSEC_PER_MSEC / 1000; in nouveau_fence_wait_legacy() local
283 kt = sleep_time; in nouveau_fence_wait_legacy()
285 sleep_time *= 2; in nouveau_fence_wait_legacy()
286 if (sleep_time > NSEC_PER_MSEC) in nouveau_fence_wait_legacy()
287 sleep_time = NSEC_PER_MSEC; in nouveau_fence_wait_legacy()
/linux-6.1.9/tools/tracing/rtla/src/
Dtimerlat_top.c27 int sleep_time; member
491 if (!params->sleep_time) in timerlat_top_apply_config()
492 params->sleep_time = 1; in timerlat_top_apply_config()
664 sleep(params->sleep_time); in timerlat_top_main()
Dosnoise_top.c29 int sleep_time; member
453 if (!params->sleep_time) in osnoise_top_apply_config()
454 params->sleep_time = 1; in osnoise_top_apply_config()
616 sleep(params->sleep_time); in osnoise_top_main()
Dosnoise_hist.c27 int sleep_time; member
673 if (!params->sleep_time) in osnoise_hist_apply_config()
674 params->sleep_time = 1; in osnoise_hist_apply_config()
838 sleep(params->sleep_time); in osnoise_hist_main()
Dtimerlat_hist.c27 int sleep_time; member
702 if (!params->sleep_time) in timerlat_hist_apply_config()
703 params->sleep_time = 1; in timerlat_hist_apply_config()
873 sleep(params->sleep_time); in timerlat_hist_main()
/linux-6.1.9/drivers/mtd/lpddr/
Dlpddr_cmds.c128 unsigned int timeo, reset_timeo, sleep_time; in wait_for_ready() local
138 sleep_time = chip_op_time / 2; in wait_for_ready()
153 if (sleep_time >= 1000000/HZ) { in wait_for_ready()
159 msleep(sleep_time/1000); in wait_for_ready()
160 timeo -= sleep_time; in wait_for_ready()
161 sleep_time = 1000000/HZ; in wait_for_ready()
/linux-6.1.9/drivers/gpu/drm/omapdrm/dss/
Dpll.c453 u32 sleep_time; in dss_pll_write_config_type_a() local
460 sleep_time = DIV_ROUND_UP(1000*1000*1000, cinfo->fint); in dss_pll_write_config_type_a()
471 usleep_range(sleep_time, sleep_time + 5); in dss_pll_write_config_type_a()
/linux-6.1.9/drivers/media/dvb-frontends/
Ddib9000.c1995 int sleep_time, sleep_time_slave; in dib9000_set_frontend() local
2047 sleep_time = dib9000_fw_tune(state->fe[0]); in dib9000_set_frontend()
2050 if (sleep_time == FE_CALLBACK_TIME_NEVER) in dib9000_set_frontend()
2051 sleep_time = sleep_time_slave; in dib9000_set_frontend()
2052 else if ((sleep_time_slave != FE_CALLBACK_TIME_NEVER) && (sleep_time_slave > sleep_time)) in dib9000_set_frontend()
2053 sleep_time = sleep_time_slave; in dib9000_set_frontend()
2055 if (sleep_time != FE_CALLBACK_TIME_NEVER) in dib9000_set_frontend()
2056 msleep(sleep_time / 10); in dib9000_set_frontend()
2104 sleep_time = FE_CALLBACK_TIME_NEVER; in dib9000_set_frontend()
2108 if (sleep_time == FE_CALLBACK_TIME_NEVER) in dib9000_set_frontend()
[all …]
/linux-6.1.9/drivers/virt/nitro_enclaves/
Dne_pci_dev.c432 const unsigned int sleep_time = 10; /* 10 ms */ in ne_pci_dev_disable() local
447 msleep_interruptible(sleep_time); in ne_pci_dev_disable()
448 sleep_time_count += sleep_time; in ne_pci_dev_disable()
/linux-6.1.9/drivers/net/wireless/intel/iwlegacy/
D3945-debug.c447 le32_to_cpu(general->sleep_time), in il3945_ucode_general_stats_read()
448 accum_general->sleep_time, delta_general->sleep_time, in il3945_ucode_general_stats_read()
449 max_general->sleep_time); in il3945_ucode_general_stats_read()
D4965-debug.c685 le32_to_cpu(general->sleep_time), in il4965_ucode_general_stats_read()
686 accum_general->sleep_time, delta_general->sleep_time, in il4965_ucode_general_stats_read()
687 max_general->sleep_time); in il4965_ucode_general_stats_read()
/linux-6.1.9/drivers/video/fbdev/omap/
Dlcd_mipid.c172 int cmd, sleep_time = 50; in set_sleep_mode() local
188 sleep_time = 120; in set_sleep_mode()
189 msleep(sleep_time); in set_sleep_mode()
/linux-6.1.9/include/linux/
Dpktcdvd.h126 long sleep_time; /* Set this to non-zero to make the state */ member
/linux-6.1.9/tools/testing/ktest/
Dktest.pl173 my $sleep_time;
325 "SLEEP_TIME" => \$sleep_time,
1812 reboot_to_good $sleep_time;
2308 reboot $sleep_time;
2722 doprint "Reboot and wait $sleep_time seconds\n";
2723 reboot_to_good $sleep_time;
4034 doprint "Reboot and wait $sleep_time seconds\n";
4035 reboot_to_good $sleep_time;
/linux-6.1.9/drivers/block/
Dpktcdvd.c1176 pkt->sleep_time = max(PACKET_WAIT_TIME, 1); in pkt_handle_queue()
1290 if ((pkt->write_size < pkt->frames) && (pkt->sleep_time > 0)) in pkt_run_state_machine()
1293 pkt->sleep_time = 0; in pkt_run_state_machine()
1428 if (pkt->sleep_time && pkt->sleep_time < min_sleep_time) in kcdrwd()
1429 min_sleep_time = pkt->sleep_time; in kcdrwd()
1440 if (!pkt->sleep_time) in kcdrwd()
1442 pkt->sleep_time -= min_sleep_time - residue; in kcdrwd()
1443 if (pkt->sleep_time <= 0) { in kcdrwd()
1444 pkt->sleep_time = 0; in kcdrwd()
/linux-6.1.9/drivers/iio/light/
Disl29028.c63 int sleep_time; member
157 msleep(isl29028_prox_data[prox_index].sleep_time); in isl29028_enable_proximity()
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/fw/api/
Dstats.h249 __le32 sleep_time; member
278 __le32 sleep_time; member

12