Home
last modified time | relevance | path

Searched refs:countdown (Results 1 – 8 of 8) sorted by relevance

/drivers/net/ethernet/intel/igb/
De1000_mbx.c137 int countdown = mbx->timeout; in igb_poll_for_msg() local
139 if (!countdown || !mbx->ops.check_for_msg) in igb_poll_for_msg()
142 while (countdown && mbx->ops.check_for_msg(hw, mbx_id)) { in igb_poll_for_msg()
143 countdown--; in igb_poll_for_msg()
144 if (!countdown) in igb_poll_for_msg()
150 if (!countdown) in igb_poll_for_msg()
153 return countdown ? 0 : -E1000_ERR_MBX; in igb_poll_for_msg()
166 int countdown = mbx->timeout; in igb_poll_for_ack() local
168 if (!countdown || !mbx->ops.check_for_ack) in igb_poll_for_ack()
171 while (countdown && mbx->ops.check_for_ack(hw, mbx_id)) { in igb_poll_for_ack()
[all …]
/drivers/net/ethernet/intel/ixgbevf/
Dmbx.c16 int countdown = mbx->timeout; in ixgbevf_poll_for_msg() local
18 while (countdown && mbx->ops.check_for_msg(hw)) { in ixgbevf_poll_for_msg()
19 countdown--; in ixgbevf_poll_for_msg()
24 if (!countdown) in ixgbevf_poll_for_msg()
27 return countdown ? 0 : IXGBE_ERR_MBX; in ixgbevf_poll_for_msg()
39 int countdown = mbx->timeout; in ixgbevf_poll_for_ack() local
41 while (countdown && mbx->ops.check_for_ack(hw)) { in ixgbevf_poll_for_ack()
42 countdown--; in ixgbevf_poll_for_ack()
47 if (!countdown) in ixgbevf_poll_for_ack()
50 return countdown ? 0 : IXGBE_ERR_MBX; in ixgbevf_poll_for_ack()
/drivers/net/ethernet/intel/igbvf/
Dmbx.c15 int countdown = mbx->timeout; in e1000_poll_for_msg() local
20 while (countdown && mbx->ops.check_for_msg(hw)) { in e1000_poll_for_msg()
21 countdown--; in e1000_poll_for_msg()
26 if (!countdown) in e1000_poll_for_msg()
29 return countdown ? E1000_SUCCESS : -E1000_ERR_MBX; in e1000_poll_for_msg()
41 int countdown = mbx->timeout; in e1000_poll_for_ack() local
46 while (countdown && mbx->ops.check_for_ack(hw)) { in e1000_poll_for_ack()
47 countdown--; in e1000_poll_for_ack()
52 if (!countdown) in e1000_poll_for_ack()
55 return countdown ? E1000_SUCCESS : -E1000_ERR_MBX; in e1000_poll_for_ack()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_mbx.c115 int countdown = mbx->timeout; in ixgbe_poll_for_msg() local
117 if (!countdown || !mbx->ops) in ixgbe_poll_for_msg()
121 countdown--; in ixgbe_poll_for_msg()
122 if (!countdown) in ixgbe_poll_for_msg()
140 int countdown = mbx->timeout; in ixgbe_poll_for_ack() local
142 if (!countdown || !mbx->ops) in ixgbe_poll_for_ack()
146 countdown--; in ixgbe_poll_for_ack()
147 if (!countdown) in ixgbe_poll_for_ack()
/drivers/net/wireless/broadcom/brcm80211/include/
Dbrcmu_utils.h17 uint countdown = (us) + 9; \
18 while ((exp) && (countdown >= 10)) {\
20 countdown -= 10; \
/drivers/gpu/drm/amd/amdgpu/
Ddf_v3_6.c175 int countdown = ARM_RETRY_USEC_TIMEOUT; in df_v3_6_perfmon_arm_with_retry() local
177 while (countdown) { in df_v3_6_perfmon_arm_with_retry()
183 countdown -= ARM_RETRY_USEC_INTERVAL; in df_v3_6_perfmon_arm_with_retry()
187 return countdown > 0 ? 0 : -ETIME; in df_v3_6_perfmon_arm_with_retry()
/drivers/net/ethernet/intel/fm10k/
Dfm10k_mbx.c742 u32 countdown = mbx->timeout; in fm10k_mbx_enqueue_tx() local
757 while (err && countdown) { in fm10k_mbx_enqueue_tx()
758 countdown--; in fm10k_mbx_enqueue_tx()
/drivers/net/ethernet/dlink/
Dsundance.c450 int countdown; in sundance_reset() local
455 countdown = 10 + 1; in sundance_reset()
457 if (--countdown == 0) { in sundance_reset()