/linux-6.1.9/drivers/net/wireless/broadcom/b43/ |
D | xmit.c | 54 static int b43_plcp_get_bitrate_idx_cck(struct b43_plcp_hdr6 *plcp) in b43_plcp_get_bitrate_idx_cck() argument 56 switch (plcp->raw[0]) { in b43_plcp_get_bitrate_idx_cck() 70 static int b43_plcp_get_bitrate_idx_ofdm(struct b43_plcp_hdr6 *plcp, bool ghz5) in b43_plcp_get_bitrate_idx_ofdm() argument 75 switch (plcp->raw[0] & 0xF) { in b43_plcp_get_bitrate_idx_ofdm() 136 void b43_generate_plcp_hdr(struct b43_plcp_hdr4 *plcp, in b43_generate_plcp_hdr() argument 139 __u8 *raw = plcp->raw; in b43_generate_plcp_hdr() 147 plcp->data = cpu_to_le32(d); in b43_generate_plcp_hdr() 161 plcp->data |= cpu_to_le32(plen << 16); in b43_generate_plcp_hdr() 342 b43_generate_plcp_hdr((struct b43_plcp_hdr4 *)(&txhdr->format_598.plcp), in b43_generate_txhdr() 346 b43_generate_plcp_hdr((struct b43_plcp_hdr4 *)(&txhdr->format_351.plcp), in b43_generate_txhdr() [all …]
|
D | xmit.h | 64 struct b43_plcp_hdr6 plcp; /* Main PLCP header */ member 77 struct b43_plcp_hdr6 plcp; /* Main PLCP header */ member 88 struct b43_plcp_hdr6 plcp; /* Main PLCP header */ member 354 void b43_generate_plcp_hdr(struct b43_plcp_hdr4 *plcp,
|
/linux-6.1.9/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
D | rate.c | 343 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()
|
D | ampdu.c | 529 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() 724 rspec |= plcp[0] & ~MIMO_PLCP_40MHZ; in brcms_c_ampdu_finalize() 725 if (plcp[0] & MIMO_PLCP_40MHZ) in brcms_c_ampdu_finalize() 748 BRCMS_SET_MIMO_PLCP_LEN(plcp, session->ampdu_len); in brcms_c_ampdu_finalize() [all …]
|
D | d11.h | 731 #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
|
D | rate.h | 155 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);
|
D | main.c | 5953 uint length, u8 *plcp) in brcms_c_cck_plcp_set() argument 5988 plcp[0] = rate_500 * 5; /* r (500kbps) * 5 == r (100kbps) */ in brcms_c_cck_plcp_set() 5990 plcp[1] = (u8) (le | D11B_PLCP_SIGNAL_LOCKED); in brcms_c_cck_plcp_set() 5992 plcp[2] = usec & 0xff; in brcms_c_cck_plcp_set() 5993 plcp[3] = (usec >> 8) & 0xff; in brcms_c_cck_plcp_set() 5995 plcp[4] = 0; in brcms_c_cck_plcp_set() 5996 plcp[5] = 0; in brcms_c_cck_plcp_set() 6000 static void brcms_c_compute_mimo_plcp(u32 rspec, uint length, u8 *plcp) in brcms_c_compute_mimo_plcp() argument 6003 plcp[0] = mcs; in brcms_c_compute_mimo_plcp() 6005 plcp[0] |= MIMO_PLCP_40MHZ; in brcms_c_compute_mimo_plcp() [all …]
|
/linux-6.1.9/drivers/net/wireless/broadcom/b43legacy/ |
D | xmit.c | 27 static u8 b43legacy_plcp_get_bitrate_idx_cck(struct b43legacy_plcp_hdr6 *plcp) in b43legacy_plcp_get_bitrate_idx_cck() argument 29 switch (plcp->raw[0]) { in b43legacy_plcp_get_bitrate_idx_cck() 44 static u8 b43legacy_plcp_get_bitrate_idx_ofdm(struct b43legacy_plcp_hdr6 *plcp, in b43legacy_plcp_get_bitrate_idx_ofdm() argument 49 switch (plcp->raw[0] & 0xF) { in b43legacy_plcp_get_bitrate_idx_ofdm() 111 void b43legacy_generate_plcp_hdr(struct b43legacy_plcp_hdr4 *plcp, in b43legacy_generate_plcp_hdr() argument 114 __le32 *data = &(plcp->data); in b43legacy_generate_plcp_hdr() 115 __u8 *raw = plcp->raw; in b43legacy_generate_plcp_hdr() 257 (&txhdr->plcp), plcp_fragment_len, in generate_txhdr_fw3() 423 struct b43legacy_plcp_hdr6 *plcp; in b43legacy_rx() local 456 plcp = (struct b43legacy_plcp_hdr6 *)(skb->data + padding); in b43legacy_rx() [all …]
|
D | xmit.h | 42 struct b43legacy_plcp_hdr6 plcp; member 195 void b43legacy_generate_plcp_hdr(struct b43legacy_plcp_hdr4 *plcp,
|
D | main.c | 899 struct b43legacy_plcp_hdr4 plcp; in b43legacy_write_template_common() local 901 plcp.data = 0; in b43legacy_write_template_common() 902 b43legacy_generate_plcp_hdr(&plcp, size + FCS_LEN, rate); in b43legacy_write_template_common() 903 b43legacy_ram_write(dev, ram_offset, le32_to_cpu(plcp.data)); in b43legacy_write_template_common() 1023 struct b43legacy_plcp_hdr4 plcp; in b43legacy_write_probe_resp_plcp() local 1027 plcp.data = 0; in b43legacy_write_probe_resp_plcp() 1028 b43legacy_generate_plcp_hdr(&plcp, size + FCS_LEN, rate->hw_value); in b43legacy_write_probe_resp_plcp() 1035 tmp = le32_to_cpu(plcp.data); in b43legacy_write_probe_resp_plcp()
|
/linux-6.1.9/drivers/net/wireless/ralink/rt2x00/ |
D | rt2x00dev.c | 713 (rate->plcp == signal)) || in rt2x00lib_rxdone_read_signal() 883 .plcp = 0x00, 890 .plcp = 0x01, 897 .plcp = 0x02, 904 .plcp = 0x03, 911 .plcp = 0x0b, 918 .plcp = 0x0f, 925 .plcp = 0x0a, 932 .plcp = 0x0e, 939 .plcp = 0x09, [all …]
|
D | rt2x00queue.c | 244 txdesc->u.plcp.ifs = IFS_BACKOFF; in rt2x00queue_create_tx_descriptor_plcp() 246 txdesc->u.plcp.ifs = IFS_SIFS; in rt2x00queue_create_tx_descriptor_plcp() 256 txdesc->u.plcp.signal = hwrate->plcp; in rt2x00queue_create_tx_descriptor_plcp() 257 txdesc->u.plcp.service = 0x04; in rt2x00queue_create_tx_descriptor_plcp() 260 txdesc->u.plcp.length_high = (data_length >> 6) & 0x3f; in rt2x00queue_create_tx_descriptor_plcp() 261 txdesc->u.plcp.length_low = data_length & 0x3f; in rt2x00queue_create_tx_descriptor_plcp() 276 txdesc->u.plcp.service |= 0x80; in rt2x00queue_create_tx_descriptor_plcp() 279 txdesc->u.plcp.length_high = (duration >> 8) & 0xff; in rt2x00queue_create_tx_descriptor_plcp() 280 txdesc->u.plcp.length_low = duration & 0xff; in rt2x00queue_create_tx_descriptor_plcp() 287 txdesc->u.plcp.signal |= 0x08; in rt2x00queue_create_tx_descriptor_plcp()
|
D | rt2x00queue.h | 306 } plcp; member
|
D | rt2x00lib.h | 38 unsigned short plcp; member
|
D | rt2400pci.c | 1115 rt2x00_set_field32(&word, TXD_W3_PLCP_SIGNAL, txdesc->u.plcp.signal); in rt2400pci_write_tx_desc() 1118 rt2x00_set_field32(&word, TXD_W3_PLCP_SERVICE, txdesc->u.plcp.service); in rt2400pci_write_tx_desc() 1125 txdesc->u.plcp.length_low); in rt2400pci_write_tx_desc() 1129 txdesc->u.plcp.length_high); in rt2400pci_write_tx_desc() 1150 rt2x00_set_field32(&word, TXD_W0_IFS, txdesc->u.plcp.ifs); in rt2400pci_write_tx_desc()
|
D | rt2500usb.c | 1078 rt2x00_set_field32(&word, TXD_W0_IFS, txdesc->u.plcp.ifs); in rt2500usb_write_tx_desc() 1092 rt2x00_set_field32(&word, TXD_W2_PLCP_SIGNAL, txdesc->u.plcp.signal); in rt2500usb_write_tx_desc() 1093 rt2x00_set_field32(&word, TXD_W2_PLCP_SERVICE, txdesc->u.plcp.service); in rt2500usb_write_tx_desc() 1095 txdesc->u.plcp.length_low); in rt2500usb_write_tx_desc() 1097 txdesc->u.plcp.length_high); in rt2500usb_write_tx_desc()
|
D | rt2500pci.c | 1270 rt2x00_set_field32(&word, TXD_W3_PLCP_SIGNAL, txdesc->u.plcp.signal); in rt2500pci_write_tx_desc() 1271 rt2x00_set_field32(&word, TXD_W3_PLCP_SERVICE, txdesc->u.plcp.service); in rt2500pci_write_tx_desc() 1273 txdesc->u.plcp.length_low); in rt2500pci_write_tx_desc() 1275 txdesc->u.plcp.length_high); in rt2500pci_write_tx_desc() 1300 rt2x00_set_field32(&word, TXD_W0_IFS, txdesc->u.plcp.ifs); in rt2500pci_write_tx_desc()
|
D | rt73usb.c | 1466 rt2x00_set_field32(&word, TXD_W0_IFS, txdesc->u.plcp.ifs); in rt73usb_write_tx_desc() 1491 rt2x00_set_field32(&word, TXD_W2_PLCP_SIGNAL, txdesc->u.plcp.signal); in rt73usb_write_tx_desc() 1492 rt2x00_set_field32(&word, TXD_W2_PLCP_SERVICE, txdesc->u.plcp.service); in rt73usb_write_tx_desc() 1494 txdesc->u.plcp.length_low); in rt73usb_write_tx_desc() 1496 txdesc->u.plcp.length_high); in rt73usb_write_tx_desc()
|
/linux-6.1.9/drivers/net/wireless/ath/carl9170/ |
D | rx.c | 362 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(head->plcp[3] & 0x7f, 0, 75); in carl9170_rx_mac_status()
|
D | tx.c | 1573 u32 *ht1, u32 *plcp) in carl9170_tx_beacon_physet() argument 1583 carl9170_tx_rate_tpc_chains(ar, txinfo, rate, plcp, &power, &chains); in carl9170_tx_beacon_physet() 1595 *plcp |= AR9170_MAC_BCN_HT2_SGI; in carl9170_tx_beacon_physet() 1599 *plcp |= AR9170_MAC_BCN_HT2_BW40; in carl9170_tx_beacon_physet() 1602 *plcp |= AR9170_MAC_BCN_HT2_BW40; in carl9170_tx_beacon_physet() 1605 SET_VAL(AR9170_MAC_BCN_HT2_LEN, *plcp, skb->len + FCS_LEN); in carl9170_tx_beacon_physet() 1607 if (*plcp <= AR9170_TX_PHY_RATE_CCK_11M) in carl9170_tx_beacon_physet() 1608 *plcp |= ((skb->len + FCS_LEN) << (3 + 16)) + 0x0400; in carl9170_tx_beacon_physet() 1610 *plcp |= ((skb->len + FCS_LEN) << 16) + 0x0010; in carl9170_tx_beacon_physet() 1621 u32 word, ht1, plcp, off, addr, len; in carl9170_update_beacon() local [all …]
|
D | wlan.h | 339 u8 plcp[12]; member
|
/linux-6.1.9/drivers/net/wireless/admtek/ |
D | adm8211.c | 1568 static void adm8211_calc_durations(int *dur, int *plcp, size_t payload_len, int len, in adm8211_calc_durations() argument 1611 *plcp = (80 * len) / plcp_signal; in adm8211_calc_durations() 1615 *plcp = (*plcp | 0x8000) + 1; in adm8211_calc_durations() 1617 (*plcp)++; in adm8211_calc_durations() 1678 int plcp, dur, len, plcp_signal, short_preamble; in adm8211_tx() local 1705 adm8211_calc_durations(&dur, &plcp, payload_len, in adm8211_tx() 1707 txhdr->plcp_frag_head_len = cpu_to_le16(plcp); in adm8211_tx() 1708 txhdr->plcp_frag_tail_len = cpu_to_le16(plcp); in adm8211_tx()
|
/linux-6.1.9/drivers/net/wireless/intel/iwlegacy/ |
D | 3945.c | 185 il3945_hwrate_to_plcp_idx(u8 plcp) in il3945_hwrate_to_plcp_idx() argument 190 if (il3945_rates[idx].plcp == plcp) in il3945_hwrate_to_plcp_idx() 697 rate = il3945_rates[rate_idx].plcp; in il3945_hw_build_tx_cmd_rate() 1417 txpower.power[i].rate = il3945_rates[rate_idx].plcp; in il3945_send_tx_power() 1428 txpower.power[i].rate = il3945_rates[rate_idx].plcp; in il3945_send_tx_power() 2323 table[idx].rate_n_flags = cpu_to_le16(il3945_rates[i].plcp); in il3945_init_hw_rate_table()
|
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | rs.h | 17 u8 plcp; /* uCode API: IWL_RATE_6M_PLCP, etc. */ member
|
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | rs.h | 23 u8 plcp; /* uCode API: IWL_RATE_6M_PLCP, etc. */ member
|