Lines Matching refs:val

341 static inline void RTW89_SET_FWCMD_SEC_IDX(void *cmd, u32 val)  in RTW89_SET_FWCMD_SEC_IDX()  argument
343 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_SEC_IDX()
346 static inline void RTW89_SET_FWCMD_SEC_OFFSET(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_OFFSET() argument
348 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(15, 8)); in RTW89_SET_FWCMD_SEC_OFFSET()
351 static inline void RTW89_SET_FWCMD_SEC_LEN(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_LEN() argument
353 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(23, 16)); in RTW89_SET_FWCMD_SEC_LEN()
356 static inline void RTW89_SET_FWCMD_SEC_TYPE(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_TYPE() argument
358 le32p_replace_bits((__le32 *)(cmd) + 0x01, val, GENMASK(3, 0)); in RTW89_SET_FWCMD_SEC_TYPE()
361 static inline void RTW89_SET_FWCMD_SEC_EXT_KEY(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_EXT_KEY() argument
363 le32p_replace_bits((__le32 *)(cmd) + 0x01, val, BIT(4)); in RTW89_SET_FWCMD_SEC_EXT_KEY()
366 static inline void RTW89_SET_FWCMD_SEC_SPP_MODE(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_SPP_MODE() argument
368 le32p_replace_bits((__le32 *)(cmd) + 0x01, val, BIT(5)); in RTW89_SET_FWCMD_SEC_SPP_MODE()
371 static inline void RTW89_SET_FWCMD_SEC_KEY0(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_KEY0() argument
373 le32p_replace_bits((__le32 *)(cmd) + 0x02, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_SEC_KEY0()
376 static inline void RTW89_SET_FWCMD_SEC_KEY1(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_KEY1() argument
378 le32p_replace_bits((__le32 *)(cmd) + 0x03, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_SEC_KEY1()
381 static inline void RTW89_SET_FWCMD_SEC_KEY2(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_KEY2() argument
383 le32p_replace_bits((__le32 *)(cmd) + 0x04, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_SEC_KEY2()
386 static inline void RTW89_SET_FWCMD_SEC_KEY3(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_KEY3() argument
388 le32p_replace_bits((__le32 *)(cmd) + 0x05, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_SEC_KEY3()
391 static inline void RTW89_SET_EDCA_SEL(void *cmd, u32 val) in RTW89_SET_EDCA_SEL() argument
393 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(1, 0)); in RTW89_SET_EDCA_SEL()
396 static inline void RTW89_SET_EDCA_BAND(void *cmd, u32 val) in RTW89_SET_EDCA_BAND() argument
398 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, BIT(3)); in RTW89_SET_EDCA_BAND()
401 static inline void RTW89_SET_EDCA_WMM(void *cmd, u32 val) in RTW89_SET_EDCA_WMM() argument
403 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, BIT(4)); in RTW89_SET_EDCA_WMM()
406 static inline void RTW89_SET_EDCA_AC(void *cmd, u32 val) in RTW89_SET_EDCA_AC() argument
408 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(6, 5)); in RTW89_SET_EDCA_AC()
411 static inline void RTW89_SET_EDCA_PARAM(void *cmd, u32 val) in RTW89_SET_EDCA_PARAM() argument
413 le32p_replace_bits((__le32 *)(cmd) + 0x01, val, GENMASK(31, 0)); in RTW89_SET_EDCA_PARAM()
526 static inline void SET_FW_HDR_PART_SIZE(void *fwhdr, u32 val) in SET_FW_HDR_PART_SIZE() argument
528 le32p_replace_bits((__le32 *)fwhdr + 7, val, GENMASK(15, 0)); in SET_FW_HDR_PART_SIZE()
531 static inline void SET_CTRL_INFO_MACID(void *table, u32 val) in SET_CTRL_INFO_MACID() argument
533 le32p_replace_bits((__le32 *)(table) + 0, val, GENMASK(6, 0)); in SET_CTRL_INFO_MACID()
536 static inline void SET_CTRL_INFO_OPERATION(void *table, u32 val) in SET_CTRL_INFO_OPERATION() argument
538 le32p_replace_bits((__le32 *)(table) + 0, val, BIT(7)); in SET_CTRL_INFO_OPERATION()
541 static inline void SET_CMC_TBL_DATARATE(void *table, u32 val) in SET_CMC_TBL_DATARATE() argument
543 le32p_replace_bits((__le32 *)(table) + 1, val, GENMASK(8, 0)); in SET_CMC_TBL_DATARATE()
548 static inline void SET_CMC_TBL_FORCE_TXOP(void *table, u32 val) in SET_CMC_TBL_FORCE_TXOP() argument
550 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(9)); in SET_CMC_TBL_FORCE_TXOP()
555 static inline void SET_CMC_TBL_DATA_BW(void *table, u32 val) in SET_CMC_TBL_DATA_BW() argument
557 le32p_replace_bits((__le32 *)(table) + 1, val, GENMASK(11, 10)); in SET_CMC_TBL_DATA_BW()
562 static inline void SET_CMC_TBL_DATA_GI_LTF(void *table, u32 val) in SET_CMC_TBL_DATA_GI_LTF() argument
564 le32p_replace_bits((__le32 *)(table) + 1, val, GENMASK(14, 12)); in SET_CMC_TBL_DATA_GI_LTF()
569 static inline void SET_CMC_TBL_DARF_TC_INDEX(void *table, u32 val) in SET_CMC_TBL_DARF_TC_INDEX() argument
571 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(15)); in SET_CMC_TBL_DARF_TC_INDEX()
576 static inline void SET_CMC_TBL_ARFR_CTRL(void *table, u32 val) in SET_CMC_TBL_ARFR_CTRL() argument
578 le32p_replace_bits((__le32 *)(table) + 1, val, GENMASK(19, 16)); in SET_CMC_TBL_ARFR_CTRL()
583 static inline void SET_CMC_TBL_ACQ_RPT_EN(void *table, u32 val) in SET_CMC_TBL_ACQ_RPT_EN() argument
585 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(20)); in SET_CMC_TBL_ACQ_RPT_EN()
590 static inline void SET_CMC_TBL_MGQ_RPT_EN(void *table, u32 val) in SET_CMC_TBL_MGQ_RPT_EN() argument
592 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(21)); in SET_CMC_TBL_MGQ_RPT_EN()
597 static inline void SET_CMC_TBL_ULQ_RPT_EN(void *table, u32 val) in SET_CMC_TBL_ULQ_RPT_EN() argument
599 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(22)); in SET_CMC_TBL_ULQ_RPT_EN()
604 static inline void SET_CMC_TBL_TWTQ_RPT_EN(void *table, u32 val) in SET_CMC_TBL_TWTQ_RPT_EN() argument
606 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(23)); in SET_CMC_TBL_TWTQ_RPT_EN()
611 static inline void SET_CMC_TBL_DISRTSFB(void *table, u32 val) in SET_CMC_TBL_DISRTSFB() argument
613 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(25)); in SET_CMC_TBL_DISRTSFB()
618 static inline void SET_CMC_TBL_DISDATAFB(void *table, u32 val) in SET_CMC_TBL_DISDATAFB() argument
620 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(26)); in SET_CMC_TBL_DISDATAFB()
625 static inline void SET_CMC_TBL_TRYRATE(void *table, u32 val) in SET_CMC_TBL_TRYRATE() argument
627 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(27)); in SET_CMC_TBL_TRYRATE()
632 static inline void SET_CMC_TBL_AMPDU_DENSITY(void *table, u32 val) in SET_CMC_TBL_AMPDU_DENSITY() argument
634 le32p_replace_bits((__le32 *)(table) + 1, val, GENMASK(31, 28)); in SET_CMC_TBL_AMPDU_DENSITY()
639 static inline void SET_CMC_TBL_DATA_RTY_LOWEST_RATE(void *table, u32 val) in SET_CMC_TBL_DATA_RTY_LOWEST_RATE() argument
641 le32p_replace_bits((__le32 *)(table) + 2, val, GENMASK(8, 0)); in SET_CMC_TBL_DATA_RTY_LOWEST_RATE()
646 static inline void SET_CMC_TBL_AMPDU_TIME_SEL(void *table, u32 val) in SET_CMC_TBL_AMPDU_TIME_SEL() argument
648 le32p_replace_bits((__le32 *)(table) + 2, val, BIT(9)); in SET_CMC_TBL_AMPDU_TIME_SEL()
653 static inline void SET_CMC_TBL_AMPDU_LEN_SEL(void *table, u32 val) in SET_CMC_TBL_AMPDU_LEN_SEL() argument
655 le32p_replace_bits((__le32 *)(table) + 2, val, BIT(10)); in SET_CMC_TBL_AMPDU_LEN_SEL()
660 static inline void SET_CMC_TBL_RTS_TXCNT_LMT_SEL(void *table, u32 val) in SET_CMC_TBL_RTS_TXCNT_LMT_SEL() argument
662 le32p_replace_bits((__le32 *)(table) + 2, val, BIT(11)); in SET_CMC_TBL_RTS_TXCNT_LMT_SEL()
667 static inline void SET_CMC_TBL_RTS_TXCNT_LMT(void *table, u32 val) in SET_CMC_TBL_RTS_TXCNT_LMT() argument
669 le32p_replace_bits((__le32 *)(table) + 2, val, GENMASK(15, 12)); in SET_CMC_TBL_RTS_TXCNT_LMT()
674 static inline void SET_CMC_TBL_RTSRATE(void *table, u32 val) in SET_CMC_TBL_RTSRATE() argument
676 le32p_replace_bits((__le32 *)(table) + 2, val, GENMASK(24, 16)); in SET_CMC_TBL_RTSRATE()
681 static inline void SET_CMC_TBL_VCS_STBC(void *table, u32 val) in SET_CMC_TBL_VCS_STBC() argument
683 le32p_replace_bits((__le32 *)(table) + 2, val, BIT(27)); in SET_CMC_TBL_VCS_STBC()
688 static inline void SET_CMC_TBL_RTS_RTY_LOWEST_RATE(void *table, u32 val) in SET_CMC_TBL_RTS_RTY_LOWEST_RATE() argument
690 le32p_replace_bits((__le32 *)(table) + 2, val, GENMASK(31, 28)); in SET_CMC_TBL_RTS_RTY_LOWEST_RATE()
695 static inline void SET_CMC_TBL_DATA_TX_CNT_LMT(void *table, u32 val) in SET_CMC_TBL_DATA_TX_CNT_LMT() argument
697 le32p_replace_bits((__le32 *)(table) + 3, val, GENMASK(5, 0)); in SET_CMC_TBL_DATA_TX_CNT_LMT()
702 static inline void SET_CMC_TBL_DATA_TXCNT_LMT_SEL(void *table, u32 val) in SET_CMC_TBL_DATA_TXCNT_LMT_SEL() argument
704 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(6)); in SET_CMC_TBL_DATA_TXCNT_LMT_SEL()
709 static inline void SET_CMC_TBL_MAX_AGG_NUM_SEL(void *table, u32 val) in SET_CMC_TBL_MAX_AGG_NUM_SEL() argument
711 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(7)); in SET_CMC_TBL_MAX_AGG_NUM_SEL()
716 static inline void SET_CMC_TBL_RTS_EN(void *table, u32 val) in SET_CMC_TBL_RTS_EN() argument
718 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(8)); in SET_CMC_TBL_RTS_EN()
723 static inline void SET_CMC_TBL_CTS2SELF_EN(void *table, u32 val) in SET_CMC_TBL_CTS2SELF_EN() argument
725 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(9)); in SET_CMC_TBL_CTS2SELF_EN()
730 static inline void SET_CMC_TBL_CCA_RTS(void *table, u32 val) in SET_CMC_TBL_CCA_RTS() argument
732 le32p_replace_bits((__le32 *)(table) + 3, val, GENMASK(11, 10)); in SET_CMC_TBL_CCA_RTS()
737 static inline void SET_CMC_TBL_HW_RTS_EN(void *table, u32 val) in SET_CMC_TBL_HW_RTS_EN() argument
739 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(12)); in SET_CMC_TBL_HW_RTS_EN()
744 static inline void SET_CMC_TBL_RTS_DROP_DATA_MODE(void *table, u32 val) in SET_CMC_TBL_RTS_DROP_DATA_MODE() argument
746 le32p_replace_bits((__le32 *)(table) + 3, val, GENMASK(14, 13)); in SET_CMC_TBL_RTS_DROP_DATA_MODE()
751 static inline void SET_CMC_TBL_AMPDU_MAX_LEN(void *table, u32 val) in SET_CMC_TBL_AMPDU_MAX_LEN() argument
753 le32p_replace_bits((__le32 *)(table) + 3, val, GENMASK(26, 16)); in SET_CMC_TBL_AMPDU_MAX_LEN()
758 static inline void SET_CMC_TBL_UL_MU_DIS(void *table, u32 val) in SET_CMC_TBL_UL_MU_DIS() argument
760 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(27)); in SET_CMC_TBL_UL_MU_DIS()
765 static inline void SET_CMC_TBL_AMPDU_MAX_TIME(void *table, u32 val) in SET_CMC_TBL_AMPDU_MAX_TIME() argument
767 le32p_replace_bits((__le32 *)(table) + 3, val, GENMASK(31, 28)); in SET_CMC_TBL_AMPDU_MAX_TIME()
772 static inline void SET_CMC_TBL_MAX_AGG_NUM(void *table, u32 val) in SET_CMC_TBL_MAX_AGG_NUM() argument
774 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(7, 0)); in SET_CMC_TBL_MAX_AGG_NUM()
779 static inline void SET_CMC_TBL_BA_BMAP(void *table, u32 val) in SET_CMC_TBL_BA_BMAP() argument
781 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(9, 8)); in SET_CMC_TBL_BA_BMAP()
786 static inline void SET_CMC_TBL_VO_LFTIME_SEL(void *table, u32 val) in SET_CMC_TBL_VO_LFTIME_SEL() argument
788 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(18, 16)); in SET_CMC_TBL_VO_LFTIME_SEL()
793 static inline void SET_CMC_TBL_VI_LFTIME_SEL(void *table, u32 val) in SET_CMC_TBL_VI_LFTIME_SEL() argument
795 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(21, 19)); in SET_CMC_TBL_VI_LFTIME_SEL()
800 static inline void SET_CMC_TBL_BE_LFTIME_SEL(void *table, u32 val) in SET_CMC_TBL_BE_LFTIME_SEL() argument
802 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(24, 22)); in SET_CMC_TBL_BE_LFTIME_SEL()
807 static inline void SET_CMC_TBL_BK_LFTIME_SEL(void *table, u32 val) in SET_CMC_TBL_BK_LFTIME_SEL() argument
809 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(27, 25)); in SET_CMC_TBL_BK_LFTIME_SEL()
814 static inline void SET_CMC_TBL_SECTYPE(void *table, u32 val) in SET_CMC_TBL_SECTYPE() argument
816 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(31, 28)); in SET_CMC_TBL_SECTYPE()
821 static inline void SET_CMC_TBL_MULTI_PORT_ID(void *table, u32 val) in SET_CMC_TBL_MULTI_PORT_ID() argument
823 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(2, 0)); in SET_CMC_TBL_MULTI_PORT_ID()
828 static inline void SET_CMC_TBL_BMC(void *table, u32 val) in SET_CMC_TBL_BMC() argument
830 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(3)); in SET_CMC_TBL_BMC()
835 static inline void SET_CMC_TBL_MBSSID(void *table, u32 val) in SET_CMC_TBL_MBSSID() argument
837 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(7, 4)); in SET_CMC_TBL_MBSSID()
842 static inline void SET_CMC_TBL_NAVUSEHDR(void *table, u32 val) in SET_CMC_TBL_NAVUSEHDR() argument
844 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(8)); in SET_CMC_TBL_NAVUSEHDR()
849 static inline void SET_CMC_TBL_TXPWR_MODE(void *table, u32 val) in SET_CMC_TBL_TXPWR_MODE() argument
851 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(11, 9)); in SET_CMC_TBL_TXPWR_MODE()
856 static inline void SET_CMC_TBL_DATA_DCM(void *table, u32 val) in SET_CMC_TBL_DATA_DCM() argument
858 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(12)); in SET_CMC_TBL_DATA_DCM()
863 static inline void SET_CMC_TBL_DATA_ER(void *table, u32 val) in SET_CMC_TBL_DATA_ER() argument
865 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(13)); in SET_CMC_TBL_DATA_ER()
870 static inline void SET_CMC_TBL_DATA_LDPC(void *table, u32 val) in SET_CMC_TBL_DATA_LDPC() argument
872 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(14)); in SET_CMC_TBL_DATA_LDPC()
877 static inline void SET_CMC_TBL_DATA_STBC(void *table, u32 val) in SET_CMC_TBL_DATA_STBC() argument
879 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(15)); in SET_CMC_TBL_DATA_STBC()
884 static inline void SET_CMC_TBL_A_CTRL_BQR(void *table, u32 val) in SET_CMC_TBL_A_CTRL_BQR() argument
886 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(16)); in SET_CMC_TBL_A_CTRL_BQR()
891 static inline void SET_CMC_TBL_A_CTRL_UPH(void *table, u32 val) in SET_CMC_TBL_A_CTRL_UPH() argument
893 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(17)); in SET_CMC_TBL_A_CTRL_UPH()
898 static inline void SET_CMC_TBL_A_CTRL_BSR(void *table, u32 val) in SET_CMC_TBL_A_CTRL_BSR() argument
900 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(18)); in SET_CMC_TBL_A_CTRL_BSR()
905 static inline void SET_CMC_TBL_A_CTRL_CAS(void *table, u32 val) in SET_CMC_TBL_A_CTRL_CAS() argument
907 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(19)); in SET_CMC_TBL_A_CTRL_CAS()
912 static inline void SET_CMC_TBL_DATA_BW_ER(void *table, u32 val) in SET_CMC_TBL_DATA_BW_ER() argument
914 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(20)); in SET_CMC_TBL_DATA_BW_ER()
919 static inline void SET_CMC_TBL_LSIG_TXOP_EN(void *table, u32 val) in SET_CMC_TBL_LSIG_TXOP_EN() argument
921 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(21)); in SET_CMC_TBL_LSIG_TXOP_EN()
926 static inline void SET_CMC_TBL_CTRL_CNT_VLD(void *table, u32 val) in SET_CMC_TBL_CTRL_CNT_VLD() argument
928 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(27)); in SET_CMC_TBL_CTRL_CNT_VLD()
933 static inline void SET_CMC_TBL_CTRL_CNT(void *table, u32 val) in SET_CMC_TBL_CTRL_CNT() argument
935 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(31, 28)); in SET_CMC_TBL_CTRL_CNT()
940 static inline void SET_CMC_TBL_RESP_REF_RATE(void *table, u32 val) in SET_CMC_TBL_RESP_REF_RATE() argument
942 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(8, 0)); in SET_CMC_TBL_RESP_REF_RATE()
947 static inline void SET_CMC_TBL_ALL_ACK_SUPPORT(void *table, u32 val) in SET_CMC_TBL_ALL_ACK_SUPPORT() argument
949 le32p_replace_bits((__le32 *)(table) + 6, val, BIT(12)); in SET_CMC_TBL_ALL_ACK_SUPPORT()
954 static inline void SET_CMC_TBL_BSR_QUEUE_SIZE_FORMAT(void *table, u32 val) in SET_CMC_TBL_BSR_QUEUE_SIZE_FORMAT() argument
956 le32p_replace_bits((__le32 *)(table) + 6, val, BIT(13)); in SET_CMC_TBL_BSR_QUEUE_SIZE_FORMAT()
961 static inline void SET_CMC_TBL_NTX_PATH_EN(void *table, u32 val) in SET_CMC_TBL_NTX_PATH_EN() argument
963 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(19, 16)); in SET_CMC_TBL_NTX_PATH_EN()
968 static inline void SET_CMC_TBL_PATH_MAP_A(void *table, u32 val) in SET_CMC_TBL_PATH_MAP_A() argument
970 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(21, 20)); in SET_CMC_TBL_PATH_MAP_A()
975 static inline void SET_CMC_TBL_PATH_MAP_B(void *table, u32 val) in SET_CMC_TBL_PATH_MAP_B() argument
977 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(23, 22)); in SET_CMC_TBL_PATH_MAP_B()
982 static inline void SET_CMC_TBL_PATH_MAP_C(void *table, u32 val) in SET_CMC_TBL_PATH_MAP_C() argument
984 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(25, 24)); in SET_CMC_TBL_PATH_MAP_C()
989 static inline void SET_CMC_TBL_PATH_MAP_D(void *table, u32 val) in SET_CMC_TBL_PATH_MAP_D() argument
991 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(27, 26)); in SET_CMC_TBL_PATH_MAP_D()
996 static inline void SET_CMC_TBL_ANTSEL_A(void *table, u32 val) in SET_CMC_TBL_ANTSEL_A() argument
998 le32p_replace_bits((__le32 *)(table) + 6, val, BIT(28)); in SET_CMC_TBL_ANTSEL_A()
1003 static inline void SET_CMC_TBL_ANTSEL_B(void *table, u32 val) in SET_CMC_TBL_ANTSEL_B() argument
1005 le32p_replace_bits((__le32 *)(table) + 6, val, BIT(29)); in SET_CMC_TBL_ANTSEL_B()
1010 static inline void SET_CMC_TBL_ANTSEL_C(void *table, u32 val) in SET_CMC_TBL_ANTSEL_C() argument
1012 le32p_replace_bits((__le32 *)(table) + 6, val, BIT(30)); in SET_CMC_TBL_ANTSEL_C()
1017 static inline void SET_CMC_TBL_ANTSEL_D(void *table, u32 val) in SET_CMC_TBL_ANTSEL_D() argument
1019 le32p_replace_bits((__le32 *)(table) + 6, val, BIT(31)); in SET_CMC_TBL_ANTSEL_D()
1025 static inline void SET_CMC_TBL_NOMINAL_PKT_PADDING_V1(void *table, u32 val) in SET_CMC_TBL_NOMINAL_PKT_PADDING_V1() argument
1027 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(1, 0)); in SET_CMC_TBL_NOMINAL_PKT_PADDING_V1()
1032 static inline void SET_CMC_TBL_NOMINAL_PKT_PADDING40_V1(void *table, u32 val) in SET_CMC_TBL_NOMINAL_PKT_PADDING40_V1() argument
1034 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(3, 2)); in SET_CMC_TBL_NOMINAL_PKT_PADDING40_V1()
1039 static inline void SET_CMC_TBL_NOMINAL_PKT_PADDING80_V1(void *table, u32 val) in SET_CMC_TBL_NOMINAL_PKT_PADDING80_V1() argument
1041 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(5, 4)); in SET_CMC_TBL_NOMINAL_PKT_PADDING80_V1()
1046 static inline void SET_CMC_TBL_NOMINAL_PKT_PADDING160_V1(void *table, u32 val) in SET_CMC_TBL_NOMINAL_PKT_PADDING160_V1() argument
1048 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(7, 6)); in SET_CMC_TBL_NOMINAL_PKT_PADDING160_V1()
1054 static inline void SET_CMC_TBL_ADDR_CAM_INDEX(void *table, u32 val) in SET_CMC_TBL_ADDR_CAM_INDEX() argument
1056 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(7, 0)); in SET_CMC_TBL_ADDR_CAM_INDEX()
1061 static inline void SET_CMC_TBL_PAID(void *table, u32 val) in SET_CMC_TBL_PAID() argument
1063 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(16, 8)); in SET_CMC_TBL_PAID()
1068 static inline void SET_CMC_TBL_ULDL(void *table, u32 val) in SET_CMC_TBL_ULDL() argument
1070 le32p_replace_bits((__le32 *)(table) + 7, val, BIT(17)); in SET_CMC_TBL_ULDL()
1075 static inline void SET_CMC_TBL_DOPPLER_CTRL(void *table, u32 val) in SET_CMC_TBL_DOPPLER_CTRL() argument
1077 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(19, 18)); in SET_CMC_TBL_DOPPLER_CTRL()
1081 static inline void SET_CMC_TBL_NOMINAL_PKT_PADDING(void *table, u32 val) in SET_CMC_TBL_NOMINAL_PKT_PADDING() argument
1083 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(21, 20)); in SET_CMC_TBL_NOMINAL_PKT_PADDING()
1088 static inline void SET_CMC_TBL_NOMINAL_PKT_PADDING40(void *table, u32 val) in SET_CMC_TBL_NOMINAL_PKT_PADDING40() argument
1090 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(23, 22)); in SET_CMC_TBL_NOMINAL_PKT_PADDING40()
1095 static inline void SET_CMC_TBL_TXPWR_TOLERENCE(void *table, u32 val) in SET_CMC_TBL_TXPWR_TOLERENCE() argument
1097 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(27, 24)); in SET_CMC_TBL_TXPWR_TOLERENCE()
1102 static inline void SET_CMC_TBL_NOMINAL_PKT_PADDING80(void *table, u32 val) in SET_CMC_TBL_NOMINAL_PKT_PADDING80() argument
1104 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(31, 30)); in SET_CMC_TBL_NOMINAL_PKT_PADDING80()
1109 static inline void SET_CMC_TBL_NC(void *table, u32 val) in SET_CMC_TBL_NC() argument
1111 le32p_replace_bits((__le32 *)(table) + 8, val, GENMASK(2, 0)); in SET_CMC_TBL_NC()
1116 static inline void SET_CMC_TBL_NR(void *table, u32 val) in SET_CMC_TBL_NR() argument
1118 le32p_replace_bits((__le32 *)(table) + 8, val, GENMASK(5, 3)); in SET_CMC_TBL_NR()
1123 static inline void SET_CMC_TBL_NG(void *table, u32 val) in SET_CMC_TBL_NG() argument
1125 le32p_replace_bits((__le32 *)(table) + 8, val, GENMASK(7, 6)); in SET_CMC_TBL_NG()
1130 static inline void SET_CMC_TBL_CB(void *table, u32 val) in SET_CMC_TBL_CB() argument
1132 le32p_replace_bits((__le32 *)(table) + 8, val, GENMASK(9, 8)); in SET_CMC_TBL_CB()
1137 static inline void SET_CMC_TBL_CS(void *table, u32 val) in SET_CMC_TBL_CS() argument
1139 le32p_replace_bits((__le32 *)(table) + 8, val, GENMASK(11, 10)); in SET_CMC_TBL_CS()
1144 static inline void SET_CMC_TBL_CSI_TXBF_EN(void *table, u32 val) in SET_CMC_TBL_CSI_TXBF_EN() argument
1146 le32p_replace_bits((__le32 *)(table) + 8, val, BIT(12)); in SET_CMC_TBL_CSI_TXBF_EN()
1151 static inline void SET_CMC_TBL_CSI_STBC_EN(void *table, u32 val) in SET_CMC_TBL_CSI_STBC_EN() argument
1153 le32p_replace_bits((__le32 *)(table) + 8, val, BIT(13)); in SET_CMC_TBL_CSI_STBC_EN()
1158 static inline void SET_CMC_TBL_CSI_LDPC_EN(void *table, u32 val) in SET_CMC_TBL_CSI_LDPC_EN() argument
1160 le32p_replace_bits((__le32 *)(table) + 8, val, BIT(14)); in SET_CMC_TBL_CSI_LDPC_EN()
1165 static inline void SET_CMC_TBL_CSI_PARA_EN(void *table, u32 val) in SET_CMC_TBL_CSI_PARA_EN() argument
1167 le32p_replace_bits((__le32 *)(table) + 8, val, BIT(15)); in SET_CMC_TBL_CSI_PARA_EN()
1172 static inline void SET_CMC_TBL_CSI_FIX_RATE(void *table, u32 val) in SET_CMC_TBL_CSI_FIX_RATE() argument
1174 le32p_replace_bits((__le32 *)(table) + 8, val, GENMASK(24, 16)); in SET_CMC_TBL_CSI_FIX_RATE()
1179 static inline void SET_CMC_TBL_CSI_GI_LTF(void *table, u32 val) in SET_CMC_TBL_CSI_GI_LTF() argument
1181 le32p_replace_bits((__le32 *)(table) + 8, val, GENMASK(27, 25)); in SET_CMC_TBL_CSI_GI_LTF()
1186 static inline void SET_CMC_TBL_NOMINAL_PKT_PADDING160(void *table, u32 val) in SET_CMC_TBL_NOMINAL_PKT_PADDING160() argument
1188 le32p_replace_bits((__le32 *)(table) + 8, val, GENMASK(29, 28)); in SET_CMC_TBL_NOMINAL_PKT_PADDING160()
1194 static inline void SET_CMC_TBL_CSI_BW(void *table, u32 val) in SET_CMC_TBL_CSI_BW() argument
1196 le32p_replace_bits((__le32 *)(table) + 8, val, GENMASK(31, 30)); in SET_CMC_TBL_CSI_BW()
1201 static inline void SET_DCTL_MACID_V1(void *table, u32 val) in SET_DCTL_MACID_V1() argument
1203 le32p_replace_bits((__le32 *)(table) + 0, val, GENMASK(6, 0)); in SET_DCTL_MACID_V1()
1206 static inline void SET_DCTL_OPERATION_V1(void *table, u32 val) in SET_DCTL_OPERATION_V1() argument
1208 le32p_replace_bits((__le32 *)(table) + 0, val, BIT(7)); in SET_DCTL_OPERATION_V1()
1212 static inline void SET_DCTL_QOS_FIELD_V1(void *table, u32 val) in SET_DCTL_QOS_FIELD_V1() argument
1214 le32p_replace_bits((__le32 *)(table) + 1, val, GENMASK(7, 0)); in SET_DCTL_QOS_FIELD_V1()
1220 static inline void SET_DCTL_HW_EXSEQ_MACID_V1(void *table, u32 val) in SET_DCTL_HW_EXSEQ_MACID_V1() argument
1222 le32p_replace_bits((__le32 *)(table) + 1, val, GENMASK(14, 8)); in SET_DCTL_HW_EXSEQ_MACID_V1()
1228 static inline void SET_DCTL_QOS_DATA_V1(void *table, u32 val) in SET_DCTL_QOS_DATA_V1() argument
1230 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(15)); in SET_DCTL_QOS_DATA_V1()
1236 static inline void SET_DCTL_AES_IV_L_V1(void *table, u32 val) in SET_DCTL_AES_IV_L_V1() argument
1238 le32p_replace_bits((__le32 *)(table) + 1, val, GENMASK(31, 16)); in SET_DCTL_AES_IV_L_V1()
1244 static inline void SET_DCTL_AES_IV_H_V1(void *table, u32 val) in SET_DCTL_AES_IV_H_V1() argument
1246 le32p_replace_bits((__le32 *)(table) + 2, val, GENMASK(31, 0)); in SET_DCTL_AES_IV_H_V1()
1252 static inline void SET_DCTL_SEQ0_V1(void *table, u32 val) in SET_DCTL_SEQ0_V1() argument
1254 le32p_replace_bits((__le32 *)(table) + 3, val, GENMASK(11, 0)); in SET_DCTL_SEQ0_V1()
1260 static inline void SET_DCTL_SEQ1_V1(void *table, u32 val) in SET_DCTL_SEQ1_V1() argument
1262 le32p_replace_bits((__le32 *)(table) + 3, val, GENMASK(23, 12)); in SET_DCTL_SEQ1_V1()
1268 static inline void SET_DCTL_AMSDU_MAX_LEN_V1(void *table, u32 val) in SET_DCTL_AMSDU_MAX_LEN_V1() argument
1270 le32p_replace_bits((__le32 *)(table) + 3, val, GENMASK(26, 24)); in SET_DCTL_AMSDU_MAX_LEN_V1()
1276 static inline void SET_DCTL_STA_AMSDU_EN_V1(void *table, u32 val) in SET_DCTL_STA_AMSDU_EN_V1() argument
1278 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(27)); in SET_DCTL_STA_AMSDU_EN_V1()
1284 static inline void SET_DCTL_CHKSUM_OFLD_EN_V1(void *table, u32 val) in SET_DCTL_CHKSUM_OFLD_EN_V1() argument
1286 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(28)); in SET_DCTL_CHKSUM_OFLD_EN_V1()
1292 static inline void SET_DCTL_WITH_LLC_V1(void *table, u32 val) in SET_DCTL_WITH_LLC_V1() argument
1294 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(29)); in SET_DCTL_WITH_LLC_V1()
1300 static inline void SET_DCTL_SEQ2_V1(void *table, u32 val) in SET_DCTL_SEQ2_V1() argument
1302 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(11, 0)); in SET_DCTL_SEQ2_V1()
1308 static inline void SET_DCTL_SEQ3_V1(void *table, u32 val) in SET_DCTL_SEQ3_V1() argument
1310 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(23, 12)); in SET_DCTL_SEQ3_V1()
1316 static inline void SET_DCTL_TGT_IND_V1(void *table, u32 val) in SET_DCTL_TGT_IND_V1() argument
1318 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(27, 24)); in SET_DCTL_TGT_IND_V1()
1324 static inline void SET_DCTL_TGT_IND_EN_V1(void *table, u32 val) in SET_DCTL_TGT_IND_EN_V1() argument
1326 le32p_replace_bits((__le32 *)(table) + 4, val, BIT(28)); in SET_DCTL_TGT_IND_EN_V1()
1332 static inline void SET_DCTL_HTC_LB_V1(void *table, u32 val) in SET_DCTL_HTC_LB_V1() argument
1334 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(31, 29)); in SET_DCTL_HTC_LB_V1()
1340 static inline void SET_DCTL_MHDR_LEN_V1(void *table, u32 val) in SET_DCTL_MHDR_LEN_V1() argument
1342 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(4, 0)); in SET_DCTL_MHDR_LEN_V1()
1348 static inline void SET_DCTL_VLAN_TAG_VALID_V1(void *table, u32 val) in SET_DCTL_VLAN_TAG_VALID_V1() argument
1350 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(5)); in SET_DCTL_VLAN_TAG_VALID_V1()
1356 static inline void SET_DCTL_VLAN_TAG_SEL_V1(void *table, u32 val) in SET_DCTL_VLAN_TAG_SEL_V1() argument
1358 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(7, 6)); in SET_DCTL_VLAN_TAG_SEL_V1()
1364 static inline void SET_DCTL_HTC_ORDER_V1(void *table, u32 val) in SET_DCTL_HTC_ORDER_V1() argument
1366 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(8)); in SET_DCTL_HTC_ORDER_V1()
1372 static inline void SET_DCTL_SEC_KEY_ID_V1(void *table, u32 val) in SET_DCTL_SEC_KEY_ID_V1() argument
1374 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(10, 9)); in SET_DCTL_SEC_KEY_ID_V1()
1380 static inline void SET_DCTL_WAPI_V1(void *table, u32 val) in SET_DCTL_WAPI_V1() argument
1382 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(15)); in SET_DCTL_WAPI_V1()
1388 static inline void SET_DCTL_SEC_ENT_MODE_V1(void *table, u32 val) in SET_DCTL_SEC_ENT_MODE_V1() argument
1390 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(17, 16)); in SET_DCTL_SEC_ENT_MODE_V1()
1396 static inline void SET_DCTL_SEC_ENT0_KEYID_V1(void *table, u32 val) in SET_DCTL_SEC_ENT0_KEYID_V1() argument
1398 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(19, 18)); in SET_DCTL_SEC_ENT0_KEYID_V1()
1403 static inline void SET_DCTL_SEC_ENT1_KEYID_V1(void *table, u32 val) in SET_DCTL_SEC_ENT1_KEYID_V1() argument
1405 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(21, 20)); in SET_DCTL_SEC_ENT1_KEYID_V1()
1410 static inline void SET_DCTL_SEC_ENT2_KEYID_V1(void *table, u32 val) in SET_DCTL_SEC_ENT2_KEYID_V1() argument
1412 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(23, 22)); in SET_DCTL_SEC_ENT2_KEYID_V1()
1417 static inline void SET_DCTL_SEC_ENT3_KEYID_V1(void *table, u32 val) in SET_DCTL_SEC_ENT3_KEYID_V1() argument
1419 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(25, 24)); in SET_DCTL_SEC_ENT3_KEYID_V1()
1424 static inline void SET_DCTL_SEC_ENT4_KEYID_V1(void *table, u32 val) in SET_DCTL_SEC_ENT4_KEYID_V1() argument
1426 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(27, 26)); in SET_DCTL_SEC_ENT4_KEYID_V1()
1431 static inline void SET_DCTL_SEC_ENT5_KEYID_V1(void *table, u32 val) in SET_DCTL_SEC_ENT5_KEYID_V1() argument
1433 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(29, 28)); in SET_DCTL_SEC_ENT5_KEYID_V1()
1438 static inline void SET_DCTL_SEC_ENT6_KEYID_V1(void *table, u32 val) in SET_DCTL_SEC_ENT6_KEYID_V1() argument
1440 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(31, 30)); in SET_DCTL_SEC_ENT6_KEYID_V1()
1446 static inline void SET_DCTL_SEC_ENT_VALID_V1(void *table, u32 val) in SET_DCTL_SEC_ENT_VALID_V1() argument
1448 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(7, 0)); in SET_DCTL_SEC_ENT_VALID_V1()
1454 static inline void SET_DCTL_SEC_ENT0_V1(void *table, u32 val) in SET_DCTL_SEC_ENT0_V1() argument
1456 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(15, 8)); in SET_DCTL_SEC_ENT0_V1()
1461 static inline void SET_DCTL_SEC_ENT1_V1(void *table, u32 val) in SET_DCTL_SEC_ENT1_V1() argument
1463 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(23, 16)); in SET_DCTL_SEC_ENT1_V1()
1468 static inline void SET_DCTL_SEC_ENT2_V1(void *table, u32 val) in SET_DCTL_SEC_ENT2_V1() argument
1470 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(31, 24)); in SET_DCTL_SEC_ENT2_V1()
1475 static inline void SET_DCTL_SEC_ENT3_V1(void *table, u32 val) in SET_DCTL_SEC_ENT3_V1() argument
1477 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(7, 0)); in SET_DCTL_SEC_ENT3_V1()
1482 static inline void SET_DCTL_SEC_ENT4_V1(void *table, u32 val) in SET_DCTL_SEC_ENT4_V1() argument
1484 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(15, 8)); in SET_DCTL_SEC_ENT4_V1()
1489 static inline void SET_DCTL_SEC_ENT5_V1(void *table, u32 val) in SET_DCTL_SEC_ENT5_V1() argument
1491 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(23, 16)); in SET_DCTL_SEC_ENT5_V1()
1496 static inline void SET_DCTL_SEC_ENT6_V1(void *table, u32 val) in SET_DCTL_SEC_ENT6_V1() argument
1498 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(31, 24)); in SET_DCTL_SEC_ENT6_V1()
1503 static inline void SET_BCN_UPD_PORT(void *h2c, u32 val) in SET_BCN_UPD_PORT() argument
1505 le32p_replace_bits((__le32 *)h2c, val, GENMASK(7, 0)); in SET_BCN_UPD_PORT()
1508 static inline void SET_BCN_UPD_MBSSID(void *h2c, u32 val) in SET_BCN_UPD_MBSSID() argument
1510 le32p_replace_bits((__le32 *)h2c, val, GENMASK(15, 8)); in SET_BCN_UPD_MBSSID()
1513 static inline void SET_BCN_UPD_BAND(void *h2c, u32 val) in SET_BCN_UPD_BAND() argument
1515 le32p_replace_bits((__le32 *)h2c, val, GENMASK(23, 16)); in SET_BCN_UPD_BAND()
1518 static inline void SET_BCN_UPD_GRP_IE_OFST(void *h2c, u32 val) in SET_BCN_UPD_GRP_IE_OFST() argument
1520 le32p_replace_bits((__le32 *)h2c, (val - 24) | BIT(7), GENMASK(31, 24)); in SET_BCN_UPD_GRP_IE_OFST()
1523 static inline void SET_BCN_UPD_MACID(void *h2c, u32 val) in SET_BCN_UPD_MACID() argument
1525 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(7, 0)); in SET_BCN_UPD_MACID()
1528 static inline void SET_BCN_UPD_SSN_SEL(void *h2c, u32 val) in SET_BCN_UPD_SSN_SEL() argument
1530 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(9, 8)); in SET_BCN_UPD_SSN_SEL()
1533 static inline void SET_BCN_UPD_SSN_MODE(void *h2c, u32 val) in SET_BCN_UPD_SSN_MODE() argument
1535 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(11, 10)); in SET_BCN_UPD_SSN_MODE()
1538 static inline void SET_BCN_UPD_RATE(void *h2c, u32 val) in SET_BCN_UPD_RATE() argument
1540 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(20, 12)); in SET_BCN_UPD_RATE()
1543 static inline void SET_BCN_UPD_TXPWR(void *h2c, u32 val) in SET_BCN_UPD_TXPWR() argument
1545 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(23, 21)); in SET_BCN_UPD_TXPWR()
1548 static inline void SET_BCN_UPD_TXINFO_CTRL_EN(void *h2c, u32 val) in SET_BCN_UPD_TXINFO_CTRL_EN() argument
1550 le32p_replace_bits((__le32 *)(h2c) + 2, val, BIT(0)); in SET_BCN_UPD_TXINFO_CTRL_EN()
1553 static inline void SET_BCN_UPD_NTX_PATH_EN(void *h2c, u32 val) in SET_BCN_UPD_NTX_PATH_EN() argument
1555 le32p_replace_bits((__le32 *)(h2c) + 2, val, GENMASK(4, 1)); in SET_BCN_UPD_NTX_PATH_EN()
1558 static inline void SET_BCN_UPD_PATH_MAP_A(void *h2c, u32 val) in SET_BCN_UPD_PATH_MAP_A() argument
1560 le32p_replace_bits((__le32 *)(h2c) + 2, val, GENMASK(6, 5)); in SET_BCN_UPD_PATH_MAP_A()
1563 static inline void SET_BCN_UPD_PATH_MAP_B(void *h2c, u32 val) in SET_BCN_UPD_PATH_MAP_B() argument
1565 le32p_replace_bits((__le32 *)(h2c) + 2, val, GENMASK(8, 7)); in SET_BCN_UPD_PATH_MAP_B()
1568 static inline void SET_BCN_UPD_PATH_MAP_C(void *h2c, u32 val) in SET_BCN_UPD_PATH_MAP_C() argument
1570 le32p_replace_bits((__le32 *)(h2c) + 2, val, GENMASK(10, 9)); in SET_BCN_UPD_PATH_MAP_C()
1573 static inline void SET_BCN_UPD_PATH_MAP_D(void *h2c, u32 val) in SET_BCN_UPD_PATH_MAP_D() argument
1575 le32p_replace_bits((__le32 *)(h2c) + 2, val, GENMASK(12, 11)); in SET_BCN_UPD_PATH_MAP_D()
1578 static inline void SET_BCN_UPD_PATH_ANTSEL_A(void *h2c, u32 val) in SET_BCN_UPD_PATH_ANTSEL_A() argument
1580 le32p_replace_bits((__le32 *)(h2c) + 2, val, BIT(13)); in SET_BCN_UPD_PATH_ANTSEL_A()
1583 static inline void SET_BCN_UPD_PATH_ANTSEL_B(void *h2c, u32 val) in SET_BCN_UPD_PATH_ANTSEL_B() argument
1585 le32p_replace_bits((__le32 *)(h2c) + 2, val, BIT(14)); in SET_BCN_UPD_PATH_ANTSEL_B()
1588 static inline void SET_BCN_UPD_PATH_ANTSEL_C(void *h2c, u32 val) in SET_BCN_UPD_PATH_ANTSEL_C() argument
1590 le32p_replace_bits((__le32 *)(h2c) + 2, val, BIT(15)); in SET_BCN_UPD_PATH_ANTSEL_C()
1593 static inline void SET_BCN_UPD_PATH_ANTSEL_D(void *h2c, u32 val) in SET_BCN_UPD_PATH_ANTSEL_D() argument
1595 le32p_replace_bits((__le32 *)(h2c) + 2, val, BIT(16)); in SET_BCN_UPD_PATH_ANTSEL_D()
1598 static inline void SET_BCN_UPD_CSA_OFST(void *h2c, u32 val) in SET_BCN_UPD_CSA_OFST() argument
1600 le32p_replace_bits((__le32 *)(h2c) + 2, val, GENMASK(31, 17)); in SET_BCN_UPD_CSA_OFST()
1603 static inline void SET_FWROLE_MAINTAIN_MACID(void *h2c, u32 val) in SET_FWROLE_MAINTAIN_MACID() argument
1605 le32p_replace_bits((__le32 *)h2c, val, GENMASK(7, 0)); in SET_FWROLE_MAINTAIN_MACID()
1608 static inline void SET_FWROLE_MAINTAIN_SELF_ROLE(void *h2c, u32 val) in SET_FWROLE_MAINTAIN_SELF_ROLE() argument
1610 le32p_replace_bits((__le32 *)h2c, val, GENMASK(9, 8)); in SET_FWROLE_MAINTAIN_SELF_ROLE()
1613 static inline void SET_FWROLE_MAINTAIN_UPD_MODE(void *h2c, u32 val) in SET_FWROLE_MAINTAIN_UPD_MODE() argument
1615 le32p_replace_bits((__le32 *)h2c, val, GENMASK(12, 10)); in SET_FWROLE_MAINTAIN_UPD_MODE()
1618 static inline void SET_FWROLE_MAINTAIN_WIFI_ROLE(void *h2c, u32 val) in SET_FWROLE_MAINTAIN_WIFI_ROLE() argument
1620 le32p_replace_bits((__le32 *)h2c, val, GENMASK(16, 13)); in SET_FWROLE_MAINTAIN_WIFI_ROLE()
1623 static inline void SET_JOININFO_MACID(void *h2c, u32 val) in SET_JOININFO_MACID() argument
1625 le32p_replace_bits((__le32 *)h2c, val, GENMASK(7, 0)); in SET_JOININFO_MACID()
1628 static inline void SET_JOININFO_OP(void *h2c, u32 val) in SET_JOININFO_OP() argument
1630 le32p_replace_bits((__le32 *)h2c, val, BIT(8)); in SET_JOININFO_OP()
1633 static inline void SET_JOININFO_BAND(void *h2c, u32 val) in SET_JOININFO_BAND() argument
1635 le32p_replace_bits((__le32 *)h2c, val, BIT(9)); in SET_JOININFO_BAND()
1638 static inline void SET_JOININFO_WMM(void *h2c, u32 val) in SET_JOININFO_WMM() argument
1640 le32p_replace_bits((__le32 *)h2c, val, GENMASK(11, 10)); in SET_JOININFO_WMM()
1643 static inline void SET_JOININFO_TGR(void *h2c, u32 val) in SET_JOININFO_TGR() argument
1645 le32p_replace_bits((__le32 *)h2c, val, BIT(12)); in SET_JOININFO_TGR()
1648 static inline void SET_JOININFO_ISHESTA(void *h2c, u32 val) in SET_JOININFO_ISHESTA() argument
1650 le32p_replace_bits((__le32 *)h2c, val, BIT(13)); in SET_JOININFO_ISHESTA()
1653 static inline void SET_JOININFO_DLBW(void *h2c, u32 val) in SET_JOININFO_DLBW() argument
1655 le32p_replace_bits((__le32 *)h2c, val, GENMASK(15, 14)); in SET_JOININFO_DLBW()
1658 static inline void SET_JOININFO_TF_MAC_PAD(void *h2c, u32 val) in SET_JOININFO_TF_MAC_PAD() argument
1660 le32p_replace_bits((__le32 *)h2c, val, GENMASK(17, 16)); in SET_JOININFO_TF_MAC_PAD()
1663 static inline void SET_JOININFO_DL_T_PE(void *h2c, u32 val) in SET_JOININFO_DL_T_PE() argument
1665 le32p_replace_bits((__le32 *)h2c, val, GENMASK(20, 18)); in SET_JOININFO_DL_T_PE()
1668 static inline void SET_JOININFO_PORT_ID(void *h2c, u32 val) in SET_JOININFO_PORT_ID() argument
1670 le32p_replace_bits((__le32 *)h2c, val, GENMASK(23, 21)); in SET_JOININFO_PORT_ID()
1673 static inline void SET_JOININFO_NET_TYPE(void *h2c, u32 val) in SET_JOININFO_NET_TYPE() argument
1675 le32p_replace_bits((__le32 *)h2c, val, GENMASK(25, 24)); in SET_JOININFO_NET_TYPE()
1678 static inline void SET_JOININFO_WIFI_ROLE(void *h2c, u32 val) in SET_JOININFO_WIFI_ROLE() argument
1680 le32p_replace_bits((__le32 *)h2c, val, GENMASK(29, 26)); in SET_JOININFO_WIFI_ROLE()
1683 static inline void SET_JOININFO_SELF_ROLE(void *h2c, u32 val) in SET_JOININFO_SELF_ROLE() argument
1685 le32p_replace_bits((__le32 *)h2c, val, GENMASK(31, 30)); in SET_JOININFO_SELF_ROLE()
1688 static inline void SET_GENERAL_PKT_MACID(void *h2c, u32 val) in SET_GENERAL_PKT_MACID() argument
1690 le32p_replace_bits((__le32 *)h2c, val, GENMASK(7, 0)); in SET_GENERAL_PKT_MACID()
1693 static inline void SET_GENERAL_PKT_PROBRSP_ID(void *h2c, u32 val) in SET_GENERAL_PKT_PROBRSP_ID() argument
1695 le32p_replace_bits((__le32 *)h2c, val, GENMASK(15, 8)); in SET_GENERAL_PKT_PROBRSP_ID()
1698 static inline void SET_GENERAL_PKT_PSPOLL_ID(void *h2c, u32 val) in SET_GENERAL_PKT_PSPOLL_ID() argument
1700 le32p_replace_bits((__le32 *)h2c, val, GENMASK(23, 16)); in SET_GENERAL_PKT_PSPOLL_ID()
1703 static inline void SET_GENERAL_PKT_NULL_ID(void *h2c, u32 val) in SET_GENERAL_PKT_NULL_ID() argument
1705 le32p_replace_bits((__le32 *)h2c, val, GENMASK(31, 24)); in SET_GENERAL_PKT_NULL_ID()
1708 static inline void SET_GENERAL_PKT_QOS_NULL_ID(void *h2c, u32 val) in SET_GENERAL_PKT_QOS_NULL_ID() argument
1710 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(7, 0)); in SET_GENERAL_PKT_QOS_NULL_ID()
1713 static inline void SET_GENERAL_PKT_CTS2SELF_ID(void *h2c, u32 val) in SET_GENERAL_PKT_CTS2SELF_ID() argument
1715 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(15, 8)); in SET_GENERAL_PKT_CTS2SELF_ID()
1718 static inline void SET_LOG_CFG_LEVEL(void *h2c, u32 val) in SET_LOG_CFG_LEVEL() argument
1720 le32p_replace_bits((__le32 *)h2c, val, GENMASK(7, 0)); in SET_LOG_CFG_LEVEL()
1723 static inline void SET_LOG_CFG_PATH(void *h2c, u32 val) in SET_LOG_CFG_PATH() argument
1725 le32p_replace_bits((__le32 *)h2c, val, GENMASK(15, 8)); in SET_LOG_CFG_PATH()
1728 static inline void SET_LOG_CFG_COMP(void *h2c, u32 val) in SET_LOG_CFG_COMP() argument
1730 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(31, 0)); in SET_LOG_CFG_COMP()
1733 static inline void SET_LOG_CFG_COMP_EXT(void *h2c, u32 val) in SET_LOG_CFG_COMP_EXT() argument
1735 le32p_replace_bits((__le32 *)(h2c) + 2, val, GENMASK(31, 0)); in SET_LOG_CFG_COMP_EXT()
1738 static inline void SET_BA_CAM_VALID(void *h2c, u32 val) in SET_BA_CAM_VALID() argument
1740 le32p_replace_bits((__le32 *)h2c, val, BIT(0)); in SET_BA_CAM_VALID()
1743 static inline void SET_BA_CAM_INIT_REQ(void *h2c, u32 val) in SET_BA_CAM_INIT_REQ() argument
1745 le32p_replace_bits((__le32 *)h2c, val, BIT(1)); in SET_BA_CAM_INIT_REQ()
1748 static inline void SET_BA_CAM_ENTRY_IDX(void *h2c, u32 val) in SET_BA_CAM_ENTRY_IDX() argument
1750 le32p_replace_bits((__le32 *)h2c, val, GENMASK(3, 2)); in SET_BA_CAM_ENTRY_IDX()
1753 static inline void SET_BA_CAM_TID(void *h2c, u32 val) in SET_BA_CAM_TID() argument
1755 le32p_replace_bits((__le32 *)h2c, val, GENMASK(7, 4)); in SET_BA_CAM_TID()
1758 static inline void SET_BA_CAM_MACID(void *h2c, u32 val) in SET_BA_CAM_MACID() argument
1760 le32p_replace_bits((__le32 *)h2c, val, GENMASK(15, 8)); in SET_BA_CAM_MACID()
1763 static inline void SET_BA_CAM_BMAP_SIZE(void *h2c, u32 val) in SET_BA_CAM_BMAP_SIZE() argument
1765 le32p_replace_bits((__le32 *)h2c, val, GENMASK(19, 16)); in SET_BA_CAM_BMAP_SIZE()
1768 static inline void SET_BA_CAM_SSN(void *h2c, u32 val) in SET_BA_CAM_SSN() argument
1770 le32p_replace_bits((__le32 *)h2c, val, GENMASK(31, 20)); in SET_BA_CAM_SSN()
1773 static inline void SET_BA_CAM_UID(void *h2c, u32 val) in SET_BA_CAM_UID() argument
1775 le32p_replace_bits((__le32 *)h2c + 1, val, GENMASK(7, 0)); in SET_BA_CAM_UID()
1778 static inline void SET_BA_CAM_STD_EN(void *h2c, u32 val) in SET_BA_CAM_STD_EN() argument
1780 le32p_replace_bits((__le32 *)h2c + 1, val, BIT(8)); in SET_BA_CAM_STD_EN()
1783 static inline void SET_BA_CAM_BAND(void *h2c, u32 val) in SET_BA_CAM_BAND() argument
1785 le32p_replace_bits((__le32 *)h2c + 1, val, BIT(9)); in SET_BA_CAM_BAND()
1788 static inline void SET_BA_CAM_ENTRY_IDX_V1(void *h2c, u32 val) in SET_BA_CAM_ENTRY_IDX_V1() argument
1790 le32p_replace_bits((__le32 *)h2c + 1, val, GENMASK(31, 28)); in SET_BA_CAM_ENTRY_IDX_V1()
1793 static inline void SET_LPS_PARM_MACID(void *h2c, u32 val) in SET_LPS_PARM_MACID() argument
1795 le32p_replace_bits((__le32 *)h2c, val, GENMASK(7, 0)); in SET_LPS_PARM_MACID()
1798 static inline void SET_LPS_PARM_PSMODE(void *h2c, u32 val) in SET_LPS_PARM_PSMODE() argument
1800 le32p_replace_bits((__le32 *)h2c, val, GENMASK(15, 8)); in SET_LPS_PARM_PSMODE()
1803 static inline void SET_LPS_PARM_RLBM(void *h2c, u32 val) in SET_LPS_PARM_RLBM() argument
1805 le32p_replace_bits((__le32 *)h2c, val, GENMASK(19, 16)); in SET_LPS_PARM_RLBM()
1808 static inline void SET_LPS_PARM_SMARTPS(void *h2c, u32 val) in SET_LPS_PARM_SMARTPS() argument
1810 le32p_replace_bits((__le32 *)h2c, val, GENMASK(23, 20)); in SET_LPS_PARM_SMARTPS()
1813 static inline void SET_LPS_PARM_AWAKEINTERVAL(void *h2c, u32 val) in SET_LPS_PARM_AWAKEINTERVAL() argument
1815 le32p_replace_bits((__le32 *)h2c, val, GENMASK(31, 24)); in SET_LPS_PARM_AWAKEINTERVAL()
1818 static inline void SET_LPS_PARM_VOUAPSD(void *h2c, u32 val) in SET_LPS_PARM_VOUAPSD() argument
1820 le32p_replace_bits((__le32 *)(h2c) + 1, val, BIT(0)); in SET_LPS_PARM_VOUAPSD()
1823 static inline void SET_LPS_PARM_VIUAPSD(void *h2c, u32 val) in SET_LPS_PARM_VIUAPSD() argument
1825 le32p_replace_bits((__le32 *)(h2c) + 1, val, BIT(1)); in SET_LPS_PARM_VIUAPSD()
1828 static inline void SET_LPS_PARM_BEUAPSD(void *h2c, u32 val) in SET_LPS_PARM_BEUAPSD() argument
1830 le32p_replace_bits((__le32 *)(h2c) + 1, val, BIT(2)); in SET_LPS_PARM_BEUAPSD()
1833 static inline void SET_LPS_PARM_BKUAPSD(void *h2c, u32 val) in SET_LPS_PARM_BKUAPSD() argument
1835 le32p_replace_bits((__le32 *)(h2c) + 1, val, BIT(3)); in SET_LPS_PARM_BKUAPSD()
1838 static inline void SET_LPS_PARM_LASTRPWM(void *h2c, u32 val) in SET_LPS_PARM_LASTRPWM() argument
1840 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(15, 8)); in SET_LPS_PARM_LASTRPWM()
1843 static inline void RTW89_SET_FWCMD_CPU_EXCEPTION_TYPE(void *cmd, u32 val) in RTW89_SET_FWCMD_CPU_EXCEPTION_TYPE() argument
1845 le32p_replace_bits((__le32 *)cmd, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_CPU_EXCEPTION_TYPE()
1848 static inline void RTW89_SET_FWCMD_PKT_DROP_SEL(void *cmd, u32 val) in RTW89_SET_FWCMD_PKT_DROP_SEL() argument
1850 le32p_replace_bits((__le32 *)cmd, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_PKT_DROP_SEL()
1853 static inline void RTW89_SET_FWCMD_PKT_DROP_MACID(void *cmd, u32 val) in RTW89_SET_FWCMD_PKT_DROP_MACID() argument
1855 le32p_replace_bits((__le32 *)cmd, val, GENMASK(15, 8)); in RTW89_SET_FWCMD_PKT_DROP_MACID()
1858 static inline void RTW89_SET_FWCMD_PKT_DROP_BAND(void *cmd, u32 val) in RTW89_SET_FWCMD_PKT_DROP_BAND() argument
1860 le32p_replace_bits((__le32 *)cmd, val, GENMASK(23, 16)); in RTW89_SET_FWCMD_PKT_DROP_BAND()
1863 static inline void RTW89_SET_FWCMD_PKT_DROP_PORT(void *cmd, u32 val) in RTW89_SET_FWCMD_PKT_DROP_PORT() argument
1865 le32p_replace_bits((__le32 *)cmd, val, GENMASK(31, 24)); in RTW89_SET_FWCMD_PKT_DROP_PORT()
1868 static inline void RTW89_SET_FWCMD_PKT_DROP_MBSSID(void *cmd, u32 val) in RTW89_SET_FWCMD_PKT_DROP_MBSSID() argument
1870 le32p_replace_bits((__le32 *)cmd + 1, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_PKT_DROP_MBSSID()
1873 static inline void RTW89_SET_FWCMD_PKT_DROP_ROLE_A_INFO_TF_TRS(void *cmd, u32 val) in RTW89_SET_FWCMD_PKT_DROP_ROLE_A_INFO_TF_TRS() argument
1875 le32p_replace_bits((__le32 *)cmd + 1, val, GENMASK(15, 8)); in RTW89_SET_FWCMD_PKT_DROP_ROLE_A_INFO_TF_TRS()
1878 static inline void RTW89_SET_FWCMD_PKT_DROP_MACID_BAND_SEL_0(void *cmd, u32 val) in RTW89_SET_FWCMD_PKT_DROP_MACID_BAND_SEL_0() argument
1880 le32p_replace_bits((__le32 *)cmd + 2, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_PKT_DROP_MACID_BAND_SEL_0()
1883 static inline void RTW89_SET_FWCMD_PKT_DROP_MACID_BAND_SEL_1(void *cmd, u32 val) in RTW89_SET_FWCMD_PKT_DROP_MACID_BAND_SEL_1() argument
1885 le32p_replace_bits((__le32 *)cmd + 3, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_PKT_DROP_MACID_BAND_SEL_1()
1888 static inline void RTW89_SET_FWCMD_PKT_DROP_MACID_BAND_SEL_2(void *cmd, u32 val) in RTW89_SET_FWCMD_PKT_DROP_MACID_BAND_SEL_2() argument
1890 le32p_replace_bits((__le32 *)cmd + 4, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_PKT_DROP_MACID_BAND_SEL_2()
1893 static inline void RTW89_SET_FWCMD_PKT_DROP_MACID_BAND_SEL_3(void *cmd, u32 val) in RTW89_SET_FWCMD_PKT_DROP_MACID_BAND_SEL_3() argument
1895 le32p_replace_bits((__le32 *)cmd + 5, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_PKT_DROP_MACID_BAND_SEL_3()
1898 static inline void RTW89_SET_KEEP_ALIVE_ENABLE(void *h2c, u32 val) in RTW89_SET_KEEP_ALIVE_ENABLE() argument
1900 le32p_replace_bits((__le32 *)h2c, val, GENMASK(1, 0)); in RTW89_SET_KEEP_ALIVE_ENABLE()
1903 static inline void RTW89_SET_KEEP_ALIVE_PKT_NULL_ID(void *h2c, u32 val) in RTW89_SET_KEEP_ALIVE_PKT_NULL_ID() argument
1905 le32p_replace_bits((__le32 *)h2c, val, GENMASK(15, 8)); in RTW89_SET_KEEP_ALIVE_PKT_NULL_ID()
1908 static inline void RTW89_SET_KEEP_ALIVE_PERIOD(void *h2c, u32 val) in RTW89_SET_KEEP_ALIVE_PERIOD() argument
1910 le32p_replace_bits((__le32 *)h2c, val, GENMASK(24, 16)); in RTW89_SET_KEEP_ALIVE_PERIOD()
1913 static inline void RTW89_SET_KEEP_ALIVE_MACID(void *h2c, u32 val) in RTW89_SET_KEEP_ALIVE_MACID() argument
1915 le32p_replace_bits((__le32 *)h2c, val, GENMASK(31, 24)); in RTW89_SET_KEEP_ALIVE_MACID()
1918 static inline void RTW89_SET_DISCONNECT_DETECT_ENABLE(void *h2c, u32 val) in RTW89_SET_DISCONNECT_DETECT_ENABLE() argument
1920 le32p_replace_bits((__le32 *)h2c, val, BIT(0)); in RTW89_SET_DISCONNECT_DETECT_ENABLE()
1923 static inline void RTW89_SET_DISCONNECT_DETECT_TRYOK_BCNFAIL_COUNT_EN(void *h2c, u32 val) in RTW89_SET_DISCONNECT_DETECT_TRYOK_BCNFAIL_COUNT_EN() argument
1925 le32p_replace_bits((__le32 *)h2c, val, BIT(1)); in RTW89_SET_DISCONNECT_DETECT_TRYOK_BCNFAIL_COUNT_EN()
1928 static inline void RTW89_SET_DISCONNECT_DETECT_DISCONNECT(void *h2c, u32 val) in RTW89_SET_DISCONNECT_DETECT_DISCONNECT() argument
1930 le32p_replace_bits((__le32 *)h2c, val, BIT(2)); in RTW89_SET_DISCONNECT_DETECT_DISCONNECT()
1933 static inline void RTW89_SET_DISCONNECT_DETECT_MAC_ID(void *h2c, u32 val) in RTW89_SET_DISCONNECT_DETECT_MAC_ID() argument
1935 le32p_replace_bits((__le32 *)h2c, val, GENMASK(15, 8)); in RTW89_SET_DISCONNECT_DETECT_MAC_ID()
1938 static inline void RTW89_SET_DISCONNECT_DETECT_CHECK_PERIOD(void *h2c, u32 val) in RTW89_SET_DISCONNECT_DETECT_CHECK_PERIOD() argument
1940 le32p_replace_bits((__le32 *)h2c, val, GENMASK(23, 16)); in RTW89_SET_DISCONNECT_DETECT_CHECK_PERIOD()
1943 static inline void RTW89_SET_DISCONNECT_DETECT_TRY_PKT_COUNT(void *h2c, u32 val) in RTW89_SET_DISCONNECT_DETECT_TRY_PKT_COUNT() argument
1945 le32p_replace_bits((__le32 *)h2c, val, GENMASK(31, 24)); in RTW89_SET_DISCONNECT_DETECT_TRY_PKT_COUNT()
1948 static inline void RTW89_SET_DISCONNECT_DETECT_TRYOK_BCNFAIL_COUNT_LIMIT(void *h2c, u32 val) in RTW89_SET_DISCONNECT_DETECT_TRYOK_BCNFAIL_COUNT_LIMIT() argument
1950 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(7, 0)); in RTW89_SET_DISCONNECT_DETECT_TRYOK_BCNFAIL_COUNT_LIMIT()
1953 static inline void RTW89_SET_WOW_GLOBAL_ENABLE(void *h2c, u32 val) in RTW89_SET_WOW_GLOBAL_ENABLE() argument
1955 le32p_replace_bits((__le32 *)h2c, val, BIT(0)); in RTW89_SET_WOW_GLOBAL_ENABLE()
1958 static inline void RTW89_SET_WOW_GLOBAL_DROP_ALL_PKT(void *h2c, u32 val) in RTW89_SET_WOW_GLOBAL_DROP_ALL_PKT() argument
1960 le32p_replace_bits((__le32 *)h2c, val, BIT(1)); in RTW89_SET_WOW_GLOBAL_DROP_ALL_PKT()
1963 static inline void RTW89_SET_WOW_GLOBAL_RX_PARSE_AFTER_WAKE(void *h2c, u32 val) in RTW89_SET_WOW_GLOBAL_RX_PARSE_AFTER_WAKE() argument
1965 le32p_replace_bits((__le32 *)h2c, val, BIT(2)); in RTW89_SET_WOW_GLOBAL_RX_PARSE_AFTER_WAKE()
1968 static inline void RTW89_SET_WOW_GLOBAL_WAKE_BAR_PULLED(void *h2c, u32 val) in RTW89_SET_WOW_GLOBAL_WAKE_BAR_PULLED() argument
1970 le32p_replace_bits((__le32 *)h2c, val, BIT(3)); in RTW89_SET_WOW_GLOBAL_WAKE_BAR_PULLED()
1973 static inline void RTW89_SET_WOW_GLOBAL_MAC_ID(void *h2c, u32 val) in RTW89_SET_WOW_GLOBAL_MAC_ID() argument
1975 le32p_replace_bits((__le32 *)h2c, val, GENMASK(15, 8)); in RTW89_SET_WOW_GLOBAL_MAC_ID()
1978 static inline void RTW89_SET_WOW_GLOBAL_PAIRWISE_SEC_ALGO(void *h2c, u32 val) in RTW89_SET_WOW_GLOBAL_PAIRWISE_SEC_ALGO() argument
1980 le32p_replace_bits((__le32 *)h2c, val, GENMASK(23, 16)); in RTW89_SET_WOW_GLOBAL_PAIRWISE_SEC_ALGO()
1983 static inline void RTW89_SET_WOW_GLOBAL_GROUP_SEC_ALGO(void *h2c, u32 val) in RTW89_SET_WOW_GLOBAL_GROUP_SEC_ALGO() argument
1985 le32p_replace_bits((__le32 *)h2c, val, GENMASK(31, 24)); in RTW89_SET_WOW_GLOBAL_GROUP_SEC_ALGO()
1988 static inline void RTW89_SET_WOW_GLOBAL_REMOTECTRL_INFO_CONTENT(void *h2c, u32 val) in RTW89_SET_WOW_GLOBAL_REMOTECTRL_INFO_CONTENT() argument
1990 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(31, 0)); in RTW89_SET_WOW_GLOBAL_REMOTECTRL_INFO_CONTENT()
1993 static inline void RTW89_SET_WOW_WAKEUP_CTRL_PATTERN_MATCH_ENABLE(void *h2c, u32 val) in RTW89_SET_WOW_WAKEUP_CTRL_PATTERN_MATCH_ENABLE() argument
1995 le32p_replace_bits((__le32 *)h2c, val, BIT(0)); in RTW89_SET_WOW_WAKEUP_CTRL_PATTERN_MATCH_ENABLE()
1998 static inline void RTW89_SET_WOW_WAKEUP_CTRL_MAGIC_ENABLE(void *h2c, u32 val) in RTW89_SET_WOW_WAKEUP_CTRL_MAGIC_ENABLE() argument
2000 le32p_replace_bits((__le32 *)h2c, val, BIT(1)); in RTW89_SET_WOW_WAKEUP_CTRL_MAGIC_ENABLE()
2003 static inline void RTW89_SET_WOW_WAKEUP_CTRL_HW_UNICAST_ENABLE(void *h2c, u32 val) in RTW89_SET_WOW_WAKEUP_CTRL_HW_UNICAST_ENABLE() argument
2005 le32p_replace_bits((__le32 *)h2c, val, BIT(2)); in RTW89_SET_WOW_WAKEUP_CTRL_HW_UNICAST_ENABLE()
2008 static inline void RTW89_SET_WOW_WAKEUP_CTRL_FW_UNICAST_ENABLE(void *h2c, u32 val) in RTW89_SET_WOW_WAKEUP_CTRL_FW_UNICAST_ENABLE() argument
2010 le32p_replace_bits((__le32 *)h2c, val, BIT(3)); in RTW89_SET_WOW_WAKEUP_CTRL_FW_UNICAST_ENABLE()
2013 static inline void RTW89_SET_WOW_WAKEUP_CTRL_DEAUTH_ENABLE(void *h2c, u32 val) in RTW89_SET_WOW_WAKEUP_CTRL_DEAUTH_ENABLE() argument
2015 le32p_replace_bits((__le32 *)h2c, val, BIT(4)); in RTW89_SET_WOW_WAKEUP_CTRL_DEAUTH_ENABLE()
2018 static inline void RTW89_SET_WOW_WAKEUP_CTRL_REKEYP_ENABLE(void *h2c, u32 val) in RTW89_SET_WOW_WAKEUP_CTRL_REKEYP_ENABLE() argument
2020 le32p_replace_bits((__le32 *)h2c, val, BIT(5)); in RTW89_SET_WOW_WAKEUP_CTRL_REKEYP_ENABLE()
2023 static inline void RTW89_SET_WOW_WAKEUP_CTRL_EAP_ENABLE(void *h2c, u32 val) in RTW89_SET_WOW_WAKEUP_CTRL_EAP_ENABLE() argument
2025 le32p_replace_bits((__le32 *)h2c, val, BIT(6)); in RTW89_SET_WOW_WAKEUP_CTRL_EAP_ENABLE()
2028 static inline void RTW89_SET_WOW_WAKEUP_CTRL_ALL_DATA_ENABLE(void *h2c, u32 val) in RTW89_SET_WOW_WAKEUP_CTRL_ALL_DATA_ENABLE() argument
2030 le32p_replace_bits((__le32 *)h2c, val, BIT(7)); in RTW89_SET_WOW_WAKEUP_CTRL_ALL_DATA_ENABLE()
2033 static inline void RTW89_SET_WOW_WAKEUP_CTRL_MAC_ID(void *h2c, u32 val) in RTW89_SET_WOW_WAKEUP_CTRL_MAC_ID() argument
2035 le32p_replace_bits((__le32 *)h2c, val, GENMASK(31, 24)); in RTW89_SET_WOW_WAKEUP_CTRL_MAC_ID()
2038 static inline void RTW89_SET_WOW_CAM_UPD_R_W(void *h2c, u32 val) in RTW89_SET_WOW_CAM_UPD_R_W() argument
2040 le32p_replace_bits((__le32 *)h2c, val, BIT(0)); in RTW89_SET_WOW_CAM_UPD_R_W()
2043 static inline void RTW89_SET_WOW_CAM_UPD_IDX(void *h2c, u32 val) in RTW89_SET_WOW_CAM_UPD_IDX() argument
2045 le32p_replace_bits((__le32 *)h2c, val, GENMASK(7, 1)); in RTW89_SET_WOW_CAM_UPD_IDX()
2048 static inline void RTW89_SET_WOW_CAM_UPD_WKFM1(void *h2c, u32 val) in RTW89_SET_WOW_CAM_UPD_WKFM1() argument
2050 le32p_replace_bits((__le32 *)h2c + 1, val, GENMASK(31, 0)); in RTW89_SET_WOW_CAM_UPD_WKFM1()
2053 static inline void RTW89_SET_WOW_CAM_UPD_WKFM2(void *h2c, u32 val) in RTW89_SET_WOW_CAM_UPD_WKFM2() argument
2055 le32p_replace_bits((__le32 *)h2c + 2, val, GENMASK(31, 0)); in RTW89_SET_WOW_CAM_UPD_WKFM2()
2058 static inline void RTW89_SET_WOW_CAM_UPD_WKFM3(void *h2c, u32 val) in RTW89_SET_WOW_CAM_UPD_WKFM3() argument
2060 le32p_replace_bits((__le32 *)h2c + 3, val, GENMASK(31, 0)); in RTW89_SET_WOW_CAM_UPD_WKFM3()
2063 static inline void RTW89_SET_WOW_CAM_UPD_WKFM4(void *h2c, u32 val) in RTW89_SET_WOW_CAM_UPD_WKFM4() argument
2065 le32p_replace_bits((__le32 *)h2c + 4, val, GENMASK(31, 0)); in RTW89_SET_WOW_CAM_UPD_WKFM4()
2068 static inline void RTW89_SET_WOW_CAM_UPD_CRC(void *h2c, u32 val) in RTW89_SET_WOW_CAM_UPD_CRC() argument
2070 le32p_replace_bits((__le32 *)h2c + 5, val, GENMASK(15, 0)); in RTW89_SET_WOW_CAM_UPD_CRC()
2073 static inline void RTW89_SET_WOW_CAM_UPD_NEGATIVE_PATTERN_MATCH(void *h2c, u32 val) in RTW89_SET_WOW_CAM_UPD_NEGATIVE_PATTERN_MATCH() argument
2075 le32p_replace_bits((__le32 *)h2c + 5, val, BIT(22)); in RTW89_SET_WOW_CAM_UPD_NEGATIVE_PATTERN_MATCH()
2078 static inline void RTW89_SET_WOW_CAM_UPD_SKIP_MAC_HDR(void *h2c, u32 val) in RTW89_SET_WOW_CAM_UPD_SKIP_MAC_HDR() argument
2080 le32p_replace_bits((__le32 *)h2c + 5, val, BIT(23)); in RTW89_SET_WOW_CAM_UPD_SKIP_MAC_HDR()
2083 static inline void RTW89_SET_WOW_CAM_UPD_UC(void *h2c, u32 val) in RTW89_SET_WOW_CAM_UPD_UC() argument
2085 le32p_replace_bits((__le32 *)h2c + 5, val, BIT(24)); in RTW89_SET_WOW_CAM_UPD_UC()
2088 static inline void RTW89_SET_WOW_CAM_UPD_MC(void *h2c, u32 val) in RTW89_SET_WOW_CAM_UPD_MC() argument
2090 le32p_replace_bits((__le32 *)h2c + 5, val, BIT(25)); in RTW89_SET_WOW_CAM_UPD_MC()
2093 static inline void RTW89_SET_WOW_CAM_UPD_BC(void *h2c, u32 val) in RTW89_SET_WOW_CAM_UPD_BC() argument
2095 le32p_replace_bits((__le32 *)h2c + 5, val, BIT(26)); in RTW89_SET_WOW_CAM_UPD_BC()
2098 static inline void RTW89_SET_WOW_CAM_UPD_VALID(void *h2c, u32 val) in RTW89_SET_WOW_CAM_UPD_VALID() argument
2100 le32p_replace_bits((__le32 *)h2c + 5, val, BIT(31)); in RTW89_SET_WOW_CAM_UPD_VALID()
2152 static inline void RTW89_SET_FWCMD_CXHDR_TYPE(void *cmd, u8 val) in RTW89_SET_FWCMD_CXHDR_TYPE() argument
2154 u8p_replace_bits((u8 *)(cmd) + 0, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXHDR_TYPE()
2157 static inline void RTW89_SET_FWCMD_CXHDR_LEN(void *cmd, u8 val) in RTW89_SET_FWCMD_CXHDR_LEN() argument
2159 u8p_replace_bits((u8 *)(cmd) + 1, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXHDR_LEN()
2201 static inline void RTW89_SET_FWCMD_CXROLE_CONNECT_CNT(void *cmd, u8 val) in RTW89_SET_FWCMD_CXROLE_CONNECT_CNT() argument
2203 u8p_replace_bits((u8 *)(cmd) + 2, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXROLE_CONNECT_CNT()
2206 static inline void RTW89_SET_FWCMD_CXROLE_LINK_MODE(void *cmd, u8 val) in RTW89_SET_FWCMD_CXROLE_LINK_MODE() argument
2208 u8p_replace_bits((u8 *)(cmd) + 3, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXROLE_LINK_MODE()
2211 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_NONE(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_NONE() argument
2213 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(0)); in RTW89_SET_FWCMD_CXROLE_ROLE_NONE()
2216 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_STA(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_STA() argument
2218 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(1)); in RTW89_SET_FWCMD_CXROLE_ROLE_STA()
2221 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_AP(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_AP() argument
2223 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(2)); in RTW89_SET_FWCMD_CXROLE_ROLE_AP()
2226 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_VAP(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_VAP() argument
2228 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(3)); in RTW89_SET_FWCMD_CXROLE_ROLE_VAP()
2231 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_ADHOC(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_ADHOC() argument
2233 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(4)); in RTW89_SET_FWCMD_CXROLE_ROLE_ADHOC()
2236 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_ADHOC_MASTER(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_ADHOC_MASTER() argument
2238 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(5)); in RTW89_SET_FWCMD_CXROLE_ROLE_ADHOC_MASTER()
2241 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_MESH(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_MESH() argument
2243 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(6)); in RTW89_SET_FWCMD_CXROLE_ROLE_MESH()
2246 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_MONITOR(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_MONITOR() argument
2248 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(7)); in RTW89_SET_FWCMD_CXROLE_ROLE_MONITOR()
2251 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_P2P_DEV(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_P2P_DEV() argument
2253 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(8)); in RTW89_SET_FWCMD_CXROLE_ROLE_P2P_DEV()
2256 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_P2P_GC(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_P2P_GC() argument
2258 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(9)); in RTW89_SET_FWCMD_CXROLE_ROLE_P2P_GC()
2261 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_P2P_GO(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_P2P_GO() argument
2263 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(10)); in RTW89_SET_FWCMD_CXROLE_ROLE_P2P_GO()
2266 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_NAN(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_NAN() argument
2268 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(11)); in RTW89_SET_FWCMD_CXROLE_ROLE_NAN()
2271 static inline void RTW89_SET_FWCMD_CXROLE_ACT_CONNECTED(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_CONNECTED() argument
2273 u8p_replace_bits((u8 *)cmd + (6 + (12 + offset) * n), val, BIT(0)); in RTW89_SET_FWCMD_CXROLE_ACT_CONNECTED()
2276 static inline void RTW89_SET_FWCMD_CXROLE_ACT_PID(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_PID() argument
2278 u8p_replace_bits((u8 *)cmd + (6 + (12 + offset) * n), val, GENMASK(3, 1)); in RTW89_SET_FWCMD_CXROLE_ACT_PID()
2281 static inline void RTW89_SET_FWCMD_CXROLE_ACT_PHY(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_PHY() argument
2283 u8p_replace_bits((u8 *)cmd + (6 + (12 + offset) * n), val, BIT(4)); in RTW89_SET_FWCMD_CXROLE_ACT_PHY()
2286 static inline void RTW89_SET_FWCMD_CXROLE_ACT_NOA(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_NOA() argument
2288 u8p_replace_bits((u8 *)cmd + (6 + (12 + offset) * n), val, BIT(5)); in RTW89_SET_FWCMD_CXROLE_ACT_NOA()
2291 static inline void RTW89_SET_FWCMD_CXROLE_ACT_BAND(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_BAND() argument
2293 u8p_replace_bits((u8 *)cmd + (6 + (12 + offset) * n), val, GENMASK(7, 6)); in RTW89_SET_FWCMD_CXROLE_ACT_BAND()
2296 static inline void RTW89_SET_FWCMD_CXROLE_ACT_CLIENT_PS(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_CLIENT_PS() argument
2298 u8p_replace_bits((u8 *)cmd + (7 + (12 + offset) * n), val, BIT(0)); in RTW89_SET_FWCMD_CXROLE_ACT_CLIENT_PS()
2301 static inline void RTW89_SET_FWCMD_CXROLE_ACT_BW(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_BW() argument
2303 u8p_replace_bits((u8 *)cmd + (7 + (12 + offset) * n), val, GENMASK(7, 1)); in RTW89_SET_FWCMD_CXROLE_ACT_BW()
2306 static inline void RTW89_SET_FWCMD_CXROLE_ACT_ROLE(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_ROLE() argument
2308 u8p_replace_bits((u8 *)cmd + (8 + (12 + offset) * n), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_ROLE()
2311 static inline void RTW89_SET_FWCMD_CXROLE_ACT_CH(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_CH() argument
2313 u8p_replace_bits((u8 *)cmd + (9 + (12 + offset) * n), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_CH()
2316 static inline void RTW89_SET_FWCMD_CXROLE_ACT_TX_LVL(void *cmd, u16 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_TX_LVL() argument
2318 le16p_replace_bits((__le16 *)((u8 *)cmd + (10 + (12 + offset) * n)), val, GENMASK(15, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_TX_LVL()
2321 static inline void RTW89_SET_FWCMD_CXROLE_ACT_RX_LVL(void *cmd, u16 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_RX_LVL() argument
2323 le16p_replace_bits((__le16 *)((u8 *)cmd + (12 + (12 + offset) * n)), val, GENMASK(15, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_RX_LVL()
2326 static inline void RTW89_SET_FWCMD_CXROLE_ACT_TX_RATE(void *cmd, u16 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_TX_RATE() argument
2328 le16p_replace_bits((__le16 *)((u8 *)cmd + (14 + (12 + offset) * n)), val, GENMASK(15, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_TX_RATE()
2331 static inline void RTW89_SET_FWCMD_CXROLE_ACT_RX_RATE(void *cmd, u16 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_RX_RATE() argument
2333 le16p_replace_bits((__le16 *)((u8 *)cmd + (16 + (12 + offset) * n)), val, GENMASK(15, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_RX_RATE()
2336 static inline void RTW89_SET_FWCMD_CXROLE_ACT_NOA_DUR(void *cmd, u32 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_NOA_DUR() argument
2338 le32p_replace_bits((__le32 *)((u8 *)cmd + (20 + (12 + offset) * n)), val, GENMASK(31, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_NOA_DUR()
2341 static inline void RTW89_SET_FWCMD_CXROLE_ACT_CONNECTED_V2(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_CONNECTED_V2() argument
2343 u8p_replace_bits((u8 *)cmd + (6 + (12 + offset) * n), val, BIT(0)); in RTW89_SET_FWCMD_CXROLE_ACT_CONNECTED_V2()
2346 static inline void RTW89_SET_FWCMD_CXROLE_ACT_PID_V2(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_PID_V2() argument
2348 u8p_replace_bits((u8 *)cmd + (6 + (12 + offset) * n), val, GENMASK(3, 1)); in RTW89_SET_FWCMD_CXROLE_ACT_PID_V2()
2351 static inline void RTW89_SET_FWCMD_CXROLE_ACT_PHY_V2(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_PHY_V2() argument
2353 u8p_replace_bits((u8 *)cmd + (6 + (12 + offset) * n), val, BIT(4)); in RTW89_SET_FWCMD_CXROLE_ACT_PHY_V2()
2356 static inline void RTW89_SET_FWCMD_CXROLE_ACT_NOA_V2(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_NOA_V2() argument
2358 u8p_replace_bits((u8 *)cmd + (6 + (12 + offset) * n), val, BIT(5)); in RTW89_SET_FWCMD_CXROLE_ACT_NOA_V2()
2361 static inline void RTW89_SET_FWCMD_CXROLE_ACT_BAND_V2(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_BAND_V2() argument
2363 u8p_replace_bits((u8 *)cmd + (6 + (12 + offset) * n), val, GENMASK(7, 6)); in RTW89_SET_FWCMD_CXROLE_ACT_BAND_V2()
2366 static inline void RTW89_SET_FWCMD_CXROLE_ACT_CLIENT_PS_V2(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_CLIENT_PS_V2() argument
2368 u8p_replace_bits((u8 *)cmd + (7 + (12 + offset) * n), val, BIT(0)); in RTW89_SET_FWCMD_CXROLE_ACT_CLIENT_PS_V2()
2371 static inline void RTW89_SET_FWCMD_CXROLE_ACT_BW_V2(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_BW_V2() argument
2373 u8p_replace_bits((u8 *)cmd + (7 + (12 + offset) * n), val, GENMASK(7, 1)); in RTW89_SET_FWCMD_CXROLE_ACT_BW_V2()
2376 static inline void RTW89_SET_FWCMD_CXROLE_ACT_ROLE_V2(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_ROLE_V2() argument
2378 u8p_replace_bits((u8 *)cmd + (8 + (12 + offset) * n), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_ROLE_V2()
2381 static inline void RTW89_SET_FWCMD_CXROLE_ACT_CH_V2(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_CH_V2() argument
2383 u8p_replace_bits((u8 *)cmd + (9 + (12 + offset) * n), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_CH_V2()
2386 static inline void RTW89_SET_FWCMD_CXROLE_ACT_NOA_DUR_V2(void *cmd, u32 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_NOA_DUR_V2() argument
2388 le32p_replace_bits((__le32 *)((u8 *)cmd + (10 + (12 + offset) * n)), val, GENMASK(31, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_NOA_DUR_V2()
2391 static inline void RTW89_SET_FWCMD_CXROLE_MROLE_TYPE(void *cmd, u32 val, u8 offset) in RTW89_SET_FWCMD_CXROLE_MROLE_TYPE() argument
2393 le32p_replace_bits((__le32 *)((u8 *)cmd + offset), val, GENMASK(31, 0)); in RTW89_SET_FWCMD_CXROLE_MROLE_TYPE()
2396 static inline void RTW89_SET_FWCMD_CXROLE_MROLE_NOA(void *cmd, u32 val, u8 offset) in RTW89_SET_FWCMD_CXROLE_MROLE_NOA() argument
2398 le32p_replace_bits((__le32 *)((u8 *)cmd + offset + 4), val, GENMASK(31, 0)); in RTW89_SET_FWCMD_CXROLE_MROLE_NOA()
2401 static inline void RTW89_SET_FWCMD_CXROLE_DBCC_EN(void *cmd, u32 val, u8 offset) in RTW89_SET_FWCMD_CXROLE_DBCC_EN() argument
2403 le32p_replace_bits((__le32 *)((u8 *)cmd + offset + 8), val, BIT(0)); in RTW89_SET_FWCMD_CXROLE_DBCC_EN()
2406 static inline void RTW89_SET_FWCMD_CXROLE_DBCC_CHG(void *cmd, u32 val, u8 offset) in RTW89_SET_FWCMD_CXROLE_DBCC_CHG() argument
2408 le32p_replace_bits((__le32 *)((u8 *)cmd + offset + 8), val, BIT(1)); in RTW89_SET_FWCMD_CXROLE_DBCC_CHG()
2411 static inline void RTW89_SET_FWCMD_CXROLE_DBCC_2G_PHY(void *cmd, u32 val, u8 offset) in RTW89_SET_FWCMD_CXROLE_DBCC_2G_PHY() argument
2413 le32p_replace_bits((__le32 *)((u8 *)cmd + offset + 8), val, GENMASK(3, 2)); in RTW89_SET_FWCMD_CXROLE_DBCC_2G_PHY()
2416 static inline void RTW89_SET_FWCMD_CXROLE_LINK_MODE_CHG(void *cmd, u32 val, u8 offset) in RTW89_SET_FWCMD_CXROLE_LINK_MODE_CHG() argument
2418 le32p_replace_bits((__le32 *)((u8 *)cmd + offset + 8), val, BIT(4)); in RTW89_SET_FWCMD_CXROLE_LINK_MODE_CHG()
2421 static inline void RTW89_SET_FWCMD_CXCTRL_MANUAL(void *cmd, u32 val) in RTW89_SET_FWCMD_CXCTRL_MANUAL() argument
2423 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, BIT(0)); in RTW89_SET_FWCMD_CXCTRL_MANUAL()
2426 static inline void RTW89_SET_FWCMD_CXCTRL_IGNORE_BT(void *cmd, u32 val) in RTW89_SET_FWCMD_CXCTRL_IGNORE_BT() argument
2428 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, BIT(1)); in RTW89_SET_FWCMD_CXCTRL_IGNORE_BT()
2431 static inline void RTW89_SET_FWCMD_CXCTRL_ALWAYS_FREERUN(void *cmd, u32 val) in RTW89_SET_FWCMD_CXCTRL_ALWAYS_FREERUN() argument
2433 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, BIT(2)); in RTW89_SET_FWCMD_CXCTRL_ALWAYS_FREERUN()
2436 static inline void RTW89_SET_FWCMD_CXCTRL_TRACE_STEP(void *cmd, u32 val) in RTW89_SET_FWCMD_CXCTRL_TRACE_STEP() argument
2438 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, GENMASK(18, 3)); in RTW89_SET_FWCMD_CXCTRL_TRACE_STEP()
2441 static inline void RTW89_SET_FWCMD_CXTRX_TXLV(void *cmd, u8 val) in RTW89_SET_FWCMD_CXTRX_TXLV() argument
2443 u8p_replace_bits((u8 *)cmd + 2, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXTRX_TXLV()
2446 static inline void RTW89_SET_FWCMD_CXTRX_RXLV(void *cmd, u8 val) in RTW89_SET_FWCMD_CXTRX_RXLV() argument
2448 u8p_replace_bits((u8 *)cmd + 3, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXTRX_RXLV()
2451 static inline void RTW89_SET_FWCMD_CXTRX_WLRSSI(void *cmd, u8 val) in RTW89_SET_FWCMD_CXTRX_WLRSSI() argument
2453 u8p_replace_bits((u8 *)cmd + 4, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXTRX_WLRSSI()
2456 static inline void RTW89_SET_FWCMD_CXTRX_BTRSSI(void *cmd, u8 val) in RTW89_SET_FWCMD_CXTRX_BTRSSI() argument
2458 u8p_replace_bits((u8 *)cmd + 5, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXTRX_BTRSSI()
2461 static inline void RTW89_SET_FWCMD_CXTRX_TXPWR(void *cmd, s8 val) in RTW89_SET_FWCMD_CXTRX_TXPWR() argument
2463 u8p_replace_bits((u8 *)cmd + 6, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXTRX_TXPWR()
2466 static inline void RTW89_SET_FWCMD_CXTRX_RXGAIN(void *cmd, s8 val) in RTW89_SET_FWCMD_CXTRX_RXGAIN() argument
2468 u8p_replace_bits((u8 *)cmd + 7, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXTRX_RXGAIN()
2471 static inline void RTW89_SET_FWCMD_CXTRX_BTTXPWR(void *cmd, s8 val) in RTW89_SET_FWCMD_CXTRX_BTTXPWR() argument
2473 u8p_replace_bits((u8 *)cmd + 8, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXTRX_BTTXPWR()
2476 static inline void RTW89_SET_FWCMD_CXTRX_BTRXGAIN(void *cmd, s8 val) in RTW89_SET_FWCMD_CXTRX_BTRXGAIN() argument
2478 u8p_replace_bits((u8 *)cmd + 9, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXTRX_BTRXGAIN()
2481 static inline void RTW89_SET_FWCMD_CXTRX_CN(void *cmd, u8 val) in RTW89_SET_FWCMD_CXTRX_CN() argument
2483 u8p_replace_bits((u8 *)cmd + 10, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXTRX_CN()
2486 static inline void RTW89_SET_FWCMD_CXTRX_NHM(void *cmd, s8 val) in RTW89_SET_FWCMD_CXTRX_NHM() argument
2488 u8p_replace_bits((u8 *)cmd + 11, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXTRX_NHM()
2491 static inline void RTW89_SET_FWCMD_CXTRX_BTPROFILE(void *cmd, u8 val) in RTW89_SET_FWCMD_CXTRX_BTPROFILE() argument
2493 u8p_replace_bits((u8 *)cmd + 12, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXTRX_BTPROFILE()
2496 static inline void RTW89_SET_FWCMD_CXTRX_RSVD2(void *cmd, u8 val) in RTW89_SET_FWCMD_CXTRX_RSVD2() argument
2498 u8p_replace_bits((u8 *)cmd + 13, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXTRX_RSVD2()
2501 static inline void RTW89_SET_FWCMD_CXTRX_TXRATE(void *cmd, u16 val) in RTW89_SET_FWCMD_CXTRX_TXRATE() argument
2503 le16p_replace_bits((__le16 *)((u8 *)cmd + 14), val, GENMASK(15, 0)); in RTW89_SET_FWCMD_CXTRX_TXRATE()
2506 static inline void RTW89_SET_FWCMD_CXTRX_RXRATE(void *cmd, u16 val) in RTW89_SET_FWCMD_CXTRX_RXRATE() argument
2508 le16p_replace_bits((__le16 *)((u8 *)cmd + 16), val, GENMASK(15, 0)); in RTW89_SET_FWCMD_CXTRX_RXRATE()
2511 static inline void RTW89_SET_FWCMD_CXTRX_TXTP(void *cmd, u32 val) in RTW89_SET_FWCMD_CXTRX_TXTP() argument
2513 le32p_replace_bits((__le32 *)((u8 *)cmd + 18), val, GENMASK(31, 0)); in RTW89_SET_FWCMD_CXTRX_TXTP()
2516 static inline void RTW89_SET_FWCMD_CXTRX_RXTP(void *cmd, u32 val) in RTW89_SET_FWCMD_CXTRX_RXTP() argument
2518 le32p_replace_bits((__le32 *)((u8 *)cmd + 22), val, GENMASK(31, 0)); in RTW89_SET_FWCMD_CXTRX_RXTP()
2521 static inline void RTW89_SET_FWCMD_CXTRX_RXERRRA(void *cmd, u32 val) in RTW89_SET_FWCMD_CXTRX_RXERRRA() argument
2523 le32p_replace_bits((__le32 *)((u8 *)cmd + 26), val, GENMASK(31, 0)); in RTW89_SET_FWCMD_CXTRX_RXERRRA()
2526 static inline void RTW89_SET_FWCMD_CXRFK_STATE(void *cmd, u32 val) in RTW89_SET_FWCMD_CXRFK_STATE() argument
2528 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, GENMASK(1, 0)); in RTW89_SET_FWCMD_CXRFK_STATE()
2531 static inline void RTW89_SET_FWCMD_CXRFK_PATH_MAP(void *cmd, u32 val) in RTW89_SET_FWCMD_CXRFK_PATH_MAP() argument
2533 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, GENMASK(5, 2)); in RTW89_SET_FWCMD_CXRFK_PATH_MAP()
2536 static inline void RTW89_SET_FWCMD_CXRFK_PHY_MAP(void *cmd, u32 val) in RTW89_SET_FWCMD_CXRFK_PHY_MAP() argument
2538 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, GENMASK(7, 6)); in RTW89_SET_FWCMD_CXRFK_PHY_MAP()
2541 static inline void RTW89_SET_FWCMD_CXRFK_BAND(void *cmd, u32 val) in RTW89_SET_FWCMD_CXRFK_BAND() argument
2543 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, GENMASK(9, 8)); in RTW89_SET_FWCMD_CXRFK_BAND()
2546 static inline void RTW89_SET_FWCMD_CXRFK_TYPE(void *cmd, u32 val) in RTW89_SET_FWCMD_CXRFK_TYPE() argument
2548 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, GENMASK(17, 10)); in RTW89_SET_FWCMD_CXRFK_TYPE()
2551 static inline void RTW89_SET_FWCMD_PACKET_OFLD_PKT_IDX(void *cmd, u32 val) in RTW89_SET_FWCMD_PACKET_OFLD_PKT_IDX() argument
2553 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_PACKET_OFLD_PKT_IDX()
2556 static inline void RTW89_SET_FWCMD_PACKET_OFLD_PKT_OP(void *cmd, u32 val) in RTW89_SET_FWCMD_PACKET_OFLD_PKT_OP() argument
2558 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(10, 8)); in RTW89_SET_FWCMD_PACKET_OFLD_PKT_OP()
2561 static inline void RTW89_SET_FWCMD_PACKET_OFLD_PKT_LENGTH(void *cmd, u32 val) in RTW89_SET_FWCMD_PACKET_OFLD_PKT_LENGTH() argument
2563 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(31, 16)); in RTW89_SET_FWCMD_PACKET_OFLD_PKT_LENGTH()
2566 static inline void RTW89_SET_FWCMD_SCANOFLD_CH_NUM(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_CH_NUM() argument
2568 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_SCANOFLD_CH_NUM()
2571 static inline void RTW89_SET_FWCMD_SCANOFLD_CH_SIZE(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_CH_SIZE() argument
2573 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(15, 8)); in RTW89_SET_FWCMD_SCANOFLD_CH_SIZE()
2576 static inline void RTW89_SET_FWCMD_CHINFO_PERIOD(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PERIOD() argument
2578 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CHINFO_PERIOD()
2581 static inline void RTW89_SET_FWCMD_CHINFO_DWELL(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_DWELL() argument
2583 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(15, 8)); in RTW89_SET_FWCMD_CHINFO_DWELL()
2586 static inline void RTW89_SET_FWCMD_CHINFO_CENTER_CH(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_CENTER_CH() argument
2588 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(23, 16)); in RTW89_SET_FWCMD_CHINFO_CENTER_CH()
2591 static inline void RTW89_SET_FWCMD_CHINFO_PRI_CH(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PRI_CH() argument
2593 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(31, 24)); in RTW89_SET_FWCMD_CHINFO_PRI_CH()
2596 static inline void RTW89_SET_FWCMD_CHINFO_BW(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_BW() argument
2598 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(2, 0)); in RTW89_SET_FWCMD_CHINFO_BW()
2601 static inline void RTW89_SET_FWCMD_CHINFO_ACTION(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_ACTION() argument
2603 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(7, 3)); in RTW89_SET_FWCMD_CHINFO_ACTION()
2606 static inline void RTW89_SET_FWCMD_CHINFO_NUM_PKT(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_NUM_PKT() argument
2608 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(11, 8)); in RTW89_SET_FWCMD_CHINFO_NUM_PKT()
2611 static inline void RTW89_SET_FWCMD_CHINFO_TX(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_TX() argument
2613 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(12)); in RTW89_SET_FWCMD_CHINFO_TX()
2616 static inline void RTW89_SET_FWCMD_CHINFO_PAUSE_DATA(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PAUSE_DATA() argument
2618 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(13)); in RTW89_SET_FWCMD_CHINFO_PAUSE_DATA()
2621 static inline void RTW89_SET_FWCMD_CHINFO_BAND(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_BAND() argument
2623 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(15, 14)); in RTW89_SET_FWCMD_CHINFO_BAND()
2626 static inline void RTW89_SET_FWCMD_CHINFO_PKT_ID(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT_ID() argument
2628 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(23, 16)); in RTW89_SET_FWCMD_CHINFO_PKT_ID()
2631 static inline void RTW89_SET_FWCMD_CHINFO_DFS(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_DFS() argument
2633 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(24)); in RTW89_SET_FWCMD_CHINFO_DFS()
2636 static inline void RTW89_SET_FWCMD_CHINFO_TX_NULL(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_TX_NULL() argument
2638 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(25)); in RTW89_SET_FWCMD_CHINFO_TX_NULL()
2641 static inline void RTW89_SET_FWCMD_CHINFO_RANDOM(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_RANDOM() argument
2643 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(26)); in RTW89_SET_FWCMD_CHINFO_RANDOM()
2646 static inline void RTW89_SET_FWCMD_CHINFO_CFG_TX(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_CFG_TX() argument
2648 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(27)); in RTW89_SET_FWCMD_CHINFO_CFG_TX()
2651 static inline void RTW89_SET_FWCMD_CHINFO_PKT0(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT0() argument
2653 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 8), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CHINFO_PKT0()
2656 static inline void RTW89_SET_FWCMD_CHINFO_PKT1(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT1() argument
2658 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 8), val, GENMASK(15, 8)); in RTW89_SET_FWCMD_CHINFO_PKT1()
2661 static inline void RTW89_SET_FWCMD_CHINFO_PKT2(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT2() argument
2663 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 8), val, GENMASK(23, 16)); in RTW89_SET_FWCMD_CHINFO_PKT2()
2666 static inline void RTW89_SET_FWCMD_CHINFO_PKT3(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT3() argument
2668 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 8), val, GENMASK(31, 24)); in RTW89_SET_FWCMD_CHINFO_PKT3()
2671 static inline void RTW89_SET_FWCMD_CHINFO_PKT4(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT4() argument
2673 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 12), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CHINFO_PKT4()
2676 static inline void RTW89_SET_FWCMD_CHINFO_PKT5(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT5() argument
2678 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 12), val, GENMASK(15, 8)); in RTW89_SET_FWCMD_CHINFO_PKT5()
2681 static inline void RTW89_SET_FWCMD_CHINFO_PKT6(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT6() argument
2683 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 12), val, GENMASK(23, 16)); in RTW89_SET_FWCMD_CHINFO_PKT6()
2686 static inline void RTW89_SET_FWCMD_CHINFO_PKT7(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT7() argument
2688 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 12), val, GENMASK(31, 24)); in RTW89_SET_FWCMD_CHINFO_PKT7()
2691 static inline void RTW89_SET_FWCMD_CHINFO_POWER_IDX(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_POWER_IDX() argument
2693 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 16), val, GENMASK(15, 0)); in RTW89_SET_FWCMD_CHINFO_POWER_IDX()
2723 static inline void RTW89_SET_FWCMD_P2P_MACID(void *cmd, u32 val) in RTW89_SET_FWCMD_P2P_MACID() argument
2725 le32p_replace_bits((__le32 *)cmd, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_P2P_MACID()
2728 static inline void RTW89_SET_FWCMD_P2P_P2PID(void *cmd, u32 val) in RTW89_SET_FWCMD_P2P_P2PID() argument
2730 le32p_replace_bits((__le32 *)cmd, val, GENMASK(11, 8)); in RTW89_SET_FWCMD_P2P_P2PID()
2733 static inline void RTW89_SET_FWCMD_P2P_NOAID(void *cmd, u32 val) in RTW89_SET_FWCMD_P2P_NOAID() argument
2735 le32p_replace_bits((__le32 *)cmd, val, GENMASK(15, 12)); in RTW89_SET_FWCMD_P2P_NOAID()
2738 static inline void RTW89_SET_FWCMD_P2P_ACT(void *cmd, u32 val) in RTW89_SET_FWCMD_P2P_ACT() argument
2740 le32p_replace_bits((__le32 *)cmd, val, GENMASK(19, 16)); in RTW89_SET_FWCMD_P2P_ACT()
2743 static inline void RTW89_SET_FWCMD_P2P_TYPE(void *cmd, u32 val) in RTW89_SET_FWCMD_P2P_TYPE() argument
2745 le32p_replace_bits((__le32 *)cmd, val, BIT(20)); in RTW89_SET_FWCMD_P2P_TYPE()
2748 static inline void RTW89_SET_FWCMD_P2P_ALL_SLEP(void *cmd, u32 val) in RTW89_SET_FWCMD_P2P_ALL_SLEP() argument
2750 le32p_replace_bits((__le32 *)cmd, val, BIT(21)); in RTW89_SET_FWCMD_P2P_ALL_SLEP()
2753 static inline void RTW89_SET_FWCMD_NOA_START_TIME(void *cmd, __le32 val) in RTW89_SET_FWCMD_NOA_START_TIME() argument
2755 *((__le32 *)cmd + 1) = val; in RTW89_SET_FWCMD_NOA_START_TIME()
2758 static inline void RTW89_SET_FWCMD_NOA_INTERVAL(void *cmd, __le32 val) in RTW89_SET_FWCMD_NOA_INTERVAL() argument
2760 *((__le32 *)cmd + 2) = val; in RTW89_SET_FWCMD_NOA_INTERVAL()
2763 static inline void RTW89_SET_FWCMD_NOA_DURATION(void *cmd, __le32 val) in RTW89_SET_FWCMD_NOA_DURATION() argument
2765 *((__le32 *)cmd + 3) = val; in RTW89_SET_FWCMD_NOA_DURATION()
2768 static inline void RTW89_SET_FWCMD_NOA_COUNT(void *cmd, u32 val) in RTW89_SET_FWCMD_NOA_COUNT() argument
2770 le32p_replace_bits((__le32 *)(cmd) + 4, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_NOA_COUNT()
2773 static inline void RTW89_SET_FWCMD_NOA_CTWINDOW(void *cmd, u32 val) in RTW89_SET_FWCMD_NOA_CTWINDOW() argument
2777 if (!(val & IEEE80211_P2P_OPPPS_ENABLE_BIT)) in RTW89_SET_FWCMD_NOA_CTWINDOW()
2779 ctwnd = FIELD_GET(IEEE80211_P2P_OPPPS_CTWINDOW_MASK, val); in RTW89_SET_FWCMD_NOA_CTWINDOW()
2783 static inline void RTW89_SET_FWCMD_TSF32_TOGL_BAND(void *cmd, u32 val) in RTW89_SET_FWCMD_TSF32_TOGL_BAND() argument
2785 le32p_replace_bits((__le32 *)cmd, val, BIT(0)); in RTW89_SET_FWCMD_TSF32_TOGL_BAND()
2788 static inline void RTW89_SET_FWCMD_TSF32_TOGL_EN(void *cmd, u32 val) in RTW89_SET_FWCMD_TSF32_TOGL_EN() argument
2790 le32p_replace_bits((__le32 *)cmd, val, BIT(1)); in RTW89_SET_FWCMD_TSF32_TOGL_EN()
2793 static inline void RTW89_SET_FWCMD_TSF32_TOGL_PORT(void *cmd, u32 val) in RTW89_SET_FWCMD_TSF32_TOGL_PORT() argument
2795 le32p_replace_bits((__le32 *)cmd, val, GENMASK(4, 2)); in RTW89_SET_FWCMD_TSF32_TOGL_PORT()
2798 static inline void RTW89_SET_FWCMD_TSF32_TOGL_EARLY(void *cmd, u32 val) in RTW89_SET_FWCMD_TSF32_TOGL_EARLY() argument
2800 le32p_replace_bits((__le32 *)cmd, val, GENMASK(31, 16)); in RTW89_SET_FWCMD_TSF32_TOGL_EARLY()
2834 static inline void RTW89_SET_FWCMD_ADD_MCC_MACID(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_MACID() argument
2836 le32p_replace_bits((__le32 *)cmd, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_ADD_MCC_MACID()
2839 static inline void RTW89_SET_FWCMD_ADD_MCC_CENTRAL_CH_SEG0(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_CENTRAL_CH_SEG0() argument
2841 le32p_replace_bits((__le32 *)cmd, val, GENMASK(15, 8)); in RTW89_SET_FWCMD_ADD_MCC_CENTRAL_CH_SEG0()
2844 static inline void RTW89_SET_FWCMD_ADD_MCC_CENTRAL_CH_SEG1(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_CENTRAL_CH_SEG1() argument
2846 le32p_replace_bits((__le32 *)cmd, val, GENMASK(23, 16)); in RTW89_SET_FWCMD_ADD_MCC_CENTRAL_CH_SEG1()
2849 static inline void RTW89_SET_FWCMD_ADD_MCC_PRIMARY_CH(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_PRIMARY_CH() argument
2851 le32p_replace_bits((__le32 *)cmd, val, GENMASK(31, 24)); in RTW89_SET_FWCMD_ADD_MCC_PRIMARY_CH()
2854 static inline void RTW89_SET_FWCMD_ADD_MCC_BANDWIDTH(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_BANDWIDTH() argument
2856 le32p_replace_bits((__le32 *)cmd + 1, val, GENMASK(3, 0)); in RTW89_SET_FWCMD_ADD_MCC_BANDWIDTH()
2859 static inline void RTW89_SET_FWCMD_ADD_MCC_GROUP(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_GROUP() argument
2861 le32p_replace_bits((__le32 *)cmd + 1, val, GENMASK(5, 4)); in RTW89_SET_FWCMD_ADD_MCC_GROUP()
2864 static inline void RTW89_SET_FWCMD_ADD_MCC_C2H_RPT(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_C2H_RPT() argument
2866 le32p_replace_bits((__le32 *)cmd + 1, val, GENMASK(7, 6)); in RTW89_SET_FWCMD_ADD_MCC_C2H_RPT()
2869 static inline void RTW89_SET_FWCMD_ADD_MCC_DIS_TX_NULL(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_DIS_TX_NULL() argument
2871 le32p_replace_bits((__le32 *)cmd + 1, val, BIT(8)); in RTW89_SET_FWCMD_ADD_MCC_DIS_TX_NULL()
2874 static inline void RTW89_SET_FWCMD_ADD_MCC_DIS_SW_RETRY(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_DIS_SW_RETRY() argument
2876 le32p_replace_bits((__le32 *)cmd + 1, val, BIT(9)); in RTW89_SET_FWCMD_ADD_MCC_DIS_SW_RETRY()
2879 static inline void RTW89_SET_FWCMD_ADD_MCC_IN_CURR_CH(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_IN_CURR_CH() argument
2881 le32p_replace_bits((__le32 *)cmd + 1, val, BIT(10)); in RTW89_SET_FWCMD_ADD_MCC_IN_CURR_CH()
2884 static inline void RTW89_SET_FWCMD_ADD_MCC_SW_RETRY_COUNT(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_SW_RETRY_COUNT() argument
2886 le32p_replace_bits((__le32 *)cmd + 1, val, GENMASK(13, 11)); in RTW89_SET_FWCMD_ADD_MCC_SW_RETRY_COUNT()
2889 static inline void RTW89_SET_FWCMD_ADD_MCC_TX_NULL_EARLY(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_TX_NULL_EARLY() argument
2891 le32p_replace_bits((__le32 *)cmd + 1, val, GENMASK(17, 14)); in RTW89_SET_FWCMD_ADD_MCC_TX_NULL_EARLY()
2894 static inline void RTW89_SET_FWCMD_ADD_MCC_BTC_IN_2G(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_BTC_IN_2G() argument
2896 le32p_replace_bits((__le32 *)cmd + 1, val, BIT(18)); in RTW89_SET_FWCMD_ADD_MCC_BTC_IN_2G()
2899 static inline void RTW89_SET_FWCMD_ADD_MCC_PTA_EN(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_PTA_EN() argument
2901 le32p_replace_bits((__le32 *)cmd + 1, val, BIT(19)); in RTW89_SET_FWCMD_ADD_MCC_PTA_EN()
2904 static inline void RTW89_SET_FWCMD_ADD_MCC_RFK_BY_PASS(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_RFK_BY_PASS() argument
2906 le32p_replace_bits((__le32 *)cmd + 1, val, BIT(20)); in RTW89_SET_FWCMD_ADD_MCC_RFK_BY_PASS()
2909 static inline void RTW89_SET_FWCMD_ADD_MCC_CH_BAND_TYPE(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_CH_BAND_TYPE() argument
2911 le32p_replace_bits((__le32 *)cmd + 1, val, GENMASK(22, 21)); in RTW89_SET_FWCMD_ADD_MCC_CH_BAND_TYPE()
2914 static inline void RTW89_SET_FWCMD_ADD_MCC_DURATION(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_DURATION() argument
2916 le32p_replace_bits((__le32 *)cmd + 2, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_ADD_MCC_DURATION()
2919 static inline void RTW89_SET_FWCMD_ADD_MCC_COURTESY_EN(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_COURTESY_EN() argument
2921 le32p_replace_bits((__le32 *)cmd + 3, val, BIT(0)); in RTW89_SET_FWCMD_ADD_MCC_COURTESY_EN()
2924 static inline void RTW89_SET_FWCMD_ADD_MCC_COURTESY_NUM(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_COURTESY_NUM() argument
2926 le32p_replace_bits((__le32 *)cmd + 3, val, GENMASK(15, 8)); in RTW89_SET_FWCMD_ADD_MCC_COURTESY_NUM()
2929 static inline void RTW89_SET_FWCMD_ADD_MCC_COURTESY_TARGET(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_COURTESY_TARGET() argument
2931 le32p_replace_bits((__le32 *)cmd + 3, val, GENMASK(23, 16)); in RTW89_SET_FWCMD_ADD_MCC_COURTESY_TARGET()
2949 static inline void RTW89_SET_FWCMD_START_MCC_GROUP(void *cmd, u32 val) in RTW89_SET_FWCMD_START_MCC_GROUP() argument
2951 le32p_replace_bits((__le32 *)cmd, val, GENMASK(1, 0)); in RTW89_SET_FWCMD_START_MCC_GROUP()
2954 static inline void RTW89_SET_FWCMD_START_MCC_BTC_IN_GROUP(void *cmd, u32 val) in RTW89_SET_FWCMD_START_MCC_BTC_IN_GROUP() argument
2956 le32p_replace_bits((__le32 *)cmd, val, BIT(2)); in RTW89_SET_FWCMD_START_MCC_BTC_IN_GROUP()
2959 static inline void RTW89_SET_FWCMD_START_MCC_OLD_GROUP_ACTION(void *cmd, u32 val) in RTW89_SET_FWCMD_START_MCC_OLD_GROUP_ACTION() argument
2961 le32p_replace_bits((__le32 *)cmd, val, GENMASK(4, 3)); in RTW89_SET_FWCMD_START_MCC_OLD_GROUP_ACTION()
2964 static inline void RTW89_SET_FWCMD_START_MCC_OLD_GROUP(void *cmd, u32 val) in RTW89_SET_FWCMD_START_MCC_OLD_GROUP() argument
2966 le32p_replace_bits((__le32 *)cmd, val, GENMASK(6, 5)); in RTW89_SET_FWCMD_START_MCC_OLD_GROUP()
2969 static inline void RTW89_SET_FWCMD_START_MCC_NOTIFY_CNT(void *cmd, u32 val) in RTW89_SET_FWCMD_START_MCC_NOTIFY_CNT() argument
2971 le32p_replace_bits((__le32 *)cmd, val, GENMASK(18, 16)); in RTW89_SET_FWCMD_START_MCC_NOTIFY_CNT()
2974 static inline void RTW89_SET_FWCMD_START_MCC_NOTIFY_RXDBG_EN(void *cmd, u32 val) in RTW89_SET_FWCMD_START_MCC_NOTIFY_RXDBG_EN() argument
2976 le32p_replace_bits((__le32 *)cmd, val, BIT(21)); in RTW89_SET_FWCMD_START_MCC_NOTIFY_RXDBG_EN()
2979 static inline void RTW89_SET_FWCMD_START_MCC_MACID(void *cmd, u32 val) in RTW89_SET_FWCMD_START_MCC_MACID() argument
2981 le32p_replace_bits((__le32 *)cmd, val, GENMASK(31, 24)); in RTW89_SET_FWCMD_START_MCC_MACID()
2984 static inline void RTW89_SET_FWCMD_START_MCC_TSF_LOW(void *cmd, u32 val) in RTW89_SET_FWCMD_START_MCC_TSF_LOW() argument
2986 le32p_replace_bits((__le32 *)cmd + 1, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_START_MCC_TSF_LOW()
2989 static inline void RTW89_SET_FWCMD_START_MCC_TSF_HIGH(void *cmd, u32 val) in RTW89_SET_FWCMD_START_MCC_TSF_HIGH() argument
2991 le32p_replace_bits((__le32 *)cmd + 2, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_START_MCC_TSF_HIGH()
2994 static inline void RTW89_SET_FWCMD_STOP_MCC_MACID(void *cmd, u32 val) in RTW89_SET_FWCMD_STOP_MCC_MACID() argument
2996 le32p_replace_bits((__le32 *)cmd, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_STOP_MCC_MACID()
2999 static inline void RTW89_SET_FWCMD_STOP_MCC_GROUP(void *cmd, u32 val) in RTW89_SET_FWCMD_STOP_MCC_GROUP() argument
3001 le32p_replace_bits((__le32 *)cmd, val, GENMASK(9, 8)); in RTW89_SET_FWCMD_STOP_MCC_GROUP()
3004 static inline void RTW89_SET_FWCMD_STOP_MCC_PREV_GROUPS(void *cmd, u32 val) in RTW89_SET_FWCMD_STOP_MCC_PREV_GROUPS() argument
3006 le32p_replace_bits((__le32 *)cmd, val, BIT(10)); in RTW89_SET_FWCMD_STOP_MCC_PREV_GROUPS()
3009 static inline void RTW89_SET_FWCMD_DEL_MCC_GROUP_GROUP(void *cmd, u32 val) in RTW89_SET_FWCMD_DEL_MCC_GROUP_GROUP() argument
3011 le32p_replace_bits((__le32 *)cmd, val, GENMASK(1, 0)); in RTW89_SET_FWCMD_DEL_MCC_GROUP_GROUP()
3014 static inline void RTW89_SET_FWCMD_DEL_MCC_GROUP_PREV_GROUPS(void *cmd, u32 val) in RTW89_SET_FWCMD_DEL_MCC_GROUP_PREV_GROUPS() argument
3016 le32p_replace_bits((__le32 *)cmd, val, BIT(2)); in RTW89_SET_FWCMD_DEL_MCC_GROUP_PREV_GROUPS()
3019 static inline void RTW89_SET_FWCMD_RESET_MCC_GROUP_GROUP(void *cmd, u32 val) in RTW89_SET_FWCMD_RESET_MCC_GROUP_GROUP() argument
3021 le32p_replace_bits((__le32 *)cmd, val, GENMASK(1, 0)); in RTW89_SET_FWCMD_RESET_MCC_GROUP_GROUP()
3032 static inline void RTW89_SET_FWCMD_MCC_REQ_TSF_GROUP(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_REQ_TSF_GROUP() argument
3034 le32p_replace_bits((__le32 *)cmd, val, GENMASK(1, 0)); in RTW89_SET_FWCMD_MCC_REQ_TSF_GROUP()
3037 static inline void RTW89_SET_FWCMD_MCC_REQ_TSF_MACID_X(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_REQ_TSF_MACID_X() argument
3039 le32p_replace_bits((__le32 *)cmd, val, GENMASK(15, 8)); in RTW89_SET_FWCMD_MCC_REQ_TSF_MACID_X()
3042 static inline void RTW89_SET_FWCMD_MCC_REQ_TSF_MACID_Y(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_REQ_TSF_MACID_Y() argument
3044 le32p_replace_bits((__le32 *)cmd, val, GENMASK(23, 16)); in RTW89_SET_FWCMD_MCC_REQ_TSF_MACID_Y()
3047 static inline void RTW89_SET_FWCMD_MCC_MACID_BITMAP_GROUP(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_MACID_BITMAP_GROUP() argument
3049 le32p_replace_bits((__le32 *)cmd, val, GENMASK(1, 0)); in RTW89_SET_FWCMD_MCC_MACID_BITMAP_GROUP()
3052 static inline void RTW89_SET_FWCMD_MCC_MACID_BITMAP_MACID(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_MACID_BITMAP_MACID() argument
3054 le32p_replace_bits((__le32 *)cmd, val, GENMASK(15, 8)); in RTW89_SET_FWCMD_MCC_MACID_BITMAP_MACID()
3057 static inline void RTW89_SET_FWCMD_MCC_MACID_BITMAP_BITMAP_LENGTH(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_MACID_BITMAP_BITMAP_LENGTH() argument
3059 le32p_replace_bits((__le32 *)cmd, val, GENMASK(23, 16)); in RTW89_SET_FWCMD_MCC_MACID_BITMAP_BITMAP_LENGTH()
3068 static inline void RTW89_SET_FWCMD_MCC_SYNC_GROUP(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_SYNC_GROUP() argument
3070 le32p_replace_bits((__le32 *)cmd, val, GENMASK(1, 0)); in RTW89_SET_FWCMD_MCC_SYNC_GROUP()
3073 static inline void RTW89_SET_FWCMD_MCC_SYNC_MACID_SOURCE(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_SYNC_MACID_SOURCE() argument
3075 le32p_replace_bits((__le32 *)cmd, val, GENMASK(15, 8)); in RTW89_SET_FWCMD_MCC_SYNC_MACID_SOURCE()
3078 static inline void RTW89_SET_FWCMD_MCC_SYNC_MACID_TARGET(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_SYNC_MACID_TARGET() argument
3080 le32p_replace_bits((__le32 *)cmd, val, GENMASK(23, 16)); in RTW89_SET_FWCMD_MCC_SYNC_MACID_TARGET()
3083 static inline void RTW89_SET_FWCMD_MCC_SYNC_SYNC_OFFSET(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_SYNC_SYNC_OFFSET() argument
3085 le32p_replace_bits((__le32 *)cmd, val, GENMASK(31, 24)); in RTW89_SET_FWCMD_MCC_SYNC_SYNC_OFFSET()
3101 static inline void RTW89_SET_FWCMD_MCC_SET_DURATION_GROUP(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_SET_DURATION_GROUP() argument
3103 le32p_replace_bits((__le32 *)cmd, val, GENMASK(1, 0)); in RTW89_SET_FWCMD_MCC_SET_DURATION_GROUP()
3107 inline void RTW89_SET_FWCMD_MCC_SET_DURATION_BTC_IN_GROUP(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_SET_DURATION_BTC_IN_GROUP() argument
3109 le32p_replace_bits((__le32 *)cmd, val, BIT(2)); in RTW89_SET_FWCMD_MCC_SET_DURATION_BTC_IN_GROUP()
3113 inline void RTW89_SET_FWCMD_MCC_SET_DURATION_START_MACID(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_SET_DURATION_START_MACID() argument
3115 le32p_replace_bits((__le32 *)cmd, val, GENMASK(15, 8)); in RTW89_SET_FWCMD_MCC_SET_DURATION_START_MACID()
3118 static inline void RTW89_SET_FWCMD_MCC_SET_DURATION_MACID_X(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_SET_DURATION_MACID_X() argument
3120 le32p_replace_bits((__le32 *)cmd, val, GENMASK(23, 16)); in RTW89_SET_FWCMD_MCC_SET_DURATION_MACID_X()
3123 static inline void RTW89_SET_FWCMD_MCC_SET_DURATION_MACID_Y(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_SET_DURATION_MACID_Y() argument
3125 le32p_replace_bits((__le32 *)cmd, val, GENMASK(31, 24)); in RTW89_SET_FWCMD_MCC_SET_DURATION_MACID_Y()
3129 inline void RTW89_SET_FWCMD_MCC_SET_DURATION_START_TSF_LOW(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_SET_DURATION_START_TSF_LOW() argument
3131 le32p_replace_bits((__le32 *)cmd + 1, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_MCC_SET_DURATION_START_TSF_LOW()
3135 inline void RTW89_SET_FWCMD_MCC_SET_DURATION_START_TSF_HIGH(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_SET_DURATION_START_TSF_HIGH() argument
3137 le32p_replace_bits((__le32 *)cmd + 2, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_MCC_SET_DURATION_START_TSF_HIGH()
3141 inline void RTW89_SET_FWCMD_MCC_SET_DURATION_DURATION_X(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_SET_DURATION_DURATION_X() argument
3143 le32p_replace_bits((__le32 *)cmd + 3, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_MCC_SET_DURATION_DURATION_X()
3147 inline void RTW89_SET_FWCMD_MCC_SET_DURATION_DURATION_Y(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_SET_DURATION_DURATION_Y() argument
3149 le32p_replace_bits((__le32 *)cmd + 4, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_MCC_SET_DURATION_DURATION_Y()
3665 u8 ac, u32 val);