Home
last modified time | relevance | path

Searched refs:time_left (Results 1 – 25 of 28) sorted by relevance

12

/src/sys/contrib/openzfs/module/os/linux/spl/
H A Dspl-condvar.c220 clock_t time_left; in __cv_timedwait_common() local
228 time_left = expire_time - jiffies; in __cv_timedwait_common()
229 if (time_left <= 0) in __cv_timedwait_common()
249 time_left = io_schedule_timeout(time_left); in __cv_timedwait_common()
251 time_left = schedule_timeout(time_left); in __cv_timedwait_common()
271 return (time_left > 0 ? 1 : -1); in __cv_timedwait_common()
325 hrtime_t time_left; in __cv_timedwait_hires() local
335 time_left = expire_time - gethrtime(); in __cv_timedwait_hires()
336 if (time_left <= 0) in __cv_timedwait_hires()
356 ktime_left = ktime_set(0, time_left); in __cv_timedwait_hires()
/src/sys/contrib/dev/athk/ath10k/
H A Dthermal.c68 unsigned long time_left; in ath10k_thermal_show_temp() local
90 time_left = wait_for_completion_timeout(&ar->thermal.wmi_sync, in ath10k_thermal_show_temp()
92 if (!time_left) { in ath10k_thermal_show_temp()
H A Dtxrx.c188 long time_left; in ath10k_wait_for_peer_common() local
190 time_left = wait_event_timeout(ar->peer_mapping_wq, ({ in ath10k_wait_for_peer_common()
201 if (time_left == 0) in ath10k_wait_for_peer_common()
H A Dhtc.c921 unsigned long time_left; in ath10k_htc_wait_target() local
925 time_left = wait_for_completion_timeout(&htc->ctl_resp, in ath10k_htc_wait_target()
927 if (!time_left) { in ath10k_htc_wait_target()
939 time_left = in ath10k_htc_wait_target()
943 if (!time_left) in ath10k_htc_wait_target()
1032 unsigned long time_left; in ath10k_htc_connect_service() local
1088 time_left = wait_for_completion_timeout(&htc->ctl_resp, in ath10k_htc_connect_service()
1090 if (!time_left) { in ath10k_htc_connect_service()
H A Ddebug.c399 unsigned long timeout, time_left; in ath10k_debug_fw_stats_request() local
420 time_left = in ath10k_debug_fw_stats_request()
423 if (!time_left) in ath10k_debug_fw_stats_request()
1493 unsigned long time_left; in ath10k_debug_tpc_stats_request() local
1505 time_left = wait_for_completion_timeout(&ar->debug.tpc_complete, in ath10k_debug_tpc_stats_request()
1507 if (time_left == 0) in ath10k_debug_tpc_stats_request()
2295 unsigned long time_left; in ath10k_debug_tpc_stats_final_request() local
2307 time_left = wait_for_completion_timeout(&ar->debug.tpc_complete, in ath10k_debug_tpc_stats_final_request()
2309 if (time_left == 0) in ath10k_debug_tpc_stats_final_request()
H A Dmac.c314 unsigned long time_left; in ath10k_install_key() local
327 time_left = wait_for_completion_timeout(&ar->install_key_done, 3 * HZ); in ath10k_install_key()
328 if (time_left == 0) in ath10k_install_key()
718 unsigned long time_left; in ath10k_wait_for_peer_delete_done() local
728 time_left = wait_for_completion_timeout(&ar->peer_delete_done, in ath10k_wait_for_peer_delete_done()
730 if (!time_left) in ath10k_wait_for_peer_delete_done()
855 unsigned long time_left; in ath10k_peer_delete() local
857 time_left = wait_for_completion_timeout in ath10k_peer_delete()
860 if (!time_left) { in ath10k_peer_delete()
1019 unsigned long time_left; in ath10k_vdev_setup_sync() local
[all …]
H A Dcore.c2572 long time_left; in ath10k_core_recovery_check_work() local
2591 time_left = wait_for_completion_timeout(&ar->driver_recovery, in ath10k_core_recovery_check_work()
2593 if (time_left) { in ath10k_core_recovery_check_work()
3391 unsigned long time_left; in ath10k_wait_for_suspend() local
3401 time_left = wait_for_completion_timeout(&ar->target_suspend, 1 * HZ); in ath10k_wait_for_suspend()
3403 if (!time_left) { in ath10k_wait_for_suspend()
H A Dwmi.c1774 unsigned long time_left, i; in ath10k_wmi_wait_for_service_ready() local
1776 time_left = wait_for_completion_timeout(&ar->wmi.service_ready, in ath10k_wmi_wait_for_service_ready()
1778 if (!time_left) { in ath10k_wmi_wait_for_service_ready()
1790 time_left = wait_for_completion_timeout(&ar->wmi.service_ready, in ath10k_wmi_wait_for_service_ready()
1792 if (!time_left) { in ath10k_wmi_wait_for_service_ready()
1805 unsigned long time_left; in ath10k_wmi_wait_for_unified_ready() local
1807 time_left = wait_for_completion_timeout(&ar->wmi.unified_ready, in ath10k_wmi_wait_for_unified_ready()
1809 if (!time_left) in ath10k_wmi_wait_for_unified_ready()
4038 int ret, time_left; in ath10k_radar_confirmation_work() local
4052 time_left = wait_for_completion_timeout(&ar->wmi.radar_confirm, in ath10k_radar_confirmation_work()
[all …]
/src/sys/contrib/dev/athk/ath12k/
H A Dhtc.c489 unsigned long time_left; in ath12k_htc_wait_target() local
495 time_left = wait_for_completion_timeout(&htc->ctl_resp, in ath12k_htc_wait_target()
497 if (!time_left) { in ath12k_htc_wait_target()
503 time_left = in ath12k_htc_wait_target()
507 if (!time_left) in ath12k_htc_wait_target()
564 unsigned long time_left; in ath12k_htc_connect_service() local
622 time_left = wait_for_completion_timeout(&htc->ctl_resp, in ath12k_htc_connect_service()
624 if (!time_left) { in ath12k_htc_connect_service()
H A Dpeer.c216 unsigned long time_left; in ath12k_wait_for_peer_delete_done() local
224 time_left = wait_for_completion_timeout(&ar->peer_delete_done, in ath12k_wait_for_peer_delete_done()
226 if (time_left == 0) { in ath12k_wait_for_peer_delete_done()
H A Dcore.c808 long time_left; in ath12k_core_reset() local
837 time_left = wait_for_completion_timeout(&ab->reset_complete, in ath12k_core_reset()
839 if (time_left) { in ath12k_core_reset()
865 time_left = wait_for_completion_timeout(&ab->recovery_start, in ath12k_core_reset()
H A Dmac.c985 unsigned long time_left; in ath12k_mac_monitor_vdev_delete() local
1001 time_left = wait_for_completion_timeout(&ar->vdev_delete_done, in ath12k_mac_monitor_vdev_delete()
1003 if (time_left == 0) { in ath12k_mac_monitor_vdev_delete()
5574 unsigned long time_left; in ath12k_mac_op_remove_interface() local
5598 time_left = wait_for_completion_timeout(&ar->vdev_delete_done, in ath12k_mac_op_remove_interface()
5600 if (time_left == 0) { in ath12k_mac_op_remove_interface()
6368 long time_left; in ath12k_mac_op_flush() local
6373 time_left = wait_event_timeout(ar->dp.tx_empty_waitq, in ath12k_mac_op_flush()
6376 if (time_left == 0) in ath12k_mac_op_flush()
6377 ath12k_warn(ar->ab, "failed to flush transmit queue %ld\n", time_left); in ath12k_mac_op_flush()
[all …]
H A Dwmi.c3602 unsigned long time_left; in ath12k_wmi_wait_for_service_ready() local
3604 time_left = wait_for_completion_timeout(&ab->wmi_ab.service_ready, in ath12k_wmi_wait_for_service_ready()
3606 if (!time_left) in ath12k_wmi_wait_for_service_ready()
3614 unsigned long time_left; in ath12k_wmi_wait_for_unified_ready() local
3616 time_left = wait_for_completion_timeout(&ab->wmi_ab.unified_ready, in ath12k_wmi_wait_for_unified_ready()
3618 if (!time_left) in ath12k_wmi_wait_for_unified_ready()
/src/sys/contrib/dev/athk/ath11k/
H A Dhtc.c528 unsigned long time_left; in ath11k_htc_wait_target() local
534 time_left = wait_for_completion_timeout(&htc->ctl_resp, in ath11k_htc_wait_target()
536 if (!time_left) { in ath11k_htc_wait_target()
542 time_left = in ath11k_htc_wait_target()
546 if (!time_left) in ath11k_htc_wait_target()
609 unsigned long time_left; in ath11k_htc_connect_service() local
672 time_left = wait_for_completion_timeout(&htc->ctl_resp, in ath11k_htc_connect_service()
674 if (!time_left) { in ath11k_htc_connect_service()
H A Dthermal.c69 unsigned long time_left; in ath11k_thermal_show_temp() local
91 time_left = wait_for_completion_timeout(&ar->thermal.wmi_sync, in ath11k_thermal_show_temp()
93 if (!time_left) { in ath11k_thermal_show_temp()
H A Dcore.c1243 long time_left; in ath11k_core_resume_default() local
1246 time_left = wait_for_completion_timeout(&ab->restart_completed, in ath11k_core_resume_default()
1248 if (time_left == 0) { in ath11k_core_resume_default()
2041 unsigned long time_left; in ath11k_core_pdev_suspend_target() local
2062 time_left = wait_for_completion_timeout(&ab->htc_suspend, 3 * HZ); in ath11k_core_pdev_suspend_target()
2064 if (!time_left) { in ath11k_core_pdev_suspend_target()
2484 long time_left; in ath11k_core_reset() local
2513 time_left = wait_for_completion_timeout(&ab->reset_complete, in ath11k_core_reset()
2516 if (time_left) { in ath11k_core_reset()
2542 time_left = wait_for_completion_timeout(&ab->recovery_start, in ath11k_core_reset()
H A Dpeer.c275 unsigned long time_left; in ath11k_wait_for_peer_delete_done() local
283 time_left = wait_for_completion_timeout(&ar->peer_delete_done, in ath11k_wait_for_peer_delete_done()
285 if (time_left == 0) { in ath11k_wait_for_peer_delete_done()
H A Dqmi.c2916 long time_left; in ath11k_qmi_fwreset_from_cold_boot() local
2924 time_left = wait_event_timeout(ab->qmi.cold_boot_waitq, in ath11k_qmi_fwreset_from_cold_boot()
2928 if (time_left <= 0) { in ath11k_qmi_fwreset_from_cold_boot()
2943 long time_left; in ath11k_qmi_process_coldboot_calibration() local
2954 time_left = wait_event_timeout(ab->qmi.cold_boot_waitq, in ath11k_qmi_process_coldboot_calibration()
2957 if (time_left <= 0) { in ath11k_qmi_process_coldboot_calibration()
H A Dmac.c1114 unsigned long time_left; in ath11k_mac_monitor_vdev_delete() local
1130 time_left = wait_for_completion_timeout(&ar->vdev_delete_done, in ath11k_mac_monitor_vdev_delete()
1132 if (time_left == 0) { in ath11k_mac_monitor_vdev_delete()
6711 unsigned long time_left; in ath11k_mac_vdev_delete() local
6726 time_left = wait_for_completion_timeout(&ar->vdev_delete_done, in ath11k_mac_vdev_delete()
6728 if (time_left == 0) { in ath11k_mac_vdev_delete()
8292 long time_left; in ath11k_mac_flush_tx_complete() local
8295 time_left = wait_event_timeout(ar->dp.tx_empty_waitq, in ath11k_mac_flush_tx_complete()
8298 if (time_left == 0) { in ath11k_mac_flush_tx_complete()
8304 time_left = wait_event_timeout(ar->txmgmt_empty_waitq, in ath11k_mac_flush_tx_complete()
[all …]
/src/crypto/openssl/crypto/cmp/
H A Dcmp_client.c149 int time_left; in send_receive_check() local
170 time_left = (int)(ctx->end_time - now); in send_receive_check()
171 if (ctx->msg_timeout == 0 || time_left < ctx->msg_timeout) in send_receive_check()
172 ctx->msg_timeout = time_left; in send_receive_check()
344 int64_t time_left = (int64_t)(ctx->end_time - exp - time(NULL)); in poll_for_response() local
346 if (time_left <= 0) { in poll_for_response()
350 if (time_left < check_after) in poll_for_response()
351 check_after = time_left; in poll_for_response()
/src/sys/dev/ixl/
H A Di40e_nvm.c92 u64 time_left = 0; in i40e_acquire_nvm() local
100 0, &time_left, NULL); in i40e_acquire_nvm()
105 hw->nvm.hw_semaphore_timeout = I40E_MS_TO_GTIME(time_left) + gtime; in i40e_acquire_nvm()
110 access, (unsigned long long)time_left, ret_code, in i40e_acquire_nvm()
113 if (ret_code && time_left) { in i40e_acquire_nvm()
116 while ((gtime < timeout) && time_left) { in i40e_acquire_nvm()
121 access, 0, &time_left, in i40e_acquire_nvm()
125 I40E_MS_TO_GTIME(time_left) + gtime; in i40e_acquire_nvm()
133 (unsigned long long)time_left, ret_code, in i40e_acquire_nvm()
/src/sys/contrib/dev/broadcom/brcm80211/brcmfmac/
H A Dfwil_types.h940 __le32 time_left; member
/src/sys/dev/ice/
H A Dice_common.c2206 u32 time_left = timeout; in ice_acquire_res() local
2211 status = ice_aq_req_res(hw, res, access, 0, &time_left, NULL); in ice_acquire_res()
2225 timeout = time_left; in ice_acquire_res()
2226 while (status && timeout && time_left) { in ice_acquire_res()
2229 status = ice_aq_req_res(hw, res, access, 0, &time_left, NULL); in ice_acquire_res()
/src/sbin/dhclient/
H A Ddhclient.c1140 struct timespec time_left = in dhcpoffer() local
1142 if (timespeccmp(&time_left, &arp_timeout_needed, <)) { in dhcpoffer()
1145 timespecadd(&time_now, &time_left, &stop_time); in dhcpoffer()
/src/sys/contrib/dev/rtw89/
H A Dcore.c1294 unsigned long time_left; in rtw89_core_tx_kick_off_and_wait() local
1300 time_left = wait_for_completion_timeout(&wait->completion, in rtw89_core_tx_kick_off_and_wait()
1303 if (time_left == 0) { in rtw89_core_tx_kick_off_and_wait()
5590 unsigned long time_left; in rtw89_wait_for_cond_eval() local
5605 time_left = wait_for_completion_timeout(&prep->completion, in rtw89_wait_for_cond_eval()
5607 if (time_left == 0) { in rtw89_wait_for_cond_eval()

12