Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/tools/testing/selftests/powerpc/eeh/
H A Deeh-functions.sh67 max_wait=${EEH_MAX_WAIT:=60}
69 for i in `seq 0 ${max_wait}` ; do
73 echo "$dev, waited $i/${max_wait}"
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/pensando/ionic/
H A Dionic_main.c324 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 Dionic.h68 int ionic_dev_cmd_wait(struct ionic *ionic, unsigned long max_wait);
/OK3568_Linux_fs/kernel/arch/powerpc/kernel/
H A Deeh_pe.c106 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()
/OK3568_Linux_fs/kernel/arch/powerpc/platforms/pseries/
H A Deeh_pseries.c199 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()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/amdgpu/
H A Dpsp_v11_0.c586 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()
/OK3568_Linux_fs/kernel/drivers/dma/
H A Dmxs-dma.c205 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()
/OK3568_Linux_fs/kernel/drivers/usb/typec/tcpm/
H A Dtcpm.c453 unsigned long max_wait; member
3965 port->max_wait = 0; in run_state_machine()
3976 port->max_wait = 0; in run_state_machine()
3980 if (port->max_wait == 0) { in run_state_machine()
3981 port->max_wait = jiffies + in run_state_machine()
3986 if (time_is_after_jiffies(port->max_wait)) in run_state_machine()
3988 jiffies_to_msecs(port->max_wait - in run_state_machine()
4210 port->max_wait = 0; in run_state_machine()
4214 if (port->max_wait == 0) { in run_state_machine()
4215 port->max_wait = jiffies + in run_state_machine()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/modules/hdcp/
H A Dhdcp2_execution.c156 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()
/OK3568_Linux_fs/kernel/block/
H A Dblk-throttle.c998 unsigned long bps_wait = 0, iops_wait = 0, max_wait = 0; in tg_may_dispatch() local
1044 max_wait = max(bps_wait, iops_wait); in tg_may_dispatch()
1047 *wait = max_wait; in tg_may_dispatch()
1049 if (time_before(tg->slice_end[rw], jiffies + max_wait)) in tg_may_dispatch()
1050 throtl_extend_slice(tg, rw, jiffies + max_wait); in tg_may_dispatch()
/OK3568_Linux_fs/kernel/arch/powerpc/include/asm/
H A Deeh.h278 int eeh_wait_state(struct eeh_pe *pe, int max_wait);
/OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/
H A Datomisp_v4l2.c686 int max_wait = 30; in punit_ddr_dvfs_enable() local
699 while ((reg & door_bell) && max_wait--) { in punit_ddr_dvfs_enable()
704 if (max_wait == -1) in punit_ddr_dvfs_enable()
/OK3568_Linux_fs/kernel/drivers/scsi/megaraid/
H A Dmegaraid_sas_base.c4068 u8 max_wait; in megasas_transition_to_ready() local
4089 max_wait = MEGASAS_RESET_WAIT_TIME; in megasas_transition_to_ready()
4114 max_wait = MEGASAS_RESET_WAIT_TIME; in megasas_transition_to_ready()
4129 max_wait = MEGASAS_RESET_WAIT_TIME; in megasas_transition_to_ready()
4161 max_wait = MEGASAS_RESET_WAIT_TIME; in megasas_transition_to_ready()
4168 max_wait = MEGASAS_RESET_WAIT_TIME; in megasas_transition_to_ready()
4172 max_wait = MEGASAS_RESET_WAIT_TIME; in megasas_transition_to_ready()
4176 max_wait = MEGASAS_RESET_WAIT_TIME; in megasas_transition_to_ready()
4180 max_wait = MEGASAS_RESET_WAIT_TIME; in megasas_transition_to_ready()
4184 max_wait = MEGASAS_RESET_WAIT_TIME; in megasas_transition_to_ready()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/platform/omap3isp/
H A Dispccdc.c1399 unsigned int max_wait) in ccdc_sbl_wait_idle() argument
1403 if (max_wait == 0) in ccdc_sbl_wait_idle()
1404 max_wait = 10000; /* 10 ms */ in ccdc_sbl_wait_idle()
1406 for (wait = 0; wait <= max_wait; wait++) { in ccdc_sbl_wait_idle()
/OK3568_Linux_fs/kernel/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
/OK3568_Linux_fs/u-boot/drivers/power/power_delivery/
H A Dtcpm.c418 unsigned long max_wait; member
2939 port->max_wait = 0; in _tcpm_cc_change()
/OK3568_Linux_fs/kernel/drivers/scsi/
H A Dst.c969 int attentions, waits, max_wait, scode; in test_ready() local
975 max_wait = do_wait ? ST_BLOCK_SECONDS : 0; in test_ready()
1005 if (waits < max_wait) { in test_ready()