Lines Matching refs:desc

290 static bool ath12k_hw_qcn9274_rx_desc_get_first_msdu(struct hal_rx_desc *desc)  in ath12k_hw_qcn9274_rx_desc_get_first_msdu()  argument
292 return !!le16_get_bits(desc->u.qcn9274.msdu_end.info5, in ath12k_hw_qcn9274_rx_desc_get_first_msdu()
296 static bool ath12k_hw_qcn9274_rx_desc_get_last_msdu(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_rx_desc_get_last_msdu() argument
298 return !!le16_get_bits(desc->u.qcn9274.msdu_end.info5, in ath12k_hw_qcn9274_rx_desc_get_last_msdu()
302 static u8 ath12k_hw_qcn9274_rx_desc_get_l3_pad_bytes(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_rx_desc_get_l3_pad_bytes() argument
304 return le16_get_bits(desc->u.qcn9274.msdu_end.info5, in ath12k_hw_qcn9274_rx_desc_get_l3_pad_bytes()
308 static bool ath12k_hw_qcn9274_rx_desc_encrypt_valid(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_rx_desc_encrypt_valid() argument
310 return !!le32_get_bits(desc->u.qcn9274.mpdu_start.info4, in ath12k_hw_qcn9274_rx_desc_encrypt_valid()
314 static u32 ath12k_hw_qcn9274_rx_desc_get_encrypt_type(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_rx_desc_get_encrypt_type() argument
316 return le32_get_bits(desc->u.qcn9274.mpdu_start.info2, in ath12k_hw_qcn9274_rx_desc_get_encrypt_type()
320 static u8 ath12k_hw_qcn9274_rx_desc_get_decap_type(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_rx_desc_get_decap_type() argument
322 return le32_get_bits(desc->u.qcn9274.msdu_end.info11, in ath12k_hw_qcn9274_rx_desc_get_decap_type()
326 static u8 ath12k_hw_qcn9274_rx_desc_get_mesh_ctl(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_rx_desc_get_mesh_ctl() argument
328 return le32_get_bits(desc->u.qcn9274.msdu_end.info11, in ath12k_hw_qcn9274_rx_desc_get_mesh_ctl()
332 static bool ath12k_hw_qcn9274_rx_desc_get_mpdu_seq_ctl_vld(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_rx_desc_get_mpdu_seq_ctl_vld() argument
334 return !!le32_get_bits(desc->u.qcn9274.mpdu_start.info4, in ath12k_hw_qcn9274_rx_desc_get_mpdu_seq_ctl_vld()
338 static bool ath12k_hw_qcn9274_rx_desc_get_mpdu_fc_valid(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_rx_desc_get_mpdu_fc_valid() argument
340 return !!le32_get_bits(desc->u.qcn9274.mpdu_start.info4, in ath12k_hw_qcn9274_rx_desc_get_mpdu_fc_valid()
344 static u16 ath12k_hw_qcn9274_rx_desc_get_mpdu_start_seq_no(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_rx_desc_get_mpdu_start_seq_no() argument
346 return le32_get_bits(desc->u.qcn9274.mpdu_start.info4, in ath12k_hw_qcn9274_rx_desc_get_mpdu_start_seq_no()
350 static u16 ath12k_hw_qcn9274_rx_desc_get_msdu_len(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_rx_desc_get_msdu_len() argument
352 return le32_get_bits(desc->u.qcn9274.msdu_end.info10, in ath12k_hw_qcn9274_rx_desc_get_msdu_len()
356 static u8 ath12k_hw_qcn9274_rx_desc_get_msdu_sgi(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_rx_desc_get_msdu_sgi() argument
358 return le32_get_bits(desc->u.qcn9274.msdu_end.info12, in ath12k_hw_qcn9274_rx_desc_get_msdu_sgi()
362 static u8 ath12k_hw_qcn9274_rx_desc_get_msdu_rate_mcs(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_rx_desc_get_msdu_rate_mcs() argument
364 return le32_get_bits(desc->u.qcn9274.msdu_end.info12, in ath12k_hw_qcn9274_rx_desc_get_msdu_rate_mcs()
368 static u8 ath12k_hw_qcn9274_rx_desc_get_msdu_rx_bw(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_rx_desc_get_msdu_rx_bw() argument
370 return le32_get_bits(desc->u.qcn9274.msdu_end.info12, in ath12k_hw_qcn9274_rx_desc_get_msdu_rx_bw()
374 static u32 ath12k_hw_qcn9274_rx_desc_get_msdu_freq(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_rx_desc_get_msdu_freq() argument
376 return __le32_to_cpu(desc->u.qcn9274.msdu_end.phy_meta_data); in ath12k_hw_qcn9274_rx_desc_get_msdu_freq()
379 static u8 ath12k_hw_qcn9274_rx_desc_get_msdu_pkt_type(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_rx_desc_get_msdu_pkt_type() argument
381 return le32_get_bits(desc->u.qcn9274.msdu_end.info12, in ath12k_hw_qcn9274_rx_desc_get_msdu_pkt_type()
385 static u8 ath12k_hw_qcn9274_rx_desc_get_msdu_nss(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_rx_desc_get_msdu_nss() argument
387 return le32_get_bits(desc->u.qcn9274.msdu_end.info12, in ath12k_hw_qcn9274_rx_desc_get_msdu_nss()
391 static u8 ath12k_hw_qcn9274_rx_desc_get_mpdu_tid(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_rx_desc_get_mpdu_tid() argument
393 return le16_get_bits(desc->u.qcn9274.msdu_end.info5, in ath12k_hw_qcn9274_rx_desc_get_mpdu_tid()
397 static u16 ath12k_hw_qcn9274_rx_desc_get_mpdu_peer_id(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_rx_desc_get_mpdu_peer_id() argument
399 return __le16_to_cpu(desc->u.qcn9274.mpdu_start.sw_peer_id); in ath12k_hw_qcn9274_rx_desc_get_mpdu_peer_id()
409 static u32 ath12k_hw_qcn9274_rx_desc_get_mpdu_ppdu_id(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_rx_desc_get_mpdu_ppdu_id() argument
411 return __le16_to_cpu(desc->u.qcn9274.mpdu_start.phy_ppdu_id); in ath12k_hw_qcn9274_rx_desc_get_mpdu_ppdu_id()
414 static void ath12k_hw_qcn9274_rx_desc_set_msdu_len(struct hal_rx_desc *desc, u16 len) in ath12k_hw_qcn9274_rx_desc_set_msdu_len() argument
416 u32 info = __le32_to_cpu(desc->u.qcn9274.msdu_end.info10); in ath12k_hw_qcn9274_rx_desc_set_msdu_len()
421 desc->u.qcn9274.msdu_end.info10 = __cpu_to_le32(info); in ath12k_hw_qcn9274_rx_desc_set_msdu_len()
424 static u8 *ath12k_hw_qcn9274_rx_desc_get_msdu_payload(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_rx_desc_get_msdu_payload() argument
426 return &desc->u.qcn9274.msdu_payload[0]; in ath12k_hw_qcn9274_rx_desc_get_msdu_payload()
439 static bool ath12k_hw_qcn9274_rx_desc_mac_addr2_valid(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_rx_desc_mac_addr2_valid() argument
441 return __le32_to_cpu(desc->u.qcn9274.mpdu_start.info4) & in ath12k_hw_qcn9274_rx_desc_mac_addr2_valid()
445 static u8 *ath12k_hw_qcn9274_rx_desc_mpdu_start_addr2(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_rx_desc_mpdu_start_addr2() argument
447 return desc->u.qcn9274.mpdu_start.addr2; in ath12k_hw_qcn9274_rx_desc_mpdu_start_addr2()
450 static bool ath12k_hw_qcn9274_rx_desc_is_da_mcbc(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_rx_desc_is_da_mcbc() argument
452 return __le16_to_cpu(desc->u.qcn9274.msdu_end.info5) & in ath12k_hw_qcn9274_rx_desc_is_da_mcbc()
456 static void ath12k_hw_qcn9274_rx_desc_get_dot11_hdr(struct hal_rx_desc *desc, in ath12k_hw_qcn9274_rx_desc_get_dot11_hdr() argument
459 hdr->frame_control = desc->u.qcn9274.mpdu_start.frame_ctrl; in ath12k_hw_qcn9274_rx_desc_get_dot11_hdr()
460 hdr->duration_id = desc->u.qcn9274.mpdu_start.duration; in ath12k_hw_qcn9274_rx_desc_get_dot11_hdr()
461 ether_addr_copy(hdr->addr1, desc->u.qcn9274.mpdu_start.addr1); in ath12k_hw_qcn9274_rx_desc_get_dot11_hdr()
462 ether_addr_copy(hdr->addr2, desc->u.qcn9274.mpdu_start.addr2); in ath12k_hw_qcn9274_rx_desc_get_dot11_hdr()
463 ether_addr_copy(hdr->addr3, desc->u.qcn9274.mpdu_start.addr3); in ath12k_hw_qcn9274_rx_desc_get_dot11_hdr()
464 if (__le32_to_cpu(desc->u.qcn9274.mpdu_start.info4) & in ath12k_hw_qcn9274_rx_desc_get_dot11_hdr()
466 ether_addr_copy(hdr->addr4, desc->u.qcn9274.mpdu_start.addr4); in ath12k_hw_qcn9274_rx_desc_get_dot11_hdr()
468 hdr->seq_ctrl = desc->u.qcn9274.mpdu_start.seq_ctrl; in ath12k_hw_qcn9274_rx_desc_get_dot11_hdr()
471 static void ath12k_hw_qcn9274_rx_desc_get_crypto_hdr(struct hal_rx_desc *desc, in ath12k_hw_qcn9274_rx_desc_get_crypto_hdr() argument
483 HAL_RX_MPDU_INFO_PN_GET_BYTE2(desc->u.qcn9274.mpdu_start.pn[0]); in ath12k_hw_qcn9274_rx_desc_get_crypto_hdr()
486 HAL_RX_MPDU_INFO_PN_GET_BYTE1(desc->u.qcn9274.mpdu_start.pn[0]); in ath12k_hw_qcn9274_rx_desc_get_crypto_hdr()
493 HAL_RX_MPDU_INFO_PN_GET_BYTE1(desc->u.qcn9274.mpdu_start.pn[0]); in ath12k_hw_qcn9274_rx_desc_get_crypto_hdr()
495 HAL_RX_MPDU_INFO_PN_GET_BYTE2(desc->u.qcn9274.mpdu_start.pn[0]); in ath12k_hw_qcn9274_rx_desc_get_crypto_hdr()
505 key_id = le32_get_bits(desc->u.qcn9274.mpdu_start.info5, in ath12k_hw_qcn9274_rx_desc_get_crypto_hdr()
508 crypto_hdr[4] = HAL_RX_MPDU_INFO_PN_GET_BYTE3(desc->u.qcn9274.mpdu_start.pn[0]); in ath12k_hw_qcn9274_rx_desc_get_crypto_hdr()
509 crypto_hdr[5] = HAL_RX_MPDU_INFO_PN_GET_BYTE4(desc->u.qcn9274.mpdu_start.pn[0]); in ath12k_hw_qcn9274_rx_desc_get_crypto_hdr()
510 crypto_hdr[6] = HAL_RX_MPDU_INFO_PN_GET_BYTE1(desc->u.qcn9274.mpdu_start.pn[1]); in ath12k_hw_qcn9274_rx_desc_get_crypto_hdr()
511 crypto_hdr[7] = HAL_RX_MPDU_INFO_PN_GET_BYTE2(desc->u.qcn9274.mpdu_start.pn[1]); in ath12k_hw_qcn9274_rx_desc_get_crypto_hdr()
514 static u16 ath12k_hw_qcn9274_rx_desc_get_mpdu_frame_ctl(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_rx_desc_get_mpdu_frame_ctl() argument
516 return __le16_to_cpu(desc->u.qcn9274.mpdu_start.frame_ctrl); in ath12k_hw_qcn9274_rx_desc_get_mpdu_frame_ctl()
629 static bool ath12k_hw_qcn9274_dp_rx_h_msdu_done(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_dp_rx_h_msdu_done() argument
631 return !!le32_get_bits(desc->u.qcn9274.msdu_end.info14, in ath12k_hw_qcn9274_dp_rx_h_msdu_done()
635 static bool ath12k_hw_qcn9274_dp_rx_h_l4_cksum_fail(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_dp_rx_h_l4_cksum_fail() argument
637 return !!le32_get_bits(desc->u.qcn9274.msdu_end.info13, in ath12k_hw_qcn9274_dp_rx_h_l4_cksum_fail()
641 static bool ath12k_hw_qcn9274_dp_rx_h_ip_cksum_fail(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_dp_rx_h_ip_cksum_fail() argument
643 return !!le32_get_bits(desc->u.qcn9274.msdu_end.info13, in ath12k_hw_qcn9274_dp_rx_h_ip_cksum_fail()
647 static bool ath12k_hw_qcn9274_dp_rx_h_is_decrypted(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_dp_rx_h_is_decrypted() argument
649 return (le32_get_bits(desc->u.qcn9274.msdu_end.info14, in ath12k_hw_qcn9274_dp_rx_h_is_decrypted()
654 static u32 ath12k_hw_qcn9274_dp_rx_h_mpdu_err(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_dp_rx_h_mpdu_err() argument
656 u32 info = __le32_to_cpu(desc->u.qcn9274.msdu_end.info13); in ath12k_hw_qcn9274_dp_rx_h_mpdu_err()
724 static bool ath12k_hw_wcn7850_rx_desc_get_first_msdu(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_rx_desc_get_first_msdu() argument
726 return !!le16_get_bits(desc->u.wcn7850.msdu_end.info5, in ath12k_hw_wcn7850_rx_desc_get_first_msdu()
730 static bool ath12k_hw_wcn7850_rx_desc_get_last_msdu(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_rx_desc_get_last_msdu() argument
732 return !!le16_get_bits(desc->u.wcn7850.msdu_end.info5, in ath12k_hw_wcn7850_rx_desc_get_last_msdu()
736 static u8 ath12k_hw_wcn7850_rx_desc_get_l3_pad_bytes(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_rx_desc_get_l3_pad_bytes() argument
738 return le16_get_bits(desc->u.wcn7850.msdu_end.info5, in ath12k_hw_wcn7850_rx_desc_get_l3_pad_bytes()
742 static bool ath12k_hw_wcn7850_rx_desc_encrypt_valid(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_rx_desc_encrypt_valid() argument
744 return !!le32_get_bits(desc->u.wcn7850.mpdu_start.info4, in ath12k_hw_wcn7850_rx_desc_encrypt_valid()
748 static u32 ath12k_hw_wcn7850_rx_desc_get_encrypt_type(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_rx_desc_get_encrypt_type() argument
750 return le32_get_bits(desc->u.wcn7850.mpdu_start.info2, in ath12k_hw_wcn7850_rx_desc_get_encrypt_type()
754 static u8 ath12k_hw_wcn7850_rx_desc_get_decap_type(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_rx_desc_get_decap_type() argument
756 return le32_get_bits(desc->u.wcn7850.msdu_end.info11, in ath12k_hw_wcn7850_rx_desc_get_decap_type()
760 static u8 ath12k_hw_wcn7850_rx_desc_get_mesh_ctl(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_rx_desc_get_mesh_ctl() argument
762 return le32_get_bits(desc->u.wcn7850.msdu_end.info11, in ath12k_hw_wcn7850_rx_desc_get_mesh_ctl()
766 static bool ath12k_hw_wcn7850_rx_desc_get_mpdu_seq_ctl_vld(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_rx_desc_get_mpdu_seq_ctl_vld() argument
768 return !!le32_get_bits(desc->u.wcn7850.mpdu_start.info4, in ath12k_hw_wcn7850_rx_desc_get_mpdu_seq_ctl_vld()
772 static bool ath12k_hw_wcn7850_rx_desc_get_mpdu_fc_valid(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_rx_desc_get_mpdu_fc_valid() argument
774 return !!le32_get_bits(desc->u.wcn7850.mpdu_start.info4, in ath12k_hw_wcn7850_rx_desc_get_mpdu_fc_valid()
778 static u16 ath12k_hw_wcn7850_rx_desc_get_mpdu_start_seq_no(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_rx_desc_get_mpdu_start_seq_no() argument
780 return le32_get_bits(desc->u.wcn7850.mpdu_start.info4, in ath12k_hw_wcn7850_rx_desc_get_mpdu_start_seq_no()
784 static u16 ath12k_hw_wcn7850_rx_desc_get_msdu_len(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_rx_desc_get_msdu_len() argument
786 return le32_get_bits(desc->u.wcn7850.msdu_end.info10, in ath12k_hw_wcn7850_rx_desc_get_msdu_len()
790 static u8 ath12k_hw_wcn7850_rx_desc_get_msdu_sgi(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_rx_desc_get_msdu_sgi() argument
792 return le32_get_bits(desc->u.wcn7850.msdu_end.info12, in ath12k_hw_wcn7850_rx_desc_get_msdu_sgi()
796 static u8 ath12k_hw_wcn7850_rx_desc_get_msdu_rate_mcs(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_rx_desc_get_msdu_rate_mcs() argument
798 return le32_get_bits(desc->u.wcn7850.msdu_end.info12, in ath12k_hw_wcn7850_rx_desc_get_msdu_rate_mcs()
802 static u8 ath12k_hw_wcn7850_rx_desc_get_msdu_rx_bw(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_rx_desc_get_msdu_rx_bw() argument
804 return le32_get_bits(desc->u.wcn7850.msdu_end.info12, in ath12k_hw_wcn7850_rx_desc_get_msdu_rx_bw()
808 static u32 ath12k_hw_wcn7850_rx_desc_get_msdu_freq(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_rx_desc_get_msdu_freq() argument
810 return __le32_to_cpu(desc->u.wcn7850.msdu_end.phy_meta_data); in ath12k_hw_wcn7850_rx_desc_get_msdu_freq()
813 static u8 ath12k_hw_wcn7850_rx_desc_get_msdu_pkt_type(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_rx_desc_get_msdu_pkt_type() argument
815 return le32_get_bits(desc->u.wcn7850.msdu_end.info12, in ath12k_hw_wcn7850_rx_desc_get_msdu_pkt_type()
819 static u8 ath12k_hw_wcn7850_rx_desc_get_msdu_nss(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_rx_desc_get_msdu_nss() argument
821 return le32_get_bits(desc->u.wcn7850.msdu_end.info12, in ath12k_hw_wcn7850_rx_desc_get_msdu_nss()
825 static u8 ath12k_hw_wcn7850_rx_desc_get_mpdu_tid(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_rx_desc_get_mpdu_tid() argument
827 return le16_get_bits(desc->u.wcn7850.msdu_end.info5, in ath12k_hw_wcn7850_rx_desc_get_mpdu_tid()
831 static u16 ath12k_hw_wcn7850_rx_desc_get_mpdu_peer_id(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_rx_desc_get_mpdu_peer_id() argument
833 return __le16_to_cpu(desc->u.wcn7850.mpdu_start.sw_peer_id); in ath12k_hw_wcn7850_rx_desc_get_mpdu_peer_id()
843 static u32 ath12k_hw_wcn7850_rx_desc_get_mpdu_start_tag(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_rx_desc_get_mpdu_start_tag() argument
845 return le64_get_bits(desc->u.wcn7850.mpdu_start_tag, in ath12k_hw_wcn7850_rx_desc_get_mpdu_start_tag()
849 static u32 ath12k_hw_wcn7850_rx_desc_get_mpdu_ppdu_id(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_rx_desc_get_mpdu_ppdu_id() argument
851 return __le16_to_cpu(desc->u.wcn7850.mpdu_start.phy_ppdu_id); in ath12k_hw_wcn7850_rx_desc_get_mpdu_ppdu_id()
854 static void ath12k_hw_wcn7850_rx_desc_set_msdu_len(struct hal_rx_desc *desc, u16 len) in ath12k_hw_wcn7850_rx_desc_set_msdu_len() argument
856 u32 info = __le32_to_cpu(desc->u.wcn7850.msdu_end.info10); in ath12k_hw_wcn7850_rx_desc_set_msdu_len()
861 desc->u.wcn7850.msdu_end.info10 = __cpu_to_le32(info); in ath12k_hw_wcn7850_rx_desc_set_msdu_len()
864 static u8 *ath12k_hw_wcn7850_rx_desc_get_msdu_payload(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_rx_desc_get_msdu_payload() argument
866 return &desc->u.wcn7850.msdu_payload[0]; in ath12k_hw_wcn7850_rx_desc_get_msdu_payload()
879 static bool ath12k_hw_wcn7850_rx_desc_mac_addr2_valid(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_rx_desc_mac_addr2_valid() argument
881 return __le32_to_cpu(desc->u.wcn7850.mpdu_start.info4) & in ath12k_hw_wcn7850_rx_desc_mac_addr2_valid()
885 static u8 *ath12k_hw_wcn7850_rx_desc_mpdu_start_addr2(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_rx_desc_mpdu_start_addr2() argument
887 return desc->u.wcn7850.mpdu_start.addr2; in ath12k_hw_wcn7850_rx_desc_mpdu_start_addr2()
890 static bool ath12k_hw_wcn7850_rx_desc_is_da_mcbc(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_rx_desc_is_da_mcbc() argument
892 return __le16_to_cpu(desc->u.wcn7850.msdu_end.info5) & in ath12k_hw_wcn7850_rx_desc_is_da_mcbc()
896 static void ath12k_hw_wcn7850_rx_desc_get_dot11_hdr(struct hal_rx_desc *desc, in ath12k_hw_wcn7850_rx_desc_get_dot11_hdr() argument
899 hdr->frame_control = desc->u.wcn7850.mpdu_start.frame_ctrl; in ath12k_hw_wcn7850_rx_desc_get_dot11_hdr()
900 hdr->duration_id = desc->u.wcn7850.mpdu_start.duration; in ath12k_hw_wcn7850_rx_desc_get_dot11_hdr()
901 ether_addr_copy(hdr->addr1, desc->u.wcn7850.mpdu_start.addr1); in ath12k_hw_wcn7850_rx_desc_get_dot11_hdr()
902 ether_addr_copy(hdr->addr2, desc->u.wcn7850.mpdu_start.addr2); in ath12k_hw_wcn7850_rx_desc_get_dot11_hdr()
903 ether_addr_copy(hdr->addr3, desc->u.wcn7850.mpdu_start.addr3); in ath12k_hw_wcn7850_rx_desc_get_dot11_hdr()
904 if (__le32_to_cpu(desc->u.wcn7850.mpdu_start.info4) & in ath12k_hw_wcn7850_rx_desc_get_dot11_hdr()
906 ether_addr_copy(hdr->addr4, desc->u.wcn7850.mpdu_start.addr4); in ath12k_hw_wcn7850_rx_desc_get_dot11_hdr()
908 hdr->seq_ctrl = desc->u.wcn7850.mpdu_start.seq_ctrl; in ath12k_hw_wcn7850_rx_desc_get_dot11_hdr()
911 static void ath12k_hw_wcn7850_rx_desc_get_crypto_hdr(struct hal_rx_desc *desc, in ath12k_hw_wcn7850_rx_desc_get_crypto_hdr() argument
923 HAL_RX_MPDU_INFO_PN_GET_BYTE2(desc->u.wcn7850.mpdu_start.pn[0]); in ath12k_hw_wcn7850_rx_desc_get_crypto_hdr()
926 HAL_RX_MPDU_INFO_PN_GET_BYTE1(desc->u.wcn7850.mpdu_start.pn[0]); in ath12k_hw_wcn7850_rx_desc_get_crypto_hdr()
933 HAL_RX_MPDU_INFO_PN_GET_BYTE1(desc->u.wcn7850.mpdu_start.pn[0]); in ath12k_hw_wcn7850_rx_desc_get_crypto_hdr()
935 HAL_RX_MPDU_INFO_PN_GET_BYTE2(desc->u.wcn7850.mpdu_start.pn[0]); in ath12k_hw_wcn7850_rx_desc_get_crypto_hdr()
945 key_id = u32_get_bits(__le32_to_cpu(desc->u.wcn7850.mpdu_start.info5), in ath12k_hw_wcn7850_rx_desc_get_crypto_hdr()
948 crypto_hdr[4] = HAL_RX_MPDU_INFO_PN_GET_BYTE3(desc->u.wcn7850.mpdu_start.pn[0]); in ath12k_hw_wcn7850_rx_desc_get_crypto_hdr()
949 crypto_hdr[5] = HAL_RX_MPDU_INFO_PN_GET_BYTE4(desc->u.wcn7850.mpdu_start.pn[0]); in ath12k_hw_wcn7850_rx_desc_get_crypto_hdr()
950 crypto_hdr[6] = HAL_RX_MPDU_INFO_PN_GET_BYTE1(desc->u.wcn7850.mpdu_start.pn[1]); in ath12k_hw_wcn7850_rx_desc_get_crypto_hdr()
951 crypto_hdr[7] = HAL_RX_MPDU_INFO_PN_GET_BYTE2(desc->u.wcn7850.mpdu_start.pn[1]); in ath12k_hw_wcn7850_rx_desc_get_crypto_hdr()
954 static u16 ath12k_hw_wcn7850_rx_desc_get_mpdu_frame_ctl(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_rx_desc_get_mpdu_frame_ctl() argument
956 return __le16_to_cpu(desc->u.wcn7850.mpdu_start.frame_ctrl); in ath12k_hw_wcn7850_rx_desc_get_mpdu_frame_ctl()
1083 static bool ath12k_hw_wcn7850_dp_rx_h_msdu_done(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_dp_rx_h_msdu_done() argument
1085 return !!le32_get_bits(desc->u.wcn7850.msdu_end.info14, in ath12k_hw_wcn7850_dp_rx_h_msdu_done()
1089 static bool ath12k_hw_wcn7850_dp_rx_h_l4_cksum_fail(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_dp_rx_h_l4_cksum_fail() argument
1091 return !!le32_get_bits(desc->u.wcn7850.msdu_end.info13, in ath12k_hw_wcn7850_dp_rx_h_l4_cksum_fail()
1095 static bool ath12k_hw_wcn7850_dp_rx_h_ip_cksum_fail(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_dp_rx_h_ip_cksum_fail() argument
1097 return !!le32_get_bits(desc->u.wcn7850.msdu_end.info13, in ath12k_hw_wcn7850_dp_rx_h_ip_cksum_fail()
1101 static bool ath12k_hw_wcn7850_dp_rx_h_is_decrypted(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_dp_rx_h_is_decrypted() argument
1103 return (le32_get_bits(desc->u.wcn7850.msdu_end.info14, in ath12k_hw_wcn7850_dp_rx_h_is_decrypted()
1108 static u32 ath12k_hw_wcn7850_dp_rx_h_mpdu_err(struct hal_rx_desc *desc) in ath12k_hw_wcn7850_dp_rx_h_mpdu_err() argument
1110 u32 info = __le32_to_cpu(desc->u.wcn7850.msdu_end.info13); in ath12k_hw_wcn7850_dp_rx_h_mpdu_err()
1542 void ath12k_hal_ce_src_set_desc(struct hal_ce_srng_src_desc *desc, dma_addr_t paddr, in ath12k_hal_ce_src_set_desc() argument
1545 desc->buffer_addr_low = cpu_to_le32(paddr & HAL_ADDR_LSB_REG_MASK); in ath12k_hal_ce_src_set_desc()
1546 desc->buffer_addr_info = in ath12k_hal_ce_src_set_desc()
1553 desc->meta_info = le32_encode_bits(id, HAL_CE_SRC_DESC_META_INFO_DATA); in ath12k_hal_ce_src_set_desc()
1556 void ath12k_hal_ce_dst_set_desc(struct hal_ce_srng_dest_desc *desc, dma_addr_t paddr) in ath12k_hal_ce_dst_set_desc() argument
1558 desc->buffer_addr_low = cpu_to_le32(paddr & HAL_ADDR_LSB_REG_MASK); in ath12k_hal_ce_dst_set_desc()
1559 desc->buffer_addr_info = in ath12k_hal_ce_dst_set_desc()
1564 u32 ath12k_hal_ce_dst_status_get_length(struct hal_ce_srng_dst_status_desc *desc) in ath12k_hal_ce_dst_status_get_length() argument
1568 len = le32_get_bits(desc->flags, HAL_CE_DST_STATUS_DESC_FLAGS_LEN); in ath12k_hal_ce_dst_status_get_length()
1569 desc->flags &= ~cpu_to_le32(HAL_CE_DST_STATUS_DESC_FLAGS_LEN); in ath12k_hal_ce_dst_status_get_length()
1574 void ath12k_hal_set_link_desc_addr(struct hal_wbm_link_desc *desc, u32 cookie, in ath12k_hal_set_link_desc_addr() argument
1577 desc->buf_addr_info.info0 = le32_encode_bits((paddr & HAL_ADDR_LSB_REG_MASK), in ath12k_hal_set_link_desc_addr()
1579 desc->buf_addr_info.info1 = in ath12k_hal_set_link_desc_addr()
1599 void *desc; in ath12k_hal_srng_dst_get_next_entry() local
1606 desc = srng->ring_base_vaddr + srng->u.dst_ring.tp; in ath12k_hal_srng_dst_get_next_entry()
1611 return desc; in ath12k_hal_srng_dst_get_next_entry()
1662 void *desc; in ath12k_hal_srng_src_get_next_entry() local
1678 desc = srng->ring_base_vaddr + srng->u.src_ring.hp; in ath12k_hal_srng_src_get_next_entry()
1689 return desc; in ath12k_hal_srng_src_get_next_entry()
1695 void *desc; in ath12k_hal_srng_src_reap_next() local
1706 desc = srng->ring_base_vaddr + next_reap_hp; in ath12k_hal_srng_src_reap_next()
1709 return desc; in ath12k_hal_srng_src_reap_next()
1715 void *desc; in ath12k_hal_srng_src_get_next_reaped() local
1722 desc = srng->ring_base_vaddr + srng->u.src_ring.hp; in ath12k_hal_srng_src_get_next_reaped()
1726 return desc; in ath12k_hal_srng_src_get_next_reaped()