Home
last modified time | relevance | path

Searched refs:wait_time (Results 1 – 25 of 53) sorted by relevance

123

/linux-6.6.21/arch/powerpc/kernel/
Drtas-rtc.c19 unsigned int wait_time; in rtas_get_boot_time() local
26 wait_time = rtas_busy_delay_time(error); in rtas_get_boot_time()
27 if (wait_time) { in rtas_get_boot_time()
29 udelay(wait_time*1000); in rtas_get_boot_time()
31 } while (wait_time && (get_tb() < max_wait_tb)); in rtas_get_boot_time()
51 unsigned int wait_time; in rtas_get_rtc_time() local
58 wait_time = rtas_busy_delay_time(error); in rtas_get_rtc_time()
59 if (wait_time) { in rtas_get_rtc_time()
67 msleep(wait_time); in rtas_get_rtc_time()
69 } while (wait_time && (get_tb() < max_wait_tb)); in rtas_get_rtc_time()
[all …]
/linux-6.6.21/arch/powerpc/platforms/pseries/
Drtas-fadump.c139 unsigned int wait_time; in rtas_fadump_register() local
148 wait_time = rtas_busy_delay_time(rc); in rtas_fadump_register()
149 if (wait_time) in rtas_fadump_register()
150 mdelay(wait_time); in rtas_fadump_register()
152 } while (wait_time); in rtas_fadump_register()
187 unsigned int wait_time; in rtas_fadump_unregister() local
196 wait_time = rtas_busy_delay_time(rc); in rtas_fadump_unregister()
197 if (wait_time) in rtas_fadump_unregister()
198 mdelay(wait_time); in rtas_fadump_unregister()
199 } while (wait_time); in rtas_fadump_unregister()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/link/protocols/
Dlink_dp_training_128b_132b.c78 uint32_t wait_time = 0; in dp_perform_128b_132b_channel_eq_done_sequence() local
110 wait_time += aux_rd_interval; in dp_perform_128b_132b_channel_eq_done_sequence()
140 } else if (wait_time >= lt_settings->eq_wait_time_limit) { in dp_perform_128b_132b_channel_eq_done_sequence()
147 wait_time += lt_settings->eq_pattern_time; in dp_perform_128b_132b_channel_eq_done_sequence()
167 uint32_t wait_time = 0; in dp_perform_128b_132b_cds_done_sequence() local
176 wait_time += lt_settings->cds_pattern_time; in dp_perform_128b_132b_cds_done_sequence()
187 } else if (wait_time >= lt_settings->cds_wait_time_limit) { in dp_perform_128b_132b_cds_done_sequence()
/linux-6.6.21/fs/ext4/
Dmmp.c287 unsigned int wait_time = 0; in ext4_multi_mount_protect() local
323 wait_time = min(mmp_check_interval * 2 + 1, in ext4_multi_mount_protect()
327 if (wait_time > EXT4_MMP_MIN_CHECK_INTERVAL * 4) in ext4_multi_mount_protect()
329 " wait.\n", wait_time * 2); in ext4_multi_mount_protect()
331 if (schedule_timeout_interruptible(HZ * wait_time) != 0) { in ext4_multi_mount_protect()
366 if (schedule_timeout_interruptible(HZ * wait_time) != 0) { in ext4_multi_mount_protect()
/linux-6.6.21/drivers/hwmon/
Dsht3x.c169 u32 wait_time; /* in us*/ member
204 char *buf, int length, u32 wait_time) in sht3x_read_from_command() argument
216 if (wait_time) in sht3x_read_from_command()
217 usleep_range(wait_time, wait_time + 1000); in sht3x_read_from_command()
272 sizeof(buf), data->wait_time); in sht3x_update_client()
446 data->wait_time = 0; in sht3x_select_command()
450 data->wait_time = SHT3X_SINGLE_WAIT_TIME_HPM; in sht3x_select_command()
453 data->wait_time = SHT3X_SINGLE_WAIT_TIME_MPM; in sht3x_select_command()
456 data->wait_time = SHT3X_SINGLE_WAIT_TIME_LPM; in sht3x_select_command()
Dhs3001.c46 u32 wait_time; /* in us */ member
126 fsleep(data->wait_time); in hs3001_read()
211 data->wait_time = (HS3001_WAKEUP_TIME + HS3001_14BIT_RESOLUTION + in hs3001_probe()
/linux-6.6.21/drivers/iio/pressure/
Dt5403.c50 int wait_time = 3; /* wakeup time in ms */ in t5403_read() local
58 wait_time += pressure ? t5403_pressure_conv_ms[data->mode] : 2; in t5403_read()
60 msleep(wait_time); in t5403_read()
/linux-6.6.21/drivers/char/hw_random/
Djh7110-trng.c143 int wait_time = 1000; in starfive_trng_cmd() local
147 wait_time = 40; in starfive_trng_cmd()
155 if (!wait_for_completion_timeout(&trng->random_done, usecs_to_jiffies(wait_time))) in starfive_trng_cmd()
163 if (!wait_for_completion_timeout(&trng->reseed_done, usecs_to_jiffies(wait_time))) in starfive_trng_cmd()
/linux-6.6.21/drivers/usb/host/
Dpci-quirks.c778 int wait_time = 500; /* arbitrary; 5 seconds */ in quirk_usb_handoff_ohci() local
781 while (wait_time > 0 && in quirk_usb_handoff_ohci()
783 wait_time -= 10; in quirk_usb_handoff_ohci()
786 if (wait_time <= 0) in quirk_usb_handoff_ohci()
932 int wait_time, count = 256/4; in quirk_usb_disable_ehci() local
979 wait_time = 2000; in quirk_usb_disable_ehci()
983 wait_time -= 100; in quirk_usb_disable_ehci()
988 } while (wait_time > 0); in quirk_usb_disable_ehci()
/linux-6.6.21/include/linux/platform_data/
Dtsl2772.h72 int wait_time; member
/linux-6.6.21/drivers/staging/qlge/
Dqlge_mpi.c913 long wait_time; in qlge_idc_wait() local
915 for (wait_time = 1 * HZ; wait_time;) { in qlge_idc_wait()
919 wait_time = in qlge_idc_wait()
921 wait_time); in qlge_idc_wait()
922 if (!wait_time) { in qlge_idc_wait()
933 wait_time += (mbcp->mbox_out[1] >> 8) & 0x0000000f; in qlge_idc_wait()
/linux-6.6.21/drivers/hwmon/occ/
Dp8_i2c.c121 const long wait_time = msecs_to_jiffies(OCC_CMD_IN_PRG_WAIT_MS); in p8_i2c_occ_send_cmd() local
162 schedule_timeout(wait_time); in p8_i2c_occ_send_cmd()
/linux-6.6.21/block/
Dbfq-cgroup.c251 blkg_rwstat_add(&stats->wait_time, opf, in bfqg_stats_update_completion()
361 blkg_rwstat_reset(&stats->wait_time); in bfqg_stats_reset()
382 blkg_rwstat_add_aux(&to->wait_time, &from->wait_time); in bfqg_stats_add_aux()
443 blkg_rwstat_exit(&stats->wait_time); in bfqg_stats_exit()
464 blkg_rwstat_init(&stats->wait_time, gfp) || in bfqg_stats_init()
1351 .private = offsetof(struct bfq_group, stats.wait_time),
1394 .private = offsetof(struct bfq_group, stats.wait_time),
/linux-6.6.21/drivers/i2c/busses/
Di2c-jz4780.c569 int wait_time = JZ4780_I2C_TIMEOUT * (len + 5); in jz4780_i2c_xfer_read() local
604 msecs_to_jiffies(wait_time)); in jz4780_i2c_xfer_read()
629 int wait_time = JZ4780_I2C_TIMEOUT * (len + 5); in jz4780_i2c_xfer_write() local
659 msecs_to_jiffies(wait_time)); in jz4780_i2c_xfer_write()
/linux-6.6.21/sound/core/
Dpcm_lib.c1893 long wait_time, tout; in wait_for_avail() local
1900 wait_time = MAX_SCHEDULE_TIMEOUT; in wait_for_avail()
1903 if (substream->wait_time) { in wait_for_avail()
1904 wait_time = substream->wait_time; in wait_for_avail()
1906 wait_time = 100; in wait_for_avail()
1910 wait_time = max(t, wait_time); in wait_for_avail()
1913 wait_time = msecs_to_jiffies(wait_time); in wait_for_avail()
1934 tout = schedule_timeout(wait_time); in wait_for_avail()
/linux-6.6.21/sound/soc/tegra/
Dtegra_pcm.c121 substream->wait_time = 500; in tegra_pcm_open()
/linux-6.6.21/drivers/scsi/
Dnsp32.c2456 int wait_time = 0; in nsp32_wait_req() local
2469 "wait_time: %d", wait_time); in nsp32_wait_req()
2473 wait_time++; in nsp32_wait_req()
2474 } while (wait_time < REQSACK_TIMEOUT_TIME); in nsp32_wait_req()
2485 int wait_time = 0; in nsp32_wait_sack() local
2498 "wait_time: %d", wait_time); in nsp32_wait_sack()
2502 wait_time++; in nsp32_wait_sack()
2503 } while (wait_time < REQSACK_TIMEOUT_TIME); in nsp32_wait_sack()
/linux-6.6.21/drivers/scsi/qla2xxx/
Dqla_mr.c51 unsigned long wait_time; in qlafx00_mailbox_command() local
158 wait_time = jiffies + mcp->tov * HZ; /* wait at most tov secs */ in qlafx00_mailbox_command()
160 if (time_after(jiffies, wait_time)) in qlafx00_mailbox_command()
173 (uint)((jiffies - (wait_time - (mcp->tov * HZ)))/HZ)); in qlafx00_mailbox_command()
880 uint16_t wait_time; /* Wait time */ in qlafx00_init_fw_ready() local
889 wait_time = 30; in qlafx00_init_fw_ready()
902 wtime = jiffies + (wait_time * HZ); in qlafx00_init_fw_ready()
1005 wtime = jiffies + (wait_time * HZ); in qlafx00_init_fw_ready()
1044 uint16_t wait_time; /* Wait time if loop is coming ready */ in qlafx00_fw_ready() local
1049 wait_time = 10; in qlafx00_fw_ready()
[all …]
/linux-6.6.21/mm/damon/
Dcore.c1307 unsigned long wait_time; in kdamond_wait_activation() local
1313 wait_time = damos_wmark_wait_us(s); in kdamond_wait_activation()
1314 if (!init_wait_time || wait_time < min_wait_time) { in kdamond_wait_activation()
1316 min_wait_time = wait_time; in kdamond_wait_activation()
/linux-6.6.21/drivers/net/fjes/
Dfjes_hw.c818 int wait_time = 0; in fjes_hw_wait_epstop() local
822 (wait_time < FJES_COMMAND_EPSTOP_WAIT_TIMEOUT * 1000)) { in fjes_hw_wait_epstop()
840 wait_time += 100; in fjes_hw_wait_epstop()
851 return (wait_time < FJES_COMMAND_EPSTOP_WAIT_TIMEOUT * 1000) in fjes_hw_wait_epstop()
/linux-6.6.21/drivers/fsi/
Dfsi-occ.c469 const unsigned long wait_time = in fsi_occ_submit() local
551 schedule_timeout(wait_time); in fsi_occ_submit()
/linux-6.6.21/arch/s390/include/asm/
Ddiag.h196 __u64 wait_time; member
/linux-6.6.21/drivers/net/wireless/ath/ath9k/
Dmac.c174 int wait_time = ATH9K_TX_STOP_DMA_TIMEOUT / ATH9K_TIME_QUANTUM; in ath9k_hw_stop_dma_queue() local
179 for (wait = wait_time; wait != 0; wait--) { in ath9k_hw_stop_dma_queue()
180 if (wait != wait_time) in ath9k_hw_stop_dma_queue()
/linux-6.6.21/drivers/iio/addac/
Dad74115.c817 unsigned int regval, wait_time; in _ad74115_get_adc_code() local
824 wait_time = DIV_ROUND_CLOSEST(AD74115_CONV_TIME_US, rate); in _ad74115_get_adc_code()
828 wait_time, 5 * wait_time); in _ad74115_get_adc_code()
/linux-6.6.21/drivers/tty/serial/
Dserial-tegra.c938 unsigned long wait_time; in tegra_uart_hw_deinit() local
956 wait_time = min(fifo_empty_time, 100lu); in tegra_uart_hw_deinit()
957 udelay(wait_time); in tegra_uart_hw_deinit()
958 fifo_empty_time -= wait_time; in tegra_uart_hw_deinit()

123