Searched refs:dur (Results 1 - 32 of 32) sorted by relevance

/linux-4.4.14/drivers/net/wireless/ath/ath9k/
H A Ddfs.c185 static u32 dur_to_usecs(struct ath_hw *ah, u32 dur) dur_to_usecs() argument
192 nsecs = dur * AR93X_NSECS_PER_DUR_FAST; dur_to_usecs()
194 nsecs = dur * AR93X_NSECS_PER_DUR; dur_to_usecs()
207 u16 dur; ath9k_postprocess_radar_event() local
218 dur = ard->pulse_length_pri; ath9k_postprocess_radar_event()
228 dur = ard->pulse_length_ext; ath9k_postprocess_radar_event()
245 dur = ard->pulse_length_ext; ath9k_postprocess_radar_event()
247 dur = ard->pulse_length_pri; ath9k_postprocess_radar_event()
268 pe->width = dur_to_usecs(sc->sc_ah, dur); ath9k_postprocess_radar_event()
H A Ddynack.c133 ack_ts, st_ts->tstamp, st_ts->dur, ath_dynack_compute_to()
136 if (ack_ts > st_ts->tstamp + st_ts->dur) { ath_dynack_compute_to()
137 ackto = ack_ts - st_ts->tstamp - st_ts->dur; ath_dynack_compute_to()
205 da->st_rbf.ts[da->st_rbf.t_rb].dur = ts->duration; ath_dynack_sample_tx_ts()
222 da->st_rbf.ts[da->st_rbf.t_rb].dur -= sifs; ath_dynack_sample_tx_ts()
225 ath_dbg(common, DYNACK, "{%pM} tx sample %u [dur %u][h %u-t %u]\n", ath_dynack_sample_tx_ts()
227 da->st_rbf.ts[da->st_rbf.t_rb].dur, da->st_rbf.h_rb, ath_dynack_sample_tx_ts()
H A Ddynack.h38 u32 dur; member in struct:ts_info
/linux-4.4.14/drivers/net/wireless/ath/
H A Ddfs_pri_detector.h28 * @dur: duration of sequence in usecs
33 * @deadline_ts: deadline when this sequence becomes invalid (first_ts + dur)
38 u32 dur; member in struct:pri_sequence
H A Ddfs_pri_detector.c251 ps.dur = ps.pri * (pde->rs->ppb - 1) pseq_handler_create_sequences()
256 min_valid_ts = ts - ps.dur; pseq_handler_create_sequences()
285 ps.deadline_ts = ps.first_ts + ps.dur; pseq_handler_create_sequences()
/linux-4.4.14/tools/testing/selftests/rcutorture/bin/
H A Dkvm.sh37 dur=30
118 dur=$2
296 -v dur=$dur \
335 print "kvm-test-1-run.sh " CONFIGDIR cf[j], builddir, rd cfr[jn], dur " \"" TORTURE_QEMU_ARG "\" \"" TORTURE_BOOTARGS "\" > " rd cfr[jn] "/kvm-test-1-run.sh.out 2>&1 &"
/linux-4.4.14/drivers/input/misc/
H A Dbma150.c242 u8 enable, u8 hyst, u8 dur, u8 thres) bma150_set_low_g_interrupt()
252 error = bma150_write_byte(bma150->client, BMA150_LOW_G_DUR_REG, dur); bma150_set_low_g_interrupt()
266 u8 enable, u8 hyst, u8 dur, u8 thres) bma150_set_high_g_interrupt()
277 BMA150_HIGH_G_DUR_REG, dur); bma150_set_high_g_interrupt()
293 u8 enable, u8 dur, u8 thres) bma150_set_any_motion_interrupt()
297 error = bma150_set_reg_bits(bma150->client, dur, bma150_set_any_motion_interrupt()
241 bma150_set_low_g_interrupt(struct bma150_data *bma150, u8 enable, u8 hyst, u8 dur, u8 thres) bma150_set_low_g_interrupt() argument
265 bma150_set_high_g_interrupt(struct bma150_data *bma150, u8 enable, u8 hyst, u8 dur, u8 thres) bma150_set_high_g_interrupt() argument
292 bma150_set_any_motion_interrupt(struct bma150_data *bma150, u8 enable, u8 dur, u8 thres) bma150_set_any_motion_interrupt() argument
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/
H A Dampdu.c39 /* max dur of tx ampdu (in msec) */
116 * dur: max duration of an ampdu (in msec)
137 u8 dur; member in struct:ampdu_info
152 static void brcms_c_scb_ampdu_update_max_txlen(struct ampdu_info *ampdu, u8 dur) brcms_c_scb_ampdu_update_max_txlen() argument
157 /* rate is in Kbps; dur is in msec ==> len = (rate * dur) / 8 */ brcms_c_scb_ampdu_update_max_txlen()
160 ampdu->max_txlen[mcs][0][0] = (rate * dur) >> 3; brcms_c_scb_ampdu_update_max_txlen()
163 ampdu->max_txlen[mcs][1][0] = (rate * dur) >> 3; brcms_c_scb_ampdu_update_max_txlen()
166 ampdu->max_txlen[mcs][0][1] = (rate * dur) >> 3; brcms_c_scb_ampdu_update_max_txlen()
169 ampdu->max_txlen[mcs][1][1] = (rate * dur) >> 3; brcms_c_scb_ampdu_update_max_txlen()
248 ampdu->dur = AMPDU_MAX_DUR; brcms_c_ampdu_attach()
267 brcms_c_scb_ampdu_update_max_txlen(ampdu, ampdu->dur); brcms_c_ampdu_attach()
779 /* update RTS dur fields */ brcms_c_ampdu_finalize()
H A Dmain.c617 uint nsyms, dur = 0, Ndps, kNdps; brcms_c_calc_frame_time() local
630 dur = PREN_PREAMBLE + (tot_streams * PREN_PREAMBLE_EXT); brcms_c_calc_frame_time()
632 dur += PREN_MM_EXT; brcms_c_calc_frame_time()
648 dur += APHY_SYMBOL_TIME * nsyms; brcms_c_calc_frame_time()
650 dur += DOT11_OFDM_SIGNAL_EXTENSION; brcms_c_calc_frame_time()
652 dur = APHY_PREAMBLE_TIME; brcms_c_calc_frame_time()
653 dur += APHY_SIGNAL_TIME; brcms_c_calc_frame_time()
660 dur += APHY_SYMBOL_TIME * nsyms; brcms_c_calc_frame_time()
662 dur += DOT11_OFDM_SIGNAL_EXTENSION; brcms_c_calc_frame_time()
670 dur = (mac_len + rate - 1) / rate; brcms_c_calc_frame_time()
672 dur += BPHY_PLCP_SHORT_TIME; brcms_c_calc_frame_time()
674 dur += BPHY_PLCP_TIME; brcms_c_calc_frame_time()
676 return dur; brcms_c_calc_frame_time()
5736 uint dur = 0; brcms_c_calc_ack_time() local
5744 /* ACK frame len == 14 == 2(fc) + 2(dur) + 6(ra) + 4(fcs) */ brcms_c_calc_ack_time()
5745 dur = brcms_c_calc_ack_time()
5748 return dur; brcms_c_calc_ack_time()
5788 u16 dur, sifs; brcms_c_compute_frame_dur() local
5792 dur = sifs; brcms_c_compute_frame_dur()
5793 dur += (u16) brcms_c_calc_ack_time(wlc, rate, preamble_type); brcms_c_compute_frame_dur()
5797 dur *= 2; brcms_c_compute_frame_dur()
5799 dur += sifs; brcms_c_compute_frame_dur()
5800 dur += brcms_c_compute_frame_dur()
5804 return dur; brcms_c_compute_frame_dur()
5810 u8 preamble_type, uint dur) brcms_c_calc_frame_len()
5818 dur -= PREN_PREAMBLE + (tot_streams * PREN_PREAMBLE_EXT); brcms_c_calc_frame_len()
5821 dur -= DOT11_OFDM_SIGNAL_EXTENSION; brcms_c_calc_frame_len()
5825 nsyms = dur / APHY_SYMBOL_TIME; brcms_c_calc_frame_len()
5830 dur -= APHY_PREAMBLE_TIME; brcms_c_calc_frame_len()
5831 dur -= APHY_SIGNAL_TIME; brcms_c_calc_frame_len()
5834 nsyms = dur / APHY_SYMBOL_TIME; brcms_c_calc_frame_len()
5840 dur -= BPHY_PLCP_SHORT_TIME; brcms_c_calc_frame_len()
5842 dur -= BPHY_PLCP_TIME; brcms_c_calc_frame_len()
5843 mac_len = dur * rate; brcms_c_calc_frame_len()
6132 u16 dur, sifs; brcms_c_compute_rtscts_dur() local
6138 dur = 3 * sifs; brcms_c_compute_rtscts_dur()
6139 dur += brcms_c_compute_rtscts_dur()
6144 dur = 2 * sifs; brcms_c_compute_rtscts_dur()
6147 dur += brcms_c_compute_rtscts_dur()
6151 dur += brcms_c_compute_rtscts_dur()
6155 dur += brcms_c_compute_rtscts_dur()
6158 return dur; brcms_c_compute_rtscts_dur()
6770 uint frag_dur, dur, dur_fallback; brcms_c_d11hdrs_mac80211() local
6780 dur = brcms_c_d11hdrs_mac80211()
6787 dur += le16_to_cpu(rts->duration); brcms_c_d11hdrs_mac80211()
6791 dur = frag_dur; brcms_c_d11hdrs_mac80211()
6795 dur = frag_dur; brcms_c_d11hdrs_mac80211()
6796 dur += brcms_c_d11hdrs_mac80211()
6809 txh->TxFesTimeNormal = cpu_to_le16((u16) dur); brcms_c_d11hdrs_mac80211()
6821 if (wlc->edcf_txop[ac] >= (dur - frag_dur)) { brcms_c_d11hdrs_mac80211()
6828 (dur - frag_dur))); brcms_c_d11hdrs_mac80211()
6849 if (dur > wlc->edcf_txop[ac]) brcms_c_d11hdrs_mac80211()
6851 "wl%d: %s: %s txop exceeded phylen %d/%d dur %d/%d\n", brcms_c_d11hdrs_mac80211()
6855 dur, wlc->edcf_txop[ac]); brcms_c_d11hdrs_mac80211()
7259 u16 dur, sifs; brcms_c_mod_prb_rsp_rate_table() local
7285 dur = (u16) brcms_c_calc_frame_time(wlc, rate, brcms_c_mod_prb_rsp_rate_table()
7287 dur += sifs; brcms_c_mod_prb_rsp_rate_table()
7294 brcms_b_write_shm(wlc->hw, entry_ptr + M_RT_PRS_DUR_POS, dur); brcms_c_mod_prb_rsp_rate_table()
5809 brcms_c_calc_frame_len(struct brcms_c_info *wlc, u32 ratespec, u8 preamble_type, uint dur) brcms_c_calc_frame_len() argument
/linux-4.4.14/net/mac80211/
H A Dutil.c66 int dur; ieee80211_frame_duration() local
94 dur = 16; /* SIFS + signal ext */ ieee80211_frame_duration()
95 dur += 16; /* IEEE 802.11-2012 18.3.2.4: T_PREAMBLE = 16 usec */ ieee80211_frame_duration()
96 dur += 4; /* IEEE 802.11-2012 18.3.2.4: T_SIGNAL = 4 usec */ ieee80211_frame_duration()
102 dur *= 1 << shift; ieee80211_frame_duration()
107 dur += 4 * DIV_ROUND_UP((16 + 8 * (len + 4) + 6) * 10, ieee80211_frame_duration()
120 dur = 10; /* aSIFSTime = 10 usec */ ieee80211_frame_duration()
121 dur += short_preamble ? (72 + 24) : (144 + 48); ieee80211_frame_duration()
123 dur += DIV_ROUND_UP(8 * (len + 4) * 10, rate); ieee80211_frame_duration()
126 return dur; ieee80211_frame_duration()
137 u16 dur; ieee80211_generic_frame_duration() local
150 dur = ieee80211_frame_duration(band, frame_len, rate->bitrate, erp, ieee80211_generic_frame_duration()
153 return cpu_to_le16(dur); ieee80211_generic_frame_duration()
166 u16 dur; ieee80211_rts_duration() local
187 dur = ieee80211_frame_duration(sband->band, 10, bitrate, ieee80211_rts_duration()
190 dur += ieee80211_frame_duration(sband->band, frame_len, bitrate, ieee80211_rts_duration()
193 dur += ieee80211_frame_duration(sband->band, 10, bitrate, ieee80211_rts_duration()
196 return cpu_to_le16(dur); ieee80211_rts_duration()
210 u16 dur; ieee80211_ctstoself_duration() local
230 dur = ieee80211_frame_duration(sband->band, frame_len, bitrate, ieee80211_ctstoself_duration()
234 dur += ieee80211_frame_duration(sband->band, 10, bitrate, ieee80211_ctstoself_duration()
238 return cpu_to_le16(dur); ieee80211_ctstoself_duration()
H A Doffchannel.c235 u32 dur = dep->duration; ieee80211_hw_roc_start() local
236 dep->duration = dur - roc->duration; ieee80211_hw_roc_start()
237 roc->duration = dur; ieee80211_hw_roc_start()
H A Dtx.c54 int rate, mrate, erp, dur, i, shift = 0; ieee80211_duration() local
183 dur = 0; ieee80211_duration()
188 dur = ieee80211_frame_duration(sband->band, 10, rate, erp, ieee80211_duration()
195 dur *= 2; /* ACK + SIFS */ ieee80211_duration()
197 dur += ieee80211_frame_duration(sband->band, next_frag_len, ieee80211_duration()
203 return cpu_to_le16(dur); ieee80211_duration()
H A Diface.c1744 + 2 + 2 + 2 + 2 /* ctl, dur, seq, qos */ ieee80211_if_add()
/linux-4.4.14/drivers/staging/wlan-ng/
H A Dp80211hdr.h152 u16 dur; member in struct:p80211_hdr_a3
161 u16 dur; member in struct:p80211_hdr_a4
H A Dp80211conv.c228 p80211_hdr->a3.dur = 0; skb_ether_to_p80211()
/linux-4.4.14/drivers/net/wireless/
H A Dadm8211.c1563 static void adm8211_calc_durations(int *dur, int *plcp, size_t payload_len, int len, adm8211_calc_durations() argument
1582 *dur = (80 * (24 + payload_len) + plcp_signal - 1) adm8211_calc_durations()
1587 *dur += 3 * (IEEE80211_DUR_DS_SIFS + adm8211_calc_durations()
1593 *dur += 3 * (IEEE80211_DUR_DS_SIFS + adm8211_calc_durations()
1600 *dur += 3 * (IEEE80211_DUR_DS_LONG_PREAMBLE - adm8211_calc_durations()
1669 int plcp, dur, len, plcp_signal, short_preamble; adm8211_tx() local
1696 adm8211_calc_durations(&dur, &plcp, payload_len, adm8211_tx()
1700 txhdr->dur_frag_head = cpu_to_le16(dur); adm8211_tx()
1701 txhdr->dur_frag_tail = cpu_to_le16(dur); adm8211_tx()
/linux-4.4.14/drivers/net/wireless/ath/ath5k/
H A Dpcu.c118 int dur; ath5k_hw_get_frame_duration() local
126 dur = le16_to_cpu(raw_dur); ath5k_hw_get_frame_duration()
128 dur -= 96; ath5k_hw_get_frame_duration()
130 return dur; ath5k_hw_get_frame_duration()
165 dur = sifs + preamble + (sym_time * symbols); ath5k_hw_get_frame_duration()
167 return dur; ath5k_hw_get_frame_duration()
/linux-4.4.14/drivers/staging/vt6655/
H A Drxtx.c521 __le16 dur = cpu_to_le16(pDevice->current_aid | BIT(14) | BIT(15)); s_uFillDataHead() local
523 buf->duration_a = dur; s_uFillDataHead()
524 buf->duration_b = dur; s_uFillDataHead()
592 __le16 dur = cpu_to_le16(pDevice->current_aid | BIT(14) | BIT(15)); s_uFillDataHead() local
594 buf->duration = dur; s_uFillDataHead()
614 __le16 dur = cpu_to_le16(pDevice->current_aid | BIT(14) | BIT(15)); s_uFillDataHead() local
616 buf->duration = dur; s_uFillDataHead()
/linux-4.4.14/drivers/staging/vt6656/
H A Drxtx.c284 __le16 dur = cpu_to_le16(priv->current_aid | BIT(14) | BIT(15)); vnt_rxtx_datahead_g() local
286 buf->duration_a = dur; vnt_rxtx_datahead_g()
287 buf->duration_b = dur; vnt_rxtx_datahead_g()
377 __le16 dur = cpu_to_le16(priv->current_aid | BIT(14) | BIT(15)); vnt_rxtx_datahead_ab() local
379 buf->duration = dur; vnt_rxtx_datahead_ab()
/linux-4.4.14/drivers/staging/rtl8712/
H A Dwifi.h266 #define SetDuration(pbuf, dur) ({ \
268 cpu_to_le16(0xffff & (dur)); \
/linux-4.4.14/drivers/char/tpm/
H A Dtpm_tis.c417 unsigned long dur; tpm_tis_send_main() local
431 dur = tpm2_calc_ordinal_duration(chip, ordinal); tpm_tis_send_main()
433 dur = tpm_calc_ordinal_duration(chip, ordinal); tpm_tis_send_main()
436 (chip, TPM_STS_DATA_AVAIL | TPM_STS_VALID, dur, tpm_tis_send_main()
/linux-4.4.14/drivers/net/wireless/ath/ath6kl/
H A Dwmi.c508 u32 dur; ath6kl_wmi_remain_on_chnl_event_rx() local
518 dur = le32_to_cpu(ev->duration); ath6kl_wmi_remain_on_chnl_event_rx()
519 ath6kl_dbg(ATH6KL_DBG_WMI, "remain_on_chnl: freq=%u dur=%u\n", ath6kl_wmi_remain_on_chnl_event_rx()
520 freq, dur); ath6kl_wmi_remain_on_chnl_event_rx()
530 dur, GFP_ATOMIC); ath6kl_wmi_remain_on_chnl_event_rx()
541 u32 dur; ath6kl_wmi_cancel_remain_on_chnl_event_rx() local
551 dur = le32_to_cpu(ev->duration); ath6kl_wmi_cancel_remain_on_chnl_event_rx()
553 "cancel_remain_on_chnl: freq=%u dur=%u status=%u\n", ath6kl_wmi_cancel_remain_on_chnl_event_rx()
554 freq, dur, ev->status); ath6kl_wmi_cancel_remain_on_chnl_event_rx()
3611 int ath6kl_wmi_remain_on_chnl_cmd(struct wmi *wmi, u8 if_idx, u32 freq, u32 dur) ath6kl_wmi_remain_on_chnl_cmd() argument
3620 ath6kl_dbg(ATH6KL_DBG_WMI, "remain_on_chnl_cmd: freq=%u dur=%u\n", ath6kl_wmi_remain_on_chnl_cmd()
3621 freq, dur); ath6kl_wmi_remain_on_chnl_cmd()
3624 p->duration = cpu_to_le32(dur); ath6kl_wmi_remain_on_chnl_cmd()
H A Dwmi.h2701 u32 dur);
/linux-4.4.14/drivers/staging/rtl8188eu/include/
H A Dwifi.h244 #define SetDuration(pbuf, dur) \
245 *(__le16 *)((size_t)(pbuf) + 2) = cpu_to_le16(0xffff & (dur))
/linux-4.4.14/drivers/staging/lustre/lnet/selftest/
H A Dconrpc.c479 long dur; lstcon_rpc_trans_interpreter() local
505 dur = (long)cfs_time_sub(crpc->crp_stamp, lstcon_rpc_trans_interpreter()
507 jiffies_to_timeval(dur, &tv); lstcon_rpc_trans_interpreter()
/linux-4.4.14/drivers/net/wireless/b43legacy/
H A Dmain.c1053 __le16 dur; b43legacy_write_probe_resp_plcp() local
1057 dur = ieee80211_generic_frame_duration(dev->wl->hw, b43legacy_write_probe_resp_plcp()
1069 le16_to_cpu(dur)); b43legacy_write_probe_resp_plcp()
1085 __le16 dur; b43legacy_generate_probe_resp() local
1123 dur = ieee80211_generic_frame_duration(dev->wl->hw, b43legacy_generate_probe_resp()
1128 hdr->duration_id = dur; b43legacy_generate_probe_resp()
/linux-4.4.14/drivers/net/wireless/hostap/
H A Dhostap_80211_tx.c45 printk(" dur=0x%04x seq=0x%04x\n", le16_to_cpu(hdr->duration_id), hostap_dump_tx_80211()
H A Dhostap_main.c535 printk(KERN_DEBUG " FC=0x%04x (type=%d:%d) dur=0x%04x seq=0x%04x " hostap_dump_rx_header()
563 printk(KERN_DEBUG " FC=0x%04x (type=%d:%d) dur=0x%04x seq=0x%04x " hostap_dump_tx_header()
H A Dhostap_80211_rx.c48 printk(" dur=0x%04x seq=0x%04x\n", le16_to_cpu(hdr->duration_id), hostap_dump_rx_80211()
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
H A Dmac80211.c2242 u32 dur = (11 * vif->bss_conf.beacon_int) / 10; iwl_mvm_bss_info_changed_station() local
2243 iwl_mvm_protect_session(mvm, vif, dur, dur, iwl_mvm_bss_info_changed_station()
2244 5 * dur, false); iwl_mvm_bss_info_changed_station()
/linux-4.4.14/scripts/
H A Danalyze_suspend.py854 '[ +!]*(?P<dur>[0-9\.]*) .*\| (?P<msg>.*)'
1096 m_param3 = m.group('dur')
1336 m_param3 = m.group('dur')
/linux-4.4.14/drivers/scsi/
H A Dsg.c2643 seq_printf(s, " dur=%d", hp->duration); sg_proc_debug_helper()

Completed in 1241 milliseconds