Lines Matching refs:timeout
500 unsigned long timeout; in efa_com_wait_and_process_admin_cq_polling() local
504 timeout = jiffies + usecs_to_jiffies(aq->completion_timeout); in efa_com_wait_and_process_admin_cq_polling()
514 if (time_is_before_jiffies(timeout)) { in efa_com_wait_and_process_admin_cq_polling()
730 u32 timeout; in efa_com_admin_init() local
771 timeout = EFA_GET(&cap, EFA_REGS_CAPS_ADMIN_CMD_TO); in efa_com_admin_init()
772 if (timeout) in efa_com_admin_init()
774 aq->completion_timeout = timeout * 100000; in efa_com_admin_init()
1019 static int wait_for_reset_state(struct efa_com_dev *edev, u32 timeout, int on) in wait_for_reset_state() argument
1023 for (i = 0; i < timeout; i++) { in wait_for_reset_state()
1046 u32 stat, timeout, cap; in efa_com_dev_reset() local
1059 timeout = EFA_GET(&cap, EFA_REGS_CAPS_RESET_TIMEOUT); in efa_com_dev_reset()
1060 if (!timeout) { in efa_com_dev_reset()
1073 err = wait_for_reset_state(edev, timeout, 1); in efa_com_dev_reset()
1081 err = wait_for_reset_state(edev, timeout, 0); in efa_com_dev_reset()
1087 timeout = EFA_GET(&cap, EFA_REGS_CAPS_ADMIN_CMD_TO); in efa_com_dev_reset()
1088 if (timeout) in efa_com_dev_reset()
1090 edev->aq.completion_timeout = timeout * 100000; in efa_com_dev_reset()