Home
last modified time | relevance | path

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

12

/linux-6.6.21/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.6.21/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.6.21/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.6.21/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.6.21/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.6.21/drivers/gpu/drm/nouveau/
Dnouveau_fence.c283 unsigned long sleep_time = NSEC_PER_MSEC / 1000; in nouveau_fence_wait_legacy() local
299 kt = sleep_time; in nouveau_fence_wait_legacy()
301 sleep_time *= 2; in nouveau_fence_wait_legacy()
302 if (sleep_time > NSEC_PER_MSEC) in nouveau_fence_wait_legacy()
303 sleep_time = NSEC_PER_MSEC; in nouveau_fence_wait_legacy()
/linux-6.6.21/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.6.21/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.6.21/tools/tracing/rtla/src/
Dosnoise_top.c37 int sleep_time; member
535 if (!params->sleep_time) in osnoise_top_apply_config()
536 params->sleep_time = 1; in osnoise_top_apply_config()
739 sleep(params->sleep_time); in osnoise_top_main()
Dtimerlat_top.c34 int sleep_time; member
623 if (!params->sleep_time) in timerlat_top_apply_config()
624 params->sleep_time = 1; in timerlat_top_apply_config()
892 sleep(params->sleep_time); in timerlat_top_main()
Dosnoise_hist.c30 int sleep_time; member
707 if (!params->sleep_time) in osnoise_hist_apply_config()
708 params->sleep_time = 1; in osnoise_hist_apply_config()
906 sleep(params->sleep_time); in osnoise_hist_main()
Dtimerlat_hist.c33 int sleep_time; member
815 if (!params->sleep_time) in timerlat_hist_apply_config()
816 params->sleep_time = 1; in timerlat_hist_apply_config()
1072 sleep(params->sleep_time); in timerlat_hist_main()
/linux-6.6.21/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.6.21/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.6.21/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()
/linux-6.6.21/drivers/video/fbdev/omap/
Dlcd_mipid.c174 int cmd, sleep_time = 50; in set_sleep_mode() local
190 sleep_time = 120; in set_sleep_mode()
191 msleep(sleep_time); in set_sleep_mode()
/linux-6.6.21/include/linux/
Dpktcdvd.h126 long sleep_time; /* Set this to non-zero to make the state */ member
/linux-6.6.21/tools/testing/ktest/
Dktest.pl173 my $sleep_time;
326 "SLEEP_TIME" => \$sleep_time,
1822 reboot_to_good $sleep_time;
2328 reboot $sleep_time;
2742 doprint "Reboot and wait $sleep_time seconds\n";
2743 reboot_to_good $sleep_time;
4054 doprint "Reboot and wait $sleep_time seconds\n";
4055 reboot_to_good $sleep_time;
/linux-6.6.21/drivers/block/
Dpktcdvd.c1209 pkt->sleep_time = max(PACKET_WAIT_TIME, 1); in pkt_handle_queue()
1325 if ((pkt->write_size < pkt->frames) && (pkt->sleep_time > 0)) in pkt_run_state_machine()
1328 pkt->sleep_time = 0; in pkt_run_state_machine()
1447 if (pkt->sleep_time && pkt->sleep_time < min_sleep_time) in kcdrwd()
1448 min_sleep_time = pkt->sleep_time; in kcdrwd()
1459 if (!pkt->sleep_time) in kcdrwd()
1461 pkt->sleep_time -= min_sleep_time - residue; in kcdrwd()
1462 if (pkt->sleep_time <= 0) { in kcdrwd()
1463 pkt->sleep_time = 0; in kcdrwd()
/linux-6.6.21/sound/soc/codecs/
Dtas2781-fmwlib.c659 unsigned int sleep_time = 0; in tasdevice_process_block() local
668 sleep_time = be16_to_cpup((__be16 *)&data[2]) * 1000; in tasdevice_process_block()
669 usleep_range(sleep_time, sleep_time + 50); in tasdevice_process_block()
1561 unsigned int sleep_time; in tasdev_load_blk() local
1613 sleep_time = ((book << 8) + page)*1000; in tasdev_load_blk()
1614 usleep_range(sleep_time, sleep_time + 50); in tasdev_load_blk()
/linux-6.6.21/drivers/iio/light/
Disl29028.c63 int sleep_time; member
157 msleep(isl29028_prox_data[prox_index].sleep_time); in isl29028_enable_proximity()
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/fw/api/
Dstats.h249 __le32 sleep_time; member
278 __le32 sleep_time; member

12