/Linux-v5.4/tools/power/cpupower/bench/ |
D | benchmark.c | 82 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 …]
|
D | system.c | 128 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-v5.4/tools/power/acpi/tools/ec/ |
D | ec_access.c | 30 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-v5.4/tools/laptop/dslm/ |
D | dslm.c | 75 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-v5.4/drivers/rtc/ |
D | class.c | 97 struct timespec64 sleep_time; in rtc_resume() local 124 sleep_time = timespec64_sub(new_rtc, old_rtc); in rtc_resume() 133 sleep_time = timespec64_sub(sleep_time, in rtc_resume() 136 if (sleep_time.tv_sec >= 0) in rtc_resume() 137 timekeeping_inject_sleeptime64(&sleep_time); in rtc_resume()
|
/Linux-v5.4/drivers/input/mouse/ |
D | cyapa.c | 572 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() 869 u16 sleep_time; in cyapa_show_rt_suspend_scanrate() local [all …]
|
D | cyapa_gen6.c | 428 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()
|
D | cyapa_gen3.c | 913 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() 960 while (sleep_time > 0) { in cyapa_gen3_set_power_mode() 961 if (sleep_time > interval) in cyapa_gen3_set_power_mode() 964 msleep(sleep_time); in cyapa_gen3_set_power_mode() 965 sleep_time -= interval; in cyapa_gen3_set_power_mode() 969 msleep(sleep_time); in cyapa_gen3_set_power_mode()
|
D | cyapa_gen5.c | 1615 u8 power_mode, u16 sleep_time, enum cyapa_pm_stage pm_stage) in cyapa_gen5_set_power_mode() argument 1646 PIP_DEV_GET_SLEEP_TIME(cyapa) == sleep_time) { in cyapa_gen5_set_power_mode() 1701 sleep_time != PIP_DEV_GET_SLEEP_TIME(cyapa)) in cyapa_gen5_set_power_mode() 1704 sleep_time) == 0) in cyapa_gen5_set_power_mode() 1705 PIP_DEV_SET_SLEEP_TIME(cyapa, sleep_time); in cyapa_gen5_set_power_mode() 1707 if (sleep_time <= GEN5_POWER_READY_MAX_INTRVL_TIME) in cyapa_gen5_set_power_mode() 1732 cyapa_sleep_time_to_pwr_cmd(sleep_time)); in cyapa_gen5_set_power_mode()
|
D | cyapa.h | 396 u8 cyapa_sleep_time_to_pwr_cmd(u16 sleep_time);
|
/Linux-v5.4/drivers/gpu/drm/nouveau/ |
D | nouveau_fence.c | 259 unsigned long sleep_time = NSEC_PER_MSEC / 1000; in nouveau_fence_wait_legacy() local 275 kt = sleep_time; in nouveau_fence_wait_legacy() 277 sleep_time *= 2; in nouveau_fence_wait_legacy() 278 if (sleep_time > NSEC_PER_MSEC) in nouveau_fence_wait_legacy() 279 sleep_time = NSEC_PER_MSEC; in nouveau_fence_wait_legacy()
|
/Linux-v5.4/drivers/mtd/lpddr/ |
D | lpddr_cmds.c | 101 unsigned int timeo, reset_timeo, sleep_time; in wait_for_ready() local 111 sleep_time = chip_op_time / 2; in wait_for_ready() 126 if (sleep_time >= 1000000/HZ) { in wait_for_ready() 132 msleep(sleep_time/1000); in wait_for_ready() 133 timeo -= sleep_time; in wait_for_ready() 134 sleep_time = 1000000/HZ; in wait_for_ready()
|
/Linux-v5.4/drivers/gpu/drm/omapdrm/dss/ |
D | pll.c | 447 u32 sleep_time; in dss_pll_write_config_type_a() local 454 sleep_time = DIV_ROUND_UP(1000*1000*1000, cinfo->fint); in dss_pll_write_config_type_a() 465 usleep_range(sleep_time, sleep_time + 5); in dss_pll_write_config_type_a()
|
/Linux-v5.4/drivers/media/dvb-frontends/ |
D | dib9000.c | 1995 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-v5.4/drivers/net/wireless/intel/iwlegacy/ |
D | 3945-debug.c | 447 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()
|
D | 4965-debug.c | 685 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()
|
D | commands.h | 2303 __le32 sleep_time; member 2770 __le32 sleep_time; member 2914 __le32 sleep_time; member
|
/Linux-v5.4/drivers/video/fbdev/omap/ |
D | lcd_mipid.c | 172 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-v5.4/drivers/net/wireless/intel/iwlwifi/fw/api/ |
D | stats.h | 306 __le32 sleep_time; member 335 __le32 sleep_time; member
|
/Linux-v5.4/include/linux/ |
D | pktcdvd.h | 126 long sleep_time; /* Set this to non-zero to make the state */ member
|
/Linux-v5.4/tools/testing/ktest/ |
D | ktest.pl | 169 my $sleep_time; 318 "SLEEP_TIME" => \$sleep_time, 1727 reboot_to_good $sleep_time; 2218 reboot $sleep_time; 2632 doprint "Reboot and wait $sleep_time seconds\n"; 2633 reboot_to_good $sleep_time; 3982 doprint "Reboot and wait $sleep_time seconds\n"; 3983 reboot_to_good $sleep_time;
|
/Linux-v5.4/drivers/block/ |
D | pktcdvd.c | 1250 pkt->sleep_time = max(PACKET_WAIT_TIME, 1); in pkt_handle_queue() 1329 if ((pkt->write_size < pkt->frames) && (pkt->sleep_time > 0)) in pkt_run_state_machine() 1332 pkt->sleep_time = 0; in pkt_run_state_machine() 1471 if (pkt->sleep_time && pkt->sleep_time < min_sleep_time) in kcdrwd() 1472 min_sleep_time = pkt->sleep_time; in kcdrwd() 1483 if (!pkt->sleep_time) in kcdrwd() 1485 pkt->sleep_time -= min_sleep_time - residue; in kcdrwd() 1486 if (pkt->sleep_time <= 0) { in kcdrwd() 1487 pkt->sleep_time = 0; in kcdrwd()
|
/Linux-v5.4/drivers/iio/light/ |
D | isl29028.c | 63 int sleep_time; member 157 msleep(isl29028_prox_data[prox_index].sleep_time); in isl29028_enable_proximity()
|
/Linux-v5.4/drivers/power/supply/ |
D | ab8500_fg.c | 1530 int sleep_time; in ab8500_fg_algorithm_discharging() local 1553 sleep_time = di->bm->fg_params->init_timer; in ab8500_fg_algorithm_discharging() 1562 di->init_cnt += sleep_time; in ab8500_fg_algorithm_discharging() 1578 sleep_time = di->bm->fg_params->recovery_sleep_timer; in ab8500_fg_algorithm_discharging() 1600 sleep_time * HZ); in ab8500_fg_algorithm_discharging() 1602 di->recovery_cnt += sleep_time; in ab8500_fg_algorithm_discharging()
|
/Linux-v5.4/drivers/media/tuners/ |
D | r820t.c | 523 unsigned sleep_time = 10000; in r820t_set_pll() local 550 sleep_time = 20000; in r820t_set_pll() 667 usleep_range(sleep_time, sleep_time + 1000); in r820t_set_pll()
|