Home
last modified time | relevance | path

Searched refs:max_wait (Results 1 – 15 of 15) sorted by relevance

/linux/tools/testing/selftests/powerpc/eeh/
H A Deeh-functions.sh119 max_wait=${EEH_MAX_WAIT:=60}
121 for i in `seq 0 ${max_wait}` ; do
125 log "$dev, waited $i/${max_wait}"
/linux/lib/
H A Dtest_lockup.c232 s64 max_wait = atomic64_read(&max_lock_wait); in test_lock() local
235 if (cur_wait < max_wait) in test_lock()
237 max_wait = atomic64_cmpxchg(&max_lock_wait, in test_lock()
238 max_wait, cur_wait); in test_lock()
239 } while (max_wait != cur_wait); in test_lock()
/linux/drivers/media/pci/pt3/
H A Dpt3_i2c.c126 static int wait_i2c_result(struct pt3_board *pt3, u32 *result, int max_wait) in wait_i2c_result() argument
131 for (i = 0; i < max_wait; i++) { in wait_i2c_result()
137 if (i >= max_wait) in wait_i2c_result()
/linux/drivers/net/ethernet/amd/pds_core/
H A Ddev.c133 unsigned long max_wait; in pdsc_devcmd_wait() local
142 max_wait = start_time + (max_seconds * HZ); in pdsc_devcmd_wait()
153 timeout = time_after(jiffies, max_wait); in pdsc_devcmd_wait()
/linux/drivers/net/ethernet/pensando/ionic/
H A Dionic_main.c519 unsigned long max_wait; in __ionic_dev_cmd_wait() local
529 max_wait = jiffies + (max_seconds * HZ); in __ionic_dev_cmd_wait()
535 !done && fw_up && time_before(jiffies, max_wait); in __ionic_dev_cmd_wait()
555 if (!done && !time_before(jiffies, max_wait)) { in __ionic_dev_cmd_wait()
565 time_before(jiffies, (max_wait - HZ))) { in __ionic_dev_cmd_wait()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Dpsp_v14_0.c388 int max_wait; in psp_v14_0_memory_training_send_msg() local
395 max_wait = MEM_TRAIN_SEND_MSG_TIMEOUT_US / adev->usec_timeout; in psp_v14_0_memory_training_send_msg()
396 for (i = 0; i < max_wait; i++) { in psp_v14_0_memory_training_send_msg()
403 if (i < max_wait) in psp_v14_0_memory_training_send_msg()
H A Dpsp_v13_0.c529 int max_wait; in psp_v13_0_memory_training_send_msg() local
536 max_wait = MEM_TRAIN_SEND_MSG_TIMEOUT_US / adev->usec_timeout; in psp_v13_0_memory_training_send_msg()
537 for (i = 0; i < max_wait; i++) { in psp_v13_0_memory_training_send_msg()
544 if (i < max_wait) in psp_v13_0_memory_training_send_msg()
/linux/tools/testing/selftests/drivers/net/hw/
H A Dtso.py18 def sock_wait_drain(sock, max_wait=1000): argument
20 for _ in range(max_wait):
/linux/drivers/dma/
H A Dmxs-dma.c204 const unsigned long max_wait = 50000; /* 50ms */ in mxs_dma_reset_chan() local
215 while ((readl(reg_dbg1) & 0xf) == 0x8 && elapsed < max_wait) { in mxs_dma_reset_chan()
220 if (elapsed >= max_wait) in mxs_dma_reset_chan()
/linux/drivers/net/phy/
H A Dsmsc.c246 unsigned int max_wait = priv->edpd_max_wait_ms * 1000; in lan87xx_read_status() local
264 10000, max_wait, true, phydev, in lan87xx_read_status()
/linux/drivers/usb/typec/tcpm/
H A Dtcpm.c514 unsigned long max_wait; member
4846 port->max_wait = 0; in run_state_machine()
4857 port->max_wait = 0; in run_state_machine()
4861 if (port->max_wait == 0) { in run_state_machine()
4862 port->max_wait = jiffies + in run_state_machine()
4867 if (time_is_after_jiffies(port->max_wait)) in run_state_machine()
4869 jiffies_to_msecs(port->max_wait - in run_state_machine()
5108 port->max_wait = 0; in run_state_machine()
5112 if (port->max_wait == 0) { in run_state_machine()
5113 port->max_wait = jiffies + in run_state_machine()
[all …]
/linux/drivers/scsi/megaraid/
H A Dmegaraid_sas_base.c4122 u8 max_wait; in megasas_transition_to_ready() local
4143 max_wait = MEGASAS_RESET_WAIT_TIME; in megasas_transition_to_ready()
4168 max_wait = MEGASAS_RESET_WAIT_TIME; in megasas_transition_to_ready()
4183 max_wait = MEGASAS_RESET_WAIT_TIME; in megasas_transition_to_ready()
4215 max_wait = MEGASAS_RESET_WAIT_TIME; in megasas_transition_to_ready()
4222 max_wait = MEGASAS_RESET_WAIT_TIME; in megasas_transition_to_ready()
4226 max_wait = MEGASAS_RESET_WAIT_TIME; in megasas_transition_to_ready()
4230 max_wait = MEGASAS_RESET_WAIT_TIME; in megasas_transition_to_ready()
4234 max_wait = MEGASAS_RESET_WAIT_TIME; in megasas_transition_to_ready()
4238 max_wait = MEGASAS_RESET_WAIT_TIME; in megasas_transition_to_ready()
[all …]
/linux/drivers/media/platform/ti/omap3isp/
H A Dispccdc.c1405 unsigned int max_wait) in ccdc_sbl_wait_idle() argument
1409 if (max_wait == 0) in ccdc_sbl_wait_idle()
1410 max_wait = 10000; /* 10 ms */ in ccdc_sbl_wait_idle()
1412 for (wait = 0; wait <= max_wait; wait++) { in ccdc_sbl_wait_idle()
/linux/Documentation/scsi/
H A DChangeLog.megaraid_sas358 and Increase the max_wait to 60 from 10 in the controller
359 operational status. With this max_wait increase, driver will
/linux/drivers/scsi/
H A Dst.c981 int attentions, waits, max_wait, scode; in test_ready() local
988 max_wait = do_wait ? ST_BLOCK_SECONDS : 0; in test_ready()
1021 if (waits < max_wait) { in test_ready()