Home
last modified time | relevance | path

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

12

/linux-3.4.99/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 aphy) in b43_plcp_get_bitrate_idx_ofdm() argument
87 switch (plcp->raw[0] & 0xF) { in b43_plcp_get_bitrate_idx_ofdm()
148 void b43_generate_plcp_hdr(struct b43_plcp_hdr4 *plcp, in b43_generate_plcp_hdr() argument
151 __u8 *raw = plcp->raw; in b43_generate_plcp_hdr()
159 plcp->data = cpu_to_le32(d); in b43_generate_plcp_hdr()
173 plcp->data |= cpu_to_le32(plen << 16); in b43_generate_plcp_hdr()
346 b43_generate_plcp_hdr((struct b43_plcp_hdr4 *)(&txhdr->format_598.plcp), in b43_generate_txhdr()
350 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
349 void b43_generate_plcp_hdr(struct b43_plcp_hdr4 *plcp,
/linux-3.4.99/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()
Dd11.h730 #define BRCMS_GET_CCK_PLCP_LEN(plcp) (plcp[4] + (plcp[5] << 8)) argument
731 #define BRCMS_GET_MIMO_PLCP_LEN(plcp) (plcp[1] + (plcp[2] << 8)) argument
732 #define BRCMS_SET_MIMO_PLCP_LEN(plcp, len) \ argument
734 plcp[1] = len & 0xff; \
735 plcp[2] = ((len >> 8) & 0xff); \
738 #define BRCMS_SET_MIMO_PLCP_AMPDU(plcp) (plcp[3] |= MIMO_PLCP_AMPDU) argument
739 #define BRCMS_CLR_MIMO_PLCP_AMPDU(plcp) (plcp[3] &= ~MIMO_PLCP_AMPDU) argument
740 #define BRCMS_IS_MIMO_PLCP_AMPDU(plcp) (plcp[3] & MIMO_PLCP_AMPDU) argument
Dampdu.c519 u8 *plcp; in brcms_c_sendampdu() local
593 plcp = (u8 *) (txh + 1); in brcms_c_sendampdu()
594 h = (struct ieee80211_hdr *)(plcp + D11_PHY_HDR_LEN); in brcms_c_sendampdu()
671 plcp0 = plcp[0]; in brcms_c_sendampdu()
672 plcp3 = plcp[3]; in brcms_c_sendampdu()
693 rspec |= plcp[0] & ~MIMO_PLCP_40MHZ; in brcms_c_sendampdu()
694 if (plcp[0] & MIMO_PLCP_40MHZ) in brcms_c_sendampdu()
792 plcp = (u8 *) (txh + 1); in brcms_c_sendampdu()
794 BRCMS_SET_MIMO_PLCP_LEN(plcp, ampdu_len); in brcms_c_sendampdu()
796 BRCMS_SET_MIMO_PLCP_AMPDU(plcp); in brcms_c_sendampdu()
[all …]
Drate.h155 static inline bool plcp3_issgi(u8 plcp) in plcp3_issgi() argument
157 return (plcp & (RSPEC_SHORT_GI >> 16)) != 0; in plcp3_issgi()
228 extern u32 brcms_c_compute_rspec(struct d11rxhdr *rxh, u8 *plcp);
Dmain.c6417 uint length, u8 *plcp) in brcms_c_cck_plcp_set() argument
6452 plcp[0] = rate_500 * 5; /* r (500kbps) * 5 == r (100kbps) */ in brcms_c_cck_plcp_set()
6454 plcp[1] = (u8) (le | D11B_PLCP_SIGNAL_LOCKED); in brcms_c_cck_plcp_set()
6456 plcp[2] = usec & 0xff; in brcms_c_cck_plcp_set()
6457 plcp[3] = (usec >> 8) & 0xff; in brcms_c_cck_plcp_set()
6459 plcp[4] = 0; in brcms_c_cck_plcp_set()
6460 plcp[5] = 0; in brcms_c_cck_plcp_set()
6464 static void brcms_c_compute_mimo_plcp(u32 rspec, uint length, u8 *plcp) in brcms_c_compute_mimo_plcp() argument
6467 plcp[0] = mcs; in brcms_c_compute_mimo_plcp()
6469 plcp[0] |= MIMO_PLCP_40MHZ; in brcms_c_compute_mimo_plcp()
[all …]
/linux-3.4.99/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()
269 (&txhdr->plcp), plcp_fragment_len, in generate_txhdr_fw3()
449 struct b43legacy_plcp_hdr6 *plcp; in b43legacy_rx() local
482 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()
1062 tmp = le32_to_cpu(plcp.data); in b43legacy_write_probe_resp_plcp()
/linux-3.4.99/drivers/net/wireless/rt2x00/
Drt2x00dev.c566 (rate->plcp == signal)) || in rt2x00lib_rxdone_read_signal()
720 .plcp = 0x00,
727 .plcp = 0x01,
734 .plcp = 0x02,
741 .plcp = 0x03,
748 .plcp = 0x0b,
755 .plcp = 0x0f,
762 .plcp = 0x0a,
769 .plcp = 0x0e,
776 .plcp = 0x09,
[all …]
Drt2x00queue.c257 txdesc->u.plcp.ifs = IFS_BACKOFF; in rt2x00queue_create_tx_descriptor_plcp()
259 txdesc->u.plcp.ifs = IFS_SIFS; in rt2x00queue_create_tx_descriptor_plcp()
269 txdesc->u.plcp.signal = hwrate->plcp; in rt2x00queue_create_tx_descriptor_plcp()
270 txdesc->u.plcp.service = 0x04; in rt2x00queue_create_tx_descriptor_plcp()
273 txdesc->u.plcp.length_high = (data_length >> 6) & 0x3f; in rt2x00queue_create_tx_descriptor_plcp()
274 txdesc->u.plcp.length_low = data_length & 0x3f; in rt2x00queue_create_tx_descriptor_plcp()
289 txdesc->u.plcp.service |= 0x80; in rt2x00queue_create_tx_descriptor_plcp()
292 txdesc->u.plcp.length_high = (duration >> 8) & 0xff; in rt2x00queue_create_tx_descriptor_plcp()
293 txdesc->u.plcp.length_low = duration & 0xff; in rt2x00queue_create_tx_descriptor_plcp()
300 txdesc->u.plcp.signal |= 0x08; in rt2x00queue_create_tx_descriptor_plcp()
Drt2x00lib.h50 unsigned short plcp; member
Drt2x00queue.h316 } plcp; member
Drt2400pci.c1124 rt2x00_set_field32(&word, TXD_W3_PLCP_SIGNAL, txdesc->u.plcp.signal); in rt2400pci_write_tx_desc()
1127 rt2x00_set_field32(&word, TXD_W3_PLCP_SERVICE, txdesc->u.plcp.service); in rt2400pci_write_tx_desc()
1134 txdesc->u.plcp.length_low); in rt2400pci_write_tx_desc()
1138 txdesc->u.plcp.length_high); in rt2400pci_write_tx_desc()
1159 rt2x00_set_field32(&word, TXD_W0_IFS, txdesc->u.plcp.ifs); in rt2400pci_write_tx_desc()
Drt2500usb.c1103 rt2x00_set_field32(&word, TXD_W0_IFS, txdesc->u.plcp.ifs); in rt2500usb_write_tx_desc()
1117 rt2x00_set_field32(&word, TXD_W2_PLCP_SIGNAL, txdesc->u.plcp.signal); in rt2500usb_write_tx_desc()
1118 rt2x00_set_field32(&word, TXD_W2_PLCP_SERVICE, txdesc->u.plcp.service); in rt2500usb_write_tx_desc()
1120 txdesc->u.plcp.length_low); in rt2500usb_write_tx_desc()
1122 txdesc->u.plcp.length_high); in rt2500usb_write_tx_desc()
Drt2500pci.c1280 rt2x00_set_field32(&word, TXD_W3_PLCP_SIGNAL, txdesc->u.plcp.signal); in rt2500pci_write_tx_desc()
1281 rt2x00_set_field32(&word, TXD_W3_PLCP_SERVICE, txdesc->u.plcp.service); in rt2500pci_write_tx_desc()
1283 txdesc->u.plcp.length_low); in rt2500pci_write_tx_desc()
1285 txdesc->u.plcp.length_high); in rt2500pci_write_tx_desc()
1310 rt2x00_set_field32(&word, TXD_W0_IFS, txdesc->u.plcp.ifs); in rt2500pci_write_tx_desc()
Drt73usb.c1477 rt2x00_set_field32(&word, TXD_W0_IFS, txdesc->u.plcp.ifs); in rt73usb_write_tx_desc()
1502 rt2x00_set_field32(&word, TXD_W2_PLCP_SIGNAL, txdesc->u.plcp.signal); in rt73usb_write_tx_desc()
1503 rt2x00_set_field32(&word, TXD_W2_PLCP_SERVICE, txdesc->u.plcp.service); in rt73usb_write_tx_desc()
1505 txdesc->u.plcp.length_low); in rt73usb_write_tx_desc()
1507 txdesc->u.plcp.length_high); in rt73usb_write_tx_desc()
Drt61pci.c1890 rt2x00_set_field32(&word, TXD_W2_PLCP_SIGNAL, txdesc->u.plcp.signal); in rt61pci_write_tx_desc()
1891 rt2x00_set_field32(&word, TXD_W2_PLCP_SERVICE, txdesc->u.plcp.service); in rt61pci_write_tx_desc()
1893 txdesc->u.plcp.length_low); in rt61pci_write_tx_desc()
1895 txdesc->u.plcp.length_high); in rt61pci_write_tx_desc()
1940 rt2x00_set_field32(&word, TXD_W0_IFS, txdesc->u.plcp.ifs); in rt61pci_write_tx_desc()
/linux-3.4.99/drivers/net/wireless/ath/carl9170/
Drx.c365 switch (head->plcp[0]) { in carl9170_rx_mac_status()
381 "rate (%x).\n", head->plcp[0]); in carl9170_rx_mac_status()
390 switch (head->plcp[0] & 0xf) { in carl9170_rx_mac_status()
418 "rate (%x).\n", head->plcp[0]); in carl9170_rx_mac_status()
428 if (head->plcp[3] & 0x80) in carl9170_rx_mac_status()
430 if (head->plcp[6] & 0x80) in carl9170_rx_mac_status()
433 status->rate_idx = clamp(0, 75, head->plcp[3] & 0x7f); in carl9170_rx_mac_status()
Dtx.c1460 unsigned int plcp, power, chains; in carl9170_update_beacon() local
1523 carl9170_tx_rate_tpc_chains(ar, txinfo, rate, &plcp, &power, &chains); in carl9170_update_beacon()
1525 if (plcp <= AR9170_TX_PHY_RATE_CCK_11M) in carl9170_update_beacon()
1526 plcp |= ((skb->len + FCS_LEN) << (3 + 16)) + 0x0400; in carl9170_update_beacon()
1528 plcp |= ((skb->len + FCS_LEN) << 16) + 0x0010; in carl9170_update_beacon()
1532 plcp |= AR9170_MAC_BCN_HT2_SGI; in carl9170_update_beacon()
1536 plcp |= AR9170_MAC_BCN_HT2_BW40; in carl9170_update_beacon()
1540 plcp |= AR9170_MAC_BCN_HT2_BW40; in carl9170_update_beacon()
1543 SET_VAL(AR9170_MAC_BCN_HT2_LEN, plcp, skb->len + FCS_LEN); in carl9170_update_beacon()
1555 carl9170_async_regwrite(AR9170_MAC_REG_BCN_PLCP, plcp); in carl9170_update_beacon()
[all …]
Dwlan.h339 u8 plcp[12]; member
/linux-3.4.99/drivers/net/wireless/
Dadm8211.c1564 static void adm8211_calc_durations(int *dur, int *plcp, size_t payload_len, int len, in adm8211_calc_durations() argument
1607 *plcp = (80 * len) / plcp_signal; in adm8211_calc_durations()
1611 *plcp = (*plcp | 0x8000) + 1; in adm8211_calc_durations()
1613 (*plcp)++; in adm8211_calc_durations()
1668 int plcp, dur, len, plcp_signal, short_preamble; in adm8211_tx() local
1695 adm8211_calc_durations(&dur, &plcp, payload_len, in adm8211_tx()
1697 txhdr->plcp_frag_head_len = cpu_to_le16(plcp); in adm8211_tx()
1698 txhdr->plcp_frag_tail_len = cpu_to_le16(plcp); in adm8211_tx()
/linux-3.4.99/drivers/net/wireless/iwlegacy/
D3945.c201 il3945_hwrate_to_plcp_idx(u8 plcp) in il3945_hwrate_to_plcp_idx() argument
206 if (il3945_rates[idx].plcp == plcp) in il3945_hwrate_to_plcp_idx()
688 rate = il3945_rates[rate_idx].plcp; in il3945_hw_build_tx_cmd_rate()
1407 txpower.power[i].rate = il3945_rates[rate_idx].plcp; in il3945_send_tx_power()
1418 txpower.power[i].rate = il3945_rates[rate_idx].plcp; in il3945_send_tx_power()
2315 table[idx].rate_n_flags = cpu_to_le16(il3945_rates[i].plcp); in il3945_init_hw_rate_table()
/linux-3.4.99/drivers/net/wireless/iwlwifi/
Diwl-agn-rs.h35 u8 plcp; /* uCode API: IWL_RATE_6M_PLCP, etc. */ member

12