Home
last modified time | relevance | path

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

12

/linux/tools/power/cpupower/bench/
H A 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 …]
H A 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/tools/power/acpi/tools/ec/
H A 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/tools/laptop/dslm/
H A 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/drivers/rtc/
H A Dclass.c150 struct timespec64 sleep_time; in rtc_resume() local
177 sleep_time = timespec64_sub(new_rtc, old_rtc); in rtc_resume()
186 sleep_time = timespec64_sub(sleep_time, in rtc_resume()
189 if (sleep_time.tv_sec >= 0) in rtc_resume()
190 timekeeping_inject_sleeptime64(&sleep_time); in rtc_resume()
/linux/drivers/input/mouse/
H A 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 …]
H A 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()
H A 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/drivers/gpu/drm/nouveau/
H A Dnouveau_fence.c284 unsigned long sleep_time = NSEC_PER_MSEC / 1000; in nouveau_fence_wait_legacy() local
300 kt = sleep_time; in nouveau_fence_wait_legacy()
302 sleep_time *= 2; in nouveau_fence_wait_legacy()
303 if (sleep_time > NSEC_PER_MSEC) in nouveau_fence_wait_legacy()
304 sleep_time = NSEC_PER_MSEC; in nouveau_fence_wait_legacy()
/linux/drivers/mtd/lpddr/
H A 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/drivers/gpu/drm/omapdrm/dss/
H A 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/drivers/media/dvb-frontends/
H A 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/drivers/virt/nitro_enclaves/
H A 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/tools/tracing/rtla/src/
H A Dosnoise_top.c37 int sleep_time; member
559 if (!params->sleep_time) in osnoise_top_apply_config()
560 params->sleep_time = 1; in osnoise_top_apply_config()
788 sleep(params->sleep_time); in osnoise_top_main()
H A Dosnoise_hist.c30 int sleep_time; member
737 if (!params->sleep_time) in osnoise_hist_apply_config()
738 params->sleep_time = 1; in osnoise_hist_apply_config()
960 sleep(params->sleep_time); in osnoise_hist_main()
H A Dtimerlat_top.c34 int sleep_time; member
763 if (!params->sleep_time) in timerlat_top_apply_config()
764 params->sleep_time = 1; in timerlat_top_apply_config()
1062 sleep(params->sleep_time); in timerlat_top_main()
H A Dtimerlat_hist.c33 int sleep_time; member
999 if (!params->sleep_time) in timerlat_hist_apply_config()
1000 params->sleep_time = 1; in timerlat_hist_apply_config()
1285 sleep(params->sleep_time); in timerlat_hist_main()
/linux/drivers/net/wireless/intel/iwlegacy/
H A 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()
H A 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/drivers/video/fbdev/omap/
H A 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/include/linux/
H A Dpktcdvd.h126 long sleep_time; /* Set this to non-zero to make the state */ member
/linux/drivers/block/
H A Dpktcdvd.c1215 pkt->sleep_time = max(PACKET_WAIT_TIME, 1); in pkt_handle_queue()
1331 if ((pkt->write_size < pkt->frames) && (pkt->sleep_time > 0)) in pkt_run_state_machine()
1334 pkt->sleep_time = 0; in pkt_run_state_machine()
1453 if (pkt->sleep_time && pkt->sleep_time < min_sleep_time) in kcdrwd()
1454 min_sleep_time = pkt->sleep_time; in kcdrwd()
1465 if (!pkt->sleep_time) in kcdrwd()
1467 pkt->sleep_time -= min_sleep_time - residue; in kcdrwd()
1468 if (pkt->sleep_time <= 0) { in kcdrwd()
1469 pkt->sleep_time = 0; in kcdrwd()
/linux/tools/testing/ktest/
H A Dktest.pl173 my $sleep_time;
328 "SLEEP_TIME" => \$sleep_time,
1836 reboot_to_good $sleep_time;
2342 reboot $sleep_time;
2757 doprint "Reboot and wait $sleep_time seconds\n";
2758 reboot_to_good $sleep_time;
4069 doprint "Reboot and wait $sleep_time seconds\n";
4070 reboot_to_good $sleep_time;
/linux/sound/soc/codecs/
H A Dtas2781-fmwlib.c758 unsigned int sleep_time = 0; in tasdevice_process_block() local
767 sleep_time = get_unaligned_be16(&data[2]) * 1000; in tasdevice_process_block()
768 usleep_range(sleep_time, sleep_time + 50); in tasdevice_process_block()
1529 unsigned int sleep_time; in tasdev_load_blk() local
1581 sleep_time = ((book << 8) + page)*1000; in tasdev_load_blk()
1582 usleep_range(sleep_time, sleep_time + 50); in tasdev_load_blk()
/linux/drivers/iio/light/
H A Disl29028.c63 int sleep_time; member
157 msleep(isl29028_prox_data[prox_index].sleep_time); in isl29028_enable_proximity()

12