Home
last modified time | relevance | path

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

/freebsd/sys/contrib/openzfs/module/os/linux/spl/
H A Dspl-condvar.c219 clock_t time_left; in __cv_timedwait_common() local
227 time_left = expire_time - jiffies; in __cv_timedwait_common()
228 if (time_left <= 0) in __cv_timedwait_common()
248 time_left = io_schedule_timeout(time_left); in __cv_timedwait_common()
250 time_left = schedule_timeout(time_left); in __cv_timedwait_common()
270 return (time_left > 0 ? 1 : -1); in __cv_timedwait_common()
324 hrtime_t time_left; in __cv_timedwait_hires() local
334 time_left = expire_time - gethrtime(); in __cv_timedwait_hires()
335 if (time_left <= 0) in __cv_timedwait_hires()
355 ktime_left = ktime_set(0, time_left); in __cv_timedwait_hires()
/freebsd/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()
/freebsd/sys/contrib/dev/athk/ath10k/
H A Dthermal.c67 unsigned long time_left; in ath10k_thermal_show_temp() local
89 time_left = wait_for_completion_timeout(&ar->thermal.wmi_sync, in ath10k_thermal_show_temp()
91 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.c917 unsigned long time_left; in ath10k_htc_wait_target() local
921 time_left = wait_for_completion_timeout(&htc->ctl_resp, in ath10k_htc_wait_target()
923 if (!time_left) { in ath10k_htc_wait_target()
935 time_left = in ath10k_htc_wait_target()
939 if (!time_left) in ath10k_htc_wait_target()
1028 unsigned long time_left; in ath10k_htc_connect_service() local
1084 time_left = wait_for_completion_timeout(&htc->ctl_resp, in ath10k_htc_connect_service()
1086 if (!time_left) { in ath10k_htc_connect_service()
H A Ddebug.c396 unsigned long timeout, time_left; in ath10k_debug_fw_stats_request() local
417 time_left = in ath10k_debug_fw_stats_request()
420 if (!time_left) in ath10k_debug_fw_stats_request()
1490 unsigned long time_left; in ath10k_debug_tpc_stats_request() local
1502 time_left = wait_for_completion_timeout(&ar->debug.tpc_complete, in ath10k_debug_tpc_stats_request()
1504 if (time_left == 0) in ath10k_debug_tpc_stats_request()
2311 unsigned long time_left; in ath10k_debug_tpc_stats_final_request() local
2323 time_left = wait_for_completion_timeout(&ar->debug.tpc_complete, in ath10k_debug_tpc_stats_final_request()
2325 if (time_left == 0) in ath10k_debug_tpc_stats_final_request()
H A Dmac.c305 unsigned long time_left; in ath10k_install_key() local
318 time_left = wait_for_completion_timeout(&ar->install_key_done, 3 * HZ); in ath10k_install_key()
319 if (time_left == 0) in ath10k_install_key()
709 unsigned long time_left; in ath10k_wait_for_peer_delete_done() local
719 time_left = wait_for_completion_timeout(&ar->peer_delete_done, in ath10k_wait_for_peer_delete_done()
721 if (!time_left) in ath10k_wait_for_peer_delete_done()
853 unsigned long time_left; in ath10k_peer_delete() local
855 time_left = wait_for_completion_timeout in ath10k_peer_delete()
858 if (!time_left) { in ath10k_peer_delete()
1017 unsigned long time_left; in ath10k_vdev_setup_sync() local
[all …]
H A Dwmi.c1772 unsigned long time_left; in ath10k_wmi_wait_for_service_ready() local
1774 time_left = wait_for_completion_timeout(&ar->wmi.service_ready, in ath10k_wmi_wait_for_service_ready()
1776 if (!time_left) in ath10k_wmi_wait_for_service_ready()
1783 unsigned long time_left; in ath10k_wmi_wait_for_unified_ready() local
1785 time_left = wait_for_completion_timeout(&ar->wmi.unified_ready, in ath10k_wmi_wait_for_unified_ready()
1787 if (!time_left) in ath10k_wmi_wait_for_unified_ready()
4009 int ret, time_left; in ath10k_radar_confirmation_work() local
4023 time_left = wait_for_completion_timeout(&ar->wmi.radar_confirm, in ath10k_radar_confirmation_work()
4025 if (time_left) { in ath10k_radar_confirmation_work()
9162 int time_left; in ath10k_wmi_barrier() local
[all …]
H A Dcore.c3327 unsigned long time_left; in ath10k_wait_for_suspend() local
3337 time_left = wait_for_completion_timeout(&ar->target_suspend, 1 * HZ); in ath10k_wait_for_suspend()
3339 if (!time_left) { in ath10k_wait_for_suspend()
/freebsd/sys/contrib/dev/athk/ath11k/
H A Dthermal.c68 unsigned long time_left; in ath11k_thermal_show_temp() local
90 time_left = wait_for_completion_timeout(&ar->thermal.wmi_sync, in ath11k_thermal_show_temp()
92 if (!time_left) { in ath11k_thermal_show_temp()
H A Dhtc.c527 unsigned long time_left; in ath11k_htc_wait_target() local
533 time_left = wait_for_completion_timeout(&htc->ctl_resp, in ath11k_htc_wait_target()
535 if (!time_left) { in ath11k_htc_wait_target()
541 time_left = in ath11k_htc_wait_target()
545 if (!time_left) in ath11k_htc_wait_target()
608 unsigned long time_left; in ath11k_htc_connect_service() local
671 time_left = wait_for_completion_timeout(&htc->ctl_resp, in ath11k_htc_connect_service()
673 if (!time_left) { in ath11k_htc_connect_service()
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 Dcore.c1941 long time_left; in ath11k_core_reset() local
1970 time_left = wait_for_completion_timeout(&ab->reset_complete, in ath11k_core_reset()
1973 if (time_left) { in ath11k_core_reset()
1998 time_left = wait_for_completion_timeout(&ab->recovery_start, in ath11k_core_reset()
H A Ddebugfs.c170 unsigned long timeout, time_left; in ath11k_debugfs_fw_stats_request() local
194 time_left = wait_for_completion_timeout(&ar->fw_stats_complete, 1 * HZ); in ath11k_debugfs_fw_stats_request()
196 if (!time_left) in ath11k_debugfs_fw_stats_request()
H A Dmac.c1116 unsigned long time_left; in ath11k_mac_monitor_vdev_delete() local
1132 time_left = wait_for_completion_timeout(&ar->vdev_delete_done, in ath11k_mac_monitor_vdev_delete()
1134 if (time_left == 0) { in ath11k_mac_monitor_vdev_delete()
6685 unsigned long time_left; in ath11k_mac_vdev_delete() local
6700 time_left = wait_for_completion_timeout(&ar->vdev_delete_done, in ath11k_mac_vdev_delete()
6702 if (time_left == 0) { in ath11k_mac_vdev_delete()
7835 long time_left; in ath11k_mac_flush_tx_complete() local
7838 time_left = wait_event_timeout(ar->dp.tx_empty_waitq, in ath11k_mac_flush_tx_complete()
7841 if (time_left == 0) { in ath11k_mac_flush_tx_complete()
7847 time_left = wait_event_timeout(ar->txmgmt_empty_waitq, in ath11k_mac_flush_tx_complete()
[all …]
H A Dwmi.c4469 unsigned long time_left; in ath11k_wmi_wait_for_service_ready() local
4471 time_left = wait_for_completion_timeout(&ab->wmi_ab.service_ready, in ath11k_wmi_wait_for_service_ready()
4473 if (!time_left) in ath11k_wmi_wait_for_service_ready()
4481 unsigned long time_left; in ath11k_wmi_wait_for_unified_ready() local
4483 time_left = wait_for_completion_timeout(&ab->wmi_ab.unified_ready, in ath11k_wmi_wait_for_unified_ready()
4485 if (!time_left) in ath11k_wmi_wait_for_unified_ready()
/freebsd/crypto/openssl/crypto/cmp/
H A Dcmp_client.c135 int time_left; in send_receive_check() local
154 time_left = (int)(ctx->end_time - now); in send_receive_check()
155 if (ctx->msg_timeout == 0 || time_left < ctx->msg_timeout) in send_receive_check()
156 ctx->msg_timeout = time_left; in send_receive_check()
315 int64_t time_left = (int64_t)(ctx->end_time - exp - time(NULL)); in poll_for_response() local
317 if (time_left <= 0) { in poll_for_response()
321 if (time_left < check_after) in poll_for_response()
322 check_after = time_left; in poll_for_response()
/freebsd/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()
/freebsd/sys/contrib/dev/rtw89/
H A Dcore.c985 unsigned long time_left; in rtw89_core_tx_kick_off_and_wait() local
998 time_left = wait_for_completion_timeout(&wait->completion, in rtw89_core_tx_kick_off_and_wait()
1000 if (time_left == 0) in rtw89_core_tx_kick_off_and_wait()
4126 unsigned long time_left; in rtw89_wait_for_cond() local
4133 time_left = wait_for_completion_timeout(cmpl, RTW89_WAIT_FOR_COND_TIMEOUT); in rtw89_wait_for_cond()
4134 if (time_left == 0) { in rtw89_wait_for_cond()
/freebsd/sys/dev/ice/
H A Dice_common.c2197 u32 time_left = timeout; in ice_get_num_per_func()
2202 status = ice_aq_req_res(hw, res, access, 0, &time_left, NULL); in ice_get_num_per_func()
2216 timeout = time_left; in ice_print_led_caps()
2217 while (status && timeout && time_left) { in ice_print_led_caps()
2220 status = ice_aq_req_res(hw, res, access, 0, &time_left, NULL); in ice_print_led_caps()
1998 u32 time_left = timeout; ice_acquire_res() local
/freebsd/sbin/dhclient/
H A Ddhclient.c1137 struct timespec time_left; in dhcpoffer() local
1138 timespecsub(&stop_selecting, &time_now, &time_left); in dhcpoffer()
1140 if (timespeccmp(&time_left, &arp_timeout_needed, <)) { in dhcpoffer()