Searched refs:max_wait (Results 1 – 11 of 11) sorted by relevance
126 static int wait_i2c_result(struct pt3_board *pt3, u32 *result, int max_wait) in wait_i2c_result() argument131 for (i = 0; i < max_wait; i++) { in wait_i2c_result()137 if (i >= max_wait) in wait_i2c_result()
324 unsigned long max_wait; in ionic_dev_cmd_wait() local334 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()
68 int ionic_dev_cmd_wait(struct ionic *ionic, unsigned long max_wait);
586 int max_wait; in psp_v11_0_memory_training_send_msg() local593 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()
205 const unsigned long max_wait = 50000; /* 50ms */ in mxs_dma_reset_chan() local216 while ((readl(reg_dbg1) & 0xf) == 0x8 && elapsed < max_wait) { in mxs_dma_reset_chan()221 if (elapsed >= max_wait) in mxs_dma_reset_chan()
452 unsigned long max_wait; member3976 port->max_wait = 0; in run_state_machine()3987 port->max_wait = 0; in run_state_machine()3991 if (port->max_wait == 0) { in run_state_machine()3992 port->max_wait = jiffies + in run_state_machine()3997 if (time_is_after_jiffies(port->max_wait)) in run_state_machine()3999 jiffies_to_msecs(port->max_wait - in run_state_machine()4225 port->max_wait = 0; in run_state_machine()4229 if (port->max_wait == 0) { in run_state_machine()4230 port->max_wait = jiffies + in run_state_machine()[all …]
156 uint16_t max_wait = 20; // units of ms in poll_l_prime_available() local158 uint16_t wait_time = max_wait / num_polls; in poll_l_prime_available()
686 int max_wait = 30; in punit_ddr_dvfs_enable() local699 while ((reg & door_bell) && max_wait--) { in punit_ddr_dvfs_enable()704 if (max_wait == -1) in punit_ddr_dvfs_enable()
4065 u8 max_wait; in megasas_transition_to_ready() local4086 max_wait = MEGASAS_RESET_WAIT_TIME; in megasas_transition_to_ready()4111 max_wait = MEGASAS_RESET_WAIT_TIME; in megasas_transition_to_ready()4126 max_wait = MEGASAS_RESET_WAIT_TIME; in megasas_transition_to_ready()4158 max_wait = MEGASAS_RESET_WAIT_TIME; in megasas_transition_to_ready()4165 max_wait = MEGASAS_RESET_WAIT_TIME; in megasas_transition_to_ready()4169 max_wait = MEGASAS_RESET_WAIT_TIME; in megasas_transition_to_ready()4173 max_wait = MEGASAS_RESET_WAIT_TIME; in megasas_transition_to_ready()4177 max_wait = MEGASAS_RESET_WAIT_TIME; in megasas_transition_to_ready()4181 max_wait = MEGASAS_RESET_WAIT_TIME; in megasas_transition_to_ready()[all …]
1399 unsigned int max_wait) in ccdc_sbl_wait_idle() argument1403 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()
969 int attentions, waits, max_wait, scode; in test_ready() local975 max_wait = do_wait ? ST_BLOCK_SECONDS : 0; in test_ready()1005 if (waits < max_wait) { in test_ready()