Lines Matching refs:val
26 #define RTW89_SET_H2CREG_HDR_FUNC(info, val) \ argument
27 u32p_replace_bits(info, val, GENMASK(6, 0))
28 #define RTW89_SET_H2CREG_HDR_LEN(info, val) \ argument
29 u32p_replace_bits(info, val, GENMASK(11, 8))
246 static inline void RTW89_SET_FWCMD_RA_IS_DIS(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_IS_DIS() argument
248 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, BIT(0)); in RTW89_SET_FWCMD_RA_IS_DIS()
251 static inline void RTW89_SET_FWCMD_RA_MODE(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_MODE() argument
253 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(5, 1)); in RTW89_SET_FWCMD_RA_MODE()
256 static inline void RTW89_SET_FWCMD_RA_BW_CAP(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_BW_CAP() argument
258 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(7, 6)); in RTW89_SET_FWCMD_RA_BW_CAP()
261 static inline void RTW89_SET_FWCMD_RA_MACID(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_MACID() argument
263 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(15, 8)); in RTW89_SET_FWCMD_RA_MACID()
266 static inline void RTW89_SET_FWCMD_RA_DCM(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_DCM() argument
268 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, BIT(16)); in RTW89_SET_FWCMD_RA_DCM()
271 static inline void RTW89_SET_FWCMD_RA_ER(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_ER() argument
273 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, BIT(17)); in RTW89_SET_FWCMD_RA_ER()
276 static inline void RTW89_SET_FWCMD_RA_INIT_RATE_LV(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_INIT_RATE_LV() argument
278 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(19, 18)); in RTW89_SET_FWCMD_RA_INIT_RATE_LV()
281 static inline void RTW89_SET_FWCMD_RA_UPD_ALL(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_UPD_ALL() argument
283 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, BIT(20)); in RTW89_SET_FWCMD_RA_UPD_ALL()
286 static inline void RTW89_SET_FWCMD_RA_SGI(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_SGI() argument
288 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, BIT(21)); in RTW89_SET_FWCMD_RA_SGI()
291 static inline void RTW89_SET_FWCMD_RA_LDPC(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_LDPC() argument
293 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, BIT(22)); in RTW89_SET_FWCMD_RA_LDPC()
296 static inline void RTW89_SET_FWCMD_RA_STBC(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_STBC() argument
298 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, BIT(23)); in RTW89_SET_FWCMD_RA_STBC()
301 static inline void RTW89_SET_FWCMD_RA_SS_NUM(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_SS_NUM() argument
303 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(26, 24)); in RTW89_SET_FWCMD_RA_SS_NUM()
306 static inline void RTW89_SET_FWCMD_RA_GILTF(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_GILTF() argument
308 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(29, 27)); in RTW89_SET_FWCMD_RA_GILTF()
311 static inline void RTW89_SET_FWCMD_RA_UPD_BW_NSS_MASK(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_UPD_BW_NSS_MASK() argument
313 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, BIT(30)); in RTW89_SET_FWCMD_RA_UPD_BW_NSS_MASK()
316 static inline void RTW89_SET_FWCMD_RA_UPD_MASK(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_UPD_MASK() argument
318 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, BIT(31)); in RTW89_SET_FWCMD_RA_UPD_MASK()
321 static inline void RTW89_SET_FWCMD_RA_MASK_0(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_MASK_0() argument
323 le32p_replace_bits((__le32 *)(cmd) + 0x01, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_RA_MASK_0()
326 static inline void RTW89_SET_FWCMD_RA_MASK_1(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_MASK_1() argument
328 le32p_replace_bits((__le32 *)(cmd) + 0x01, val, GENMASK(15, 8)); in RTW89_SET_FWCMD_RA_MASK_1()
331 static inline void RTW89_SET_FWCMD_RA_MASK_2(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_MASK_2() argument
333 le32p_replace_bits((__le32 *)(cmd) + 0x01, val, GENMASK(23, 16)); in RTW89_SET_FWCMD_RA_MASK_2()
336 static inline void RTW89_SET_FWCMD_RA_MASK_3(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_MASK_3() argument
338 le32p_replace_bits((__le32 *)(cmd) + 0x01, val, GENMASK(31, 24)); in RTW89_SET_FWCMD_RA_MASK_3()
341 static inline void RTW89_SET_FWCMD_RA_MASK_4(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_MASK_4() argument
343 le32p_replace_bits((__le32 *)(cmd) + 0x02, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_RA_MASK_4()
346 static inline void RTW89_SET_FWCMD_RA_BFEE_CSI_CTL(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_BFEE_CSI_CTL() argument
348 le32p_replace_bits((__le32 *)(cmd) + 0x02, val, BIT(31)); in RTW89_SET_FWCMD_RA_BFEE_CSI_CTL()
351 static inline void RTW89_SET_FWCMD_RA_BAND_NUM(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_BAND_NUM() argument
353 le32p_replace_bits((__le32 *)(cmd) + 0x03, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_RA_BAND_NUM()
356 static inline void RTW89_SET_FWCMD_RA_RA_CSI_RATE_EN(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_RA_CSI_RATE_EN() argument
358 le32p_replace_bits((__le32 *)(cmd) + 0x03, val, BIT(8)); in RTW89_SET_FWCMD_RA_RA_CSI_RATE_EN()
361 static inline void RTW89_SET_FWCMD_RA_FIXED_CSI_RATE_EN(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_FIXED_CSI_RATE_EN() argument
363 le32p_replace_bits((__le32 *)(cmd) + 0x03, val, BIT(9)); in RTW89_SET_FWCMD_RA_FIXED_CSI_RATE_EN()
366 static inline void RTW89_SET_FWCMD_RA_CR_TBL_SEL(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_CR_TBL_SEL() argument
368 le32p_replace_bits((__le32 *)(cmd) + 0x03, val, BIT(10)); in RTW89_SET_FWCMD_RA_CR_TBL_SEL()
371 static inline void RTW89_SET_FWCMD_RA_FIX_GILTF_EN(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_FIX_GILTF_EN() argument
373 le32p_replace_bits((__le32 *)(cmd) + 0x03, val, BIT(11)); in RTW89_SET_FWCMD_RA_FIX_GILTF_EN()
376 static inline void RTW89_SET_FWCMD_RA_FIX_GILTF(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_FIX_GILTF() argument
378 le32p_replace_bits((__le32 *)(cmd) + 0x03, val, GENMASK(14, 12)); in RTW89_SET_FWCMD_RA_FIX_GILTF()
381 static inline void RTW89_SET_FWCMD_RA_FIXED_CSI_MCS_SS_IDX(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_FIXED_CSI_MCS_SS_IDX() argument
383 le32p_replace_bits((__le32 *)(cmd) + 0x03, val, GENMASK(23, 16)); in RTW89_SET_FWCMD_RA_FIXED_CSI_MCS_SS_IDX()
386 static inline void RTW89_SET_FWCMD_RA_FIXED_CSI_MODE(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_FIXED_CSI_MODE() argument
388 le32p_replace_bits((__le32 *)(cmd) + 0x03, val, GENMASK(25, 24)); in RTW89_SET_FWCMD_RA_FIXED_CSI_MODE()
391 static inline void RTW89_SET_FWCMD_RA_FIXED_CSI_GI_LTF(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_FIXED_CSI_GI_LTF() argument
393 le32p_replace_bits((__le32 *)(cmd) + 0x03, val, GENMASK(28, 26)); in RTW89_SET_FWCMD_RA_FIXED_CSI_GI_LTF()
396 static inline void RTW89_SET_FWCMD_RA_FIXED_CSI_BW(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_FIXED_CSI_BW() argument
398 le32p_replace_bits((__le32 *)(cmd) + 0x03, val, GENMASK(31, 29)); in RTW89_SET_FWCMD_RA_FIXED_CSI_BW()
401 static inline void RTW89_SET_FWCMD_SEC_IDX(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_IDX() argument
403 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_SEC_IDX()
406 static inline void RTW89_SET_FWCMD_SEC_OFFSET(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_OFFSET() argument
408 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(15, 8)); in RTW89_SET_FWCMD_SEC_OFFSET()
411 static inline void RTW89_SET_FWCMD_SEC_LEN(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_LEN() argument
413 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(23, 16)); in RTW89_SET_FWCMD_SEC_LEN()
416 static inline void RTW89_SET_FWCMD_SEC_TYPE(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_TYPE() argument
418 le32p_replace_bits((__le32 *)(cmd) + 0x01, val, GENMASK(3, 0)); in RTW89_SET_FWCMD_SEC_TYPE()
421 static inline void RTW89_SET_FWCMD_SEC_EXT_KEY(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_EXT_KEY() argument
423 le32p_replace_bits((__le32 *)(cmd) + 0x01, val, BIT(4)); in RTW89_SET_FWCMD_SEC_EXT_KEY()
426 static inline void RTW89_SET_FWCMD_SEC_SPP_MODE(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_SPP_MODE() argument
428 le32p_replace_bits((__le32 *)(cmd) + 0x01, val, BIT(5)); in RTW89_SET_FWCMD_SEC_SPP_MODE()
431 static inline void RTW89_SET_FWCMD_SEC_KEY0(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_KEY0() argument
433 le32p_replace_bits((__le32 *)(cmd) + 0x02, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_SEC_KEY0()
436 static inline void RTW89_SET_FWCMD_SEC_KEY1(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_KEY1() argument
438 le32p_replace_bits((__le32 *)(cmd) + 0x03, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_SEC_KEY1()
441 static inline void RTW89_SET_FWCMD_SEC_KEY2(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_KEY2() argument
443 le32p_replace_bits((__le32 *)(cmd) + 0x04, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_SEC_KEY2()
446 static inline void RTW89_SET_FWCMD_SEC_KEY3(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_KEY3() argument
448 le32p_replace_bits((__le32 *)(cmd) + 0x05, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_SEC_KEY3()
451 static inline void RTW89_SET_EDCA_SEL(void *cmd, u32 val) in RTW89_SET_EDCA_SEL() argument
453 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(1, 0)); in RTW89_SET_EDCA_SEL()
456 static inline void RTW89_SET_EDCA_BAND(void *cmd, u32 val) in RTW89_SET_EDCA_BAND() argument
458 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, BIT(3)); in RTW89_SET_EDCA_BAND()
461 static inline void RTW89_SET_EDCA_WMM(void *cmd, u32 val) in RTW89_SET_EDCA_WMM() argument
463 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, BIT(4)); in RTW89_SET_EDCA_WMM()
466 static inline void RTW89_SET_EDCA_AC(void *cmd, u32 val) in RTW89_SET_EDCA_AC() argument
468 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(6, 5)); in RTW89_SET_EDCA_AC()
471 static inline void RTW89_SET_EDCA_PARAM(void *cmd, u32 val) in RTW89_SET_EDCA_PARAM() argument
473 le32p_replace_bits((__le32 *)(cmd) + 0x01, val, GENMASK(31, 0)); in RTW89_SET_EDCA_PARAM()
511 static inline void SET_FW_HDR_PART_SIZE(void *fwhdr, u32 val) in SET_FW_HDR_PART_SIZE() argument
513 le32p_replace_bits((__le32 *)fwhdr + 7, val, GENMASK(15, 0)); in SET_FW_HDR_PART_SIZE()
516 static inline void SET_CTRL_INFO_MACID(void *table, u32 val) in SET_CTRL_INFO_MACID() argument
518 le32p_replace_bits((__le32 *)(table) + 0, val, GENMASK(6, 0)); in SET_CTRL_INFO_MACID()
521 static inline void SET_CTRL_INFO_OPERATION(void *table, u32 val) in SET_CTRL_INFO_OPERATION() argument
523 le32p_replace_bits((__le32 *)(table) + 0, val, BIT(7)); in SET_CTRL_INFO_OPERATION()
526 static inline void SET_CMC_TBL_DATARATE(void *table, u32 val) in SET_CMC_TBL_DATARATE() argument
528 le32p_replace_bits((__le32 *)(table) + 1, val, GENMASK(8, 0)); in SET_CMC_TBL_DATARATE()
533 static inline void SET_CMC_TBL_FORCE_TXOP(void *table, u32 val) in SET_CMC_TBL_FORCE_TXOP() argument
535 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(9)); in SET_CMC_TBL_FORCE_TXOP()
540 static inline void SET_CMC_TBL_DATA_BW(void *table, u32 val) in SET_CMC_TBL_DATA_BW() argument
542 le32p_replace_bits((__le32 *)(table) + 1, val, GENMASK(11, 10)); in SET_CMC_TBL_DATA_BW()
547 static inline void SET_CMC_TBL_DATA_GI_LTF(void *table, u32 val) in SET_CMC_TBL_DATA_GI_LTF() argument
549 le32p_replace_bits((__le32 *)(table) + 1, val, GENMASK(14, 12)); in SET_CMC_TBL_DATA_GI_LTF()
554 static inline void SET_CMC_TBL_DARF_TC_INDEX(void *table, u32 val) in SET_CMC_TBL_DARF_TC_INDEX() argument
556 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(15)); in SET_CMC_TBL_DARF_TC_INDEX()
561 static inline void SET_CMC_TBL_ARFR_CTRL(void *table, u32 val) in SET_CMC_TBL_ARFR_CTRL() argument
563 le32p_replace_bits((__le32 *)(table) + 1, val, GENMASK(19, 16)); in SET_CMC_TBL_ARFR_CTRL()
568 static inline void SET_CMC_TBL_ACQ_RPT_EN(void *table, u32 val) in SET_CMC_TBL_ACQ_RPT_EN() argument
570 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(20)); in SET_CMC_TBL_ACQ_RPT_EN()
575 static inline void SET_CMC_TBL_MGQ_RPT_EN(void *table, u32 val) in SET_CMC_TBL_MGQ_RPT_EN() argument
577 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(21)); in SET_CMC_TBL_MGQ_RPT_EN()
582 static inline void SET_CMC_TBL_ULQ_RPT_EN(void *table, u32 val) in SET_CMC_TBL_ULQ_RPT_EN() argument
584 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(22)); in SET_CMC_TBL_ULQ_RPT_EN()
589 static inline void SET_CMC_TBL_TWTQ_RPT_EN(void *table, u32 val) in SET_CMC_TBL_TWTQ_RPT_EN() argument
591 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(23)); in SET_CMC_TBL_TWTQ_RPT_EN()
596 static inline void SET_CMC_TBL_DISRTSFB(void *table, u32 val) in SET_CMC_TBL_DISRTSFB() argument
598 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(25)); in SET_CMC_TBL_DISRTSFB()
603 static inline void SET_CMC_TBL_DISDATAFB(void *table, u32 val) in SET_CMC_TBL_DISDATAFB() argument
605 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(26)); in SET_CMC_TBL_DISDATAFB()
610 static inline void SET_CMC_TBL_TRYRATE(void *table, u32 val) in SET_CMC_TBL_TRYRATE() argument
612 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(27)); in SET_CMC_TBL_TRYRATE()
617 static inline void SET_CMC_TBL_AMPDU_DENSITY(void *table, u32 val) in SET_CMC_TBL_AMPDU_DENSITY() argument
619 le32p_replace_bits((__le32 *)(table) + 1, val, GENMASK(31, 28)); in SET_CMC_TBL_AMPDU_DENSITY()
624 static inline void SET_CMC_TBL_DATA_RTY_LOWEST_RATE(void *table, u32 val) in SET_CMC_TBL_DATA_RTY_LOWEST_RATE() argument
626 le32p_replace_bits((__le32 *)(table) + 2, val, GENMASK(8, 0)); in SET_CMC_TBL_DATA_RTY_LOWEST_RATE()
631 static inline void SET_CMC_TBL_AMPDU_TIME_SEL(void *table, u32 val) in SET_CMC_TBL_AMPDU_TIME_SEL() argument
633 le32p_replace_bits((__le32 *)(table) + 2, val, BIT(9)); in SET_CMC_TBL_AMPDU_TIME_SEL()
638 static inline void SET_CMC_TBL_AMPDU_LEN_SEL(void *table, u32 val) in SET_CMC_TBL_AMPDU_LEN_SEL() argument
640 le32p_replace_bits((__le32 *)(table) + 2, val, BIT(10)); in SET_CMC_TBL_AMPDU_LEN_SEL()
645 static inline void SET_CMC_TBL_RTS_TXCNT_LMT_SEL(void *table, u32 val) in SET_CMC_TBL_RTS_TXCNT_LMT_SEL() argument
647 le32p_replace_bits((__le32 *)(table) + 2, val, BIT(11)); in SET_CMC_TBL_RTS_TXCNT_LMT_SEL()
652 static inline void SET_CMC_TBL_RTS_TXCNT_LMT(void *table, u32 val) in SET_CMC_TBL_RTS_TXCNT_LMT() argument
654 le32p_replace_bits((__le32 *)(table) + 2, val, GENMASK(15, 12)); in SET_CMC_TBL_RTS_TXCNT_LMT()
659 static inline void SET_CMC_TBL_RTSRATE(void *table, u32 val) in SET_CMC_TBL_RTSRATE() argument
661 le32p_replace_bits((__le32 *)(table) + 2, val, GENMASK(24, 16)); in SET_CMC_TBL_RTSRATE()
666 static inline void SET_CMC_TBL_VCS_STBC(void *table, u32 val) in SET_CMC_TBL_VCS_STBC() argument
668 le32p_replace_bits((__le32 *)(table) + 2, val, BIT(27)); in SET_CMC_TBL_VCS_STBC()
673 static inline void SET_CMC_TBL_RTS_RTY_LOWEST_RATE(void *table, u32 val) in SET_CMC_TBL_RTS_RTY_LOWEST_RATE() argument
675 le32p_replace_bits((__le32 *)(table) + 2, val, GENMASK(31, 28)); in SET_CMC_TBL_RTS_RTY_LOWEST_RATE()
680 static inline void SET_CMC_TBL_DATA_TX_CNT_LMT(void *table, u32 val) in SET_CMC_TBL_DATA_TX_CNT_LMT() argument
682 le32p_replace_bits((__le32 *)(table) + 3, val, GENMASK(5, 0)); in SET_CMC_TBL_DATA_TX_CNT_LMT()
687 static inline void SET_CMC_TBL_DATA_TXCNT_LMT_SEL(void *table, u32 val) in SET_CMC_TBL_DATA_TXCNT_LMT_SEL() argument
689 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(6)); in SET_CMC_TBL_DATA_TXCNT_LMT_SEL()
694 static inline void SET_CMC_TBL_MAX_AGG_NUM_SEL(void *table, u32 val) in SET_CMC_TBL_MAX_AGG_NUM_SEL() argument
696 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(7)); in SET_CMC_TBL_MAX_AGG_NUM_SEL()
701 static inline void SET_CMC_TBL_RTS_EN(void *table, u32 val) in SET_CMC_TBL_RTS_EN() argument
703 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(8)); in SET_CMC_TBL_RTS_EN()
708 static inline void SET_CMC_TBL_CTS2SELF_EN(void *table, u32 val) in SET_CMC_TBL_CTS2SELF_EN() argument
710 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(9)); in SET_CMC_TBL_CTS2SELF_EN()
715 static inline void SET_CMC_TBL_CCA_RTS(void *table, u32 val) in SET_CMC_TBL_CCA_RTS() argument
717 le32p_replace_bits((__le32 *)(table) + 3, val, GENMASK(11, 10)); in SET_CMC_TBL_CCA_RTS()
722 static inline void SET_CMC_TBL_HW_RTS_EN(void *table, u32 val) in SET_CMC_TBL_HW_RTS_EN() argument
724 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(12)); in SET_CMC_TBL_HW_RTS_EN()
729 static inline void SET_CMC_TBL_RTS_DROP_DATA_MODE(void *table, u32 val) in SET_CMC_TBL_RTS_DROP_DATA_MODE() argument
731 le32p_replace_bits((__le32 *)(table) + 3, val, GENMASK(14, 13)); in SET_CMC_TBL_RTS_DROP_DATA_MODE()
736 static inline void SET_CMC_TBL_AMPDU_MAX_LEN(void *table, u32 val) in SET_CMC_TBL_AMPDU_MAX_LEN() argument
738 le32p_replace_bits((__le32 *)(table) + 3, val, GENMASK(26, 16)); in SET_CMC_TBL_AMPDU_MAX_LEN()
743 static inline void SET_CMC_TBL_UL_MU_DIS(void *table, u32 val) in SET_CMC_TBL_UL_MU_DIS() argument
745 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(27)); in SET_CMC_TBL_UL_MU_DIS()
750 static inline void SET_CMC_TBL_AMPDU_MAX_TIME(void *table, u32 val) in SET_CMC_TBL_AMPDU_MAX_TIME() argument
752 le32p_replace_bits((__le32 *)(table) + 3, val, GENMASK(31, 28)); in SET_CMC_TBL_AMPDU_MAX_TIME()
757 static inline void SET_CMC_TBL_MAX_AGG_NUM(void *table, u32 val) in SET_CMC_TBL_MAX_AGG_NUM() argument
759 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(7, 0)); in SET_CMC_TBL_MAX_AGG_NUM()
764 static inline void SET_CMC_TBL_BA_BMAP(void *table, u32 val) in SET_CMC_TBL_BA_BMAP() argument
766 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(9, 8)); in SET_CMC_TBL_BA_BMAP()
771 static inline void SET_CMC_TBL_VO_LFTIME_SEL(void *table, u32 val) in SET_CMC_TBL_VO_LFTIME_SEL() argument
773 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(18, 16)); in SET_CMC_TBL_VO_LFTIME_SEL()
778 static inline void SET_CMC_TBL_VI_LFTIME_SEL(void *table, u32 val) in SET_CMC_TBL_VI_LFTIME_SEL() argument
780 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(21, 19)); in SET_CMC_TBL_VI_LFTIME_SEL()
785 static inline void SET_CMC_TBL_BE_LFTIME_SEL(void *table, u32 val) in SET_CMC_TBL_BE_LFTIME_SEL() argument
787 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(24, 22)); in SET_CMC_TBL_BE_LFTIME_SEL()
792 static inline void SET_CMC_TBL_BK_LFTIME_SEL(void *table, u32 val) in SET_CMC_TBL_BK_LFTIME_SEL() argument
794 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(27, 25)); in SET_CMC_TBL_BK_LFTIME_SEL()
799 static inline void SET_CMC_TBL_SECTYPE(void *table, u32 val) in SET_CMC_TBL_SECTYPE() argument
801 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(31, 28)); in SET_CMC_TBL_SECTYPE()
806 static inline void SET_CMC_TBL_MULTI_PORT_ID(void *table, u32 val) in SET_CMC_TBL_MULTI_PORT_ID() argument
808 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(2, 0)); in SET_CMC_TBL_MULTI_PORT_ID()
813 static inline void SET_CMC_TBL_BMC(void *table, u32 val) in SET_CMC_TBL_BMC() argument
815 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(3)); in SET_CMC_TBL_BMC()
820 static inline void SET_CMC_TBL_MBSSID(void *table, u32 val) in SET_CMC_TBL_MBSSID() argument
822 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(7, 4)); in SET_CMC_TBL_MBSSID()
827 static inline void SET_CMC_TBL_NAVUSEHDR(void *table, u32 val) in SET_CMC_TBL_NAVUSEHDR() argument
829 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(8)); in SET_CMC_TBL_NAVUSEHDR()
834 static inline void SET_CMC_TBL_TXPWR_MODE(void *table, u32 val) in SET_CMC_TBL_TXPWR_MODE() argument
836 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(11, 9)); in SET_CMC_TBL_TXPWR_MODE()
841 static inline void SET_CMC_TBL_DATA_DCM(void *table, u32 val) in SET_CMC_TBL_DATA_DCM() argument
843 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(12)); in SET_CMC_TBL_DATA_DCM()
848 static inline void SET_CMC_TBL_DATA_ER(void *table, u32 val) in SET_CMC_TBL_DATA_ER() argument
850 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(13)); in SET_CMC_TBL_DATA_ER()
855 static inline void SET_CMC_TBL_DATA_LDPC(void *table, u32 val) in SET_CMC_TBL_DATA_LDPC() argument
857 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(14)); in SET_CMC_TBL_DATA_LDPC()
862 static inline void SET_CMC_TBL_DATA_STBC(void *table, u32 val) in SET_CMC_TBL_DATA_STBC() argument
864 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(15)); in SET_CMC_TBL_DATA_STBC()
869 static inline void SET_CMC_TBL_A_CTRL_BQR(void *table, u32 val) in SET_CMC_TBL_A_CTRL_BQR() argument
871 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(16)); in SET_CMC_TBL_A_CTRL_BQR()
876 static inline void SET_CMC_TBL_A_CTRL_UPH(void *table, u32 val) in SET_CMC_TBL_A_CTRL_UPH() argument
878 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(17)); in SET_CMC_TBL_A_CTRL_UPH()
883 static inline void SET_CMC_TBL_A_CTRL_BSR(void *table, u32 val) in SET_CMC_TBL_A_CTRL_BSR() argument
885 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(18)); in SET_CMC_TBL_A_CTRL_BSR()
890 static inline void SET_CMC_TBL_A_CTRL_CAS(void *table, u32 val) in SET_CMC_TBL_A_CTRL_CAS() argument
892 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(19)); in SET_CMC_TBL_A_CTRL_CAS()
897 static inline void SET_CMC_TBL_DATA_BW_ER(void *table, u32 val) in SET_CMC_TBL_DATA_BW_ER() argument
899 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(20)); in SET_CMC_TBL_DATA_BW_ER()
904 static inline void SET_CMC_TBL_LSIG_TXOP_EN(void *table, u32 val) in SET_CMC_TBL_LSIG_TXOP_EN() argument
906 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(21)); in SET_CMC_TBL_LSIG_TXOP_EN()
911 static inline void SET_CMC_TBL_CTRL_CNT_VLD(void *table, u32 val) in SET_CMC_TBL_CTRL_CNT_VLD() argument
913 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(27)); in SET_CMC_TBL_CTRL_CNT_VLD()
918 static inline void SET_CMC_TBL_CTRL_CNT(void *table, u32 val) in SET_CMC_TBL_CTRL_CNT() argument
920 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(31, 28)); in SET_CMC_TBL_CTRL_CNT()
925 static inline void SET_CMC_TBL_RESP_REF_RATE(void *table, u32 val) in SET_CMC_TBL_RESP_REF_RATE() argument
927 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(8, 0)); in SET_CMC_TBL_RESP_REF_RATE()
932 static inline void SET_CMC_TBL_ALL_ACK_SUPPORT(void *table, u32 val) in SET_CMC_TBL_ALL_ACK_SUPPORT() argument
934 le32p_replace_bits((__le32 *)(table) + 6, val, BIT(12)); in SET_CMC_TBL_ALL_ACK_SUPPORT()
939 static inline void SET_CMC_TBL_BSR_QUEUE_SIZE_FORMAT(void *table, u32 val) in SET_CMC_TBL_BSR_QUEUE_SIZE_FORMAT() argument
941 le32p_replace_bits((__le32 *)(table) + 6, val, BIT(13)); in SET_CMC_TBL_BSR_QUEUE_SIZE_FORMAT()
946 static inline void SET_CMC_TBL_NTX_PATH_EN(void *table, u32 val) in SET_CMC_TBL_NTX_PATH_EN() argument
948 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(19, 16)); in SET_CMC_TBL_NTX_PATH_EN()
953 static inline void SET_CMC_TBL_PATH_MAP_A(void *table, u32 val) in SET_CMC_TBL_PATH_MAP_A() argument
955 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(21, 20)); in SET_CMC_TBL_PATH_MAP_A()
960 static inline void SET_CMC_TBL_PATH_MAP_B(void *table, u32 val) in SET_CMC_TBL_PATH_MAP_B() argument
962 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(23, 22)); in SET_CMC_TBL_PATH_MAP_B()
967 static inline void SET_CMC_TBL_PATH_MAP_C(void *table, u32 val) in SET_CMC_TBL_PATH_MAP_C() argument
969 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(25, 24)); in SET_CMC_TBL_PATH_MAP_C()
974 static inline void SET_CMC_TBL_PATH_MAP_D(void *table, u32 val) in SET_CMC_TBL_PATH_MAP_D() argument
976 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(27, 26)); in SET_CMC_TBL_PATH_MAP_D()
981 static inline void SET_CMC_TBL_ANTSEL_A(void *table, u32 val) in SET_CMC_TBL_ANTSEL_A() argument
983 le32p_replace_bits((__le32 *)(table) + 6, val, BIT(28)); in SET_CMC_TBL_ANTSEL_A()
988 static inline void SET_CMC_TBL_ANTSEL_B(void *table, u32 val) in SET_CMC_TBL_ANTSEL_B() argument
990 le32p_replace_bits((__le32 *)(table) + 6, val, BIT(29)); in SET_CMC_TBL_ANTSEL_B()
995 static inline void SET_CMC_TBL_ANTSEL_C(void *table, u32 val) in SET_CMC_TBL_ANTSEL_C() argument
997 le32p_replace_bits((__le32 *)(table) + 6, val, BIT(30)); in SET_CMC_TBL_ANTSEL_C()
1002 static inline void SET_CMC_TBL_ANTSEL_D(void *table, u32 val) in SET_CMC_TBL_ANTSEL_D() argument
1004 le32p_replace_bits((__le32 *)(table) + 6, val, BIT(31)); in SET_CMC_TBL_ANTSEL_D()
1010 static inline void SET_CMC_TBL_NOMINAL_PKT_PADDING_V1(void *table, u32 val) in SET_CMC_TBL_NOMINAL_PKT_PADDING_V1() argument
1012 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(1, 0)); in SET_CMC_TBL_NOMINAL_PKT_PADDING_V1()
1017 static inline void SET_CMC_TBL_NOMINAL_PKT_PADDING40_V1(void *table, u32 val) in SET_CMC_TBL_NOMINAL_PKT_PADDING40_V1() argument
1019 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(3, 2)); in SET_CMC_TBL_NOMINAL_PKT_PADDING40_V1()
1024 static inline void SET_CMC_TBL_NOMINAL_PKT_PADDING80_V1(void *table, u32 val) in SET_CMC_TBL_NOMINAL_PKT_PADDING80_V1() argument
1026 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(5, 4)); in SET_CMC_TBL_NOMINAL_PKT_PADDING80_V1()
1031 static inline void SET_CMC_TBL_NOMINAL_PKT_PADDING160_V1(void *table, u32 val) in SET_CMC_TBL_NOMINAL_PKT_PADDING160_V1() argument
1033 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(7, 6)); in SET_CMC_TBL_NOMINAL_PKT_PADDING160_V1()
1039 static inline void SET_CMC_TBL_ADDR_CAM_INDEX(void *table, u32 val) in SET_CMC_TBL_ADDR_CAM_INDEX() argument
1041 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(7, 0)); in SET_CMC_TBL_ADDR_CAM_INDEX()
1046 static inline void SET_CMC_TBL_PAID(void *table, u32 val) in SET_CMC_TBL_PAID() argument
1048 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(16, 8)); in SET_CMC_TBL_PAID()
1053 static inline void SET_CMC_TBL_ULDL(void *table, u32 val) in SET_CMC_TBL_ULDL() argument
1055 le32p_replace_bits((__le32 *)(table) + 7, val, BIT(17)); in SET_CMC_TBL_ULDL()
1060 static inline void SET_CMC_TBL_DOPPLER_CTRL(void *table, u32 val) in SET_CMC_TBL_DOPPLER_CTRL() argument
1062 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(19, 18)); in SET_CMC_TBL_DOPPLER_CTRL()
1066 static inline void SET_CMC_TBL_NOMINAL_PKT_PADDING(void *table, u32 val) in SET_CMC_TBL_NOMINAL_PKT_PADDING() argument
1068 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(21, 20)); in SET_CMC_TBL_NOMINAL_PKT_PADDING()
1073 static inline void SET_CMC_TBL_NOMINAL_PKT_PADDING40(void *table, u32 val) in SET_CMC_TBL_NOMINAL_PKT_PADDING40() argument
1075 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(23, 22)); in SET_CMC_TBL_NOMINAL_PKT_PADDING40()
1080 static inline void SET_CMC_TBL_TXPWR_TOLERENCE(void *table, u32 val) in SET_CMC_TBL_TXPWR_TOLERENCE() argument
1082 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(27, 24)); in SET_CMC_TBL_TXPWR_TOLERENCE()
1087 static inline void SET_CMC_TBL_NOMINAL_PKT_PADDING80(void *table, u32 val) in SET_CMC_TBL_NOMINAL_PKT_PADDING80() argument
1089 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(31, 30)); in SET_CMC_TBL_NOMINAL_PKT_PADDING80()
1094 static inline void SET_CMC_TBL_NC(void *table, u32 val) in SET_CMC_TBL_NC() argument
1096 le32p_replace_bits((__le32 *)(table) + 8, val, GENMASK(2, 0)); in SET_CMC_TBL_NC()
1101 static inline void SET_CMC_TBL_NR(void *table, u32 val) in SET_CMC_TBL_NR() argument
1103 le32p_replace_bits((__le32 *)(table) + 8, val, GENMASK(5, 3)); in SET_CMC_TBL_NR()
1108 static inline void SET_CMC_TBL_NG(void *table, u32 val) in SET_CMC_TBL_NG() argument
1110 le32p_replace_bits((__le32 *)(table) + 8, val, GENMASK(7, 6)); in SET_CMC_TBL_NG()
1115 static inline void SET_CMC_TBL_CB(void *table, u32 val) in SET_CMC_TBL_CB() argument
1117 le32p_replace_bits((__le32 *)(table) + 8, val, GENMASK(9, 8)); in SET_CMC_TBL_CB()
1122 static inline void SET_CMC_TBL_CS(void *table, u32 val) in SET_CMC_TBL_CS() argument
1124 le32p_replace_bits((__le32 *)(table) + 8, val, GENMASK(11, 10)); in SET_CMC_TBL_CS()
1129 static inline void SET_CMC_TBL_CSI_TXBF_EN(void *table, u32 val) in SET_CMC_TBL_CSI_TXBF_EN() argument
1131 le32p_replace_bits((__le32 *)(table) + 8, val, BIT(12)); in SET_CMC_TBL_CSI_TXBF_EN()
1136 static inline void SET_CMC_TBL_CSI_STBC_EN(void *table, u32 val) in SET_CMC_TBL_CSI_STBC_EN() argument
1138 le32p_replace_bits((__le32 *)(table) + 8, val, BIT(13)); in SET_CMC_TBL_CSI_STBC_EN()
1143 static inline void SET_CMC_TBL_CSI_LDPC_EN(void *table, u32 val) in SET_CMC_TBL_CSI_LDPC_EN() argument
1145 le32p_replace_bits((__le32 *)(table) + 8, val, BIT(14)); in SET_CMC_TBL_CSI_LDPC_EN()
1150 static inline void SET_CMC_TBL_CSI_PARA_EN(void *table, u32 val) in SET_CMC_TBL_CSI_PARA_EN() argument
1152 le32p_replace_bits((__le32 *)(table) + 8, val, BIT(15)); in SET_CMC_TBL_CSI_PARA_EN()
1157 static inline void SET_CMC_TBL_CSI_FIX_RATE(void *table, u32 val) in SET_CMC_TBL_CSI_FIX_RATE() argument
1159 le32p_replace_bits((__le32 *)(table) + 8, val, GENMASK(24, 16)); in SET_CMC_TBL_CSI_FIX_RATE()
1164 static inline void SET_CMC_TBL_CSI_GI_LTF(void *table, u32 val) in SET_CMC_TBL_CSI_GI_LTF() argument
1166 le32p_replace_bits((__le32 *)(table) + 8, val, GENMASK(27, 25)); in SET_CMC_TBL_CSI_GI_LTF()
1171 static inline void SET_CMC_TBL_NOMINAL_PKT_PADDING160(void *table, u32 val) in SET_CMC_TBL_NOMINAL_PKT_PADDING160() argument
1173 le32p_replace_bits((__le32 *)(table) + 8, val, GENMASK(29, 28)); in SET_CMC_TBL_NOMINAL_PKT_PADDING160()
1179 static inline void SET_CMC_TBL_CSI_BW(void *table, u32 val) in SET_CMC_TBL_CSI_BW() argument
1181 le32p_replace_bits((__le32 *)(table) + 8, val, GENMASK(31, 30)); in SET_CMC_TBL_CSI_BW()
1186 static inline void SET_DCTL_MACID_V1(void *table, u32 val) in SET_DCTL_MACID_V1() argument
1188 le32p_replace_bits((__le32 *)(table) + 0, val, GENMASK(6, 0)); in SET_DCTL_MACID_V1()
1191 static inline void SET_DCTL_OPERATION_V1(void *table, u32 val) in SET_DCTL_OPERATION_V1() argument
1193 le32p_replace_bits((__le32 *)(table) + 0, val, BIT(7)); in SET_DCTL_OPERATION_V1()
1197 static inline void SET_DCTL_QOS_FIELD_V1(void *table, u32 val) in SET_DCTL_QOS_FIELD_V1() argument
1199 le32p_replace_bits((__le32 *)(table) + 1, val, GENMASK(7, 0)); in SET_DCTL_QOS_FIELD_V1()
1205 static inline void SET_DCTL_HW_EXSEQ_MACID_V1(void *table, u32 val) in SET_DCTL_HW_EXSEQ_MACID_V1() argument
1207 le32p_replace_bits((__le32 *)(table) + 1, val, GENMASK(14, 8)); in SET_DCTL_HW_EXSEQ_MACID_V1()
1213 static inline void SET_DCTL_QOS_DATA_V1(void *table, u32 val) in SET_DCTL_QOS_DATA_V1() argument
1215 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(15)); in SET_DCTL_QOS_DATA_V1()
1221 static inline void SET_DCTL_AES_IV_L_V1(void *table, u32 val) in SET_DCTL_AES_IV_L_V1() argument
1223 le32p_replace_bits((__le32 *)(table) + 1, val, GENMASK(31, 16)); in SET_DCTL_AES_IV_L_V1()
1229 static inline void SET_DCTL_AES_IV_H_V1(void *table, u32 val) in SET_DCTL_AES_IV_H_V1() argument
1231 le32p_replace_bits((__le32 *)(table) + 2, val, GENMASK(31, 0)); in SET_DCTL_AES_IV_H_V1()
1237 static inline void SET_DCTL_SEQ0_V1(void *table, u32 val) in SET_DCTL_SEQ0_V1() argument
1239 le32p_replace_bits((__le32 *)(table) + 3, val, GENMASK(11, 0)); in SET_DCTL_SEQ0_V1()
1245 static inline void SET_DCTL_SEQ1_V1(void *table, u32 val) in SET_DCTL_SEQ1_V1() argument
1247 le32p_replace_bits((__le32 *)(table) + 3, val, GENMASK(23, 12)); in SET_DCTL_SEQ1_V1()
1253 static inline void SET_DCTL_AMSDU_MAX_LEN_V1(void *table, u32 val) in SET_DCTL_AMSDU_MAX_LEN_V1() argument
1255 le32p_replace_bits((__le32 *)(table) + 3, val, GENMASK(26, 24)); in SET_DCTL_AMSDU_MAX_LEN_V1()
1261 static inline void SET_DCTL_STA_AMSDU_EN_V1(void *table, u32 val) in SET_DCTL_STA_AMSDU_EN_V1() argument
1263 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(27)); in SET_DCTL_STA_AMSDU_EN_V1()
1269 static inline void SET_DCTL_CHKSUM_OFLD_EN_V1(void *table, u32 val) in SET_DCTL_CHKSUM_OFLD_EN_V1() argument
1271 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(28)); in SET_DCTL_CHKSUM_OFLD_EN_V1()
1277 static inline void SET_DCTL_WITH_LLC_V1(void *table, u32 val) in SET_DCTL_WITH_LLC_V1() argument
1279 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(29)); in SET_DCTL_WITH_LLC_V1()
1285 static inline void SET_DCTL_SEQ2_V1(void *table, u32 val) in SET_DCTL_SEQ2_V1() argument
1287 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(11, 0)); in SET_DCTL_SEQ2_V1()
1293 static inline void SET_DCTL_SEQ3_V1(void *table, u32 val) in SET_DCTL_SEQ3_V1() argument
1295 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(23, 12)); in SET_DCTL_SEQ3_V1()
1301 static inline void SET_DCTL_TGT_IND_V1(void *table, u32 val) in SET_DCTL_TGT_IND_V1() argument
1303 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(27, 24)); in SET_DCTL_TGT_IND_V1()
1309 static inline void SET_DCTL_TGT_IND_EN_V1(void *table, u32 val) in SET_DCTL_TGT_IND_EN_V1() argument
1311 le32p_replace_bits((__le32 *)(table) + 4, val, BIT(28)); in SET_DCTL_TGT_IND_EN_V1()
1317 static inline void SET_DCTL_HTC_LB_V1(void *table, u32 val) in SET_DCTL_HTC_LB_V1() argument
1319 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(31, 29)); in SET_DCTL_HTC_LB_V1()
1325 static inline void SET_DCTL_MHDR_LEN_V1(void *table, u32 val) in SET_DCTL_MHDR_LEN_V1() argument
1327 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(4, 0)); in SET_DCTL_MHDR_LEN_V1()
1333 static inline void SET_DCTL_VLAN_TAG_VALID_V1(void *table, u32 val) in SET_DCTL_VLAN_TAG_VALID_V1() argument
1335 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(5)); in SET_DCTL_VLAN_TAG_VALID_V1()
1341 static inline void SET_DCTL_VLAN_TAG_SEL_V1(void *table, u32 val) in SET_DCTL_VLAN_TAG_SEL_V1() argument
1343 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(7, 6)); in SET_DCTL_VLAN_TAG_SEL_V1()
1349 static inline void SET_DCTL_HTC_ORDER_V1(void *table, u32 val) in SET_DCTL_HTC_ORDER_V1() argument
1351 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(8)); in SET_DCTL_HTC_ORDER_V1()
1357 static inline void SET_DCTL_SEC_KEY_ID_V1(void *table, u32 val) in SET_DCTL_SEC_KEY_ID_V1() argument
1359 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(10, 9)); in SET_DCTL_SEC_KEY_ID_V1()
1365 static inline void SET_DCTL_WAPI_V1(void *table, u32 val) in SET_DCTL_WAPI_V1() argument
1367 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(15)); in SET_DCTL_WAPI_V1()
1373 static inline void SET_DCTL_SEC_ENT_MODE_V1(void *table, u32 val) in SET_DCTL_SEC_ENT_MODE_V1() argument
1375 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(17, 16)); in SET_DCTL_SEC_ENT_MODE_V1()
1381 static inline void SET_DCTL_SEC_ENT0_KEYID_V1(void *table, u32 val) in SET_DCTL_SEC_ENT0_KEYID_V1() argument
1383 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(19, 18)); in SET_DCTL_SEC_ENT0_KEYID_V1()
1388 static inline void SET_DCTL_SEC_ENT1_KEYID_V1(void *table, u32 val) in SET_DCTL_SEC_ENT1_KEYID_V1() argument
1390 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(21, 20)); in SET_DCTL_SEC_ENT1_KEYID_V1()
1395 static inline void SET_DCTL_SEC_ENT2_KEYID_V1(void *table, u32 val) in SET_DCTL_SEC_ENT2_KEYID_V1() argument
1397 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(23, 22)); in SET_DCTL_SEC_ENT2_KEYID_V1()
1402 static inline void SET_DCTL_SEC_ENT3_KEYID_V1(void *table, u32 val) in SET_DCTL_SEC_ENT3_KEYID_V1() argument
1404 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(25, 24)); in SET_DCTL_SEC_ENT3_KEYID_V1()
1409 static inline void SET_DCTL_SEC_ENT4_KEYID_V1(void *table, u32 val) in SET_DCTL_SEC_ENT4_KEYID_V1() argument
1411 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(27, 26)); in SET_DCTL_SEC_ENT4_KEYID_V1()
1416 static inline void SET_DCTL_SEC_ENT5_KEYID_V1(void *table, u32 val) in SET_DCTL_SEC_ENT5_KEYID_V1() argument
1418 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(29, 28)); in SET_DCTL_SEC_ENT5_KEYID_V1()
1423 static inline void SET_DCTL_SEC_ENT6_KEYID_V1(void *table, u32 val) in SET_DCTL_SEC_ENT6_KEYID_V1() argument
1425 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(31, 30)); in SET_DCTL_SEC_ENT6_KEYID_V1()
1431 static inline void SET_DCTL_SEC_ENT_VALID_V1(void *table, u32 val) in SET_DCTL_SEC_ENT_VALID_V1() argument
1433 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(7, 0)); in SET_DCTL_SEC_ENT_VALID_V1()
1439 static inline void SET_DCTL_SEC_ENT0_V1(void *table, u32 val) in SET_DCTL_SEC_ENT0_V1() argument
1441 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(15, 8)); in SET_DCTL_SEC_ENT0_V1()
1446 static inline void SET_DCTL_SEC_ENT1_V1(void *table, u32 val) in SET_DCTL_SEC_ENT1_V1() argument
1448 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(23, 16)); in SET_DCTL_SEC_ENT1_V1()
1453 static inline void SET_DCTL_SEC_ENT2_V1(void *table, u32 val) in SET_DCTL_SEC_ENT2_V1() argument
1455 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(31, 24)); in SET_DCTL_SEC_ENT2_V1()
1460 static inline void SET_DCTL_SEC_ENT3_V1(void *table, u32 val) in SET_DCTL_SEC_ENT3_V1() argument
1462 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(7, 0)); in SET_DCTL_SEC_ENT3_V1()
1467 static inline void SET_DCTL_SEC_ENT4_V1(void *table, u32 val) in SET_DCTL_SEC_ENT4_V1() argument
1469 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(15, 8)); in SET_DCTL_SEC_ENT4_V1()
1474 static inline void SET_DCTL_SEC_ENT5_V1(void *table, u32 val) in SET_DCTL_SEC_ENT5_V1() argument
1476 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(23, 16)); in SET_DCTL_SEC_ENT5_V1()
1481 static inline void SET_DCTL_SEC_ENT6_V1(void *table, u32 val) in SET_DCTL_SEC_ENT6_V1() argument
1483 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(31, 24)); in SET_DCTL_SEC_ENT6_V1()
1488 static inline void SET_BCN_UPD_PORT(void *h2c, u32 val) in SET_BCN_UPD_PORT() argument
1490 le32p_replace_bits((__le32 *)h2c, val, GENMASK(7, 0)); in SET_BCN_UPD_PORT()
1493 static inline void SET_BCN_UPD_MBSSID(void *h2c, u32 val) in SET_BCN_UPD_MBSSID() argument
1495 le32p_replace_bits((__le32 *)h2c, val, GENMASK(15, 8)); in SET_BCN_UPD_MBSSID()
1498 static inline void SET_BCN_UPD_BAND(void *h2c, u32 val) in SET_BCN_UPD_BAND() argument
1500 le32p_replace_bits((__le32 *)h2c, val, GENMASK(23, 16)); in SET_BCN_UPD_BAND()
1503 static inline void SET_BCN_UPD_GRP_IE_OFST(void *h2c, u32 val) in SET_BCN_UPD_GRP_IE_OFST() argument
1505 le32p_replace_bits((__le32 *)h2c, (val - 24) | BIT(7), GENMASK(31, 24)); in SET_BCN_UPD_GRP_IE_OFST()
1508 static inline void SET_BCN_UPD_MACID(void *h2c, u32 val) in SET_BCN_UPD_MACID() argument
1510 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(7, 0)); in SET_BCN_UPD_MACID()
1513 static inline void SET_BCN_UPD_SSN_SEL(void *h2c, u32 val) in SET_BCN_UPD_SSN_SEL() argument
1515 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(9, 8)); in SET_BCN_UPD_SSN_SEL()
1518 static inline void SET_BCN_UPD_SSN_MODE(void *h2c, u32 val) in SET_BCN_UPD_SSN_MODE() argument
1520 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(11, 10)); in SET_BCN_UPD_SSN_MODE()
1523 static inline void SET_BCN_UPD_RATE(void *h2c, u32 val) in SET_BCN_UPD_RATE() argument
1525 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(20, 12)); in SET_BCN_UPD_RATE()
1528 static inline void SET_BCN_UPD_TXPWR(void *h2c, u32 val) in SET_BCN_UPD_TXPWR() argument
1530 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(23, 21)); in SET_BCN_UPD_TXPWR()
1533 static inline void SET_BCN_UPD_TXINFO_CTRL_EN(void *h2c, u32 val) in SET_BCN_UPD_TXINFO_CTRL_EN() argument
1535 le32p_replace_bits((__le32 *)(h2c) + 2, val, BIT(0)); in SET_BCN_UPD_TXINFO_CTRL_EN()
1538 static inline void SET_BCN_UPD_NTX_PATH_EN(void *h2c, u32 val) in SET_BCN_UPD_NTX_PATH_EN() argument
1540 le32p_replace_bits((__le32 *)(h2c) + 2, val, GENMASK(4, 1)); in SET_BCN_UPD_NTX_PATH_EN()
1543 static inline void SET_BCN_UPD_PATH_MAP_A(void *h2c, u32 val) in SET_BCN_UPD_PATH_MAP_A() argument
1545 le32p_replace_bits((__le32 *)(h2c) + 2, val, GENMASK(6, 5)); in SET_BCN_UPD_PATH_MAP_A()
1548 static inline void SET_BCN_UPD_PATH_MAP_B(void *h2c, u32 val) in SET_BCN_UPD_PATH_MAP_B() argument
1550 le32p_replace_bits((__le32 *)(h2c) + 2, val, GENMASK(8, 7)); in SET_BCN_UPD_PATH_MAP_B()
1553 static inline void SET_BCN_UPD_PATH_MAP_C(void *h2c, u32 val) in SET_BCN_UPD_PATH_MAP_C() argument
1555 le32p_replace_bits((__le32 *)(h2c) + 2, val, GENMASK(10, 9)); in SET_BCN_UPD_PATH_MAP_C()
1558 static inline void SET_BCN_UPD_PATH_MAP_D(void *h2c, u32 val) in SET_BCN_UPD_PATH_MAP_D() argument
1560 le32p_replace_bits((__le32 *)(h2c) + 2, val, GENMASK(12, 11)); in SET_BCN_UPD_PATH_MAP_D()
1563 static inline void SET_BCN_UPD_PATH_ANTSEL_A(void *h2c, u32 val) in SET_BCN_UPD_PATH_ANTSEL_A() argument
1565 le32p_replace_bits((__le32 *)(h2c) + 2, val, BIT(13)); in SET_BCN_UPD_PATH_ANTSEL_A()
1568 static inline void SET_BCN_UPD_PATH_ANTSEL_B(void *h2c, u32 val) in SET_BCN_UPD_PATH_ANTSEL_B() argument
1570 le32p_replace_bits((__le32 *)(h2c) + 2, val, BIT(14)); in SET_BCN_UPD_PATH_ANTSEL_B()
1573 static inline void SET_BCN_UPD_PATH_ANTSEL_C(void *h2c, u32 val) in SET_BCN_UPD_PATH_ANTSEL_C() argument
1575 le32p_replace_bits((__le32 *)(h2c) + 2, val, BIT(15)); in SET_BCN_UPD_PATH_ANTSEL_C()
1578 static inline void SET_BCN_UPD_PATH_ANTSEL_D(void *h2c, u32 val) in SET_BCN_UPD_PATH_ANTSEL_D() argument
1580 le32p_replace_bits((__le32 *)(h2c) + 2, val, BIT(16)); in SET_BCN_UPD_PATH_ANTSEL_D()
1583 static inline void SET_BCN_UPD_CSA_OFST(void *h2c, u32 val) in SET_BCN_UPD_CSA_OFST() argument
1585 le32p_replace_bits((__le32 *)(h2c) + 2, val, GENMASK(31, 17)); in SET_BCN_UPD_CSA_OFST()
1588 static inline void SET_FWROLE_MAINTAIN_MACID(void *h2c, u32 val) in SET_FWROLE_MAINTAIN_MACID() argument
1590 le32p_replace_bits((__le32 *)h2c, val, GENMASK(7, 0)); in SET_FWROLE_MAINTAIN_MACID()
1593 static inline void SET_FWROLE_MAINTAIN_SELF_ROLE(void *h2c, u32 val) in SET_FWROLE_MAINTAIN_SELF_ROLE() argument
1595 le32p_replace_bits((__le32 *)h2c, val, GENMASK(9, 8)); in SET_FWROLE_MAINTAIN_SELF_ROLE()
1598 static inline void SET_FWROLE_MAINTAIN_UPD_MODE(void *h2c, u32 val) in SET_FWROLE_MAINTAIN_UPD_MODE() argument
1600 le32p_replace_bits((__le32 *)h2c, val, GENMASK(12, 10)); in SET_FWROLE_MAINTAIN_UPD_MODE()
1603 static inline void SET_FWROLE_MAINTAIN_WIFI_ROLE(void *h2c, u32 val) in SET_FWROLE_MAINTAIN_WIFI_ROLE() argument
1605 le32p_replace_bits((__le32 *)h2c, val, GENMASK(16, 13)); in SET_FWROLE_MAINTAIN_WIFI_ROLE()
1608 static inline void SET_JOININFO_MACID(void *h2c, u32 val) in SET_JOININFO_MACID() argument
1610 le32p_replace_bits((__le32 *)h2c, val, GENMASK(7, 0)); in SET_JOININFO_MACID()
1613 static inline void SET_JOININFO_OP(void *h2c, u32 val) in SET_JOININFO_OP() argument
1615 le32p_replace_bits((__le32 *)h2c, val, BIT(8)); in SET_JOININFO_OP()
1618 static inline void SET_JOININFO_BAND(void *h2c, u32 val) in SET_JOININFO_BAND() argument
1620 le32p_replace_bits((__le32 *)h2c, val, BIT(9)); in SET_JOININFO_BAND()
1623 static inline void SET_JOININFO_WMM(void *h2c, u32 val) in SET_JOININFO_WMM() argument
1625 le32p_replace_bits((__le32 *)h2c, val, GENMASK(11, 10)); in SET_JOININFO_WMM()
1628 static inline void SET_JOININFO_TGR(void *h2c, u32 val) in SET_JOININFO_TGR() argument
1630 le32p_replace_bits((__le32 *)h2c, val, BIT(12)); in SET_JOININFO_TGR()
1633 static inline void SET_JOININFO_ISHESTA(void *h2c, u32 val) in SET_JOININFO_ISHESTA() argument
1635 le32p_replace_bits((__le32 *)h2c, val, BIT(13)); in SET_JOININFO_ISHESTA()
1638 static inline void SET_JOININFO_DLBW(void *h2c, u32 val) in SET_JOININFO_DLBW() argument
1640 le32p_replace_bits((__le32 *)h2c, val, GENMASK(15, 14)); in SET_JOININFO_DLBW()
1643 static inline void SET_JOININFO_TF_MAC_PAD(void *h2c, u32 val) in SET_JOININFO_TF_MAC_PAD() argument
1645 le32p_replace_bits((__le32 *)h2c, val, GENMASK(17, 16)); in SET_JOININFO_TF_MAC_PAD()
1648 static inline void SET_JOININFO_DL_T_PE(void *h2c, u32 val) in SET_JOININFO_DL_T_PE() argument
1650 le32p_replace_bits((__le32 *)h2c, val, GENMASK(20, 18)); in SET_JOININFO_DL_T_PE()
1653 static inline void SET_JOININFO_PORT_ID(void *h2c, u32 val) in SET_JOININFO_PORT_ID() argument
1655 le32p_replace_bits((__le32 *)h2c, val, GENMASK(23, 21)); in SET_JOININFO_PORT_ID()
1658 static inline void SET_JOININFO_NET_TYPE(void *h2c, u32 val) in SET_JOININFO_NET_TYPE() argument
1660 le32p_replace_bits((__le32 *)h2c, val, GENMASK(25, 24)); in SET_JOININFO_NET_TYPE()
1663 static inline void SET_JOININFO_WIFI_ROLE(void *h2c, u32 val) in SET_JOININFO_WIFI_ROLE() argument
1665 le32p_replace_bits((__le32 *)h2c, val, GENMASK(29, 26)); in SET_JOININFO_WIFI_ROLE()
1668 static inline void SET_JOININFO_SELF_ROLE(void *h2c, u32 val) in SET_JOININFO_SELF_ROLE() argument
1670 le32p_replace_bits((__le32 *)h2c, val, GENMASK(31, 30)); in SET_JOININFO_SELF_ROLE()
1673 static inline void SET_GENERAL_PKT_MACID(void *h2c, u32 val) in SET_GENERAL_PKT_MACID() argument
1675 le32p_replace_bits((__le32 *)h2c, val, GENMASK(7, 0)); in SET_GENERAL_PKT_MACID()
1678 static inline void SET_GENERAL_PKT_PROBRSP_ID(void *h2c, u32 val) in SET_GENERAL_PKT_PROBRSP_ID() argument
1680 le32p_replace_bits((__le32 *)h2c, val, GENMASK(15, 8)); in SET_GENERAL_PKT_PROBRSP_ID()
1683 static inline void SET_GENERAL_PKT_PSPOLL_ID(void *h2c, u32 val) in SET_GENERAL_PKT_PSPOLL_ID() argument
1685 le32p_replace_bits((__le32 *)h2c, val, GENMASK(23, 16)); in SET_GENERAL_PKT_PSPOLL_ID()
1688 static inline void SET_GENERAL_PKT_NULL_ID(void *h2c, u32 val) in SET_GENERAL_PKT_NULL_ID() argument
1690 le32p_replace_bits((__le32 *)h2c, val, GENMASK(31, 24)); in SET_GENERAL_PKT_NULL_ID()
1693 static inline void SET_GENERAL_PKT_QOS_NULL_ID(void *h2c, u32 val) in SET_GENERAL_PKT_QOS_NULL_ID() argument
1695 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(7, 0)); in SET_GENERAL_PKT_QOS_NULL_ID()
1698 static inline void SET_GENERAL_PKT_CTS2SELF_ID(void *h2c, u32 val) in SET_GENERAL_PKT_CTS2SELF_ID() argument
1700 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(15, 8)); in SET_GENERAL_PKT_CTS2SELF_ID()
1703 static inline void SET_LOG_CFG_LEVEL(void *h2c, u32 val) in SET_LOG_CFG_LEVEL() argument
1705 le32p_replace_bits((__le32 *)h2c, val, GENMASK(7, 0)); in SET_LOG_CFG_LEVEL()
1708 static inline void SET_LOG_CFG_PATH(void *h2c, u32 val) in SET_LOG_CFG_PATH() argument
1710 le32p_replace_bits((__le32 *)h2c, val, GENMASK(15, 8)); in SET_LOG_CFG_PATH()
1713 static inline void SET_LOG_CFG_COMP(void *h2c, u32 val) in SET_LOG_CFG_COMP() argument
1715 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(31, 0)); in SET_LOG_CFG_COMP()
1718 static inline void SET_LOG_CFG_COMP_EXT(void *h2c, u32 val) in SET_LOG_CFG_COMP_EXT() argument
1720 le32p_replace_bits((__le32 *)(h2c) + 2, val, GENMASK(31, 0)); in SET_LOG_CFG_COMP_EXT()
1723 static inline void SET_BA_CAM_VALID(void *h2c, u32 val) in SET_BA_CAM_VALID() argument
1725 le32p_replace_bits((__le32 *)h2c, val, BIT(0)); in SET_BA_CAM_VALID()
1728 static inline void SET_BA_CAM_INIT_REQ(void *h2c, u32 val) in SET_BA_CAM_INIT_REQ() argument
1730 le32p_replace_bits((__le32 *)h2c, val, BIT(1)); in SET_BA_CAM_INIT_REQ()
1733 static inline void SET_BA_CAM_ENTRY_IDX(void *h2c, u32 val) in SET_BA_CAM_ENTRY_IDX() argument
1735 le32p_replace_bits((__le32 *)h2c, val, GENMASK(3, 2)); in SET_BA_CAM_ENTRY_IDX()
1738 static inline void SET_BA_CAM_TID(void *h2c, u32 val) in SET_BA_CAM_TID() argument
1740 le32p_replace_bits((__le32 *)h2c, val, GENMASK(7, 4)); in SET_BA_CAM_TID()
1743 static inline void SET_BA_CAM_MACID(void *h2c, u32 val) in SET_BA_CAM_MACID() argument
1745 le32p_replace_bits((__le32 *)h2c, val, GENMASK(15, 8)); in SET_BA_CAM_MACID()
1748 static inline void SET_BA_CAM_BMAP_SIZE(void *h2c, u32 val) in SET_BA_CAM_BMAP_SIZE() argument
1750 le32p_replace_bits((__le32 *)h2c, val, GENMASK(19, 16)); in SET_BA_CAM_BMAP_SIZE()
1753 static inline void SET_BA_CAM_SSN(void *h2c, u32 val) in SET_BA_CAM_SSN() argument
1755 le32p_replace_bits((__le32 *)h2c, val, GENMASK(31, 20)); in SET_BA_CAM_SSN()
1758 static inline void SET_BA_CAM_UID(void *h2c, u32 val) in SET_BA_CAM_UID() argument
1760 le32p_replace_bits((__le32 *)h2c + 1, val, GENMASK(7, 0)); in SET_BA_CAM_UID()
1763 static inline void SET_BA_CAM_STD_EN(void *h2c, u32 val) in SET_BA_CAM_STD_EN() argument
1765 le32p_replace_bits((__le32 *)h2c + 1, val, BIT(8)); in SET_BA_CAM_STD_EN()
1768 static inline void SET_BA_CAM_BAND(void *h2c, u32 val) in SET_BA_CAM_BAND() argument
1770 le32p_replace_bits((__le32 *)h2c + 1, val, BIT(9)); in SET_BA_CAM_BAND()
1773 static inline void SET_BA_CAM_ENTRY_IDX_V1(void *h2c, u32 val) in SET_BA_CAM_ENTRY_IDX_V1() argument
1775 le32p_replace_bits((__le32 *)h2c + 1, val, GENMASK(31, 28)); in SET_BA_CAM_ENTRY_IDX_V1()
1778 static inline void SET_LPS_PARM_MACID(void *h2c, u32 val) in SET_LPS_PARM_MACID() argument
1780 le32p_replace_bits((__le32 *)h2c, val, GENMASK(7, 0)); in SET_LPS_PARM_MACID()
1783 static inline void SET_LPS_PARM_PSMODE(void *h2c, u32 val) in SET_LPS_PARM_PSMODE() argument
1785 le32p_replace_bits((__le32 *)h2c, val, GENMASK(15, 8)); in SET_LPS_PARM_PSMODE()
1788 static inline void SET_LPS_PARM_RLBM(void *h2c, u32 val) in SET_LPS_PARM_RLBM() argument
1790 le32p_replace_bits((__le32 *)h2c, val, GENMASK(19, 16)); in SET_LPS_PARM_RLBM()
1793 static inline void SET_LPS_PARM_SMARTPS(void *h2c, u32 val) in SET_LPS_PARM_SMARTPS() argument
1795 le32p_replace_bits((__le32 *)h2c, val, GENMASK(23, 20)); in SET_LPS_PARM_SMARTPS()
1798 static inline void SET_LPS_PARM_AWAKEINTERVAL(void *h2c, u32 val) in SET_LPS_PARM_AWAKEINTERVAL() argument
1800 le32p_replace_bits((__le32 *)h2c, val, GENMASK(31, 24)); in SET_LPS_PARM_AWAKEINTERVAL()
1803 static inline void SET_LPS_PARM_VOUAPSD(void *h2c, u32 val) in SET_LPS_PARM_VOUAPSD() argument
1805 le32p_replace_bits((__le32 *)(h2c) + 1, val, BIT(0)); in SET_LPS_PARM_VOUAPSD()
1808 static inline void SET_LPS_PARM_VIUAPSD(void *h2c, u32 val) in SET_LPS_PARM_VIUAPSD() argument
1810 le32p_replace_bits((__le32 *)(h2c) + 1, val, BIT(1)); in SET_LPS_PARM_VIUAPSD()
1813 static inline void SET_LPS_PARM_BEUAPSD(void *h2c, u32 val) in SET_LPS_PARM_BEUAPSD() argument
1815 le32p_replace_bits((__le32 *)(h2c) + 1, val, BIT(2)); in SET_LPS_PARM_BEUAPSD()
1818 static inline void SET_LPS_PARM_BKUAPSD(void *h2c, u32 val) in SET_LPS_PARM_BKUAPSD() argument
1820 le32p_replace_bits((__le32 *)(h2c) + 1, val, BIT(3)); in SET_LPS_PARM_BKUAPSD()
1823 static inline void SET_LPS_PARM_LASTRPWM(void *h2c, u32 val) in SET_LPS_PARM_LASTRPWM() argument
1825 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(15, 8)); in SET_LPS_PARM_LASTRPWM()
1828 static inline void RTW89_SET_FWCMD_CPU_EXCEPTION_TYPE(void *cmd, u32 val) in RTW89_SET_FWCMD_CPU_EXCEPTION_TYPE() argument
1830 le32p_replace_bits((__le32 *)cmd, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_CPU_EXCEPTION_TYPE()
1833 static inline void RTW89_SET_FWCMD_PKT_DROP_SEL(void *cmd, u32 val) in RTW89_SET_FWCMD_PKT_DROP_SEL() argument
1835 le32p_replace_bits((__le32 *)cmd, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_PKT_DROP_SEL()
1838 static inline void RTW89_SET_FWCMD_PKT_DROP_MACID(void *cmd, u32 val) in RTW89_SET_FWCMD_PKT_DROP_MACID() argument
1840 le32p_replace_bits((__le32 *)cmd, val, GENMASK(15, 8)); in RTW89_SET_FWCMD_PKT_DROP_MACID()
1843 static inline void RTW89_SET_FWCMD_PKT_DROP_BAND(void *cmd, u32 val) in RTW89_SET_FWCMD_PKT_DROP_BAND() argument
1845 le32p_replace_bits((__le32 *)cmd, val, GENMASK(23, 16)); in RTW89_SET_FWCMD_PKT_DROP_BAND()
1848 static inline void RTW89_SET_FWCMD_PKT_DROP_PORT(void *cmd, u32 val) in RTW89_SET_FWCMD_PKT_DROP_PORT() argument
1850 le32p_replace_bits((__le32 *)cmd, val, GENMASK(31, 24)); in RTW89_SET_FWCMD_PKT_DROP_PORT()
1853 static inline void RTW89_SET_FWCMD_PKT_DROP_MBSSID(void *cmd, u32 val) in RTW89_SET_FWCMD_PKT_DROP_MBSSID() argument
1855 le32p_replace_bits((__le32 *)cmd + 1, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_PKT_DROP_MBSSID()
1858 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
1860 le32p_replace_bits((__le32 *)cmd + 1, val, GENMASK(15, 8)); in RTW89_SET_FWCMD_PKT_DROP_ROLE_A_INFO_TF_TRS()
1911 static inline void RTW89_SET_FWCMD_CXHDR_TYPE(void *cmd, u8 val) in RTW89_SET_FWCMD_CXHDR_TYPE() argument
1913 u8p_replace_bits((u8 *)(cmd) + 0, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXHDR_TYPE()
1916 static inline void RTW89_SET_FWCMD_CXHDR_LEN(void *cmd, u8 val) in RTW89_SET_FWCMD_CXHDR_LEN() argument
1918 u8p_replace_bits((u8 *)(cmd) + 1, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXHDR_LEN()
1921 static inline void RTW89_SET_FWCMD_CXINIT_ANT_TYPE(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_ANT_TYPE() argument
1923 u8p_replace_bits((u8 *)(cmd) + 2, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXINIT_ANT_TYPE()
1926 static inline void RTW89_SET_FWCMD_CXINIT_ANT_NUM(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_ANT_NUM() argument
1928 u8p_replace_bits((u8 *)(cmd) + 3, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXINIT_ANT_NUM()
1931 static inline void RTW89_SET_FWCMD_CXINIT_ANT_ISO(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_ANT_ISO() argument
1933 u8p_replace_bits((u8 *)(cmd) + 4, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXINIT_ANT_ISO()
1936 static inline void RTW89_SET_FWCMD_CXINIT_ANT_POS(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_ANT_POS() argument
1938 u8p_replace_bits((u8 *)(cmd) + 5, val, BIT(0)); in RTW89_SET_FWCMD_CXINIT_ANT_POS()
1941 static inline void RTW89_SET_FWCMD_CXINIT_ANT_DIVERSITY(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_ANT_DIVERSITY() argument
1943 u8p_replace_bits((u8 *)(cmd) + 5, val, BIT(1)); in RTW89_SET_FWCMD_CXINIT_ANT_DIVERSITY()
1946 static inline void RTW89_SET_FWCMD_CXINIT_MOD_RFE(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_MOD_RFE() argument
1948 u8p_replace_bits((u8 *)(cmd) + 6, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXINIT_MOD_RFE()
1951 static inline void RTW89_SET_FWCMD_CXINIT_MOD_CV(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_MOD_CV() argument
1953 u8p_replace_bits((u8 *)(cmd) + 7, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXINIT_MOD_CV()
1956 static inline void RTW89_SET_FWCMD_CXINIT_MOD_BT_SOLO(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_MOD_BT_SOLO() argument
1958 u8p_replace_bits((u8 *)(cmd) + 8, val, BIT(0)); in RTW89_SET_FWCMD_CXINIT_MOD_BT_SOLO()
1961 static inline void RTW89_SET_FWCMD_CXINIT_MOD_BT_POS(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_MOD_BT_POS() argument
1963 u8p_replace_bits((u8 *)(cmd) + 8, val, BIT(1)); in RTW89_SET_FWCMD_CXINIT_MOD_BT_POS()
1966 static inline void RTW89_SET_FWCMD_CXINIT_MOD_SW_TYPE(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_MOD_SW_TYPE() argument
1968 u8p_replace_bits((u8 *)(cmd) + 8, val, BIT(2)); in RTW89_SET_FWCMD_CXINIT_MOD_SW_TYPE()
1971 static inline void RTW89_SET_FWCMD_CXINIT_WL_GCH(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_WL_GCH() argument
1973 u8p_replace_bits((u8 *)(cmd) + 10, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXINIT_WL_GCH()
1976 static inline void RTW89_SET_FWCMD_CXINIT_WL_ONLY(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_WL_ONLY() argument
1978 u8p_replace_bits((u8 *)(cmd) + 11, val, BIT(0)); in RTW89_SET_FWCMD_CXINIT_WL_ONLY()
1981 static inline void RTW89_SET_FWCMD_CXINIT_WL_INITOK(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_WL_INITOK() argument
1983 u8p_replace_bits((u8 *)(cmd) + 11, val, BIT(1)); in RTW89_SET_FWCMD_CXINIT_WL_INITOK()
1986 static inline void RTW89_SET_FWCMD_CXINIT_DBCC_EN(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_DBCC_EN() argument
1988 u8p_replace_bits((u8 *)(cmd) + 11, val, BIT(2)); in RTW89_SET_FWCMD_CXINIT_DBCC_EN()
1991 static inline void RTW89_SET_FWCMD_CXINIT_CX_OTHER(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_CX_OTHER() argument
1993 u8p_replace_bits((u8 *)(cmd) + 11, val, BIT(3)); in RTW89_SET_FWCMD_CXINIT_CX_OTHER()
1996 static inline void RTW89_SET_FWCMD_CXINIT_BT_ONLY(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_BT_ONLY() argument
1998 u8p_replace_bits((u8 *)(cmd) + 11, val, BIT(4)); in RTW89_SET_FWCMD_CXINIT_BT_ONLY()
2001 static inline void RTW89_SET_FWCMD_CXROLE_CONNECT_CNT(void *cmd, u8 val) in RTW89_SET_FWCMD_CXROLE_CONNECT_CNT() argument
2003 u8p_replace_bits((u8 *)(cmd) + 2, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXROLE_CONNECT_CNT()
2006 static inline void RTW89_SET_FWCMD_CXROLE_LINK_MODE(void *cmd, u8 val) in RTW89_SET_FWCMD_CXROLE_LINK_MODE() argument
2008 u8p_replace_bits((u8 *)(cmd) + 3, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXROLE_LINK_MODE()
2011 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_NONE(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_NONE() argument
2013 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(0)); in RTW89_SET_FWCMD_CXROLE_ROLE_NONE()
2016 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_STA(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_STA() argument
2018 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(1)); in RTW89_SET_FWCMD_CXROLE_ROLE_STA()
2021 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_AP(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_AP() argument
2023 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(2)); in RTW89_SET_FWCMD_CXROLE_ROLE_AP()
2026 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_VAP(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_VAP() argument
2028 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(3)); in RTW89_SET_FWCMD_CXROLE_ROLE_VAP()
2031 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_ADHOC(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_ADHOC() argument
2033 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(4)); in RTW89_SET_FWCMD_CXROLE_ROLE_ADHOC()
2036 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_ADHOC_MASTER(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_ADHOC_MASTER() argument
2038 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(5)); in RTW89_SET_FWCMD_CXROLE_ROLE_ADHOC_MASTER()
2041 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_MESH(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_MESH() argument
2043 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(6)); in RTW89_SET_FWCMD_CXROLE_ROLE_MESH()
2046 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_MONITOR(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_MONITOR() argument
2048 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(7)); in RTW89_SET_FWCMD_CXROLE_ROLE_MONITOR()
2051 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_P2P_DEV(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_P2P_DEV() argument
2053 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(8)); in RTW89_SET_FWCMD_CXROLE_ROLE_P2P_DEV()
2056 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_P2P_GC(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_P2P_GC() argument
2058 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(9)); in RTW89_SET_FWCMD_CXROLE_ROLE_P2P_GC()
2061 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_P2P_GO(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_P2P_GO() argument
2063 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(10)); in RTW89_SET_FWCMD_CXROLE_ROLE_P2P_GO()
2066 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_NAN(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_NAN() argument
2068 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(11)); in RTW89_SET_FWCMD_CXROLE_ROLE_NAN()
2071 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
2073 u8p_replace_bits((u8 *)cmd + (6 + (12 + offset) * n), val, BIT(0)); in RTW89_SET_FWCMD_CXROLE_ACT_CONNECTED()
2076 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
2078 u8p_replace_bits((u8 *)cmd + (6 + (12 + offset) * n), val, GENMASK(3, 1)); in RTW89_SET_FWCMD_CXROLE_ACT_PID()
2081 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
2083 u8p_replace_bits((u8 *)cmd + (6 + (12 + offset) * n), val, BIT(4)); in RTW89_SET_FWCMD_CXROLE_ACT_PHY()
2086 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
2088 u8p_replace_bits((u8 *)cmd + (6 + (12 + offset) * n), val, BIT(5)); in RTW89_SET_FWCMD_CXROLE_ACT_NOA()
2091 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
2093 u8p_replace_bits((u8 *)cmd + (6 + (12 + offset) * n), val, GENMASK(7, 6)); in RTW89_SET_FWCMD_CXROLE_ACT_BAND()
2096 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
2098 u8p_replace_bits((u8 *)cmd + (7 + (12 + offset) * n), val, BIT(0)); in RTW89_SET_FWCMD_CXROLE_ACT_CLIENT_PS()
2101 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
2103 u8p_replace_bits((u8 *)cmd + (7 + (12 + offset) * n), val, GENMASK(7, 1)); in RTW89_SET_FWCMD_CXROLE_ACT_BW()
2106 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
2108 u8p_replace_bits((u8 *)cmd + (8 + (12 + offset) * n), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_ROLE()
2111 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
2113 u8p_replace_bits((u8 *)cmd + (9 + (12 + offset) * n), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_CH()
2116 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
2118 le16p_replace_bits((__le16 *)((u8 *)cmd + (10 + (12 + offset) * n)), val, GENMASK(15, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_TX_LVL()
2121 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
2123 le16p_replace_bits((__le16 *)((u8 *)cmd + (12 + (12 + offset) * n)), val, GENMASK(15, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_RX_LVL()
2126 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
2128 le16p_replace_bits((__le16 *)((u8 *)cmd + (14 + (12 + offset) * n)), val, GENMASK(15, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_TX_RATE()
2131 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
2133 le16p_replace_bits((__le16 *)((u8 *)cmd + (16 + (12 + offset) * n)), val, GENMASK(15, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_RX_RATE()
2136 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
2138 le32p_replace_bits((__le32 *)((u8 *)cmd + (20 + (12 + offset) * n)), val, GENMASK(31, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_NOA_DUR()
2141 static inline void RTW89_SET_FWCMD_CXROLE_MROLE_TYPE(void *cmd, u32 val, u8 offset) in RTW89_SET_FWCMD_CXROLE_MROLE_TYPE() argument
2143 le32p_replace_bits((__le32 *)((u8 *)cmd + offset), val, GENMASK(31, 0)); in RTW89_SET_FWCMD_CXROLE_MROLE_TYPE()
2146 static inline void RTW89_SET_FWCMD_CXROLE_MROLE_NOA(void *cmd, u32 val, u8 offset) in RTW89_SET_FWCMD_CXROLE_MROLE_NOA() argument
2148 le32p_replace_bits((__le32 *)((u8 *)cmd + offset + 4), val, GENMASK(31, 0)); in RTW89_SET_FWCMD_CXROLE_MROLE_NOA()
2151 static inline void RTW89_SET_FWCMD_CXROLE_DBCC_EN(void *cmd, u32 val, u8 offset) in RTW89_SET_FWCMD_CXROLE_DBCC_EN() argument
2153 le32p_replace_bits((__le32 *)((u8 *)cmd + offset + 8), val, BIT(0)); in RTW89_SET_FWCMD_CXROLE_DBCC_EN()
2156 static inline void RTW89_SET_FWCMD_CXROLE_DBCC_CHG(void *cmd, u32 val, u8 offset) in RTW89_SET_FWCMD_CXROLE_DBCC_CHG() argument
2158 le32p_replace_bits((__le32 *)((u8 *)cmd + offset + 8), val, BIT(1)); in RTW89_SET_FWCMD_CXROLE_DBCC_CHG()
2161 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
2163 le32p_replace_bits((__le32 *)((u8 *)cmd + offset + 8), val, GENMASK(3, 2)); in RTW89_SET_FWCMD_CXROLE_DBCC_2G_PHY()
2166 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
2168 le32p_replace_bits((__le32 *)((u8 *)cmd + offset + 8), val, BIT(4)); in RTW89_SET_FWCMD_CXROLE_LINK_MODE_CHG()
2171 static inline void RTW89_SET_FWCMD_CXCTRL_MANUAL(void *cmd, u32 val) in RTW89_SET_FWCMD_CXCTRL_MANUAL() argument
2173 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, BIT(0)); in RTW89_SET_FWCMD_CXCTRL_MANUAL()
2176 static inline void RTW89_SET_FWCMD_CXCTRL_IGNORE_BT(void *cmd, u32 val) in RTW89_SET_FWCMD_CXCTRL_IGNORE_BT() argument
2178 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, BIT(1)); in RTW89_SET_FWCMD_CXCTRL_IGNORE_BT()
2181 static inline void RTW89_SET_FWCMD_CXCTRL_ALWAYS_FREERUN(void *cmd, u32 val) in RTW89_SET_FWCMD_CXCTRL_ALWAYS_FREERUN() argument
2183 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, BIT(2)); in RTW89_SET_FWCMD_CXCTRL_ALWAYS_FREERUN()
2186 static inline void RTW89_SET_FWCMD_CXCTRL_TRACE_STEP(void *cmd, u32 val) in RTW89_SET_FWCMD_CXCTRL_TRACE_STEP() argument
2188 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, GENMASK(18, 3)); in RTW89_SET_FWCMD_CXCTRL_TRACE_STEP()
2191 static inline void RTW89_SET_FWCMD_CXRFK_STATE(void *cmd, u32 val) in RTW89_SET_FWCMD_CXRFK_STATE() argument
2193 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, GENMASK(1, 0)); in RTW89_SET_FWCMD_CXRFK_STATE()
2196 static inline void RTW89_SET_FWCMD_CXRFK_PATH_MAP(void *cmd, u32 val) in RTW89_SET_FWCMD_CXRFK_PATH_MAP() argument
2198 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, GENMASK(5, 2)); in RTW89_SET_FWCMD_CXRFK_PATH_MAP()
2201 static inline void RTW89_SET_FWCMD_CXRFK_PHY_MAP(void *cmd, u32 val) in RTW89_SET_FWCMD_CXRFK_PHY_MAP() argument
2203 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, GENMASK(7, 6)); in RTW89_SET_FWCMD_CXRFK_PHY_MAP()
2206 static inline void RTW89_SET_FWCMD_CXRFK_BAND(void *cmd, u32 val) in RTW89_SET_FWCMD_CXRFK_BAND() argument
2208 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, GENMASK(9, 8)); in RTW89_SET_FWCMD_CXRFK_BAND()
2211 static inline void RTW89_SET_FWCMD_CXRFK_TYPE(void *cmd, u32 val) in RTW89_SET_FWCMD_CXRFK_TYPE() argument
2213 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, GENMASK(17, 10)); in RTW89_SET_FWCMD_CXRFK_TYPE()
2216 static inline void RTW89_SET_FWCMD_PACKET_OFLD_PKT_IDX(void *cmd, u32 val) in RTW89_SET_FWCMD_PACKET_OFLD_PKT_IDX() argument
2218 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_PACKET_OFLD_PKT_IDX()
2221 static inline void RTW89_SET_FWCMD_PACKET_OFLD_PKT_OP(void *cmd, u32 val) in RTW89_SET_FWCMD_PACKET_OFLD_PKT_OP() argument
2223 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(10, 8)); in RTW89_SET_FWCMD_PACKET_OFLD_PKT_OP()
2226 static inline void RTW89_SET_FWCMD_PACKET_OFLD_PKT_LENGTH(void *cmd, u32 val) in RTW89_SET_FWCMD_PACKET_OFLD_PKT_LENGTH() argument
2228 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(31, 16)); in RTW89_SET_FWCMD_PACKET_OFLD_PKT_LENGTH()
2231 static inline void RTW89_SET_FWCMD_SCANOFLD_CH_NUM(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_CH_NUM() argument
2233 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_SCANOFLD_CH_NUM()
2236 static inline void RTW89_SET_FWCMD_SCANOFLD_CH_SIZE(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_CH_SIZE() argument
2238 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(15, 8)); in RTW89_SET_FWCMD_SCANOFLD_CH_SIZE()
2241 static inline void RTW89_SET_FWCMD_CHINFO_PERIOD(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PERIOD() argument
2243 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CHINFO_PERIOD()
2246 static inline void RTW89_SET_FWCMD_CHINFO_DWELL(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_DWELL() argument
2248 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(15, 8)); in RTW89_SET_FWCMD_CHINFO_DWELL()
2251 static inline void RTW89_SET_FWCMD_CHINFO_CENTER_CH(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_CENTER_CH() argument
2253 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(23, 16)); in RTW89_SET_FWCMD_CHINFO_CENTER_CH()
2256 static inline void RTW89_SET_FWCMD_CHINFO_PRI_CH(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PRI_CH() argument
2258 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(31, 24)); in RTW89_SET_FWCMD_CHINFO_PRI_CH()
2261 static inline void RTW89_SET_FWCMD_CHINFO_BW(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_BW() argument
2263 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(2, 0)); in RTW89_SET_FWCMD_CHINFO_BW()
2266 static inline void RTW89_SET_FWCMD_CHINFO_ACTION(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_ACTION() argument
2268 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(7, 3)); in RTW89_SET_FWCMD_CHINFO_ACTION()
2271 static inline void RTW89_SET_FWCMD_CHINFO_NUM_PKT(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_NUM_PKT() argument
2273 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(11, 8)); in RTW89_SET_FWCMD_CHINFO_NUM_PKT()
2276 static inline void RTW89_SET_FWCMD_CHINFO_TX(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_TX() argument
2278 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(12)); in RTW89_SET_FWCMD_CHINFO_TX()
2281 static inline void RTW89_SET_FWCMD_CHINFO_PAUSE_DATA(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PAUSE_DATA() argument
2283 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(13)); in RTW89_SET_FWCMD_CHINFO_PAUSE_DATA()
2286 static inline void RTW89_SET_FWCMD_CHINFO_BAND(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_BAND() argument
2288 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(15, 14)); in RTW89_SET_FWCMD_CHINFO_BAND()
2291 static inline void RTW89_SET_FWCMD_CHINFO_PKT_ID(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT_ID() argument
2293 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(23, 16)); in RTW89_SET_FWCMD_CHINFO_PKT_ID()
2296 static inline void RTW89_SET_FWCMD_CHINFO_DFS(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_DFS() argument
2298 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(24)); in RTW89_SET_FWCMD_CHINFO_DFS()
2301 static inline void RTW89_SET_FWCMD_CHINFO_TX_NULL(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_TX_NULL() argument
2303 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(25)); in RTW89_SET_FWCMD_CHINFO_TX_NULL()
2306 static inline void RTW89_SET_FWCMD_CHINFO_RANDOM(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_RANDOM() argument
2308 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(26)); in RTW89_SET_FWCMD_CHINFO_RANDOM()
2311 static inline void RTW89_SET_FWCMD_CHINFO_CFG_TX(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_CFG_TX() argument
2313 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(27)); in RTW89_SET_FWCMD_CHINFO_CFG_TX()
2316 static inline void RTW89_SET_FWCMD_CHINFO_PKT0(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT0() argument
2318 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 8), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CHINFO_PKT0()
2321 static inline void RTW89_SET_FWCMD_CHINFO_PKT1(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT1() argument
2323 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 8), val, GENMASK(15, 8)); in RTW89_SET_FWCMD_CHINFO_PKT1()
2326 static inline void RTW89_SET_FWCMD_CHINFO_PKT2(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT2() argument
2328 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 8), val, GENMASK(23, 16)); in RTW89_SET_FWCMD_CHINFO_PKT2()
2331 static inline void RTW89_SET_FWCMD_CHINFO_PKT3(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT3() argument
2333 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 8), val, GENMASK(31, 24)); in RTW89_SET_FWCMD_CHINFO_PKT3()
2336 static inline void RTW89_SET_FWCMD_CHINFO_PKT4(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT4() argument
2338 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 12), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CHINFO_PKT4()
2341 static inline void RTW89_SET_FWCMD_CHINFO_PKT5(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT5() argument
2343 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 12), val, GENMASK(15, 8)); in RTW89_SET_FWCMD_CHINFO_PKT5()
2346 static inline void RTW89_SET_FWCMD_CHINFO_PKT6(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT6() argument
2348 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 12), val, GENMASK(23, 16)); in RTW89_SET_FWCMD_CHINFO_PKT6()
2351 static inline void RTW89_SET_FWCMD_CHINFO_PKT7(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT7() argument
2353 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 12), val, GENMASK(31, 24)); in RTW89_SET_FWCMD_CHINFO_PKT7()
2356 static inline void RTW89_SET_FWCMD_CHINFO_POWER_IDX(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_POWER_IDX() argument
2358 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 16), val, GENMASK(15, 0)); in RTW89_SET_FWCMD_CHINFO_POWER_IDX()
2361 static inline void RTW89_SET_FWCMD_SCANOFLD_MACID(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_MACID() argument
2363 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_SCANOFLD_MACID()
2366 static inline void RTW89_SET_FWCMD_SCANOFLD_NORM_CY(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_NORM_CY() argument
2368 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(15, 8)); in RTW89_SET_FWCMD_SCANOFLD_NORM_CY()
2371 static inline void RTW89_SET_FWCMD_SCANOFLD_PORT_ID(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_PORT_ID() argument
2373 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(18, 16)); in RTW89_SET_FWCMD_SCANOFLD_PORT_ID()
2376 static inline void RTW89_SET_FWCMD_SCANOFLD_BAND(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_BAND() argument
2378 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, BIT(19)); in RTW89_SET_FWCMD_SCANOFLD_BAND()
2381 static inline void RTW89_SET_FWCMD_SCANOFLD_OPERATION(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_OPERATION() argument
2383 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(21, 20)); in RTW89_SET_FWCMD_SCANOFLD_OPERATION()
2386 static inline void RTW89_SET_FWCMD_SCANOFLD_TARGET_CH_BAND(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_TARGET_CH_BAND() argument
2388 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(23, 22)); in RTW89_SET_FWCMD_SCANOFLD_TARGET_CH_BAND()
2391 static inline void RTW89_SET_FWCMD_SCANOFLD_NOTIFY_END(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_NOTIFY_END() argument
2393 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(0)); in RTW89_SET_FWCMD_SCANOFLD_NOTIFY_END()
2396 static inline void RTW89_SET_FWCMD_SCANOFLD_TARGET_CH_MODE(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_TARGET_CH_MODE() argument
2398 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(1)); in RTW89_SET_FWCMD_SCANOFLD_TARGET_CH_MODE()
2401 static inline void RTW89_SET_FWCMD_SCANOFLD_START_MODE(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_START_MODE() argument
2403 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(2)); in RTW89_SET_FWCMD_SCANOFLD_START_MODE()
2406 static inline void RTW89_SET_FWCMD_SCANOFLD_SCAN_TYPE(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_SCAN_TYPE() argument
2408 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(4, 3)); in RTW89_SET_FWCMD_SCANOFLD_SCAN_TYPE()
2411 static inline void RTW89_SET_FWCMD_SCANOFLD_TARGET_CH_BW(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_TARGET_CH_BW() argument
2413 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(7, 5)); in RTW89_SET_FWCMD_SCANOFLD_TARGET_CH_BW()
2416 static inline void RTW89_SET_FWCMD_SCANOFLD_TARGET_PRI_CH(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_TARGET_PRI_CH() argument
2418 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(15, 8)); in RTW89_SET_FWCMD_SCANOFLD_TARGET_PRI_CH()
2422 u32 val) in RTW89_SET_FWCMD_SCANOFLD_TARGET_CENTRAL_CH() argument
2424 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(23, 16)); in RTW89_SET_FWCMD_SCANOFLD_TARGET_CENTRAL_CH()
2427 static inline void RTW89_SET_FWCMD_SCANOFLD_PROBE_REQ_PKT_ID(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_PROBE_REQ_PKT_ID() argument
2429 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(31, 24)); in RTW89_SET_FWCMD_SCANOFLD_PROBE_REQ_PKT_ID()
2432 static inline void RTW89_SET_FWCMD_SCANOFLD_NORM_PD(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_NORM_PD() argument
2434 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 8), val, GENMASK(15, 0)); in RTW89_SET_FWCMD_SCANOFLD_NORM_PD()
2437 static inline void RTW89_SET_FWCMD_SCANOFLD_SLOW_PD(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_SLOW_PD() argument
2439 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 8), val, GENMASK(23, 16)); in RTW89_SET_FWCMD_SCANOFLD_SLOW_PD()
2442 static inline void RTW89_SET_FWCMD_SCANOFLD_TSF_HIGH(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_TSF_HIGH() argument
2444 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 12), val, GENMASK(31, 0)); in RTW89_SET_FWCMD_SCANOFLD_TSF_HIGH()
2447 static inline void RTW89_SET_FWCMD_SCANOFLD_TSF_SLOW(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_TSF_SLOW() argument
2449 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 16), val, GENMASK(31, 0)); in RTW89_SET_FWCMD_SCANOFLD_TSF_SLOW()
2452 static inline void RTW89_SET_FWCMD_P2P_MACID(void *cmd, u32 val) in RTW89_SET_FWCMD_P2P_MACID() argument
2454 le32p_replace_bits((__le32 *)cmd, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_P2P_MACID()
2457 static inline void RTW89_SET_FWCMD_P2P_P2PID(void *cmd, u32 val) in RTW89_SET_FWCMD_P2P_P2PID() argument
2459 le32p_replace_bits((__le32 *)cmd, val, GENMASK(11, 8)); in RTW89_SET_FWCMD_P2P_P2PID()
2462 static inline void RTW89_SET_FWCMD_P2P_NOAID(void *cmd, u32 val) in RTW89_SET_FWCMD_P2P_NOAID() argument
2464 le32p_replace_bits((__le32 *)cmd, val, GENMASK(15, 12)); in RTW89_SET_FWCMD_P2P_NOAID()
2467 static inline void RTW89_SET_FWCMD_P2P_ACT(void *cmd, u32 val) in RTW89_SET_FWCMD_P2P_ACT() argument
2469 le32p_replace_bits((__le32 *)cmd, val, GENMASK(19, 16)); in RTW89_SET_FWCMD_P2P_ACT()
2472 static inline void RTW89_SET_FWCMD_P2P_TYPE(void *cmd, u32 val) in RTW89_SET_FWCMD_P2P_TYPE() argument
2474 le32p_replace_bits((__le32 *)cmd, val, BIT(20)); in RTW89_SET_FWCMD_P2P_TYPE()
2477 static inline void RTW89_SET_FWCMD_P2P_ALL_SLEP(void *cmd, u32 val) in RTW89_SET_FWCMD_P2P_ALL_SLEP() argument
2479 le32p_replace_bits((__le32 *)cmd, val, BIT(21)); in RTW89_SET_FWCMD_P2P_ALL_SLEP()
2482 static inline void RTW89_SET_FWCMD_NOA_START_TIME(void *cmd, __le32 val) in RTW89_SET_FWCMD_NOA_START_TIME() argument
2484 *((__le32 *)cmd + 1) = val; in RTW89_SET_FWCMD_NOA_START_TIME()
2487 static inline void RTW89_SET_FWCMD_NOA_INTERVAL(void *cmd, __le32 val) in RTW89_SET_FWCMD_NOA_INTERVAL() argument
2489 *((__le32 *)cmd + 2) = val; in RTW89_SET_FWCMD_NOA_INTERVAL()
2492 static inline void RTW89_SET_FWCMD_NOA_DURATION(void *cmd, __le32 val) in RTW89_SET_FWCMD_NOA_DURATION() argument
2494 *((__le32 *)cmd + 3) = val; in RTW89_SET_FWCMD_NOA_DURATION()
2497 static inline void RTW89_SET_FWCMD_NOA_COUNT(void *cmd, u32 val) in RTW89_SET_FWCMD_NOA_COUNT() argument
2499 le32p_replace_bits((__le32 *)(cmd) + 4, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_NOA_COUNT()
2502 static inline void RTW89_SET_FWCMD_NOA_CTWINDOW(void *cmd, u32 val) in RTW89_SET_FWCMD_NOA_CTWINDOW() argument
2506 if (!(val & IEEE80211_P2P_OPPPS_ENABLE_BIT)) in RTW89_SET_FWCMD_NOA_CTWINDOW()
2508 ctwnd = FIELD_GET(IEEE80211_P2P_OPPPS_CTWINDOW_MASK, val); in RTW89_SET_FWCMD_NOA_CTWINDOW()
2512 static inline void RTW89_SET_FWCMD_TSF32_TOGL_BAND(void *cmd, u32 val) in RTW89_SET_FWCMD_TSF32_TOGL_BAND() argument
2514 le32p_replace_bits((__le32 *)cmd, val, BIT(0)); in RTW89_SET_FWCMD_TSF32_TOGL_BAND()
2517 static inline void RTW89_SET_FWCMD_TSF32_TOGL_EN(void *cmd, u32 val) in RTW89_SET_FWCMD_TSF32_TOGL_EN() argument
2519 le32p_replace_bits((__le32 *)cmd, val, BIT(1)); in RTW89_SET_FWCMD_TSF32_TOGL_EN()
2522 static inline void RTW89_SET_FWCMD_TSF32_TOGL_PORT(void *cmd, u32 val) in RTW89_SET_FWCMD_TSF32_TOGL_PORT() argument
2524 le32p_replace_bits((__le32 *)cmd, val, GENMASK(4, 2)); in RTW89_SET_FWCMD_TSF32_TOGL_PORT()
2527 static inline void RTW89_SET_FWCMD_TSF32_TOGL_EARLY(void *cmd, u32 val) in RTW89_SET_FWCMD_TSF32_TOGL_EARLY() argument
2529 le32p_replace_bits((__le32 *)cmd, val, GENMASK(31, 16)); in RTW89_SET_FWCMD_TSF32_TOGL_EARLY()
2792 u8 ac, u32 val);