Home
last modified time | relevance | path

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

12

/drivers/net/wireless/b43/
Dxmit.c67 static int b43_plcp_get_bitrate_idx_cck(struct b43_plcp_hdr6 *plcp) in b43_plcp_get_bitrate_idx_cck() argument
69 switch (plcp->raw[0]) { in b43_plcp_get_bitrate_idx_cck()
83 static int b43_plcp_get_bitrate_idx_ofdm(struct b43_plcp_hdr6 *plcp, bool ghz5) in b43_plcp_get_bitrate_idx_ofdm() argument
88 switch (plcp->raw[0] & 0xF) { in b43_plcp_get_bitrate_idx_ofdm()
149 void b43_generate_plcp_hdr(struct b43_plcp_hdr4 *plcp, in b43_generate_plcp_hdr() argument
152 __u8 *raw = plcp->raw; in b43_generate_plcp_hdr()
160 plcp->data = cpu_to_le32(d); in b43_generate_plcp_hdr()
174 plcp->data |= cpu_to_le32(plen << 16); in b43_generate_plcp_hdr()
348 b43_generate_plcp_hdr((struct b43_plcp_hdr4 *)(&txhdr->format_598.plcp), in b43_generate_txhdr()
352 b43_generate_plcp_hdr((struct b43_plcp_hdr4 *)(&txhdr->format_351.plcp), in b43_generate_txhdr()
[all …]
Dxmit.h63 struct b43_plcp_hdr6 plcp; /* Main PLCP header */ member
76 struct b43_plcp_hdr6 plcp; /* Main PLCP header */ member
87 struct b43_plcp_hdr6 plcp; /* Main PLCP header */ member
353 void b43_generate_plcp_hdr(struct b43_plcp_hdr4 *plcp,
/drivers/net/wireless/b43legacy/
Dxmit.c40 static u8 b43legacy_plcp_get_bitrate_idx_cck(struct b43legacy_plcp_hdr6 *plcp) in b43legacy_plcp_get_bitrate_idx_cck() argument
42 switch (plcp->raw[0]) { in b43legacy_plcp_get_bitrate_idx_cck()
57 static u8 b43legacy_plcp_get_bitrate_idx_ofdm(struct b43legacy_plcp_hdr6 *plcp, in b43legacy_plcp_get_bitrate_idx_ofdm() argument
62 switch (plcp->raw[0] & 0xF) { in b43legacy_plcp_get_bitrate_idx_ofdm()
124 void b43legacy_generate_plcp_hdr(struct b43legacy_plcp_hdr4 *plcp, in b43legacy_generate_plcp_hdr() argument
127 __le32 *data = &(plcp->data); in b43legacy_generate_plcp_hdr()
128 __u8 *raw = plcp->raw; in b43legacy_generate_plcp_hdr()
270 (&txhdr->plcp), plcp_fragment_len, in generate_txhdr_fw3()
436 struct b43legacy_plcp_hdr6 *plcp; in b43legacy_rx() local
469 plcp = (struct b43legacy_plcp_hdr6 *)(skb->data + padding); in b43legacy_rx()
[all …]
Dxmit.h41 struct b43legacy_plcp_hdr6 plcp; member
194 void b43legacy_generate_plcp_hdr(struct b43legacy_plcp_hdr4 *plcp,
Dmain.c927 struct b43legacy_plcp_hdr4 plcp; in b43legacy_write_template_common() local
929 plcp.data = 0; in b43legacy_write_template_common()
930 b43legacy_generate_plcp_hdr(&plcp, size + FCS_LEN, rate); in b43legacy_write_template_common()
931 b43legacy_ram_write(dev, ram_offset, le32_to_cpu(plcp.data)); in b43legacy_write_template_common()
1051 struct b43legacy_plcp_hdr4 plcp; in b43legacy_write_probe_resp_plcp() local
1055 plcp.data = 0; in b43legacy_write_probe_resp_plcp()
1056 b43legacy_generate_plcp_hdr(&plcp, size + FCS_LEN, rate->hw_value); in b43legacy_write_probe_resp_plcp()
1063 tmp = le32_to_cpu(plcp.data); in b43legacy_write_probe_resp_plcp()
/drivers/net/wireless/brcm80211/brcmsmac/
Drate.c343 u32 brcms_c_compute_rspec(struct d11rxhdr *rxh, u8 *plcp) in brcms_c_compute_rspec() argument
357 ((struct cck_phy_hdr *) plcp)->signal); in brcms_c_compute_rspec()
362 ((struct ofdm_phy_hdr *) plcp)->rlpt[0]); in brcms_c_compute_rspec()
365 rspec = (plcp[0] & MIMO_PLCP_MCS_MASK) | RSPEC_MIMORATE; in brcms_c_compute_rspec()
366 if (plcp[0] & MIMO_PLCP_40MHZ) { in brcms_c_compute_rspec()
378 if (plcp3_issgi(plcp[3])) in brcms_c_compute_rspec()
383 ((struct ofdm_phy_hdr *) plcp)->rlpt[0]); in brcms_c_compute_rspec()
386 ((struct cck_phy_hdr *) plcp)->signal); in brcms_c_compute_rspec()
Dampdu.c529 u8 *plcp; in brcms_c_ampdu_add_frame() local
536 plcp = (u8 *)(txh + 1); in brcms_c_ampdu_add_frame()
587 plcp0 = plcp[0]; in brcms_c_ampdu_add_frame()
588 plcp3 = plcp[3]; in brcms_c_ampdu_add_frame()
635 u8 *plcp; in brcms_c_ampdu_finalize() local
686 plcp = (u8 *)(txh + 1); in brcms_c_ampdu_finalize()
708 plcp0 = plcp[0]; in brcms_c_ampdu_finalize()
709 plcp3 = plcp[3]; in brcms_c_ampdu_finalize()
727 rspec |= plcp[0] & ~MIMO_PLCP_40MHZ; in brcms_c_ampdu_finalize()
728 if (plcp[0] & MIMO_PLCP_40MHZ) in brcms_c_ampdu_finalize()
[all …]
Dd11.h731 #define BRCMS_GET_CCK_PLCP_LEN(plcp) (plcp[4] + (plcp[5] << 8)) argument
732 #define BRCMS_GET_MIMO_PLCP_LEN(plcp) (plcp[1] + (plcp[2] << 8)) argument
733 #define BRCMS_SET_MIMO_PLCP_LEN(plcp, len) \ argument
735 plcp[1] = len & 0xff; \
736 plcp[2] = ((len >> 8) & 0xff); \
739 #define BRCMS_SET_MIMO_PLCP_AMPDU(plcp) (plcp[3] |= MIMO_PLCP_AMPDU) argument
740 #define BRCMS_CLR_MIMO_PLCP_AMPDU(plcp) (plcp[3] &= ~MIMO_PLCP_AMPDU) argument
741 #define BRCMS_IS_MIMO_PLCP_AMPDU(plcp) (plcp[3] & MIMO_PLCP_AMPDU) argument
Drate.h155 static inline bool plcp3_issgi(u8 plcp) in plcp3_issgi() argument
157 return (plcp & (RSPEC_SHORT_GI >> 16)) != 0; in plcp3_issgi()
227 u32 brcms_c_compute_rspec(struct d11rxhdr *rxh, u8 *plcp);
Dmain.c6012 uint length, u8 *plcp) in brcms_c_cck_plcp_set() argument
6047 plcp[0] = rate_500 * 5; /* r (500kbps) * 5 == r (100kbps) */ in brcms_c_cck_plcp_set()
6049 plcp[1] = (u8) (le | D11B_PLCP_SIGNAL_LOCKED); in brcms_c_cck_plcp_set()
6051 plcp[2] = usec & 0xff; in brcms_c_cck_plcp_set()
6052 plcp[3] = (usec >> 8) & 0xff; in brcms_c_cck_plcp_set()
6054 plcp[4] = 0; in brcms_c_cck_plcp_set()
6055 plcp[5] = 0; in brcms_c_cck_plcp_set()
6059 static void brcms_c_compute_mimo_plcp(u32 rspec, uint length, u8 *plcp) in brcms_c_compute_mimo_plcp() argument
6062 plcp[0] = mcs; in brcms_c_compute_mimo_plcp()
6064 plcp[0] |= MIMO_PLCP_40MHZ; in brcms_c_compute_mimo_plcp()
[all …]
/drivers/net/wireless/rt2x00/
Drt2x00dev.c660 (rate->plcp == signal)) || in rt2x00lib_rxdone_read_signal()
827 .plcp = 0x00,
834 .plcp = 0x01,
841 .plcp = 0x02,
848 .plcp = 0x03,
855 .plcp = 0x0b,
862 .plcp = 0x0f,
869 .plcp = 0x0a,
876 .plcp = 0x0e,
883 .plcp = 0x09,
[all …]
Drt2x00queue.c252 txdesc->u.plcp.ifs = IFS_BACKOFF; in rt2x00queue_create_tx_descriptor_plcp()
254 txdesc->u.plcp.ifs = IFS_SIFS; in rt2x00queue_create_tx_descriptor_plcp()
264 txdesc->u.plcp.signal = hwrate->plcp; in rt2x00queue_create_tx_descriptor_plcp()
265 txdesc->u.plcp.service = 0x04; in rt2x00queue_create_tx_descriptor_plcp()
268 txdesc->u.plcp.length_high = (data_length >> 6) & 0x3f; in rt2x00queue_create_tx_descriptor_plcp()
269 txdesc->u.plcp.length_low = data_length & 0x3f; in rt2x00queue_create_tx_descriptor_plcp()
284 txdesc->u.plcp.service |= 0x80; in rt2x00queue_create_tx_descriptor_plcp()
287 txdesc->u.plcp.length_high = (duration >> 8) & 0xff; in rt2x00queue_create_tx_descriptor_plcp()
288 txdesc->u.plcp.length_low = duration & 0xff; in rt2x00queue_create_tx_descriptor_plcp()
295 txdesc->u.plcp.signal |= 0x08; in rt2x00queue_create_tx_descriptor_plcp()
Drt2500usb.c1096 rt2x00_set_field32(&word, TXD_W0_IFS, txdesc->u.plcp.ifs); in rt2500usb_write_tx_desc()
1110 rt2x00_set_field32(&word, TXD_W2_PLCP_SIGNAL, txdesc->u.plcp.signal); in rt2500usb_write_tx_desc()
1111 rt2x00_set_field32(&word, TXD_W2_PLCP_SERVICE, txdesc->u.plcp.service); in rt2500usb_write_tx_desc()
1113 txdesc->u.plcp.length_low); in rt2500usb_write_tx_desc()
1115 txdesc->u.plcp.length_high); in rt2500usb_write_tx_desc()
Drt2400pci.c1121 rt2x00_set_field32(&word, TXD_W3_PLCP_SIGNAL, txdesc->u.plcp.signal); in rt2400pci_write_tx_desc()
1124 rt2x00_set_field32(&word, TXD_W3_PLCP_SERVICE, txdesc->u.plcp.service); in rt2400pci_write_tx_desc()
1131 txdesc->u.plcp.length_low); in rt2400pci_write_tx_desc()
1135 txdesc->u.plcp.length_high); in rt2400pci_write_tx_desc()
1156 rt2x00_set_field32(&word, TXD_W0_IFS, txdesc->u.plcp.ifs); in rt2400pci_write_tx_desc()
Drt2x00lib.h48 unsigned short plcp; member
Drt2x00queue.h314 } plcp; member
Drt2500pci.c1276 rt2x00_set_field32(&word, TXD_W3_PLCP_SIGNAL, txdesc->u.plcp.signal); in rt2500pci_write_tx_desc()
1277 rt2x00_set_field32(&word, TXD_W3_PLCP_SERVICE, txdesc->u.plcp.service); in rt2500pci_write_tx_desc()
1279 txdesc->u.plcp.length_low); in rt2500pci_write_tx_desc()
1281 txdesc->u.plcp.length_high); in rt2500pci_write_tx_desc()
1306 rt2x00_set_field32(&word, TXD_W0_IFS, txdesc->u.plcp.ifs); in rt2500pci_write_tx_desc()
Drt73usb.c1472 rt2x00_set_field32(&word, TXD_W0_IFS, txdesc->u.plcp.ifs); in rt73usb_write_tx_desc()
1497 rt2x00_set_field32(&word, TXD_W2_PLCP_SIGNAL, txdesc->u.plcp.signal); in rt73usb_write_tx_desc()
1498 rt2x00_set_field32(&word, TXD_W2_PLCP_SERVICE, txdesc->u.plcp.service); in rt73usb_write_tx_desc()
1500 txdesc->u.plcp.length_low); in rt73usb_write_tx_desc()
1502 txdesc->u.plcp.length_high); in rt73usb_write_tx_desc()
/drivers/net/wireless/ath/carl9170/
Drx.c362 switch (head->plcp[0]) { in carl9170_rx_mac_status()
378 "rate (%x).\n", head->plcp[0]); in carl9170_rx_mac_status()
387 switch (head->plcp[0] & 0xf) { in carl9170_rx_mac_status()
415 "rate (%x).\n", head->plcp[0]); in carl9170_rx_mac_status()
425 if (head->plcp[3] & 0x80) in carl9170_rx_mac_status()
427 if (head->plcp[6] & 0x80) in carl9170_rx_mac_status()
430 status->rate_idx = clamp(0, 75, head->plcp[3] & 0x7f); in carl9170_rx_mac_status()
Dtx.c1565 u32 *ht1, u32 *plcp) in carl9170_tx_beacon_physet() argument
1575 carl9170_tx_rate_tpc_chains(ar, txinfo, rate, plcp, &power, &chains); in carl9170_tx_beacon_physet()
1587 *plcp |= AR9170_MAC_BCN_HT2_SGI; in carl9170_tx_beacon_physet()
1591 *plcp |= AR9170_MAC_BCN_HT2_BW40; in carl9170_tx_beacon_physet()
1594 *plcp |= AR9170_MAC_BCN_HT2_BW40; in carl9170_tx_beacon_physet()
1597 SET_VAL(AR9170_MAC_BCN_HT2_LEN, *plcp, skb->len + FCS_LEN); in carl9170_tx_beacon_physet()
1599 if (*plcp <= AR9170_TX_PHY_RATE_CCK_11M) in carl9170_tx_beacon_physet()
1600 *plcp |= ((skb->len + FCS_LEN) << (3 + 16)) + 0x0400; in carl9170_tx_beacon_physet()
1602 *plcp |= ((skb->len + FCS_LEN) << 16) + 0x0010; in carl9170_tx_beacon_physet()
1613 u32 word, ht1, plcp, off, addr, len; in carl9170_update_beacon() local
[all …]
Dwlan.h339 u8 plcp[12]; member
/drivers/net/wireless/
Dadm8211.c1563 static void adm8211_calc_durations(int *dur, int *plcp, size_t payload_len, int len, in adm8211_calc_durations() argument
1606 *plcp = (80 * len) / plcp_signal; in adm8211_calc_durations()
1610 *plcp = (*plcp | 0x8000) + 1; in adm8211_calc_durations()
1612 (*plcp)++; in adm8211_calc_durations()
1669 int plcp, dur, len, plcp_signal, short_preamble; in adm8211_tx() local
1696 adm8211_calc_durations(&dur, &plcp, payload_len, in adm8211_tx()
1698 txhdr->plcp_frag_head_len = cpu_to_le16(plcp); in adm8211_tx()
1699 txhdr->plcp_frag_tail_len = cpu_to_le16(plcp); in adm8211_tx()
/drivers/net/wireless/iwlegacy/
D3945.c200 il3945_hwrate_to_plcp_idx(u8 plcp) in il3945_hwrate_to_plcp_idx() argument
205 if (il3945_rates[idx].plcp == plcp) in il3945_hwrate_to_plcp_idx()
712 rate = il3945_rates[rate_idx].plcp; in il3945_hw_build_tx_cmd_rate()
1432 txpower.power[i].rate = il3945_rates[rate_idx].plcp; in il3945_send_tx_power()
1443 txpower.power[i].rate = il3945_rates[rate_idx].plcp; in il3945_send_tx_power()
2340 table[idx].rate_n_flags = cpu_to_le16(il3945_rates[i].plcp); in il3945_init_hw_rate_table()
/drivers/net/wireless/iwlwifi/dvm/
Drs.h37 u8 plcp; /* uCode API: IWL_RATE_6M_PLCP, etc. */ member
/drivers/net/wireless/iwlwifi/mvm/
Drs.h39 u8 plcp; /* uCode API: IWL_RATE_6M_PLCP, etc. */ member

12