/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/eeh/ |
H A D | eeh-functions.sh | 67 max_wait=${EEH_MAX_WAIT:=60} 69 for i in `seq 0 ${max_wait}` ; do 73 echo "$dev, waited $i/${max_wait}"
|
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/eeh/ |
H A D | eeh-functions.sh | 119 max_wait=${EEH_MAX_WAIT:=60} 121 for i in `seq 0 ${max_wait}` ; do 125 log "$dev, waited $i/${max_wait}"
|
/kernel/linux/linux-6.6/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic.h | 80 int ionic_dev_cmd_wait(struct ionic *ionic, unsigned long max_wait); 81 int ionic_dev_cmd_wait_nomsg(struct ionic *ionic, unsigned long max_wait);
|
H A D | ionic_main.c | 462 unsigned long max_wait; in __ionic_dev_cmd_wait() local 472 max_wait = jiffies + (max_seconds * HZ); in __ionic_dev_cmd_wait() 477 !done && fw_up && time_before(jiffies, max_wait); in __ionic_dev_cmd_wait() 497 if (!done && !time_before(jiffies, max_wait)) { in __ionic_dev_cmd_wait() 507 time_before(jiffies, (max_wait - HZ))) { in __ionic_dev_cmd_wait()
|
/kernel/linux/linux-5.10/drivers/media/pci/pt3/ |
H A D | pt3_i2c.c | 126 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()
|
/kernel/linux/linux-6.6/drivers/media/pci/pt3/ |
H A D | pt3_i2c.c | 126 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()
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
H A D | eeh_pe.c | 101 * @max_wait: maximal period in millisecond 106 int eeh_wait_state(struct eeh_pe *pe, int max_wait) in eeh_wait_state() argument 128 if (max_wait <= 0) { in eeh_wait_state() 130 __func__, max_wait); in eeh_wait_state() 144 msleep(min(mwait, max_wait)); in eeh_wait_state() 145 max_wait -= mwait; in eeh_wait_state()
|
/kernel/linux/linux-6.6/arch/powerpc/kernel/ |
H A D | eeh_pe.c | 102 * @max_wait: maximal period in millisecond 107 int eeh_wait_state(struct eeh_pe *pe, int max_wait) in eeh_wait_state() argument 129 if (max_wait <= 0) { in eeh_wait_state() 131 __func__, max_wait); in eeh_wait_state() 145 msleep(min(mwait, max_wait)); in eeh_wait_state() 146 max_wait -= mwait; in eeh_wait_state()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_main.c | 324 unsigned long max_wait; in ionic_dev_cmd_wait() local 334 max_wait = jiffies + (max_seconds * HZ); in ionic_dev_cmd_wait() 349 } while (!done && !hb && time_before(jiffies, max_wait)); in ionic_dev_cmd_wait() 366 if (!done && !time_before(jiffies, max_wait)) { in ionic_dev_cmd_wait() 376 time_before(jiffies, (max_wait - HZ))) { in ionic_dev_cmd_wait()
|
H A D | ionic.h | 68 int ionic_dev_cmd_wait(struct ionic *ionic, unsigned long max_wait);
|
/kernel/linux/linux-5.10/lib/ |
H A D | test_lockup.c | 232 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()
|
/kernel/linux/linux-6.6/lib/ |
H A D | test_lockup.c | 232 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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/amd/pds_core/ |
H A D | dev.c | 131 unsigned long max_wait; in pdsc_devcmd_wait() local 139 max_wait = start_time + (max_seconds * HZ); in pdsc_devcmd_wait() 146 timeout = time_after(jiffies, max_wait); in pdsc_devcmd_wait()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
H A D | psp_v11_0.c | 414 int max_wait; in psp_v11_0_memory_training_send_msg() local 421 max_wait = MEM_TRAIN_SEND_MSG_TIMEOUT_US / adev->usec_timeout; in psp_v11_0_memory_training_send_msg() 422 for (i = 0; i < max_wait; i++) { in psp_v11_0_memory_training_send_msg() 428 if (i < max_wait) in psp_v11_0_memory_training_send_msg()
|
H A D | psp_v13_0.c | 452 int max_wait; in psp_v13_0_memory_training_send_msg() local 459 max_wait = MEM_TRAIN_SEND_MSG_TIMEOUT_US / adev->usec_timeout; in psp_v13_0_memory_training_send_msg() 460 for (i = 0; i < max_wait; i++) { in psp_v13_0_memory_training_send_msg() 466 if (i < max_wait) in psp_v13_0_memory_training_send_msg()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/ |
H A D | eeh_pseries.c | 199 int max_wait = 200; in pseries_eeh_phb_configure_bridge() local 201 while (max_wait > 0) { in pseries_eeh_phb_configure_bridge() 220 max_wait -= rtas_busy_delay_time(ret); in pseries_eeh_phb_configure_bridge() 222 if (max_wait < 0) in pseries_eeh_phb_configure_bridge()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
H A D | psp_v11_0.c | 586 int max_wait; in psp_v11_0_memory_training_send_msg() local 593 max_wait = MEM_TRAIN_SEND_MSG_TIMEOUT_US / adev->usec_timeout; in psp_v11_0_memory_training_send_msg() 594 for (i = 0; i < max_wait; i++) { in psp_v11_0_memory_training_send_msg() 600 if (i < max_wait) in psp_v11_0_memory_training_send_msg()
|
/kernel/linux/linux-6.6/arch/powerpc/platforms/pseries/ |
H A D | eeh_pseries.c | 201 int max_wait = 200; in pseries_eeh_phb_configure_bridge() local 203 while (max_wait > 0) { in pseries_eeh_phb_configure_bridge() 222 max_wait -= rtas_busy_delay_time(ret); in pseries_eeh_phb_configure_bridge() 224 if (max_wait < 0) in pseries_eeh_phb_configure_bridge()
|
/kernel/linux/linux-5.10/drivers/dma/ |
H A D | mxs-dma.c | 205 const unsigned long max_wait = 50000; /* 50ms */ in mxs_dma_reset_chan() local 216 while ((readl(reg_dbg1) & 0xf) == 0x8 && elapsed < max_wait) { in mxs_dma_reset_chan() 221 if (elapsed >= max_wait) in mxs_dma_reset_chan()
|
/kernel/linux/linux-6.6/drivers/dma/ |
H A D | mxs-dma.c | 204 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()
|
/kernel/linux/linux-6.6/drivers/net/phy/ |
H A D | smsc.c | 226 unsigned int max_wait = priv->edpd_max_wait_ms * 1000; in lan87xx_read_status() local 244 10000, max_wait, true, phydev, in lan87xx_read_status()
|
/kernel/linux/linux-5.10/drivers/usb/typec/tcpm/ |
H A D | tcpm.c | 379 unsigned long max_wait; member 3124 port->max_wait = 0; in run_state_machine() 3136 port->max_wait = 0; in run_state_machine() 3141 if (port->max_wait == 0) { in run_state_machine() 3142 port->max_wait = jiffies + in run_state_machine() 3147 if (time_is_after_jiffies(port->max_wait)) in run_state_machine() 3149 jiffies_to_msecs(port->max_wait - in run_state_machine() 3315 port->max_wait = 0; in run_state_machine() 3319 if (port->max_wait == 0) { in run_state_machine() 3320 port->max_wait in run_state_machine() [all...] |
/kernel/linux/linux-6.6/drivers/usb/typec/tcpm/ |
H A D | tcpm.c | 462 unsigned long max_wait; member 3966 port->max_wait = 0; in run_state_machine() 3977 port->max_wait = 0; in run_state_machine() 3981 if (port->max_wait == 0) { in run_state_machine() 3982 port->max_wait = jiffies + in run_state_machine() 3987 if (time_is_after_jiffies(port->max_wait)) in run_state_machine() 3989 jiffies_to_msecs(port->max_wait - in run_state_machine() 4201 port->max_wait = 0; in run_state_machine() 4205 if (port->max_wait == 0) { in run_state_machine() 4206 port->max_wait in run_state_machine() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/modules/hdcp/ |
H A D | hdcp2_execution.c | 156 uint16_t max_wait = 20; // units of ms in poll_l_prime_available() local 158 uint16_t wait_time = max_wait / num_polls; in poll_l_prime_available()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/modules/hdcp/ |
H A D | hdcp2_execution.c | 156 uint16_t max_wait = 20; // units of ms in poll_l_prime_available() local 158 uint16_t wait_time = max_wait / num_polls; in poll_l_prime_available()
|