Searched refs:sleep_time (Results 1 - 30 of 30) sorted by relevance

/linux-4.1.27/tools/power/cpupower/bench/
H A Dbenchmark.c95 long sleep_time = 0, load_time = 0; start_benchmark() local
100 sleep_time = config->sleep; start_benchmark()
130 _round, load_time, sleep_time); start_benchmark()
140 usleep(sleep_time); start_benchmark()
143 performance_time += then - now - sleep_time; start_benchmark()
148 (long)(then - now), sleep_time, start_benchmark()
154 progress_time += sleep_time + load_time; start_benchmark()
166 usleep(sleep_time); start_benchmark()
169 powersave_time += then - now - sleep_time; start_benchmark()
174 (long)(then - now), sleep_time, start_benchmark()
178 progress_time += sleep_time + load_time; start_benchmark()
191 sleep_time += config->sleep_step; start_benchmark()
H A Dsystem.c140 unsigned long sleep_time = 0; prepare_user() local
145 sleep_time += 2 * config->cycles * prepare_user()
154 (int)((sleep_time + load_time) / 60000000)); prepare_user()
/linux-4.1.27/tools/power/acpi/tools/ec/
H A Dec_access.c31 static int sleep_time; variable
70 sleep_time = atoi(optarg); parse_opts()
71 if (sleep_time <= 0) { parse_opts()
72 sleep_time = 0; parse_opts()
148 if (!sleep_time) dump_ec()
153 sleep(sleep_time); dump_ec()
/linux-4.1.27/Documentation/laptops/
H A Ddslm.c75 time_t sleep_time = 0; measure() local
97 else if (last_state == 0) sleep_time += time_diff; measure()
113 tmp = (float)sleep_time / (float)total_time * 100; measure()
114 printf(" Time in sleep state: %lus (%.2f%%)\n", sleep_time, tmp); measure()
/linux-4.1.27/kernel/time/
H A Dtimekeeping_debug.c59 d = debugfs_create_file("sleep_time", 0444, NULL, NULL, tk_debug_sleep_time_init()
62 pr_err("Failed to create sleep_time debug file\n"); tk_debug_sleep_time_init()
/linux-4.1.27/arch/um/os-Linux/
H A Dtime.c93 static unsigned long long sleep_time(unsigned long long nsecs) sleep_time() function
124 static unsigned long long sleep_time(unsigned long long nsecs) sleep_time() function
179 nsecs = sleep_time(nsecs); idle_sleep()
/linux-4.1.27/drivers/rtc/
H A Dclass.c102 struct timespec64 sleep_time; rtc_resume() local
129 sleep_time = timespec64_sub(new_rtc, old_rtc); rtc_resume()
138 sleep_time = timespec64_sub(sleep_time, rtc_resume()
141 if (sleep_time.tv_sec >= 0) rtc_resume()
142 timekeeping_inject_sleeptime64(&sleep_time); rtc_resume()
/linux-4.1.27/drivers/input/mouse/
H A Dcyapa.c528 u8 cyapa_sleep_time_to_pwr_cmd(u16 sleep_time) cyapa_sleep_time_to_pwr_cmd() argument
532 sleep_time = clamp_val(sleep_time, 20, 1000); cyapa_sleep_time_to_pwr_cmd()
533 encoded_time = sleep_time < 100 ? sleep_time / 10 : sleep_time / 20 + 5; cyapa_sleep_time_to_pwr_cmd()
676 u16 sleep_time; cyapa_show_suspend_scanrate() local
685 sleep_time = cyapa->suspend_sleep_time; cyapa_show_suspend_scanrate()
702 sleep_time); cyapa_show_suspend_scanrate()
714 u16 sleep_time; cyapa_update_suspend_scanrate() local
725 } else if (!kstrtou16(buf, 10, &sleep_time)) { cyapa_update_suspend_scanrate()
726 cyapa->suspend_sleep_time = min_t(u16, sleep_time, 1000); cyapa_update_suspend_scanrate()
801 u16 sleep_time; cyapa_show_rt_suspend_scanrate() local
809 sleep_time = cyapa->runtime_suspend_sleep_time; cyapa_show_rt_suspend_scanrate()
816 sleep_time); cyapa_show_rt_suspend_scanrate()
H A Dcyapa.h293 u8 cyapa_sleep_time_to_pwr_cmd(u16 sleep_time);
H A Dcyapa_gen5.c1547 u8 power_mode, u16 sleep_time) cyapa_gen5_set_power_mode()
1579 GEN5_DEV_GET_SLEEP_TIME(cyapa) == sleep_time) { cyapa_gen5_set_power_mode()
1634 sleep_time != GEN5_DEV_GET_SLEEP_TIME(cyapa)) cyapa_gen5_set_power_mode()
1637 sleep_time) == 0) cyapa_gen5_set_power_mode()
1638 GEN5_DEV_SET_SLEEP_TIME(cyapa, sleep_time); cyapa_gen5_set_power_mode()
1640 if (sleep_time <= GEN5_POWER_READY_MAX_INTRVL_TIME) cyapa_gen5_set_power_mode()
1665 cyapa_sleep_time_to_pwr_cmd(sleep_time)); cyapa_gen5_set_power_mode()
1546 cyapa_gen5_set_power_mode(struct cyapa *cyapa, u8 power_mode, u16 sleep_time) cyapa_gen5_set_power_mode() argument
H A Dcyapa_gen3.c958 u16 sleep_time; cyapa_gen3_set_power_mode() local
981 sleep_time = cyapa_get_wait_time_for_pwr_cmd(ret & PWR_MODE_MASK); cyapa_gen3_set_power_mode()
999 msleep(sleep_time); cyapa_gen3_set_power_mode()
/linux-4.1.27/drivers/net/wireless/iwlegacy/
H A D3945-debug.c464 " %-30s %10u %10u %10u %10u\n", "sleep_time:", il3945_ucode_general_stats_read()
465 le32_to_cpu(general->sleep_time), il3945_ucode_general_stats_read()
466 accum_general->sleep_time, delta_general->sleep_time, il3945_ucode_general_stats_read()
467 max_general->sleep_time); il3945_ucode_general_stats_read()
H A D4965-debug.c702 scnprintf(buf + pos, bufsz - pos, fmt_table, "sleep_time:", il4965_ucode_general_stats_read()
703 le32_to_cpu(general->sleep_time), il4965_ucode_general_stats_read()
704 accum_general->sleep_time, delta_general->sleep_time, il4965_ucode_general_stats_read()
705 max_general->sleep_time); il4965_ucode_general_stats_read()
H A Dcommands.h2303 __le32 sleep_time; member in struct:il_sleep_notification
2770 __le32 sleep_time; member in struct:iwl39_stats_general
2914 __le32 sleep_time; member in struct:stats_general_common
/linux-4.1.27/drivers/gpu/drm/nouveau/
H A Dnouveau_fence.c317 unsigned long sleep_time = NSEC_PER_MSEC / 1000; nouveau_fence_wait_legacy() local
333 kt = ktime_set(0, sleep_time); nouveau_fence_wait_legacy()
335 sleep_time *= 2; nouveau_fence_wait_legacy()
336 if (sleep_time > NSEC_PER_MSEC) nouveau_fence_wait_legacy()
337 sleep_time = NSEC_PER_MSEC; nouveau_fence_wait_legacy()
/linux-4.1.27/drivers/mtd/lpddr/
H A Dlpddr_cmds.c114 unsigned int timeo, reset_timeo, sleep_time; wait_for_ready() local
124 sleep_time = chip_op_time / 2; wait_for_ready()
139 if (sleep_time >= 1000000/HZ) { wait_for_ready()
145 msleep(sleep_time/1000); wait_for_ready()
146 timeo -= sleep_time; wait_for_ready()
147 sleep_time = 1000000/HZ; wait_for_ready()
/linux-4.1.27/drivers/media/dvb-frontends/
H A Ddib9000.c1990 int sleep_time, sleep_time_slave; dib9000_set_frontend() local
2042 sleep_time = dib9000_fw_tune(state->fe[0]); dib9000_set_frontend()
2045 if (sleep_time == FE_CALLBACK_TIME_NEVER) dib9000_set_frontend()
2046 sleep_time = sleep_time_slave; dib9000_set_frontend()
2047 else if ((sleep_time_slave != FE_CALLBACK_TIME_NEVER) && (sleep_time_slave > sleep_time)) dib9000_set_frontend()
2048 sleep_time = sleep_time_slave; dib9000_set_frontend()
2050 if (sleep_time != FE_CALLBACK_TIME_NEVER) dib9000_set_frontend()
2051 msleep(sleep_time / 10); dib9000_set_frontend()
2099 sleep_time = FE_CALLBACK_TIME_NEVER; dib9000_set_frontend()
2103 if (sleep_time == FE_CALLBACK_TIME_NEVER) dib9000_set_frontend()
2104 sleep_time = sleep_time_slave; dib9000_set_frontend()
2105 else if ((sleep_time_slave != FE_CALLBACK_TIME_NEVER) && (sleep_time_slave > sleep_time)) dib9000_set_frontend()
2106 sleep_time = sleep_time_slave; dib9000_set_frontend()
2109 if (sleep_time != FE_CALLBACK_TIME_NEVER) dib9000_set_frontend()
2110 msleep(sleep_time / 10); dib9000_set_frontend()
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
H A Dfw-api-stats.h226 __le32 sleep_time; member in struct:mvm_statistics_general_v5
252 __le32 sleep_time; member in struct:mvm_statistics_general_v8
/linux-4.1.27/drivers/video/fbdev/omap/
H A Dlcd_mipid.c186 int cmd, sleep_time = 50; set_sleep_mode() local
202 sleep_time = 120; set_sleep_mode()
203 msleep(sleep_time); set_sleep_mode()
/linux-4.1.27/kernel/
H A Daudit.c1313 static long wait_for_auditd(long sleep_time) wait_for_auditd() argument
1321 sleep_time = schedule_timeout(sleep_time); wait_for_auditd()
1326 return sleep_time; wait_for_auditd()
1370 long sleep_time; audit_log_start() local
1372 sleep_time = timeout_start + audit_backlog_wait_time - jiffies; audit_log_start()
1373 if (sleep_time > 0) { audit_log_start()
1374 sleep_time = wait_for_auditd(sleep_time); audit_log_start()
1375 if (sleep_time > 0) audit_log_start()
/linux-4.1.27/include/linux/
H A Dpktcdvd.h126 long sleep_time; /* Set this to non-zero to make the state */ member in struct:packet_data
/linux-4.1.27/drivers/block/
H A Dpktcdvd.c1282 pkt->sleep_time = max(PACKET_WAIT_TIME, 1); pkt_handle_queue()
1363 if ((pkt->write_size < pkt->frames) && (pkt->sleep_time > 0)) pkt_run_state_machine()
1366 pkt->sleep_time = 0; pkt_run_state_machine()
1506 if (pkt->sleep_time && pkt->sleep_time < min_sleep_time) kcdrwd()
1507 min_sleep_time = pkt->sleep_time; kcdrwd()
1518 if (!pkt->sleep_time) kcdrwd()
1520 pkt->sleep_time -= min_sleep_time - residue; kcdrwd()
1521 if (pkt->sleep_time <= 0) { kcdrwd()
1522 pkt->sleep_time = 0; kcdrwd()
/linux-4.1.27/tools/testing/ktest/
H A Dktest.pl158 my $sleep_time;
280 "SLEEP_TIME" => \$sleep_time,
1642 reboot_to_good $sleep_time;
2099 reboot $sleep_time;
2517 doprint "Reboot and wait $sleep_time seconds\n";
2518 reboot_to_good $sleep_time;
4007 doprint "Reboot and wait $sleep_time seconds\n";
4008 reboot_to_good $sleep_time;
/linux-4.1.27/drivers/mtd/chips/
H A Dcfi_cmdset_0001.c1245 unsigned int timeo, sleep_time, reset_timeo; inval_cache_and_wait_for_operation() local
1256 sleep_time = chip_op_time / 2; inval_cache_and_wait_for_operation()
1293 if (sleep_time >= 1000000/HZ) { inval_cache_and_wait_for_operation()
1299 msleep(sleep_time/1000); inval_cache_and_wait_for_operation()
1300 timeo -= sleep_time; inval_cache_and_wait_for_operation()
1301 sleep_time = 1000000/HZ; inval_cache_and_wait_for_operation()
/linux-4.1.27/drivers/power/
H A Dab8500_fg.c1537 int sleep_time; ab8500_fg_algorithm_discharging() local
1560 sleep_time = di->bm->fg_params->init_timer; ab8500_fg_algorithm_discharging()
1569 di->init_cnt += sleep_time; ab8500_fg_algorithm_discharging()
1585 sleep_time = di->bm->fg_params->recovery_sleep_timer; ab8500_fg_algorithm_discharging()
1607 sleep_time * HZ); ab8500_fg_algorithm_discharging()
1609 di->recovery_cnt += sleep_time; ab8500_fg_algorithm_discharging()
/linux-4.1.27/drivers/media/tuners/
H A Dr820t.c544 unsigned sleep_time = 10000; r820t_set_pll() local
571 sleep_time = 20000; r820t_set_pll()
688 usleep_range(sleep_time, sleep_time + 1000); r820t_set_pll()
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/
H A Ddebugfs.c1415 fmt_table, "sleep_time:", iwl_dbgfs_ucode_general_stats_read()
1416 le32_to_cpu(general->sleep_time), iwl_dbgfs_ucode_general_stats_read()
1417 accum_general->sleep_time, iwl_dbgfs_ucode_general_stats_read()
1418 delta_general->sleep_time, max_general->sleep_time); iwl_dbgfs_ucode_general_stats_read()
H A Dcommands.h2188 __le32 sleep_time; member in struct:iwl_sleep_notification
2701 __le32 sleep_time; member in struct:statistics_general_common
/linux-4.1.27/drivers/usb/host/
H A Du132-hcd.c1611 int sleep_time = 0; u132_run() local
1630 sleep_time = 0; u132_run()
1636 sleep_time = 10; u132_run()
1641 sleep_time = 50; u132_run()
1650 msleep(sleep_time); u132_run()
/linux-4.1.27/drivers/usb/misc/
H A Dftdi-elan.c2278 int sleep_time = 0; ftdi_elan_check_controller() local
2303 sleep_time = 0; ftdi_elan_check_controller()
2309 sleep_time = 10; ftdi_elan_check_controller()
2314 sleep_time = 50; ftdi_elan_check_controller()
2323 msleep(sleep_time); ftdi_elan_check_controller()

Completed in 1146 milliseconds