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))
224 static inline void RTW89_SET_FWCMD_RA_IS_DIS(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_IS_DIS() argument
226 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, BIT(0)); in RTW89_SET_FWCMD_RA_IS_DIS()
229 static inline void RTW89_SET_FWCMD_RA_MODE(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_MODE() argument
231 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(5, 1)); in RTW89_SET_FWCMD_RA_MODE()
234 static inline void RTW89_SET_FWCMD_RA_BW_CAP(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_BW_CAP() argument
236 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(7, 6)); in RTW89_SET_FWCMD_RA_BW_CAP()
239 static inline void RTW89_SET_FWCMD_RA_MACID(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_MACID() argument
241 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(15, 8)); in RTW89_SET_FWCMD_RA_MACID()
244 static inline void RTW89_SET_FWCMD_RA_DCM(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_DCM() argument
246 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, BIT(16)); in RTW89_SET_FWCMD_RA_DCM()
249 static inline void RTW89_SET_FWCMD_RA_ER(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_ER() argument
251 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, BIT(17)); in RTW89_SET_FWCMD_RA_ER()
254 static inline void RTW89_SET_FWCMD_RA_INIT_RATE_LV(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_INIT_RATE_LV() argument
256 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(19, 18)); in RTW89_SET_FWCMD_RA_INIT_RATE_LV()
259 static inline void RTW89_SET_FWCMD_RA_UPD_ALL(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_UPD_ALL() argument
261 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, BIT(20)); in RTW89_SET_FWCMD_RA_UPD_ALL()
264 static inline void RTW89_SET_FWCMD_RA_SGI(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_SGI() argument
266 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, BIT(21)); in RTW89_SET_FWCMD_RA_SGI()
269 static inline void RTW89_SET_FWCMD_RA_LDPC(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_LDPC() argument
271 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, BIT(22)); in RTW89_SET_FWCMD_RA_LDPC()
274 static inline void RTW89_SET_FWCMD_RA_STBC(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_STBC() argument
276 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, BIT(23)); in RTW89_SET_FWCMD_RA_STBC()
279 static inline void RTW89_SET_FWCMD_RA_SS_NUM(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_SS_NUM() argument
281 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(26, 24)); in RTW89_SET_FWCMD_RA_SS_NUM()
284 static inline void RTW89_SET_FWCMD_RA_GILTF(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_GILTF() argument
286 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(29, 27)); in RTW89_SET_FWCMD_RA_GILTF()
289 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
291 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, BIT(30)); in RTW89_SET_FWCMD_RA_UPD_BW_NSS_MASK()
294 static inline void RTW89_SET_FWCMD_RA_UPD_MASK(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_UPD_MASK() argument
296 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, BIT(31)); in RTW89_SET_FWCMD_RA_UPD_MASK()
299 static inline void RTW89_SET_FWCMD_RA_MASK_0(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_MASK_0() argument
301 le32p_replace_bits((__le32 *)(cmd) + 0x01, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_RA_MASK_0()
304 static inline void RTW89_SET_FWCMD_RA_MASK_1(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_MASK_1() argument
306 le32p_replace_bits((__le32 *)(cmd) + 0x01, val, GENMASK(15, 8)); in RTW89_SET_FWCMD_RA_MASK_1()
309 static inline void RTW89_SET_FWCMD_RA_MASK_2(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_MASK_2() argument
311 le32p_replace_bits((__le32 *)(cmd) + 0x01, val, GENMASK(23, 16)); in RTW89_SET_FWCMD_RA_MASK_2()
314 static inline void RTW89_SET_FWCMD_RA_MASK_3(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_MASK_3() argument
316 le32p_replace_bits((__le32 *)(cmd) + 0x01, val, GENMASK(31, 24)); in RTW89_SET_FWCMD_RA_MASK_3()
319 static inline void RTW89_SET_FWCMD_RA_MASK_4(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_MASK_4() argument
321 le32p_replace_bits((__le32 *)(cmd) + 0x02, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_RA_MASK_4()
324 static inline void RTW89_SET_FWCMD_RA_BFEE_CSI_CTL(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_BFEE_CSI_CTL() argument
326 le32p_replace_bits((__le32 *)(cmd) + 0x02, val, BIT(31)); in RTW89_SET_FWCMD_RA_BFEE_CSI_CTL()
329 static inline void RTW89_SET_FWCMD_RA_BAND_NUM(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_BAND_NUM() argument
331 le32p_replace_bits((__le32 *)(cmd) + 0x03, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_RA_BAND_NUM()
334 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
336 le32p_replace_bits((__le32 *)(cmd) + 0x03, val, BIT(8)); in RTW89_SET_FWCMD_RA_RA_CSI_RATE_EN()
339 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
341 le32p_replace_bits((__le32 *)(cmd) + 0x03, val, BIT(9)); in RTW89_SET_FWCMD_RA_FIXED_CSI_RATE_EN()
344 static inline void RTW89_SET_FWCMD_RA_CR_TBL_SEL(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_CR_TBL_SEL() argument
346 le32p_replace_bits((__le32 *)(cmd) + 0x03, val, BIT(10)); in RTW89_SET_FWCMD_RA_CR_TBL_SEL()
349 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
351 le32p_replace_bits((__le32 *)(cmd) + 0x03, val, GENMASK(23, 16)); in RTW89_SET_FWCMD_RA_FIXED_CSI_MCS_SS_IDX()
354 static inline void RTW89_SET_FWCMD_RA_FIXED_CSI_MODE(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_FIXED_CSI_MODE() argument
356 le32p_replace_bits((__le32 *)(cmd) + 0x03, val, GENMASK(25, 24)); in RTW89_SET_FWCMD_RA_FIXED_CSI_MODE()
359 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
361 le32p_replace_bits((__le32 *)(cmd) + 0x03, val, GENMASK(28, 26)); in RTW89_SET_FWCMD_RA_FIXED_CSI_GI_LTF()
364 static inline void RTW89_SET_FWCMD_RA_FIXED_CSI_BW(void *cmd, u32 val) in RTW89_SET_FWCMD_RA_FIXED_CSI_BW() argument
366 le32p_replace_bits((__le32 *)(cmd) + 0x03, val, GENMASK(31, 29)); in RTW89_SET_FWCMD_RA_FIXED_CSI_BW()
369 static inline void RTW89_SET_FWCMD_SEC_IDX(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_IDX() argument
371 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_SEC_IDX()
374 static inline void RTW89_SET_FWCMD_SEC_OFFSET(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_OFFSET() argument
376 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(15, 8)); in RTW89_SET_FWCMD_SEC_OFFSET()
379 static inline void RTW89_SET_FWCMD_SEC_LEN(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_LEN() argument
381 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(23, 16)); in RTW89_SET_FWCMD_SEC_LEN()
384 static inline void RTW89_SET_FWCMD_SEC_TYPE(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_TYPE() argument
386 le32p_replace_bits((__le32 *)(cmd) + 0x01, val, GENMASK(3, 0)); in RTW89_SET_FWCMD_SEC_TYPE()
389 static inline void RTW89_SET_FWCMD_SEC_EXT_KEY(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_EXT_KEY() argument
391 le32p_replace_bits((__le32 *)(cmd) + 0x01, val, BIT(4)); in RTW89_SET_FWCMD_SEC_EXT_KEY()
394 static inline void RTW89_SET_FWCMD_SEC_SPP_MODE(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_SPP_MODE() argument
396 le32p_replace_bits((__le32 *)(cmd) + 0x01, val, BIT(5)); in RTW89_SET_FWCMD_SEC_SPP_MODE()
399 static inline void RTW89_SET_FWCMD_SEC_KEY0(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_KEY0() argument
401 le32p_replace_bits((__le32 *)(cmd) + 0x02, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_SEC_KEY0()
404 static inline void RTW89_SET_FWCMD_SEC_KEY1(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_KEY1() argument
406 le32p_replace_bits((__le32 *)(cmd) + 0x03, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_SEC_KEY1()
409 static inline void RTW89_SET_FWCMD_SEC_KEY2(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_KEY2() argument
411 le32p_replace_bits((__le32 *)(cmd) + 0x04, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_SEC_KEY2()
414 static inline void RTW89_SET_FWCMD_SEC_KEY3(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_KEY3() argument
416 le32p_replace_bits((__le32 *)(cmd) + 0x05, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_SEC_KEY3()
419 static inline void RTW89_SET_EDCA_SEL(void *cmd, u32 val) in RTW89_SET_EDCA_SEL() argument
421 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(1, 0)); in RTW89_SET_EDCA_SEL()
424 static inline void RTW89_SET_EDCA_BAND(void *cmd, u32 val) in RTW89_SET_EDCA_BAND() argument
426 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, BIT(3)); in RTW89_SET_EDCA_BAND()
429 static inline void RTW89_SET_EDCA_WMM(void *cmd, u32 val) in RTW89_SET_EDCA_WMM() argument
431 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, BIT(4)); in RTW89_SET_EDCA_WMM()
434 static inline void RTW89_SET_EDCA_AC(void *cmd, u32 val) in RTW89_SET_EDCA_AC() argument
436 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(6, 5)); in RTW89_SET_EDCA_AC()
439 static inline void RTW89_SET_EDCA_PARAM(void *cmd, u32 val) in RTW89_SET_EDCA_PARAM() argument
441 le32p_replace_bits((__le32 *)(cmd) + 0x01, val, GENMASK(31, 0)); in RTW89_SET_EDCA_PARAM()
479 static inline void SET_FW_HDR_PART_SIZE(void *fwhdr, u32 val) in SET_FW_HDR_PART_SIZE() argument
481 le32p_replace_bits((__le32 *)fwhdr + 7, val, GENMASK(15, 0)); in SET_FW_HDR_PART_SIZE()
484 static inline void SET_CTRL_INFO_MACID(void *table, u32 val) in SET_CTRL_INFO_MACID() argument
486 le32p_replace_bits((__le32 *)(table) + 0, val, GENMASK(6, 0)); in SET_CTRL_INFO_MACID()
489 static inline void SET_CTRL_INFO_OPERATION(void *table, u32 val) in SET_CTRL_INFO_OPERATION() argument
491 le32p_replace_bits((__le32 *)(table) + 0, val, BIT(7)); in SET_CTRL_INFO_OPERATION()
494 static inline void SET_CMC_TBL_DATARATE(void *table, u32 val) in SET_CMC_TBL_DATARATE() argument
496 le32p_replace_bits((__le32 *)(table) + 1, val, GENMASK(8, 0)); in SET_CMC_TBL_DATARATE()
501 static inline void SET_CMC_TBL_FORCE_TXOP(void *table, u32 val) in SET_CMC_TBL_FORCE_TXOP() argument
503 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(9)); in SET_CMC_TBL_FORCE_TXOP()
508 static inline void SET_CMC_TBL_DATA_BW(void *table, u32 val) in SET_CMC_TBL_DATA_BW() argument
510 le32p_replace_bits((__le32 *)(table) + 1, val, GENMASK(11, 10)); in SET_CMC_TBL_DATA_BW()
515 static inline void SET_CMC_TBL_DATA_GI_LTF(void *table, u32 val) in SET_CMC_TBL_DATA_GI_LTF() argument
517 le32p_replace_bits((__le32 *)(table) + 1, val, GENMASK(14, 12)); in SET_CMC_TBL_DATA_GI_LTF()
522 static inline void SET_CMC_TBL_DARF_TC_INDEX(void *table, u32 val) in SET_CMC_TBL_DARF_TC_INDEX() argument
524 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(15)); in SET_CMC_TBL_DARF_TC_INDEX()
529 static inline void SET_CMC_TBL_ARFR_CTRL(void *table, u32 val) in SET_CMC_TBL_ARFR_CTRL() argument
531 le32p_replace_bits((__le32 *)(table) + 1, val, GENMASK(19, 16)); in SET_CMC_TBL_ARFR_CTRL()
536 static inline void SET_CMC_TBL_ACQ_RPT_EN(void *table, u32 val) in SET_CMC_TBL_ACQ_RPT_EN() argument
538 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(20)); in SET_CMC_TBL_ACQ_RPT_EN()
543 static inline void SET_CMC_TBL_MGQ_RPT_EN(void *table, u32 val) in SET_CMC_TBL_MGQ_RPT_EN() argument
545 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(21)); in SET_CMC_TBL_MGQ_RPT_EN()
550 static inline void SET_CMC_TBL_ULQ_RPT_EN(void *table, u32 val) in SET_CMC_TBL_ULQ_RPT_EN() argument
552 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(22)); in SET_CMC_TBL_ULQ_RPT_EN()
557 static inline void SET_CMC_TBL_TWTQ_RPT_EN(void *table, u32 val) in SET_CMC_TBL_TWTQ_RPT_EN() argument
559 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(23)); in SET_CMC_TBL_TWTQ_RPT_EN()
564 static inline void SET_CMC_TBL_DISRTSFB(void *table, u32 val) in SET_CMC_TBL_DISRTSFB() argument
566 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(25)); in SET_CMC_TBL_DISRTSFB()
571 static inline void SET_CMC_TBL_DISDATAFB(void *table, u32 val) in SET_CMC_TBL_DISDATAFB() argument
573 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(26)); in SET_CMC_TBL_DISDATAFB()
578 static inline void SET_CMC_TBL_TRYRATE(void *table, u32 val) in SET_CMC_TBL_TRYRATE() argument
580 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(27)); in SET_CMC_TBL_TRYRATE()
585 static inline void SET_CMC_TBL_AMPDU_DENSITY(void *table, u32 val) in SET_CMC_TBL_AMPDU_DENSITY() argument
587 le32p_replace_bits((__le32 *)(table) + 1, val, GENMASK(31, 28)); in SET_CMC_TBL_AMPDU_DENSITY()
592 static inline void SET_CMC_TBL_DATA_RTY_LOWEST_RATE(void *table, u32 val) in SET_CMC_TBL_DATA_RTY_LOWEST_RATE() argument
594 le32p_replace_bits((__le32 *)(table) + 2, val, GENMASK(8, 0)); in SET_CMC_TBL_DATA_RTY_LOWEST_RATE()
599 static inline void SET_CMC_TBL_AMPDU_TIME_SEL(void *table, u32 val) in SET_CMC_TBL_AMPDU_TIME_SEL() argument
601 le32p_replace_bits((__le32 *)(table) + 2, val, BIT(9)); in SET_CMC_TBL_AMPDU_TIME_SEL()
606 static inline void SET_CMC_TBL_AMPDU_LEN_SEL(void *table, u32 val) in SET_CMC_TBL_AMPDU_LEN_SEL() argument
608 le32p_replace_bits((__le32 *)(table) + 2, val, BIT(10)); in SET_CMC_TBL_AMPDU_LEN_SEL()
613 static inline void SET_CMC_TBL_RTS_TXCNT_LMT_SEL(void *table, u32 val) in SET_CMC_TBL_RTS_TXCNT_LMT_SEL() argument
615 le32p_replace_bits((__le32 *)(table) + 2, val, BIT(11)); in SET_CMC_TBL_RTS_TXCNT_LMT_SEL()
620 static inline void SET_CMC_TBL_RTS_TXCNT_LMT(void *table, u32 val) in SET_CMC_TBL_RTS_TXCNT_LMT() argument
622 le32p_replace_bits((__le32 *)(table) + 2, val, GENMASK(15, 12)); in SET_CMC_TBL_RTS_TXCNT_LMT()
627 static inline void SET_CMC_TBL_RTSRATE(void *table, u32 val) in SET_CMC_TBL_RTSRATE() argument
629 le32p_replace_bits((__le32 *)(table) + 2, val, GENMASK(24, 16)); in SET_CMC_TBL_RTSRATE()
634 static inline void SET_CMC_TBL_VCS_STBC(void *table, u32 val) in SET_CMC_TBL_VCS_STBC() argument
636 le32p_replace_bits((__le32 *)(table) + 2, val, BIT(27)); in SET_CMC_TBL_VCS_STBC()
641 static inline void SET_CMC_TBL_RTS_RTY_LOWEST_RATE(void *table, u32 val) in SET_CMC_TBL_RTS_RTY_LOWEST_RATE() argument
643 le32p_replace_bits((__le32 *)(table) + 2, val, GENMASK(31, 28)); in SET_CMC_TBL_RTS_RTY_LOWEST_RATE()
648 static inline void SET_CMC_TBL_DATA_TX_CNT_LMT(void *table, u32 val) in SET_CMC_TBL_DATA_TX_CNT_LMT() argument
650 le32p_replace_bits((__le32 *)(table) + 3, val, GENMASK(5, 0)); in SET_CMC_TBL_DATA_TX_CNT_LMT()
655 static inline void SET_CMC_TBL_DATA_TXCNT_LMT_SEL(void *table, u32 val) in SET_CMC_TBL_DATA_TXCNT_LMT_SEL() argument
657 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(6)); in SET_CMC_TBL_DATA_TXCNT_LMT_SEL()
662 static inline void SET_CMC_TBL_MAX_AGG_NUM_SEL(void *table, u32 val) in SET_CMC_TBL_MAX_AGG_NUM_SEL() argument
664 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(7)); in SET_CMC_TBL_MAX_AGG_NUM_SEL()
669 static inline void SET_CMC_TBL_RTS_EN(void *table, u32 val) in SET_CMC_TBL_RTS_EN() argument
671 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(8)); in SET_CMC_TBL_RTS_EN()
676 static inline void SET_CMC_TBL_CTS2SELF_EN(void *table, u32 val) in SET_CMC_TBL_CTS2SELF_EN() argument
678 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(9)); in SET_CMC_TBL_CTS2SELF_EN()
683 static inline void SET_CMC_TBL_CCA_RTS(void *table, u32 val) in SET_CMC_TBL_CCA_RTS() argument
685 le32p_replace_bits((__le32 *)(table) + 3, val, GENMASK(11, 10)); in SET_CMC_TBL_CCA_RTS()
690 static inline void SET_CMC_TBL_HW_RTS_EN(void *table, u32 val) in SET_CMC_TBL_HW_RTS_EN() argument
692 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(12)); in SET_CMC_TBL_HW_RTS_EN()
697 static inline void SET_CMC_TBL_RTS_DROP_DATA_MODE(void *table, u32 val) in SET_CMC_TBL_RTS_DROP_DATA_MODE() argument
699 le32p_replace_bits((__le32 *)(table) + 3, val, GENMASK(14, 13)); in SET_CMC_TBL_RTS_DROP_DATA_MODE()
704 static inline void SET_CMC_TBL_AMPDU_MAX_LEN(void *table, u32 val) in SET_CMC_TBL_AMPDU_MAX_LEN() argument
706 le32p_replace_bits((__le32 *)(table) + 3, val, GENMASK(26, 16)); in SET_CMC_TBL_AMPDU_MAX_LEN()
711 static inline void SET_CMC_TBL_UL_MU_DIS(void *table, u32 val) in SET_CMC_TBL_UL_MU_DIS() argument
713 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(27)); in SET_CMC_TBL_UL_MU_DIS()
718 static inline void SET_CMC_TBL_AMPDU_MAX_TIME(void *table, u32 val) in SET_CMC_TBL_AMPDU_MAX_TIME() argument
720 le32p_replace_bits((__le32 *)(table) + 3, val, GENMASK(31, 28)); in SET_CMC_TBL_AMPDU_MAX_TIME()
725 static inline void SET_CMC_TBL_MAX_AGG_NUM(void *table, u32 val) in SET_CMC_TBL_MAX_AGG_NUM() argument
727 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(7, 0)); in SET_CMC_TBL_MAX_AGG_NUM()
732 static inline void SET_CMC_TBL_BA_BMAP(void *table, u32 val) in SET_CMC_TBL_BA_BMAP() argument
734 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(9, 8)); in SET_CMC_TBL_BA_BMAP()
739 static inline void SET_CMC_TBL_VO_LFTIME_SEL(void *table, u32 val) in SET_CMC_TBL_VO_LFTIME_SEL() argument
741 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(18, 16)); in SET_CMC_TBL_VO_LFTIME_SEL()
746 static inline void SET_CMC_TBL_VI_LFTIME_SEL(void *table, u32 val) in SET_CMC_TBL_VI_LFTIME_SEL() argument
748 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(21, 19)); in SET_CMC_TBL_VI_LFTIME_SEL()
753 static inline void SET_CMC_TBL_BE_LFTIME_SEL(void *table, u32 val) in SET_CMC_TBL_BE_LFTIME_SEL() argument
755 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(24, 22)); in SET_CMC_TBL_BE_LFTIME_SEL()
760 static inline void SET_CMC_TBL_BK_LFTIME_SEL(void *table, u32 val) in SET_CMC_TBL_BK_LFTIME_SEL() argument
762 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(27, 25)); in SET_CMC_TBL_BK_LFTIME_SEL()
767 static inline void SET_CMC_TBL_SECTYPE(void *table, u32 val) in SET_CMC_TBL_SECTYPE() argument
769 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(31, 28)); in SET_CMC_TBL_SECTYPE()
774 static inline void SET_CMC_TBL_MULTI_PORT_ID(void *table, u32 val) in SET_CMC_TBL_MULTI_PORT_ID() argument
776 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(2, 0)); in SET_CMC_TBL_MULTI_PORT_ID()
781 static inline void SET_CMC_TBL_BMC(void *table, u32 val) in SET_CMC_TBL_BMC() argument
783 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(3)); in SET_CMC_TBL_BMC()
788 static inline void SET_CMC_TBL_MBSSID(void *table, u32 val) in SET_CMC_TBL_MBSSID() argument
790 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(7, 4)); in SET_CMC_TBL_MBSSID()
795 static inline void SET_CMC_TBL_NAVUSEHDR(void *table, u32 val) in SET_CMC_TBL_NAVUSEHDR() argument
797 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(8)); in SET_CMC_TBL_NAVUSEHDR()
802 static inline void SET_CMC_TBL_TXPWR_MODE(void *table, u32 val) in SET_CMC_TBL_TXPWR_MODE() argument
804 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(11, 9)); in SET_CMC_TBL_TXPWR_MODE()
809 static inline void SET_CMC_TBL_DATA_DCM(void *table, u32 val) in SET_CMC_TBL_DATA_DCM() argument
811 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(12)); in SET_CMC_TBL_DATA_DCM()
816 static inline void SET_CMC_TBL_DATA_ER(void *table, u32 val) in SET_CMC_TBL_DATA_ER() argument
818 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(13)); in SET_CMC_TBL_DATA_ER()
823 static inline void SET_CMC_TBL_DATA_LDPC(void *table, u32 val) in SET_CMC_TBL_DATA_LDPC() argument
825 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(14)); in SET_CMC_TBL_DATA_LDPC()
830 static inline void SET_CMC_TBL_DATA_STBC(void *table, u32 val) in SET_CMC_TBL_DATA_STBC() argument
832 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(15)); in SET_CMC_TBL_DATA_STBC()
837 static inline void SET_CMC_TBL_A_CTRL_BQR(void *table, u32 val) in SET_CMC_TBL_A_CTRL_BQR() argument
839 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(16)); in SET_CMC_TBL_A_CTRL_BQR()
844 static inline void SET_CMC_TBL_A_CTRL_UPH(void *table, u32 val) in SET_CMC_TBL_A_CTRL_UPH() argument
846 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(17)); in SET_CMC_TBL_A_CTRL_UPH()
851 static inline void SET_CMC_TBL_A_CTRL_BSR(void *table, u32 val) in SET_CMC_TBL_A_CTRL_BSR() argument
853 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(18)); in SET_CMC_TBL_A_CTRL_BSR()
858 static inline void SET_CMC_TBL_A_CTRL_CAS(void *table, u32 val) in SET_CMC_TBL_A_CTRL_CAS() argument
860 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(19)); in SET_CMC_TBL_A_CTRL_CAS()
865 static inline void SET_CMC_TBL_DATA_BW_ER(void *table, u32 val) in SET_CMC_TBL_DATA_BW_ER() argument
867 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(20)); in SET_CMC_TBL_DATA_BW_ER()
872 static inline void SET_CMC_TBL_LSIG_TXOP_EN(void *table, u32 val) in SET_CMC_TBL_LSIG_TXOP_EN() argument
874 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(21)); in SET_CMC_TBL_LSIG_TXOP_EN()
879 static inline void SET_CMC_TBL_CTRL_CNT_VLD(void *table, u32 val) in SET_CMC_TBL_CTRL_CNT_VLD() argument
881 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(27)); in SET_CMC_TBL_CTRL_CNT_VLD()
886 static inline void SET_CMC_TBL_CTRL_CNT(void *table, u32 val) in SET_CMC_TBL_CTRL_CNT() argument
888 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(31, 28)); in SET_CMC_TBL_CTRL_CNT()
893 static inline void SET_CMC_TBL_RESP_REF_RATE(void *table, u32 val) in SET_CMC_TBL_RESP_REF_RATE() argument
895 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(8, 0)); in SET_CMC_TBL_RESP_REF_RATE()
900 static inline void SET_CMC_TBL_ALL_ACK_SUPPORT(void *table, u32 val) in SET_CMC_TBL_ALL_ACK_SUPPORT() argument
902 le32p_replace_bits((__le32 *)(table) + 6, val, BIT(12)); in SET_CMC_TBL_ALL_ACK_SUPPORT()
907 static inline void SET_CMC_TBL_BSR_QUEUE_SIZE_FORMAT(void *table, u32 val) in SET_CMC_TBL_BSR_QUEUE_SIZE_FORMAT() argument
909 le32p_replace_bits((__le32 *)(table) + 6, val, BIT(13)); in SET_CMC_TBL_BSR_QUEUE_SIZE_FORMAT()
914 static inline void SET_CMC_TBL_NTX_PATH_EN(void *table, u32 val) in SET_CMC_TBL_NTX_PATH_EN() argument
916 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(19, 16)); in SET_CMC_TBL_NTX_PATH_EN()
921 static inline void SET_CMC_TBL_PATH_MAP_A(void *table, u32 val) in SET_CMC_TBL_PATH_MAP_A() argument
923 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(21, 20)); in SET_CMC_TBL_PATH_MAP_A()
928 static inline void SET_CMC_TBL_PATH_MAP_B(void *table, u32 val) in SET_CMC_TBL_PATH_MAP_B() argument
930 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(23, 22)); in SET_CMC_TBL_PATH_MAP_B()
935 static inline void SET_CMC_TBL_PATH_MAP_C(void *table, u32 val) in SET_CMC_TBL_PATH_MAP_C() argument
937 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(25, 24)); in SET_CMC_TBL_PATH_MAP_C()
942 static inline void SET_CMC_TBL_PATH_MAP_D(void *table, u32 val) in SET_CMC_TBL_PATH_MAP_D() argument
944 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(27, 26)); in SET_CMC_TBL_PATH_MAP_D()
949 static inline void SET_CMC_TBL_ANTSEL_A(void *table, u32 val) in SET_CMC_TBL_ANTSEL_A() argument
951 le32p_replace_bits((__le32 *)(table) + 6, val, BIT(28)); in SET_CMC_TBL_ANTSEL_A()
956 static inline void SET_CMC_TBL_ANTSEL_B(void *table, u32 val) in SET_CMC_TBL_ANTSEL_B() argument
958 le32p_replace_bits((__le32 *)(table) + 6, val, BIT(29)); in SET_CMC_TBL_ANTSEL_B()
963 static inline void SET_CMC_TBL_ANTSEL_C(void *table, u32 val) in SET_CMC_TBL_ANTSEL_C() argument
965 le32p_replace_bits((__le32 *)(table) + 6, val, BIT(30)); in SET_CMC_TBL_ANTSEL_C()
970 static inline void SET_CMC_TBL_ANTSEL_D(void *table, u32 val) in SET_CMC_TBL_ANTSEL_D() argument
972 le32p_replace_bits((__le32 *)(table) + 6, val, BIT(31)); in SET_CMC_TBL_ANTSEL_D()
978 static inline void SET_CMC_TBL_NOMINAL_PKT_PADDING_V1(void *table, u32 val) in SET_CMC_TBL_NOMINAL_PKT_PADDING_V1() argument
980 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(1, 0)); in SET_CMC_TBL_NOMINAL_PKT_PADDING_V1()
985 static inline void SET_CMC_TBL_NOMINAL_PKT_PADDING40_V1(void *table, u32 val) in SET_CMC_TBL_NOMINAL_PKT_PADDING40_V1() argument
987 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(3, 2)); in SET_CMC_TBL_NOMINAL_PKT_PADDING40_V1()
992 static inline void SET_CMC_TBL_NOMINAL_PKT_PADDING80_V1(void *table, u32 val) in SET_CMC_TBL_NOMINAL_PKT_PADDING80_V1() argument
994 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(5, 4)); in SET_CMC_TBL_NOMINAL_PKT_PADDING80_V1()
999 static inline void SET_CMC_TBL_NOMINAL_PKT_PADDING160_V1(void *table, u32 val) in SET_CMC_TBL_NOMINAL_PKT_PADDING160_V1() argument
1001 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(7, 6)); in SET_CMC_TBL_NOMINAL_PKT_PADDING160_V1()
1007 static inline void SET_CMC_TBL_ADDR_CAM_INDEX(void *table, u32 val) in SET_CMC_TBL_ADDR_CAM_INDEX() argument
1009 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(7, 0)); in SET_CMC_TBL_ADDR_CAM_INDEX()
1014 static inline void SET_CMC_TBL_PAID(void *table, u32 val) in SET_CMC_TBL_PAID() argument
1016 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(16, 8)); in SET_CMC_TBL_PAID()
1021 static inline void SET_CMC_TBL_ULDL(void *table, u32 val) in SET_CMC_TBL_ULDL() argument
1023 le32p_replace_bits((__le32 *)(table) + 7, val, BIT(17)); in SET_CMC_TBL_ULDL()
1028 static inline void SET_CMC_TBL_DOPPLER_CTRL(void *table, u32 val) in SET_CMC_TBL_DOPPLER_CTRL() argument
1030 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(19, 18)); in SET_CMC_TBL_DOPPLER_CTRL()
1034 static inline void SET_CMC_TBL_NOMINAL_PKT_PADDING(void *table, u32 val) in SET_CMC_TBL_NOMINAL_PKT_PADDING() argument
1036 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(21, 20)); in SET_CMC_TBL_NOMINAL_PKT_PADDING()
1041 static inline void SET_CMC_TBL_NOMINAL_PKT_PADDING40(void *table, u32 val) in SET_CMC_TBL_NOMINAL_PKT_PADDING40() argument
1043 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(23, 22)); in SET_CMC_TBL_NOMINAL_PKT_PADDING40()
1048 static inline void SET_CMC_TBL_TXPWR_TOLERENCE(void *table, u32 val) in SET_CMC_TBL_TXPWR_TOLERENCE() argument
1050 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(27, 24)); in SET_CMC_TBL_TXPWR_TOLERENCE()
1055 static inline void SET_CMC_TBL_NOMINAL_PKT_PADDING80(void *table, u32 val) in SET_CMC_TBL_NOMINAL_PKT_PADDING80() argument
1057 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(31, 30)); in SET_CMC_TBL_NOMINAL_PKT_PADDING80()
1062 static inline void SET_CMC_TBL_NC(void *table, u32 val) in SET_CMC_TBL_NC() argument
1064 le32p_replace_bits((__le32 *)(table) + 8, val, GENMASK(2, 0)); in SET_CMC_TBL_NC()
1069 static inline void SET_CMC_TBL_NR(void *table, u32 val) in SET_CMC_TBL_NR() argument
1071 le32p_replace_bits((__le32 *)(table) + 8, val, GENMASK(5, 3)); in SET_CMC_TBL_NR()
1076 static inline void SET_CMC_TBL_NG(void *table, u32 val) in SET_CMC_TBL_NG() argument
1078 le32p_replace_bits((__le32 *)(table) + 8, val, GENMASK(7, 6)); in SET_CMC_TBL_NG()
1083 static inline void SET_CMC_TBL_CB(void *table, u32 val) in SET_CMC_TBL_CB() argument
1085 le32p_replace_bits((__le32 *)(table) + 8, val, GENMASK(9, 8)); in SET_CMC_TBL_CB()
1090 static inline void SET_CMC_TBL_CS(void *table, u32 val) in SET_CMC_TBL_CS() argument
1092 le32p_replace_bits((__le32 *)(table) + 8, val, GENMASK(11, 10)); in SET_CMC_TBL_CS()
1097 static inline void SET_CMC_TBL_CSI_TXBF_EN(void *table, u32 val) in SET_CMC_TBL_CSI_TXBF_EN() argument
1099 le32p_replace_bits((__le32 *)(table) + 8, val, BIT(12)); in SET_CMC_TBL_CSI_TXBF_EN()
1104 static inline void SET_CMC_TBL_CSI_STBC_EN(void *table, u32 val) in SET_CMC_TBL_CSI_STBC_EN() argument
1106 le32p_replace_bits((__le32 *)(table) + 8, val, BIT(13)); in SET_CMC_TBL_CSI_STBC_EN()
1111 static inline void SET_CMC_TBL_CSI_LDPC_EN(void *table, u32 val) in SET_CMC_TBL_CSI_LDPC_EN() argument
1113 le32p_replace_bits((__le32 *)(table) + 8, val, BIT(14)); in SET_CMC_TBL_CSI_LDPC_EN()
1118 static inline void SET_CMC_TBL_CSI_PARA_EN(void *table, u32 val) in SET_CMC_TBL_CSI_PARA_EN() argument
1120 le32p_replace_bits((__le32 *)(table) + 8, val, BIT(15)); in SET_CMC_TBL_CSI_PARA_EN()
1125 static inline void SET_CMC_TBL_CSI_FIX_RATE(void *table, u32 val) in SET_CMC_TBL_CSI_FIX_RATE() argument
1127 le32p_replace_bits((__le32 *)(table) + 8, val, GENMASK(24, 16)); in SET_CMC_TBL_CSI_FIX_RATE()
1132 static inline void SET_CMC_TBL_CSI_GI_LTF(void *table, u32 val) in SET_CMC_TBL_CSI_GI_LTF() argument
1134 le32p_replace_bits((__le32 *)(table) + 8, val, GENMASK(27, 25)); in SET_CMC_TBL_CSI_GI_LTF()
1139 static inline void SET_CMC_TBL_NOMINAL_PKT_PADDING160(void *table, u32 val) in SET_CMC_TBL_NOMINAL_PKT_PADDING160() argument
1141 le32p_replace_bits((__le32 *)(table) + 8, val, GENMASK(29, 28)); in SET_CMC_TBL_NOMINAL_PKT_PADDING160()
1147 static inline void SET_CMC_TBL_CSI_BW(void *table, u32 val) in SET_CMC_TBL_CSI_BW() argument
1149 le32p_replace_bits((__le32 *)(table) + 8, val, GENMASK(31, 30)); in SET_CMC_TBL_CSI_BW()
1154 static inline void SET_DCTL_MACID_V1(void *table, u32 val) in SET_DCTL_MACID_V1() argument
1156 le32p_replace_bits((__le32 *)(table) + 0, val, GENMASK(6, 0)); in SET_DCTL_MACID_V1()
1159 static inline void SET_DCTL_OPERATION_V1(void *table, u32 val) in SET_DCTL_OPERATION_V1() argument
1161 le32p_replace_bits((__le32 *)(table) + 0, val, BIT(7)); in SET_DCTL_OPERATION_V1()
1165 static inline void SET_DCTL_QOS_FIELD_V1(void *table, u32 val) in SET_DCTL_QOS_FIELD_V1() argument
1167 le32p_replace_bits((__le32 *)(table) + 1, val, GENMASK(7, 0)); in SET_DCTL_QOS_FIELD_V1()
1173 static inline void SET_DCTL_HW_EXSEQ_MACID_V1(void *table, u32 val) in SET_DCTL_HW_EXSEQ_MACID_V1() argument
1175 le32p_replace_bits((__le32 *)(table) + 1, val, GENMASK(14, 8)); in SET_DCTL_HW_EXSEQ_MACID_V1()
1181 static inline void SET_DCTL_QOS_DATA_V1(void *table, u32 val) in SET_DCTL_QOS_DATA_V1() argument
1183 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(15)); in SET_DCTL_QOS_DATA_V1()
1189 static inline void SET_DCTL_AES_IV_L_V1(void *table, u32 val) in SET_DCTL_AES_IV_L_V1() argument
1191 le32p_replace_bits((__le32 *)(table) + 1, val, GENMASK(31, 16)); in SET_DCTL_AES_IV_L_V1()
1197 static inline void SET_DCTL_AES_IV_H_V1(void *table, u32 val) in SET_DCTL_AES_IV_H_V1() argument
1199 le32p_replace_bits((__le32 *)(table) + 2, val, GENMASK(31, 0)); in SET_DCTL_AES_IV_H_V1()
1205 static inline void SET_DCTL_SEQ0_V1(void *table, u32 val) in SET_DCTL_SEQ0_V1() argument
1207 le32p_replace_bits((__le32 *)(table) + 3, val, GENMASK(11, 0)); in SET_DCTL_SEQ0_V1()
1213 static inline void SET_DCTL_SEQ1_V1(void *table, u32 val) in SET_DCTL_SEQ1_V1() argument
1215 le32p_replace_bits((__le32 *)(table) + 3, val, GENMASK(23, 12)); in SET_DCTL_SEQ1_V1()
1221 static inline void SET_DCTL_AMSDU_MAX_LEN_V1(void *table, u32 val) in SET_DCTL_AMSDU_MAX_LEN_V1() argument
1223 le32p_replace_bits((__le32 *)(table) + 3, val, GENMASK(26, 24)); in SET_DCTL_AMSDU_MAX_LEN_V1()
1229 static inline void SET_DCTL_STA_AMSDU_EN_V1(void *table, u32 val) in SET_DCTL_STA_AMSDU_EN_V1() argument
1231 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(27)); in SET_DCTL_STA_AMSDU_EN_V1()
1237 static inline void SET_DCTL_CHKSUM_OFLD_EN_V1(void *table, u32 val) in SET_DCTL_CHKSUM_OFLD_EN_V1() argument
1239 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(28)); in SET_DCTL_CHKSUM_OFLD_EN_V1()
1245 static inline void SET_DCTL_WITH_LLC_V1(void *table, u32 val) in SET_DCTL_WITH_LLC_V1() argument
1247 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(29)); in SET_DCTL_WITH_LLC_V1()
1253 static inline void SET_DCTL_SEQ2_V1(void *table, u32 val) in SET_DCTL_SEQ2_V1() argument
1255 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(11, 0)); in SET_DCTL_SEQ2_V1()
1261 static inline void SET_DCTL_SEQ3_V1(void *table, u32 val) in SET_DCTL_SEQ3_V1() argument
1263 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(23, 12)); in SET_DCTL_SEQ3_V1()
1269 static inline void SET_DCTL_TGT_IND_V1(void *table, u32 val) in SET_DCTL_TGT_IND_V1() argument
1271 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(27, 24)); in SET_DCTL_TGT_IND_V1()
1277 static inline void SET_DCTL_TGT_IND_EN_V1(void *table, u32 val) in SET_DCTL_TGT_IND_EN_V1() argument
1279 le32p_replace_bits((__le32 *)(table) + 4, val, BIT(28)); in SET_DCTL_TGT_IND_EN_V1()
1285 static inline void SET_DCTL_HTC_LB_V1(void *table, u32 val) in SET_DCTL_HTC_LB_V1() argument
1287 le32p_replace_bits((__le32 *)(table) + 4, val, GENMASK(31, 29)); in SET_DCTL_HTC_LB_V1()
1293 static inline void SET_DCTL_MHDR_LEN_V1(void *table, u32 val) in SET_DCTL_MHDR_LEN_V1() argument
1295 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(4, 0)); in SET_DCTL_MHDR_LEN_V1()
1301 static inline void SET_DCTL_VLAN_TAG_VALID_V1(void *table, u32 val) in SET_DCTL_VLAN_TAG_VALID_V1() argument
1303 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(5)); in SET_DCTL_VLAN_TAG_VALID_V1()
1309 static inline void SET_DCTL_VLAN_TAG_SEL_V1(void *table, u32 val) in SET_DCTL_VLAN_TAG_SEL_V1() argument
1311 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(7, 6)); in SET_DCTL_VLAN_TAG_SEL_V1()
1317 static inline void SET_DCTL_HTC_ORDER_V1(void *table, u32 val) in SET_DCTL_HTC_ORDER_V1() argument
1319 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(8)); in SET_DCTL_HTC_ORDER_V1()
1325 static inline void SET_DCTL_SEC_KEY_ID_V1(void *table, u32 val) in SET_DCTL_SEC_KEY_ID_V1() argument
1327 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(10, 9)); in SET_DCTL_SEC_KEY_ID_V1()
1333 static inline void SET_DCTL_WAPI_V1(void *table, u32 val) in SET_DCTL_WAPI_V1() argument
1335 le32p_replace_bits((__le32 *)(table) + 5, val, BIT(15)); in SET_DCTL_WAPI_V1()
1341 static inline void SET_DCTL_SEC_ENT_MODE_V1(void *table, u32 val) in SET_DCTL_SEC_ENT_MODE_V1() argument
1343 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(17, 16)); in SET_DCTL_SEC_ENT_MODE_V1()
1349 static inline void SET_DCTL_SEC_ENT0_KEYID_V1(void *table, u32 val) in SET_DCTL_SEC_ENT0_KEYID_V1() argument
1351 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(19, 18)); in SET_DCTL_SEC_ENT0_KEYID_V1()
1356 static inline void SET_DCTL_SEC_ENT1_KEYID_V1(void *table, u32 val) in SET_DCTL_SEC_ENT1_KEYID_V1() argument
1358 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(21, 20)); in SET_DCTL_SEC_ENT1_KEYID_V1()
1363 static inline void SET_DCTL_SEC_ENT2_KEYID_V1(void *table, u32 val) in SET_DCTL_SEC_ENT2_KEYID_V1() argument
1365 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(23, 22)); in SET_DCTL_SEC_ENT2_KEYID_V1()
1370 static inline void SET_DCTL_SEC_ENT3_KEYID_V1(void *table, u32 val) in SET_DCTL_SEC_ENT3_KEYID_V1() argument
1372 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(25, 24)); in SET_DCTL_SEC_ENT3_KEYID_V1()
1377 static inline void SET_DCTL_SEC_ENT4_KEYID_V1(void *table, u32 val) in SET_DCTL_SEC_ENT4_KEYID_V1() argument
1379 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(27, 26)); in SET_DCTL_SEC_ENT4_KEYID_V1()
1384 static inline void SET_DCTL_SEC_ENT5_KEYID_V1(void *table, u32 val) in SET_DCTL_SEC_ENT5_KEYID_V1() argument
1386 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(29, 28)); in SET_DCTL_SEC_ENT5_KEYID_V1()
1391 static inline void SET_DCTL_SEC_ENT6_KEYID_V1(void *table, u32 val) in SET_DCTL_SEC_ENT6_KEYID_V1() argument
1393 le32p_replace_bits((__le32 *)(table) + 5, val, GENMASK(31, 30)); in SET_DCTL_SEC_ENT6_KEYID_V1()
1399 static inline void SET_DCTL_SEC_ENT_VALID_V1(void *table, u32 val) in SET_DCTL_SEC_ENT_VALID_V1() argument
1401 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(7, 0)); in SET_DCTL_SEC_ENT_VALID_V1()
1407 static inline void SET_DCTL_SEC_ENT0_V1(void *table, u32 val) in SET_DCTL_SEC_ENT0_V1() argument
1409 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(15, 8)); in SET_DCTL_SEC_ENT0_V1()
1414 static inline void SET_DCTL_SEC_ENT1_V1(void *table, u32 val) in SET_DCTL_SEC_ENT1_V1() argument
1416 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(23, 16)); in SET_DCTL_SEC_ENT1_V1()
1421 static inline void SET_DCTL_SEC_ENT2_V1(void *table, u32 val) in SET_DCTL_SEC_ENT2_V1() argument
1423 le32p_replace_bits((__le32 *)(table) + 6, val, GENMASK(31, 24)); in SET_DCTL_SEC_ENT2_V1()
1428 static inline void SET_DCTL_SEC_ENT3_V1(void *table, u32 val) in SET_DCTL_SEC_ENT3_V1() argument
1430 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(7, 0)); in SET_DCTL_SEC_ENT3_V1()
1435 static inline void SET_DCTL_SEC_ENT4_V1(void *table, u32 val) in SET_DCTL_SEC_ENT4_V1() argument
1437 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(15, 8)); in SET_DCTL_SEC_ENT4_V1()
1442 static inline void SET_DCTL_SEC_ENT5_V1(void *table, u32 val) in SET_DCTL_SEC_ENT5_V1() argument
1444 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(23, 16)); in SET_DCTL_SEC_ENT5_V1()
1449 static inline void SET_DCTL_SEC_ENT6_V1(void *table, u32 val) in SET_DCTL_SEC_ENT6_V1() argument
1451 le32p_replace_bits((__le32 *)(table) + 7, val, GENMASK(31, 24)); in SET_DCTL_SEC_ENT6_V1()
1456 static inline void SET_BCN_UPD_PORT(void *h2c, u32 val) in SET_BCN_UPD_PORT() argument
1458 le32p_replace_bits((__le32 *)h2c, val, GENMASK(7, 0)); in SET_BCN_UPD_PORT()
1461 static inline void SET_BCN_UPD_MBSSID(void *h2c, u32 val) in SET_BCN_UPD_MBSSID() argument
1463 le32p_replace_bits((__le32 *)h2c, val, GENMASK(15, 8)); in SET_BCN_UPD_MBSSID()
1466 static inline void SET_BCN_UPD_BAND(void *h2c, u32 val) in SET_BCN_UPD_BAND() argument
1468 le32p_replace_bits((__le32 *)h2c, val, GENMASK(23, 16)); in SET_BCN_UPD_BAND()
1471 static inline void SET_BCN_UPD_GRP_IE_OFST(void *h2c, u32 val) in SET_BCN_UPD_GRP_IE_OFST() argument
1473 le32p_replace_bits((__le32 *)h2c, (val - 24) | BIT(7), GENMASK(31, 24)); in SET_BCN_UPD_GRP_IE_OFST()
1476 static inline void SET_BCN_UPD_MACID(void *h2c, u32 val) in SET_BCN_UPD_MACID() argument
1478 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(7, 0)); in SET_BCN_UPD_MACID()
1481 static inline void SET_BCN_UPD_SSN_SEL(void *h2c, u32 val) in SET_BCN_UPD_SSN_SEL() argument
1483 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(9, 8)); in SET_BCN_UPD_SSN_SEL()
1486 static inline void SET_BCN_UPD_SSN_MODE(void *h2c, u32 val) in SET_BCN_UPD_SSN_MODE() argument
1488 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(11, 10)); in SET_BCN_UPD_SSN_MODE()
1491 static inline void SET_BCN_UPD_RATE(void *h2c, u32 val) in SET_BCN_UPD_RATE() argument
1493 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(20, 12)); in SET_BCN_UPD_RATE()
1496 static inline void SET_BCN_UPD_TXPWR(void *h2c, u32 val) in SET_BCN_UPD_TXPWR() argument
1498 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(23, 21)); in SET_BCN_UPD_TXPWR()
1501 static inline void SET_BCN_UPD_TXINFO_CTRL_EN(void *h2c, u32 val) in SET_BCN_UPD_TXINFO_CTRL_EN() argument
1503 le32p_replace_bits((__le32 *)(h2c) + 2, val, BIT(0)); in SET_BCN_UPD_TXINFO_CTRL_EN()
1506 static inline void SET_BCN_UPD_NTX_PATH_EN(void *h2c, u32 val) in SET_BCN_UPD_NTX_PATH_EN() argument
1508 le32p_replace_bits((__le32 *)(h2c) + 2, val, GENMASK(4, 1)); in SET_BCN_UPD_NTX_PATH_EN()
1511 static inline void SET_BCN_UPD_PATH_MAP_A(void *h2c, u32 val) in SET_BCN_UPD_PATH_MAP_A() argument
1513 le32p_replace_bits((__le32 *)(h2c) + 2, val, GENMASK(6, 5)); in SET_BCN_UPD_PATH_MAP_A()
1516 static inline void SET_BCN_UPD_PATH_MAP_B(void *h2c, u32 val) in SET_BCN_UPD_PATH_MAP_B() argument
1518 le32p_replace_bits((__le32 *)(h2c) + 2, val, GENMASK(8, 7)); in SET_BCN_UPD_PATH_MAP_B()
1521 static inline void SET_BCN_UPD_PATH_MAP_C(void *h2c, u32 val) in SET_BCN_UPD_PATH_MAP_C() argument
1523 le32p_replace_bits((__le32 *)(h2c) + 2, val, GENMASK(10, 9)); in SET_BCN_UPD_PATH_MAP_C()
1526 static inline void SET_BCN_UPD_PATH_MAP_D(void *h2c, u32 val) in SET_BCN_UPD_PATH_MAP_D() argument
1528 le32p_replace_bits((__le32 *)(h2c) + 2, val, GENMASK(12, 11)); in SET_BCN_UPD_PATH_MAP_D()
1531 static inline void SET_BCN_UPD_PATH_ANTSEL_A(void *h2c, u32 val) in SET_BCN_UPD_PATH_ANTSEL_A() argument
1533 le32p_replace_bits((__le32 *)(h2c) + 2, val, BIT(13)); in SET_BCN_UPD_PATH_ANTSEL_A()
1536 static inline void SET_BCN_UPD_PATH_ANTSEL_B(void *h2c, u32 val) in SET_BCN_UPD_PATH_ANTSEL_B() argument
1538 le32p_replace_bits((__le32 *)(h2c) + 2, val, BIT(14)); in SET_BCN_UPD_PATH_ANTSEL_B()
1541 static inline void SET_BCN_UPD_PATH_ANTSEL_C(void *h2c, u32 val) in SET_BCN_UPD_PATH_ANTSEL_C() argument
1543 le32p_replace_bits((__le32 *)(h2c) + 2, val, BIT(15)); in SET_BCN_UPD_PATH_ANTSEL_C()
1546 static inline void SET_BCN_UPD_PATH_ANTSEL_D(void *h2c, u32 val) in SET_BCN_UPD_PATH_ANTSEL_D() argument
1548 le32p_replace_bits((__le32 *)(h2c) + 2, val, BIT(16)); in SET_BCN_UPD_PATH_ANTSEL_D()
1551 static inline void SET_BCN_UPD_CSA_OFST(void *h2c, u32 val) in SET_BCN_UPD_CSA_OFST() argument
1553 le32p_replace_bits((__le32 *)(h2c) + 2, val, GENMASK(31, 17)); in SET_BCN_UPD_CSA_OFST()
1556 static inline void SET_FWROLE_MAINTAIN_MACID(void *h2c, u32 val) in SET_FWROLE_MAINTAIN_MACID() argument
1558 le32p_replace_bits((__le32 *)h2c, val, GENMASK(7, 0)); in SET_FWROLE_MAINTAIN_MACID()
1561 static inline void SET_FWROLE_MAINTAIN_SELF_ROLE(void *h2c, u32 val) in SET_FWROLE_MAINTAIN_SELF_ROLE() argument
1563 le32p_replace_bits((__le32 *)h2c, val, GENMASK(9, 8)); in SET_FWROLE_MAINTAIN_SELF_ROLE()
1566 static inline void SET_FWROLE_MAINTAIN_UPD_MODE(void *h2c, u32 val) in SET_FWROLE_MAINTAIN_UPD_MODE() argument
1568 le32p_replace_bits((__le32 *)h2c, val, GENMASK(12, 10)); in SET_FWROLE_MAINTAIN_UPD_MODE()
1571 static inline void SET_FWROLE_MAINTAIN_WIFI_ROLE(void *h2c, u32 val) in SET_FWROLE_MAINTAIN_WIFI_ROLE() argument
1573 le32p_replace_bits((__le32 *)h2c, val, GENMASK(16, 13)); in SET_FWROLE_MAINTAIN_WIFI_ROLE()
1576 static inline void SET_JOININFO_MACID(void *h2c, u32 val) in SET_JOININFO_MACID() argument
1578 le32p_replace_bits((__le32 *)h2c, val, GENMASK(7, 0)); in SET_JOININFO_MACID()
1581 static inline void SET_JOININFO_OP(void *h2c, u32 val) in SET_JOININFO_OP() argument
1583 le32p_replace_bits((__le32 *)h2c, val, BIT(8)); in SET_JOININFO_OP()
1586 static inline void SET_JOININFO_BAND(void *h2c, u32 val) in SET_JOININFO_BAND() argument
1588 le32p_replace_bits((__le32 *)h2c, val, BIT(9)); in SET_JOININFO_BAND()
1591 static inline void SET_JOININFO_WMM(void *h2c, u32 val) in SET_JOININFO_WMM() argument
1593 le32p_replace_bits((__le32 *)h2c, val, GENMASK(11, 10)); in SET_JOININFO_WMM()
1596 static inline void SET_JOININFO_TGR(void *h2c, u32 val) in SET_JOININFO_TGR() argument
1598 le32p_replace_bits((__le32 *)h2c, val, BIT(12)); in SET_JOININFO_TGR()
1601 static inline void SET_JOININFO_ISHESTA(void *h2c, u32 val) in SET_JOININFO_ISHESTA() argument
1603 le32p_replace_bits((__le32 *)h2c, val, BIT(13)); in SET_JOININFO_ISHESTA()
1606 static inline void SET_JOININFO_DLBW(void *h2c, u32 val) in SET_JOININFO_DLBW() argument
1608 le32p_replace_bits((__le32 *)h2c, val, GENMASK(15, 14)); in SET_JOININFO_DLBW()
1611 static inline void SET_JOININFO_TF_MAC_PAD(void *h2c, u32 val) in SET_JOININFO_TF_MAC_PAD() argument
1613 le32p_replace_bits((__le32 *)h2c, val, GENMASK(17, 16)); in SET_JOININFO_TF_MAC_PAD()
1616 static inline void SET_JOININFO_DL_T_PE(void *h2c, u32 val) in SET_JOININFO_DL_T_PE() argument
1618 le32p_replace_bits((__le32 *)h2c, val, GENMASK(20, 18)); in SET_JOININFO_DL_T_PE()
1621 static inline void SET_JOININFO_PORT_ID(void *h2c, u32 val) in SET_JOININFO_PORT_ID() argument
1623 le32p_replace_bits((__le32 *)h2c, val, GENMASK(23, 21)); in SET_JOININFO_PORT_ID()
1626 static inline void SET_JOININFO_NET_TYPE(void *h2c, u32 val) in SET_JOININFO_NET_TYPE() argument
1628 le32p_replace_bits((__le32 *)h2c, val, GENMASK(25, 24)); in SET_JOININFO_NET_TYPE()
1631 static inline void SET_JOININFO_WIFI_ROLE(void *h2c, u32 val) in SET_JOININFO_WIFI_ROLE() argument
1633 le32p_replace_bits((__le32 *)h2c, val, GENMASK(29, 26)); in SET_JOININFO_WIFI_ROLE()
1636 static inline void SET_JOININFO_SELF_ROLE(void *h2c, u32 val) in SET_JOININFO_SELF_ROLE() argument
1638 le32p_replace_bits((__le32 *)h2c, val, GENMASK(31, 30)); in SET_JOININFO_SELF_ROLE()
1641 static inline void SET_GENERAL_PKT_MACID(void *h2c, u32 val) in SET_GENERAL_PKT_MACID() argument
1643 le32p_replace_bits((__le32 *)h2c, val, GENMASK(7, 0)); in SET_GENERAL_PKT_MACID()
1646 static inline void SET_GENERAL_PKT_PROBRSP_ID(void *h2c, u32 val) in SET_GENERAL_PKT_PROBRSP_ID() argument
1648 le32p_replace_bits((__le32 *)h2c, val, GENMASK(15, 8)); in SET_GENERAL_PKT_PROBRSP_ID()
1651 static inline void SET_GENERAL_PKT_PSPOLL_ID(void *h2c, u32 val) in SET_GENERAL_PKT_PSPOLL_ID() argument
1653 le32p_replace_bits((__le32 *)h2c, val, GENMASK(23, 16)); in SET_GENERAL_PKT_PSPOLL_ID()
1656 static inline void SET_GENERAL_PKT_NULL_ID(void *h2c, u32 val) in SET_GENERAL_PKT_NULL_ID() argument
1658 le32p_replace_bits((__le32 *)h2c, val, GENMASK(31, 24)); in SET_GENERAL_PKT_NULL_ID()
1661 static inline void SET_GENERAL_PKT_QOS_NULL_ID(void *h2c, u32 val) in SET_GENERAL_PKT_QOS_NULL_ID() argument
1663 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(7, 0)); in SET_GENERAL_PKT_QOS_NULL_ID()
1666 static inline void SET_GENERAL_PKT_CTS2SELF_ID(void *h2c, u32 val) in SET_GENERAL_PKT_CTS2SELF_ID() argument
1668 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(15, 8)); in SET_GENERAL_PKT_CTS2SELF_ID()
1671 static inline void SET_LOG_CFG_LEVEL(void *h2c, u32 val) in SET_LOG_CFG_LEVEL() argument
1673 le32p_replace_bits((__le32 *)h2c, val, GENMASK(7, 0)); in SET_LOG_CFG_LEVEL()
1676 static inline void SET_LOG_CFG_PATH(void *h2c, u32 val) in SET_LOG_CFG_PATH() argument
1678 le32p_replace_bits((__le32 *)h2c, val, GENMASK(15, 8)); in SET_LOG_CFG_PATH()
1681 static inline void SET_LOG_CFG_COMP(void *h2c, u32 val) in SET_LOG_CFG_COMP() argument
1683 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(31, 0)); in SET_LOG_CFG_COMP()
1686 static inline void SET_LOG_CFG_COMP_EXT(void *h2c, u32 val) in SET_LOG_CFG_COMP_EXT() argument
1688 le32p_replace_bits((__le32 *)(h2c) + 2, val, GENMASK(31, 0)); in SET_LOG_CFG_COMP_EXT()
1691 static inline void SET_BA_CAM_VALID(void *h2c, u32 val) in SET_BA_CAM_VALID() argument
1693 le32p_replace_bits((__le32 *)h2c, val, BIT(0)); in SET_BA_CAM_VALID()
1696 static inline void SET_BA_CAM_INIT_REQ(void *h2c, u32 val) in SET_BA_CAM_INIT_REQ() argument
1698 le32p_replace_bits((__le32 *)h2c, val, BIT(1)); in SET_BA_CAM_INIT_REQ()
1701 static inline void SET_BA_CAM_ENTRY_IDX(void *h2c, u32 val) in SET_BA_CAM_ENTRY_IDX() argument
1703 le32p_replace_bits((__le32 *)h2c, val, GENMASK(3, 2)); in SET_BA_CAM_ENTRY_IDX()
1706 static inline void SET_BA_CAM_TID(void *h2c, u32 val) in SET_BA_CAM_TID() argument
1708 le32p_replace_bits((__le32 *)h2c, val, GENMASK(7, 4)); in SET_BA_CAM_TID()
1711 static inline void SET_BA_CAM_MACID(void *h2c, u32 val) in SET_BA_CAM_MACID() argument
1713 le32p_replace_bits((__le32 *)h2c, val, GENMASK(15, 8)); in SET_BA_CAM_MACID()
1716 static inline void SET_BA_CAM_BMAP_SIZE(void *h2c, u32 val) in SET_BA_CAM_BMAP_SIZE() argument
1718 le32p_replace_bits((__le32 *)h2c, val, GENMASK(19, 16)); in SET_BA_CAM_BMAP_SIZE()
1721 static inline void SET_BA_CAM_SSN(void *h2c, u32 val) in SET_BA_CAM_SSN() argument
1723 le32p_replace_bits((__le32 *)h2c, val, GENMASK(31, 20)); in SET_BA_CAM_SSN()
1726 static inline void SET_BA_CAM_UID(void *h2c, u32 val) in SET_BA_CAM_UID() argument
1728 le32p_replace_bits((__le32 *)h2c + 1, val, GENMASK(7, 0)); in SET_BA_CAM_UID()
1731 static inline void SET_BA_CAM_STD_EN(void *h2c, u32 val) in SET_BA_CAM_STD_EN() argument
1733 le32p_replace_bits((__le32 *)h2c + 1, val, BIT(8)); in SET_BA_CAM_STD_EN()
1736 static inline void SET_BA_CAM_BAND(void *h2c, u32 val) in SET_BA_CAM_BAND() argument
1738 le32p_replace_bits((__le32 *)h2c + 1, val, BIT(9)); in SET_BA_CAM_BAND()
1741 static inline void SET_BA_CAM_ENTRY_IDX_V1(void *h2c, u32 val) in SET_BA_CAM_ENTRY_IDX_V1() argument
1743 le32p_replace_bits((__le32 *)h2c + 1, val, GENMASK(31, 28)); in SET_BA_CAM_ENTRY_IDX_V1()
1746 static inline void SET_LPS_PARM_MACID(void *h2c, u32 val) in SET_LPS_PARM_MACID() argument
1748 le32p_replace_bits((__le32 *)h2c, val, GENMASK(7, 0)); in SET_LPS_PARM_MACID()
1751 static inline void SET_LPS_PARM_PSMODE(void *h2c, u32 val) in SET_LPS_PARM_PSMODE() argument
1753 le32p_replace_bits((__le32 *)h2c, val, GENMASK(15, 8)); in SET_LPS_PARM_PSMODE()
1756 static inline void SET_LPS_PARM_RLBM(void *h2c, u32 val) in SET_LPS_PARM_RLBM() argument
1758 le32p_replace_bits((__le32 *)h2c, val, GENMASK(19, 16)); in SET_LPS_PARM_RLBM()
1761 static inline void SET_LPS_PARM_SMARTPS(void *h2c, u32 val) in SET_LPS_PARM_SMARTPS() argument
1763 le32p_replace_bits((__le32 *)h2c, val, GENMASK(23, 20)); in SET_LPS_PARM_SMARTPS()
1766 static inline void SET_LPS_PARM_AWAKEINTERVAL(void *h2c, u32 val) in SET_LPS_PARM_AWAKEINTERVAL() argument
1768 le32p_replace_bits((__le32 *)h2c, val, GENMASK(31, 24)); in SET_LPS_PARM_AWAKEINTERVAL()
1771 static inline void SET_LPS_PARM_VOUAPSD(void *h2c, u32 val) in SET_LPS_PARM_VOUAPSD() argument
1773 le32p_replace_bits((__le32 *)(h2c) + 1, val, BIT(0)); in SET_LPS_PARM_VOUAPSD()
1776 static inline void SET_LPS_PARM_VIUAPSD(void *h2c, u32 val) in SET_LPS_PARM_VIUAPSD() argument
1778 le32p_replace_bits((__le32 *)(h2c) + 1, val, BIT(1)); in SET_LPS_PARM_VIUAPSD()
1781 static inline void SET_LPS_PARM_BEUAPSD(void *h2c, u32 val) in SET_LPS_PARM_BEUAPSD() argument
1783 le32p_replace_bits((__le32 *)(h2c) + 1, val, BIT(2)); in SET_LPS_PARM_BEUAPSD()
1786 static inline void SET_LPS_PARM_BKUAPSD(void *h2c, u32 val) in SET_LPS_PARM_BKUAPSD() argument
1788 le32p_replace_bits((__le32 *)(h2c) + 1, val, BIT(3)); in SET_LPS_PARM_BKUAPSD()
1791 static inline void SET_LPS_PARM_LASTRPWM(void *h2c, u32 val) in SET_LPS_PARM_LASTRPWM() argument
1793 le32p_replace_bits((__le32 *)(h2c) + 1, val, GENMASK(15, 8)); in SET_LPS_PARM_LASTRPWM()
1796 static inline void RTW89_SET_FWCMD_CPU_EXCEPTION_TYPE(void *cmd, u32 val) in RTW89_SET_FWCMD_CPU_EXCEPTION_TYPE() argument
1798 le32p_replace_bits((__le32 *)cmd, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_CPU_EXCEPTION_TYPE()
1849 static inline void RTW89_SET_FWCMD_CXHDR_TYPE(void *cmd, u8 val) in RTW89_SET_FWCMD_CXHDR_TYPE() argument
1851 u8p_replace_bits((u8 *)(cmd) + 0, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXHDR_TYPE()
1854 static inline void RTW89_SET_FWCMD_CXHDR_LEN(void *cmd, u8 val) in RTW89_SET_FWCMD_CXHDR_LEN() argument
1856 u8p_replace_bits((u8 *)(cmd) + 1, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXHDR_LEN()
1859 static inline void RTW89_SET_FWCMD_CXINIT_ANT_TYPE(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_ANT_TYPE() argument
1861 u8p_replace_bits((u8 *)(cmd) + 2, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXINIT_ANT_TYPE()
1864 static inline void RTW89_SET_FWCMD_CXINIT_ANT_NUM(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_ANT_NUM() argument
1866 u8p_replace_bits((u8 *)(cmd) + 3, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXINIT_ANT_NUM()
1869 static inline void RTW89_SET_FWCMD_CXINIT_ANT_ISO(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_ANT_ISO() argument
1871 u8p_replace_bits((u8 *)(cmd) + 4, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXINIT_ANT_ISO()
1874 static inline void RTW89_SET_FWCMD_CXINIT_ANT_POS(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_ANT_POS() argument
1876 u8p_replace_bits((u8 *)(cmd) + 5, val, BIT(0)); in RTW89_SET_FWCMD_CXINIT_ANT_POS()
1879 static inline void RTW89_SET_FWCMD_CXINIT_ANT_DIVERSITY(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_ANT_DIVERSITY() argument
1881 u8p_replace_bits((u8 *)(cmd) + 5, val, BIT(1)); in RTW89_SET_FWCMD_CXINIT_ANT_DIVERSITY()
1884 static inline void RTW89_SET_FWCMD_CXINIT_MOD_RFE(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_MOD_RFE() argument
1886 u8p_replace_bits((u8 *)(cmd) + 6, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXINIT_MOD_RFE()
1889 static inline void RTW89_SET_FWCMD_CXINIT_MOD_CV(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_MOD_CV() argument
1891 u8p_replace_bits((u8 *)(cmd) + 7, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXINIT_MOD_CV()
1894 static inline void RTW89_SET_FWCMD_CXINIT_MOD_BT_SOLO(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_MOD_BT_SOLO() argument
1896 u8p_replace_bits((u8 *)(cmd) + 8, val, BIT(0)); in RTW89_SET_FWCMD_CXINIT_MOD_BT_SOLO()
1899 static inline void RTW89_SET_FWCMD_CXINIT_MOD_BT_POS(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_MOD_BT_POS() argument
1901 u8p_replace_bits((u8 *)(cmd) + 8, val, BIT(1)); in RTW89_SET_FWCMD_CXINIT_MOD_BT_POS()
1904 static inline void RTW89_SET_FWCMD_CXINIT_MOD_SW_TYPE(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_MOD_SW_TYPE() argument
1906 u8p_replace_bits((u8 *)(cmd) + 8, val, BIT(2)); in RTW89_SET_FWCMD_CXINIT_MOD_SW_TYPE()
1909 static inline void RTW89_SET_FWCMD_CXINIT_WL_GCH(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_WL_GCH() argument
1911 u8p_replace_bits((u8 *)(cmd) + 10, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXINIT_WL_GCH()
1914 static inline void RTW89_SET_FWCMD_CXINIT_WL_ONLY(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_WL_ONLY() argument
1916 u8p_replace_bits((u8 *)(cmd) + 11, val, BIT(0)); in RTW89_SET_FWCMD_CXINIT_WL_ONLY()
1919 static inline void RTW89_SET_FWCMD_CXINIT_WL_INITOK(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_WL_INITOK() argument
1921 u8p_replace_bits((u8 *)(cmd) + 11, val, BIT(1)); in RTW89_SET_FWCMD_CXINIT_WL_INITOK()
1924 static inline void RTW89_SET_FWCMD_CXINIT_DBCC_EN(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_DBCC_EN() argument
1926 u8p_replace_bits((u8 *)(cmd) + 11, val, BIT(2)); in RTW89_SET_FWCMD_CXINIT_DBCC_EN()
1929 static inline void RTW89_SET_FWCMD_CXINIT_CX_OTHER(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_CX_OTHER() argument
1931 u8p_replace_bits((u8 *)(cmd) + 11, val, BIT(3)); in RTW89_SET_FWCMD_CXINIT_CX_OTHER()
1934 static inline void RTW89_SET_FWCMD_CXINIT_BT_ONLY(void *cmd, u8 val) in RTW89_SET_FWCMD_CXINIT_BT_ONLY() argument
1936 u8p_replace_bits((u8 *)(cmd) + 11, val, BIT(4)); in RTW89_SET_FWCMD_CXINIT_BT_ONLY()
1939 static inline void RTW89_SET_FWCMD_CXROLE_CONNECT_CNT(void *cmd, u8 val) in RTW89_SET_FWCMD_CXROLE_CONNECT_CNT() argument
1941 u8p_replace_bits((u8 *)(cmd) + 2, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXROLE_CONNECT_CNT()
1944 static inline void RTW89_SET_FWCMD_CXROLE_LINK_MODE(void *cmd, u8 val) in RTW89_SET_FWCMD_CXROLE_LINK_MODE() argument
1946 u8p_replace_bits((u8 *)(cmd) + 3, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXROLE_LINK_MODE()
1949 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_NONE(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_NONE() argument
1951 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(0)); in RTW89_SET_FWCMD_CXROLE_ROLE_NONE()
1954 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_STA(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_STA() argument
1956 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(1)); in RTW89_SET_FWCMD_CXROLE_ROLE_STA()
1959 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_AP(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_AP() argument
1961 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(2)); in RTW89_SET_FWCMD_CXROLE_ROLE_AP()
1964 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_VAP(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_VAP() argument
1966 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(3)); in RTW89_SET_FWCMD_CXROLE_ROLE_VAP()
1969 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_ADHOC(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_ADHOC() argument
1971 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(4)); in RTW89_SET_FWCMD_CXROLE_ROLE_ADHOC()
1974 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_ADHOC_MASTER(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_ADHOC_MASTER() argument
1976 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(5)); in RTW89_SET_FWCMD_CXROLE_ROLE_ADHOC_MASTER()
1979 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_MESH(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_MESH() argument
1981 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(6)); in RTW89_SET_FWCMD_CXROLE_ROLE_MESH()
1984 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_MONITOR(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_MONITOR() argument
1986 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(7)); in RTW89_SET_FWCMD_CXROLE_ROLE_MONITOR()
1989 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_P2P_DEV(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_P2P_DEV() argument
1991 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(8)); in RTW89_SET_FWCMD_CXROLE_ROLE_P2P_DEV()
1994 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_P2P_GC(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_P2P_GC() argument
1996 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(9)); in RTW89_SET_FWCMD_CXROLE_ROLE_P2P_GC()
1999 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_P2P_GO(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_P2P_GO() argument
2001 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(10)); in RTW89_SET_FWCMD_CXROLE_ROLE_P2P_GO()
2004 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_NAN(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_NAN() argument
2006 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(11)); in RTW89_SET_FWCMD_CXROLE_ROLE_NAN()
2009 static inline void RTW89_SET_FWCMD_CXROLE_ACT_CONNECTED(void *cmd, u8 val, int n) in RTW89_SET_FWCMD_CXROLE_ACT_CONNECTED() argument
2011 u8p_replace_bits((u8 *)(cmd) + (6 + 12 * (n)), val, BIT(0)); in RTW89_SET_FWCMD_CXROLE_ACT_CONNECTED()
2014 static inline void RTW89_SET_FWCMD_CXROLE_ACT_PID(void *cmd, u8 val, int n) in RTW89_SET_FWCMD_CXROLE_ACT_PID() argument
2016 u8p_replace_bits((u8 *)(cmd) + (6 + 12 * (n)), val, GENMASK(3, 1)); in RTW89_SET_FWCMD_CXROLE_ACT_PID()
2019 static inline void RTW89_SET_FWCMD_CXROLE_ACT_PHY(void *cmd, u8 val, int n) in RTW89_SET_FWCMD_CXROLE_ACT_PHY() argument
2021 u8p_replace_bits((u8 *)(cmd) + (6 + 12 * (n)), val, BIT(4)); in RTW89_SET_FWCMD_CXROLE_ACT_PHY()
2024 static inline void RTW89_SET_FWCMD_CXROLE_ACT_NOA(void *cmd, u8 val, int n) in RTW89_SET_FWCMD_CXROLE_ACT_NOA() argument
2026 u8p_replace_bits((u8 *)(cmd) + (6 + 12 * (n)), val, BIT(5)); in RTW89_SET_FWCMD_CXROLE_ACT_NOA()
2029 static inline void RTW89_SET_FWCMD_CXROLE_ACT_BAND(void *cmd, u8 val, int n) in RTW89_SET_FWCMD_CXROLE_ACT_BAND() argument
2031 u8p_replace_bits((u8 *)(cmd) + (6 + 12 * (n)), val, GENMASK(7, 6)); in RTW89_SET_FWCMD_CXROLE_ACT_BAND()
2034 static inline void RTW89_SET_FWCMD_CXROLE_ACT_CLIENT_PS(void *cmd, u8 val, int n) in RTW89_SET_FWCMD_CXROLE_ACT_CLIENT_PS() argument
2036 u8p_replace_bits((u8 *)(cmd) + (7 + 12 * (n)), val, BIT(0)); in RTW89_SET_FWCMD_CXROLE_ACT_CLIENT_PS()
2039 static inline void RTW89_SET_FWCMD_CXROLE_ACT_BW(void *cmd, u8 val, int n) in RTW89_SET_FWCMD_CXROLE_ACT_BW() argument
2041 u8p_replace_bits((u8 *)(cmd) + (7 + 12 * (n)), val, GENMASK(7, 1)); in RTW89_SET_FWCMD_CXROLE_ACT_BW()
2044 static inline void RTW89_SET_FWCMD_CXROLE_ACT_ROLE(void *cmd, u8 val, int n) in RTW89_SET_FWCMD_CXROLE_ACT_ROLE() argument
2046 u8p_replace_bits((u8 *)(cmd) + (8 + 12 * (n)), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_ROLE()
2049 static inline void RTW89_SET_FWCMD_CXROLE_ACT_CH(void *cmd, u8 val, int n) in RTW89_SET_FWCMD_CXROLE_ACT_CH() argument
2051 u8p_replace_bits((u8 *)(cmd) + (9 + 12 * (n)), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_CH()
2054 static inline void RTW89_SET_FWCMD_CXROLE_ACT_TX_LVL(void *cmd, u16 val, int n) in RTW89_SET_FWCMD_CXROLE_ACT_TX_LVL() argument
2056 le16p_replace_bits((__le16 *)((u8 *)(cmd) + (10 + 12 * (n))), val, GENMASK(15, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_TX_LVL()
2059 static inline void RTW89_SET_FWCMD_CXROLE_ACT_RX_LVL(void *cmd, u16 val, int n) in RTW89_SET_FWCMD_CXROLE_ACT_RX_LVL() argument
2061 le16p_replace_bits((__le16 *)((u8 *)(cmd) + (12 + 12 * (n))), val, GENMASK(15, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_RX_LVL()
2064 static inline void RTW89_SET_FWCMD_CXROLE_ACT_TX_RATE(void *cmd, u16 val, int n) in RTW89_SET_FWCMD_CXROLE_ACT_TX_RATE() argument
2066 le16p_replace_bits((__le16 *)((u8 *)(cmd) + (14 + 12 * (n))), val, GENMASK(15, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_TX_RATE()
2069 static inline void RTW89_SET_FWCMD_CXROLE_ACT_RX_RATE(void *cmd, u16 val, int n) in RTW89_SET_FWCMD_CXROLE_ACT_RX_RATE() argument
2071 le16p_replace_bits((__le16 *)((u8 *)(cmd) + (16 + 12 * (n))), val, GENMASK(15, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_RX_RATE()
2074 static inline void RTW89_SET_FWCMD_CXCTRL_MANUAL(void *cmd, u32 val) in RTW89_SET_FWCMD_CXCTRL_MANUAL() argument
2076 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, BIT(0)); in RTW89_SET_FWCMD_CXCTRL_MANUAL()
2079 static inline void RTW89_SET_FWCMD_CXCTRL_IGNORE_BT(void *cmd, u32 val) in RTW89_SET_FWCMD_CXCTRL_IGNORE_BT() argument
2081 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, BIT(1)); in RTW89_SET_FWCMD_CXCTRL_IGNORE_BT()
2084 static inline void RTW89_SET_FWCMD_CXCTRL_ALWAYS_FREERUN(void *cmd, u32 val) in RTW89_SET_FWCMD_CXCTRL_ALWAYS_FREERUN() argument
2086 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, BIT(2)); in RTW89_SET_FWCMD_CXCTRL_ALWAYS_FREERUN()
2089 static inline void RTW89_SET_FWCMD_CXCTRL_TRACE_STEP(void *cmd, u32 val) in RTW89_SET_FWCMD_CXCTRL_TRACE_STEP() argument
2091 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, GENMASK(18, 3)); in RTW89_SET_FWCMD_CXCTRL_TRACE_STEP()
2094 static inline void RTW89_SET_FWCMD_CXRFK_STATE(void *cmd, u32 val) in RTW89_SET_FWCMD_CXRFK_STATE() argument
2096 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, GENMASK(1, 0)); in RTW89_SET_FWCMD_CXRFK_STATE()
2099 static inline void RTW89_SET_FWCMD_CXRFK_PATH_MAP(void *cmd, u32 val) in RTW89_SET_FWCMD_CXRFK_PATH_MAP() argument
2101 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, GENMASK(5, 2)); in RTW89_SET_FWCMD_CXRFK_PATH_MAP()
2104 static inline void RTW89_SET_FWCMD_CXRFK_PHY_MAP(void *cmd, u32 val) in RTW89_SET_FWCMD_CXRFK_PHY_MAP() argument
2106 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, GENMASK(7, 6)); in RTW89_SET_FWCMD_CXRFK_PHY_MAP()
2109 static inline void RTW89_SET_FWCMD_CXRFK_BAND(void *cmd, u32 val) in RTW89_SET_FWCMD_CXRFK_BAND() argument
2111 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, GENMASK(9, 8)); in RTW89_SET_FWCMD_CXRFK_BAND()
2114 static inline void RTW89_SET_FWCMD_CXRFK_TYPE(void *cmd, u32 val) in RTW89_SET_FWCMD_CXRFK_TYPE() argument
2116 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, GENMASK(17, 10)); in RTW89_SET_FWCMD_CXRFK_TYPE()
2119 static inline void RTW89_SET_FWCMD_PACKET_OFLD_PKT_IDX(void *cmd, u32 val) in RTW89_SET_FWCMD_PACKET_OFLD_PKT_IDX() argument
2121 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_PACKET_OFLD_PKT_IDX()
2124 static inline void RTW89_SET_FWCMD_PACKET_OFLD_PKT_OP(void *cmd, u32 val) in RTW89_SET_FWCMD_PACKET_OFLD_PKT_OP() argument
2126 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(10, 8)); in RTW89_SET_FWCMD_PACKET_OFLD_PKT_OP()
2129 static inline void RTW89_SET_FWCMD_PACKET_OFLD_PKT_LENGTH(void *cmd, u32 val) in RTW89_SET_FWCMD_PACKET_OFLD_PKT_LENGTH() argument
2131 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(31, 16)); in RTW89_SET_FWCMD_PACKET_OFLD_PKT_LENGTH()
2134 static inline void RTW89_SET_FWCMD_SCANOFLD_CH_NUM(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_CH_NUM() argument
2136 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_SCANOFLD_CH_NUM()
2139 static inline void RTW89_SET_FWCMD_SCANOFLD_CH_SIZE(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_CH_SIZE() argument
2141 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(15, 8)); in RTW89_SET_FWCMD_SCANOFLD_CH_SIZE()
2144 static inline void RTW89_SET_FWCMD_CHINFO_PERIOD(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PERIOD() argument
2146 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CHINFO_PERIOD()
2149 static inline void RTW89_SET_FWCMD_CHINFO_DWELL(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_DWELL() argument
2151 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(15, 8)); in RTW89_SET_FWCMD_CHINFO_DWELL()
2154 static inline void RTW89_SET_FWCMD_CHINFO_CENTER_CH(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_CENTER_CH() argument
2156 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(23, 16)); in RTW89_SET_FWCMD_CHINFO_CENTER_CH()
2159 static inline void RTW89_SET_FWCMD_CHINFO_PRI_CH(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PRI_CH() argument
2161 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(31, 24)); in RTW89_SET_FWCMD_CHINFO_PRI_CH()
2164 static inline void RTW89_SET_FWCMD_CHINFO_BW(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_BW() argument
2166 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(2, 0)); in RTW89_SET_FWCMD_CHINFO_BW()
2169 static inline void RTW89_SET_FWCMD_CHINFO_ACTION(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_ACTION() argument
2171 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(7, 3)); in RTW89_SET_FWCMD_CHINFO_ACTION()
2174 static inline void RTW89_SET_FWCMD_CHINFO_NUM_PKT(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_NUM_PKT() argument
2176 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(11, 8)); in RTW89_SET_FWCMD_CHINFO_NUM_PKT()
2179 static inline void RTW89_SET_FWCMD_CHINFO_TX(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_TX() argument
2181 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(12)); in RTW89_SET_FWCMD_CHINFO_TX()
2184 static inline void RTW89_SET_FWCMD_CHINFO_PAUSE_DATA(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PAUSE_DATA() argument
2186 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(13)); in RTW89_SET_FWCMD_CHINFO_PAUSE_DATA()
2189 static inline void RTW89_SET_FWCMD_CHINFO_BAND(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_BAND() argument
2191 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(15, 14)); in RTW89_SET_FWCMD_CHINFO_BAND()
2194 static inline void RTW89_SET_FWCMD_CHINFO_PKT_ID(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT_ID() argument
2196 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(23, 16)); in RTW89_SET_FWCMD_CHINFO_PKT_ID()
2199 static inline void RTW89_SET_FWCMD_CHINFO_DFS(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_DFS() argument
2201 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(24)); in RTW89_SET_FWCMD_CHINFO_DFS()
2204 static inline void RTW89_SET_FWCMD_CHINFO_TX_NULL(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_TX_NULL() argument
2206 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(25)); in RTW89_SET_FWCMD_CHINFO_TX_NULL()
2209 static inline void RTW89_SET_FWCMD_CHINFO_RANDOM(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_RANDOM() argument
2211 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(26)); in RTW89_SET_FWCMD_CHINFO_RANDOM()
2214 static inline void RTW89_SET_FWCMD_CHINFO_CFG_TX(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_CFG_TX() argument
2216 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(27)); in RTW89_SET_FWCMD_CHINFO_CFG_TX()
2219 static inline void RTW89_SET_FWCMD_CHINFO_PKT0(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT0() argument
2221 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 8), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CHINFO_PKT0()
2224 static inline void RTW89_SET_FWCMD_CHINFO_PKT1(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT1() argument
2226 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 8), val, GENMASK(15, 8)); in RTW89_SET_FWCMD_CHINFO_PKT1()
2229 static inline void RTW89_SET_FWCMD_CHINFO_PKT2(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT2() argument
2231 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 8), val, GENMASK(23, 16)); in RTW89_SET_FWCMD_CHINFO_PKT2()
2234 static inline void RTW89_SET_FWCMD_CHINFO_PKT3(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT3() argument
2236 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 8), val, GENMASK(31, 24)); in RTW89_SET_FWCMD_CHINFO_PKT3()
2239 static inline void RTW89_SET_FWCMD_CHINFO_PKT4(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT4() argument
2241 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 12), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CHINFO_PKT4()
2244 static inline void RTW89_SET_FWCMD_CHINFO_PKT5(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT5() argument
2246 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 12), val, GENMASK(15, 8)); in RTW89_SET_FWCMD_CHINFO_PKT5()
2249 static inline void RTW89_SET_FWCMD_CHINFO_PKT6(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT6() argument
2251 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 12), val, GENMASK(23, 16)); in RTW89_SET_FWCMD_CHINFO_PKT6()
2254 static inline void RTW89_SET_FWCMD_CHINFO_PKT7(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT7() argument
2256 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 12), val, GENMASK(31, 24)); in RTW89_SET_FWCMD_CHINFO_PKT7()
2259 static inline void RTW89_SET_FWCMD_CHINFO_POWER_IDX(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_POWER_IDX() argument
2261 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 16), val, GENMASK(15, 0)); in RTW89_SET_FWCMD_CHINFO_POWER_IDX()
2264 static inline void RTW89_SET_FWCMD_SCANOFLD_MACID(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_MACID() argument
2266 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_SCANOFLD_MACID()
2269 static inline void RTW89_SET_FWCMD_SCANOFLD_NORM_CY(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_NORM_CY() argument
2271 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(15, 8)); in RTW89_SET_FWCMD_SCANOFLD_NORM_CY()
2274 static inline void RTW89_SET_FWCMD_SCANOFLD_PORT_ID(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_PORT_ID() argument
2276 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(18, 16)); in RTW89_SET_FWCMD_SCANOFLD_PORT_ID()
2279 static inline void RTW89_SET_FWCMD_SCANOFLD_BAND(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_BAND() argument
2281 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, BIT(19)); in RTW89_SET_FWCMD_SCANOFLD_BAND()
2284 static inline void RTW89_SET_FWCMD_SCANOFLD_OPERATION(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_OPERATION() argument
2286 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(21, 20)); in RTW89_SET_FWCMD_SCANOFLD_OPERATION()
2289 static inline void RTW89_SET_FWCMD_SCANOFLD_TARGET_CH_BAND(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_TARGET_CH_BAND() argument
2291 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(23, 22)); in RTW89_SET_FWCMD_SCANOFLD_TARGET_CH_BAND()
2294 static inline void RTW89_SET_FWCMD_SCANOFLD_NOTIFY_END(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_NOTIFY_END() argument
2296 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(0)); in RTW89_SET_FWCMD_SCANOFLD_NOTIFY_END()
2299 static inline void RTW89_SET_FWCMD_SCANOFLD_TARGET_CH_MODE(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_TARGET_CH_MODE() argument
2301 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(1)); in RTW89_SET_FWCMD_SCANOFLD_TARGET_CH_MODE()
2304 static inline void RTW89_SET_FWCMD_SCANOFLD_START_MODE(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_START_MODE() argument
2306 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(2)); in RTW89_SET_FWCMD_SCANOFLD_START_MODE()
2309 static inline void RTW89_SET_FWCMD_SCANOFLD_SCAN_TYPE(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_SCAN_TYPE() argument
2311 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(4, 3)); in RTW89_SET_FWCMD_SCANOFLD_SCAN_TYPE()
2314 static inline void RTW89_SET_FWCMD_SCANOFLD_TARGET_CH_BW(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_TARGET_CH_BW() argument
2316 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(7, 5)); in RTW89_SET_FWCMD_SCANOFLD_TARGET_CH_BW()
2319 static inline void RTW89_SET_FWCMD_SCANOFLD_TARGET_PRI_CH(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_TARGET_PRI_CH() argument
2321 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(15, 8)); in RTW89_SET_FWCMD_SCANOFLD_TARGET_PRI_CH()
2325 u32 val) in RTW89_SET_FWCMD_SCANOFLD_TARGET_CENTRAL_CH() argument
2327 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(23, 16)); in RTW89_SET_FWCMD_SCANOFLD_TARGET_CENTRAL_CH()
2330 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
2332 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(31, 24)); in RTW89_SET_FWCMD_SCANOFLD_PROBE_REQ_PKT_ID()
2335 static inline void RTW89_SET_FWCMD_SCANOFLD_NORM_PD(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_NORM_PD() argument
2337 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 8), val, GENMASK(15, 0)); in RTW89_SET_FWCMD_SCANOFLD_NORM_PD()
2340 static inline void RTW89_SET_FWCMD_SCANOFLD_SLOW_PD(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_SLOW_PD() argument
2342 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 8), val, GENMASK(23, 16)); in RTW89_SET_FWCMD_SCANOFLD_SLOW_PD()
2345 static inline void RTW89_SET_FWCMD_SCANOFLD_TSF_HIGH(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_TSF_HIGH() argument
2347 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 12), val, GENMASK(31, 0)); in RTW89_SET_FWCMD_SCANOFLD_TSF_HIGH()
2350 static inline void RTW89_SET_FWCMD_SCANOFLD_TSF_SLOW(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_TSF_SLOW() argument
2352 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 16), val, GENMASK(31, 0)); in RTW89_SET_FWCMD_SCANOFLD_TSF_SLOW()
2598 u8 ac, u32 val);