Lines Matching refs:cmd
341 static inline void RTW89_SET_FWCMD_SEC_IDX(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_IDX() argument
343 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_SEC_IDX()
346 static inline void RTW89_SET_FWCMD_SEC_OFFSET(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_OFFSET() argument
348 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(15, 8)); in RTW89_SET_FWCMD_SEC_OFFSET()
351 static inline void RTW89_SET_FWCMD_SEC_LEN(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_LEN() argument
353 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(23, 16)); in RTW89_SET_FWCMD_SEC_LEN()
356 static inline void RTW89_SET_FWCMD_SEC_TYPE(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_TYPE() argument
358 le32p_replace_bits((__le32 *)(cmd) + 0x01, val, GENMASK(3, 0)); in RTW89_SET_FWCMD_SEC_TYPE()
361 static inline void RTW89_SET_FWCMD_SEC_EXT_KEY(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_EXT_KEY() argument
363 le32p_replace_bits((__le32 *)(cmd) + 0x01, val, BIT(4)); in RTW89_SET_FWCMD_SEC_EXT_KEY()
366 static inline void RTW89_SET_FWCMD_SEC_SPP_MODE(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_SPP_MODE() argument
368 le32p_replace_bits((__le32 *)(cmd) + 0x01, val, BIT(5)); in RTW89_SET_FWCMD_SEC_SPP_MODE()
371 static inline void RTW89_SET_FWCMD_SEC_KEY0(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_KEY0() argument
373 le32p_replace_bits((__le32 *)(cmd) + 0x02, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_SEC_KEY0()
376 static inline void RTW89_SET_FWCMD_SEC_KEY1(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_KEY1() argument
378 le32p_replace_bits((__le32 *)(cmd) + 0x03, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_SEC_KEY1()
381 static inline void RTW89_SET_FWCMD_SEC_KEY2(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_KEY2() argument
383 le32p_replace_bits((__le32 *)(cmd) + 0x04, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_SEC_KEY2()
386 static inline void RTW89_SET_FWCMD_SEC_KEY3(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_KEY3() argument
388 le32p_replace_bits((__le32 *)(cmd) + 0x05, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_SEC_KEY3()
391 static inline void RTW89_SET_EDCA_SEL(void *cmd, u32 val) in RTW89_SET_EDCA_SEL() argument
393 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(1, 0)); in RTW89_SET_EDCA_SEL()
396 static inline void RTW89_SET_EDCA_BAND(void *cmd, u32 val) in RTW89_SET_EDCA_BAND() argument
398 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, BIT(3)); in RTW89_SET_EDCA_BAND()
401 static inline void RTW89_SET_EDCA_WMM(void *cmd, u32 val) in RTW89_SET_EDCA_WMM() argument
403 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, BIT(4)); in RTW89_SET_EDCA_WMM()
406 static inline void RTW89_SET_EDCA_AC(void *cmd, u32 val) in RTW89_SET_EDCA_AC() argument
408 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(6, 5)); in RTW89_SET_EDCA_AC()
411 static inline void RTW89_SET_EDCA_PARAM(void *cmd, u32 val) in RTW89_SET_EDCA_PARAM() argument
413 le32p_replace_bits((__le32 *)(cmd) + 0x01, val, GENMASK(31, 0)); in RTW89_SET_EDCA_PARAM()
1843 static inline void RTW89_SET_FWCMD_CPU_EXCEPTION_TYPE(void *cmd, u32 val) in RTW89_SET_FWCMD_CPU_EXCEPTION_TYPE() argument
1845 le32p_replace_bits((__le32 *)cmd, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_CPU_EXCEPTION_TYPE()
1848 static inline void RTW89_SET_FWCMD_PKT_DROP_SEL(void *cmd, u32 val) in RTW89_SET_FWCMD_PKT_DROP_SEL() argument
1850 le32p_replace_bits((__le32 *)cmd, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_PKT_DROP_SEL()
1853 static inline void RTW89_SET_FWCMD_PKT_DROP_MACID(void *cmd, u32 val) in RTW89_SET_FWCMD_PKT_DROP_MACID() argument
1855 le32p_replace_bits((__le32 *)cmd, val, GENMASK(15, 8)); in RTW89_SET_FWCMD_PKT_DROP_MACID()
1858 static inline void RTW89_SET_FWCMD_PKT_DROP_BAND(void *cmd, u32 val) in RTW89_SET_FWCMD_PKT_DROP_BAND() argument
1860 le32p_replace_bits((__le32 *)cmd, val, GENMASK(23, 16)); in RTW89_SET_FWCMD_PKT_DROP_BAND()
1863 static inline void RTW89_SET_FWCMD_PKT_DROP_PORT(void *cmd, u32 val) in RTW89_SET_FWCMD_PKT_DROP_PORT() argument
1865 le32p_replace_bits((__le32 *)cmd, val, GENMASK(31, 24)); in RTW89_SET_FWCMD_PKT_DROP_PORT()
1868 static inline void RTW89_SET_FWCMD_PKT_DROP_MBSSID(void *cmd, u32 val) in RTW89_SET_FWCMD_PKT_DROP_MBSSID() argument
1870 le32p_replace_bits((__le32 *)cmd + 1, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_PKT_DROP_MBSSID()
1873 static inline void RTW89_SET_FWCMD_PKT_DROP_ROLE_A_INFO_TF_TRS(void *cmd, u32 val) in RTW89_SET_FWCMD_PKT_DROP_ROLE_A_INFO_TF_TRS() argument
1875 le32p_replace_bits((__le32 *)cmd + 1, val, GENMASK(15, 8)); in RTW89_SET_FWCMD_PKT_DROP_ROLE_A_INFO_TF_TRS()
1878 static inline void RTW89_SET_FWCMD_PKT_DROP_MACID_BAND_SEL_0(void *cmd, u32 val) in RTW89_SET_FWCMD_PKT_DROP_MACID_BAND_SEL_0() argument
1880 le32p_replace_bits((__le32 *)cmd + 2, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_PKT_DROP_MACID_BAND_SEL_0()
1883 static inline void RTW89_SET_FWCMD_PKT_DROP_MACID_BAND_SEL_1(void *cmd, u32 val) in RTW89_SET_FWCMD_PKT_DROP_MACID_BAND_SEL_1() argument
1885 le32p_replace_bits((__le32 *)cmd + 3, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_PKT_DROP_MACID_BAND_SEL_1()
1888 static inline void RTW89_SET_FWCMD_PKT_DROP_MACID_BAND_SEL_2(void *cmd, u32 val) in RTW89_SET_FWCMD_PKT_DROP_MACID_BAND_SEL_2() argument
1890 le32p_replace_bits((__le32 *)cmd + 4, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_PKT_DROP_MACID_BAND_SEL_2()
1893 static inline void RTW89_SET_FWCMD_PKT_DROP_MACID_BAND_SEL_3(void *cmd, u32 val) in RTW89_SET_FWCMD_PKT_DROP_MACID_BAND_SEL_3() argument
1895 le32p_replace_bits((__le32 *)cmd + 5, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_PKT_DROP_MACID_BAND_SEL_3()
2152 static inline void RTW89_SET_FWCMD_CXHDR_TYPE(void *cmd, u8 val) in RTW89_SET_FWCMD_CXHDR_TYPE() argument
2154 u8p_replace_bits((u8 *)(cmd) + 0, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXHDR_TYPE()
2157 static inline void RTW89_SET_FWCMD_CXHDR_LEN(void *cmd, u8 val) in RTW89_SET_FWCMD_CXHDR_LEN() argument
2159 u8p_replace_bits((u8 *)(cmd) + 1, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXHDR_LEN()
2201 static inline void RTW89_SET_FWCMD_CXROLE_CONNECT_CNT(void *cmd, u8 val) in RTW89_SET_FWCMD_CXROLE_CONNECT_CNT() argument
2203 u8p_replace_bits((u8 *)(cmd) + 2, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXROLE_CONNECT_CNT()
2206 static inline void RTW89_SET_FWCMD_CXROLE_LINK_MODE(void *cmd, u8 val) in RTW89_SET_FWCMD_CXROLE_LINK_MODE() argument
2208 u8p_replace_bits((u8 *)(cmd) + 3, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXROLE_LINK_MODE()
2211 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_NONE(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_NONE() argument
2213 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(0)); in RTW89_SET_FWCMD_CXROLE_ROLE_NONE()
2216 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_STA(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_STA() argument
2218 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(1)); in RTW89_SET_FWCMD_CXROLE_ROLE_STA()
2221 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_AP(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_AP() argument
2223 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(2)); in RTW89_SET_FWCMD_CXROLE_ROLE_AP()
2226 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_VAP(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_VAP() argument
2228 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(3)); in RTW89_SET_FWCMD_CXROLE_ROLE_VAP()
2231 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_ADHOC(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_ADHOC() argument
2233 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(4)); in RTW89_SET_FWCMD_CXROLE_ROLE_ADHOC()
2236 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_ADHOC_MASTER(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_ADHOC_MASTER() argument
2238 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(5)); in RTW89_SET_FWCMD_CXROLE_ROLE_ADHOC_MASTER()
2241 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_MESH(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_MESH() argument
2243 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(6)); in RTW89_SET_FWCMD_CXROLE_ROLE_MESH()
2246 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_MONITOR(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_MONITOR() argument
2248 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(7)); in RTW89_SET_FWCMD_CXROLE_ROLE_MONITOR()
2251 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_P2P_DEV(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_P2P_DEV() argument
2253 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(8)); in RTW89_SET_FWCMD_CXROLE_ROLE_P2P_DEV()
2256 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_P2P_GC(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_P2P_GC() argument
2258 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(9)); in RTW89_SET_FWCMD_CXROLE_ROLE_P2P_GC()
2261 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_P2P_GO(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_P2P_GO() argument
2263 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(10)); in RTW89_SET_FWCMD_CXROLE_ROLE_P2P_GO()
2266 static inline void RTW89_SET_FWCMD_CXROLE_ROLE_NAN(void *cmd, u16 val) in RTW89_SET_FWCMD_CXROLE_ROLE_NAN() argument
2268 le16p_replace_bits((__le16 *)((u8 *)(cmd) + 4), val, BIT(11)); in RTW89_SET_FWCMD_CXROLE_ROLE_NAN()
2271 static inline void RTW89_SET_FWCMD_CXROLE_ACT_CONNECTED(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_CONNECTED() argument
2273 u8p_replace_bits((u8 *)cmd + (6 + (12 + offset) * n), val, BIT(0)); in RTW89_SET_FWCMD_CXROLE_ACT_CONNECTED()
2276 static inline void RTW89_SET_FWCMD_CXROLE_ACT_PID(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_PID() argument
2278 u8p_replace_bits((u8 *)cmd + (6 + (12 + offset) * n), val, GENMASK(3, 1)); in RTW89_SET_FWCMD_CXROLE_ACT_PID()
2281 static inline void RTW89_SET_FWCMD_CXROLE_ACT_PHY(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_PHY() argument
2283 u8p_replace_bits((u8 *)cmd + (6 + (12 + offset) * n), val, BIT(4)); in RTW89_SET_FWCMD_CXROLE_ACT_PHY()
2286 static inline void RTW89_SET_FWCMD_CXROLE_ACT_NOA(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_NOA() argument
2288 u8p_replace_bits((u8 *)cmd + (6 + (12 + offset) * n), val, BIT(5)); in RTW89_SET_FWCMD_CXROLE_ACT_NOA()
2291 static inline void RTW89_SET_FWCMD_CXROLE_ACT_BAND(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_BAND() argument
2293 u8p_replace_bits((u8 *)cmd + (6 + (12 + offset) * n), val, GENMASK(7, 6)); in RTW89_SET_FWCMD_CXROLE_ACT_BAND()
2296 static inline void RTW89_SET_FWCMD_CXROLE_ACT_CLIENT_PS(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_CLIENT_PS() argument
2298 u8p_replace_bits((u8 *)cmd + (7 + (12 + offset) * n), val, BIT(0)); in RTW89_SET_FWCMD_CXROLE_ACT_CLIENT_PS()
2301 static inline void RTW89_SET_FWCMD_CXROLE_ACT_BW(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_BW() argument
2303 u8p_replace_bits((u8 *)cmd + (7 + (12 + offset) * n), val, GENMASK(7, 1)); in RTW89_SET_FWCMD_CXROLE_ACT_BW()
2306 static inline void RTW89_SET_FWCMD_CXROLE_ACT_ROLE(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_ROLE() argument
2308 u8p_replace_bits((u8 *)cmd + (8 + (12 + offset) * n), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_ROLE()
2311 static inline void RTW89_SET_FWCMD_CXROLE_ACT_CH(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_CH() argument
2313 u8p_replace_bits((u8 *)cmd + (9 + (12 + offset) * n), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_CH()
2316 static inline void RTW89_SET_FWCMD_CXROLE_ACT_TX_LVL(void *cmd, u16 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_TX_LVL() argument
2318 le16p_replace_bits((__le16 *)((u8 *)cmd + (10 + (12 + offset) * n)), val, GENMASK(15, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_TX_LVL()
2321 static inline void RTW89_SET_FWCMD_CXROLE_ACT_RX_LVL(void *cmd, u16 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_RX_LVL() argument
2323 le16p_replace_bits((__le16 *)((u8 *)cmd + (12 + (12 + offset) * n)), val, GENMASK(15, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_RX_LVL()
2326 static inline void RTW89_SET_FWCMD_CXROLE_ACT_TX_RATE(void *cmd, u16 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_TX_RATE() argument
2328 le16p_replace_bits((__le16 *)((u8 *)cmd + (14 + (12 + offset) * n)), val, GENMASK(15, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_TX_RATE()
2331 static inline void RTW89_SET_FWCMD_CXROLE_ACT_RX_RATE(void *cmd, u16 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_RX_RATE() argument
2333 le16p_replace_bits((__le16 *)((u8 *)cmd + (16 + (12 + offset) * n)), val, GENMASK(15, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_RX_RATE()
2336 static inline void RTW89_SET_FWCMD_CXROLE_ACT_NOA_DUR(void *cmd, u32 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_NOA_DUR() argument
2338 le32p_replace_bits((__le32 *)((u8 *)cmd + (20 + (12 + offset) * n)), val, GENMASK(31, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_NOA_DUR()
2341 static inline void RTW89_SET_FWCMD_CXROLE_ACT_CONNECTED_V2(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_CONNECTED_V2() argument
2343 u8p_replace_bits((u8 *)cmd + (6 + (12 + offset) * n), val, BIT(0)); in RTW89_SET_FWCMD_CXROLE_ACT_CONNECTED_V2()
2346 static inline void RTW89_SET_FWCMD_CXROLE_ACT_PID_V2(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_PID_V2() argument
2348 u8p_replace_bits((u8 *)cmd + (6 + (12 + offset) * n), val, GENMASK(3, 1)); in RTW89_SET_FWCMD_CXROLE_ACT_PID_V2()
2351 static inline void RTW89_SET_FWCMD_CXROLE_ACT_PHY_V2(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_PHY_V2() argument
2353 u8p_replace_bits((u8 *)cmd + (6 + (12 + offset) * n), val, BIT(4)); in RTW89_SET_FWCMD_CXROLE_ACT_PHY_V2()
2356 static inline void RTW89_SET_FWCMD_CXROLE_ACT_NOA_V2(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_NOA_V2() argument
2358 u8p_replace_bits((u8 *)cmd + (6 + (12 + offset) * n), val, BIT(5)); in RTW89_SET_FWCMD_CXROLE_ACT_NOA_V2()
2361 static inline void RTW89_SET_FWCMD_CXROLE_ACT_BAND_V2(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_BAND_V2() argument
2363 u8p_replace_bits((u8 *)cmd + (6 + (12 + offset) * n), val, GENMASK(7, 6)); in RTW89_SET_FWCMD_CXROLE_ACT_BAND_V2()
2366 static inline void RTW89_SET_FWCMD_CXROLE_ACT_CLIENT_PS_V2(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_CLIENT_PS_V2() argument
2368 u8p_replace_bits((u8 *)cmd + (7 + (12 + offset) * n), val, BIT(0)); in RTW89_SET_FWCMD_CXROLE_ACT_CLIENT_PS_V2()
2371 static inline void RTW89_SET_FWCMD_CXROLE_ACT_BW_V2(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_BW_V2() argument
2373 u8p_replace_bits((u8 *)cmd + (7 + (12 + offset) * n), val, GENMASK(7, 1)); in RTW89_SET_FWCMD_CXROLE_ACT_BW_V2()
2376 static inline void RTW89_SET_FWCMD_CXROLE_ACT_ROLE_V2(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_ROLE_V2() argument
2378 u8p_replace_bits((u8 *)cmd + (8 + (12 + offset) * n), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_ROLE_V2()
2381 static inline void RTW89_SET_FWCMD_CXROLE_ACT_CH_V2(void *cmd, u8 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_CH_V2() argument
2383 u8p_replace_bits((u8 *)cmd + (9 + (12 + offset) * n), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_CH_V2()
2386 static inline void RTW89_SET_FWCMD_CXROLE_ACT_NOA_DUR_V2(void *cmd, u32 val, int n, u8 offset) in RTW89_SET_FWCMD_CXROLE_ACT_NOA_DUR_V2() argument
2388 le32p_replace_bits((__le32 *)((u8 *)cmd + (10 + (12 + offset) * n)), val, GENMASK(31, 0)); in RTW89_SET_FWCMD_CXROLE_ACT_NOA_DUR_V2()
2391 static inline void RTW89_SET_FWCMD_CXROLE_MROLE_TYPE(void *cmd, u32 val, u8 offset) in RTW89_SET_FWCMD_CXROLE_MROLE_TYPE() argument
2393 le32p_replace_bits((__le32 *)((u8 *)cmd + offset), val, GENMASK(31, 0)); in RTW89_SET_FWCMD_CXROLE_MROLE_TYPE()
2396 static inline void RTW89_SET_FWCMD_CXROLE_MROLE_NOA(void *cmd, u32 val, u8 offset) in RTW89_SET_FWCMD_CXROLE_MROLE_NOA() argument
2398 le32p_replace_bits((__le32 *)((u8 *)cmd + offset + 4), val, GENMASK(31, 0)); in RTW89_SET_FWCMD_CXROLE_MROLE_NOA()
2401 static inline void RTW89_SET_FWCMD_CXROLE_DBCC_EN(void *cmd, u32 val, u8 offset) in RTW89_SET_FWCMD_CXROLE_DBCC_EN() argument
2403 le32p_replace_bits((__le32 *)((u8 *)cmd + offset + 8), val, BIT(0)); in RTW89_SET_FWCMD_CXROLE_DBCC_EN()
2406 static inline void RTW89_SET_FWCMD_CXROLE_DBCC_CHG(void *cmd, u32 val, u8 offset) in RTW89_SET_FWCMD_CXROLE_DBCC_CHG() argument
2408 le32p_replace_bits((__le32 *)((u8 *)cmd + offset + 8), val, BIT(1)); in RTW89_SET_FWCMD_CXROLE_DBCC_CHG()
2411 static inline void RTW89_SET_FWCMD_CXROLE_DBCC_2G_PHY(void *cmd, u32 val, u8 offset) in RTW89_SET_FWCMD_CXROLE_DBCC_2G_PHY() argument
2413 le32p_replace_bits((__le32 *)((u8 *)cmd + offset + 8), val, GENMASK(3, 2)); in RTW89_SET_FWCMD_CXROLE_DBCC_2G_PHY()
2416 static inline void RTW89_SET_FWCMD_CXROLE_LINK_MODE_CHG(void *cmd, u32 val, u8 offset) in RTW89_SET_FWCMD_CXROLE_LINK_MODE_CHG() argument
2418 le32p_replace_bits((__le32 *)((u8 *)cmd + offset + 8), val, BIT(4)); in RTW89_SET_FWCMD_CXROLE_LINK_MODE_CHG()
2421 static inline void RTW89_SET_FWCMD_CXCTRL_MANUAL(void *cmd, u32 val) in RTW89_SET_FWCMD_CXCTRL_MANUAL() argument
2423 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, BIT(0)); in RTW89_SET_FWCMD_CXCTRL_MANUAL()
2426 static inline void RTW89_SET_FWCMD_CXCTRL_IGNORE_BT(void *cmd, u32 val) in RTW89_SET_FWCMD_CXCTRL_IGNORE_BT() argument
2428 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, BIT(1)); in RTW89_SET_FWCMD_CXCTRL_IGNORE_BT()
2431 static inline void RTW89_SET_FWCMD_CXCTRL_ALWAYS_FREERUN(void *cmd, u32 val) in RTW89_SET_FWCMD_CXCTRL_ALWAYS_FREERUN() argument
2433 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, BIT(2)); in RTW89_SET_FWCMD_CXCTRL_ALWAYS_FREERUN()
2436 static inline void RTW89_SET_FWCMD_CXCTRL_TRACE_STEP(void *cmd, u32 val) in RTW89_SET_FWCMD_CXCTRL_TRACE_STEP() argument
2438 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, GENMASK(18, 3)); in RTW89_SET_FWCMD_CXCTRL_TRACE_STEP()
2441 static inline void RTW89_SET_FWCMD_CXTRX_TXLV(void *cmd, u8 val) in RTW89_SET_FWCMD_CXTRX_TXLV() argument
2443 u8p_replace_bits((u8 *)cmd + 2, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXTRX_TXLV()
2446 static inline void RTW89_SET_FWCMD_CXTRX_RXLV(void *cmd, u8 val) in RTW89_SET_FWCMD_CXTRX_RXLV() argument
2448 u8p_replace_bits((u8 *)cmd + 3, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXTRX_RXLV()
2451 static inline void RTW89_SET_FWCMD_CXTRX_WLRSSI(void *cmd, u8 val) in RTW89_SET_FWCMD_CXTRX_WLRSSI() argument
2453 u8p_replace_bits((u8 *)cmd + 4, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXTRX_WLRSSI()
2456 static inline void RTW89_SET_FWCMD_CXTRX_BTRSSI(void *cmd, u8 val) in RTW89_SET_FWCMD_CXTRX_BTRSSI() argument
2458 u8p_replace_bits((u8 *)cmd + 5, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXTRX_BTRSSI()
2461 static inline void RTW89_SET_FWCMD_CXTRX_TXPWR(void *cmd, s8 val) in RTW89_SET_FWCMD_CXTRX_TXPWR() argument
2463 u8p_replace_bits((u8 *)cmd + 6, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXTRX_TXPWR()
2466 static inline void RTW89_SET_FWCMD_CXTRX_RXGAIN(void *cmd, s8 val) in RTW89_SET_FWCMD_CXTRX_RXGAIN() argument
2468 u8p_replace_bits((u8 *)cmd + 7, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXTRX_RXGAIN()
2471 static inline void RTW89_SET_FWCMD_CXTRX_BTTXPWR(void *cmd, s8 val) in RTW89_SET_FWCMD_CXTRX_BTTXPWR() argument
2473 u8p_replace_bits((u8 *)cmd + 8, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXTRX_BTTXPWR()
2476 static inline void RTW89_SET_FWCMD_CXTRX_BTRXGAIN(void *cmd, s8 val) in RTW89_SET_FWCMD_CXTRX_BTRXGAIN() argument
2478 u8p_replace_bits((u8 *)cmd + 9, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXTRX_BTRXGAIN()
2481 static inline void RTW89_SET_FWCMD_CXTRX_CN(void *cmd, u8 val) in RTW89_SET_FWCMD_CXTRX_CN() argument
2483 u8p_replace_bits((u8 *)cmd + 10, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXTRX_CN()
2486 static inline void RTW89_SET_FWCMD_CXTRX_NHM(void *cmd, s8 val) in RTW89_SET_FWCMD_CXTRX_NHM() argument
2488 u8p_replace_bits((u8 *)cmd + 11, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXTRX_NHM()
2491 static inline void RTW89_SET_FWCMD_CXTRX_BTPROFILE(void *cmd, u8 val) in RTW89_SET_FWCMD_CXTRX_BTPROFILE() argument
2493 u8p_replace_bits((u8 *)cmd + 12, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXTRX_BTPROFILE()
2496 static inline void RTW89_SET_FWCMD_CXTRX_RSVD2(void *cmd, u8 val) in RTW89_SET_FWCMD_CXTRX_RSVD2() argument
2498 u8p_replace_bits((u8 *)cmd + 13, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CXTRX_RSVD2()
2501 static inline void RTW89_SET_FWCMD_CXTRX_TXRATE(void *cmd, u16 val) in RTW89_SET_FWCMD_CXTRX_TXRATE() argument
2503 le16p_replace_bits((__le16 *)((u8 *)cmd + 14), val, GENMASK(15, 0)); in RTW89_SET_FWCMD_CXTRX_TXRATE()
2506 static inline void RTW89_SET_FWCMD_CXTRX_RXRATE(void *cmd, u16 val) in RTW89_SET_FWCMD_CXTRX_RXRATE() argument
2508 le16p_replace_bits((__le16 *)((u8 *)cmd + 16), val, GENMASK(15, 0)); in RTW89_SET_FWCMD_CXTRX_RXRATE()
2511 static inline void RTW89_SET_FWCMD_CXTRX_TXTP(void *cmd, u32 val) in RTW89_SET_FWCMD_CXTRX_TXTP() argument
2513 le32p_replace_bits((__le32 *)((u8 *)cmd + 18), val, GENMASK(31, 0)); in RTW89_SET_FWCMD_CXTRX_TXTP()
2516 static inline void RTW89_SET_FWCMD_CXTRX_RXTP(void *cmd, u32 val) in RTW89_SET_FWCMD_CXTRX_RXTP() argument
2518 le32p_replace_bits((__le32 *)((u8 *)cmd + 22), val, GENMASK(31, 0)); in RTW89_SET_FWCMD_CXTRX_RXTP()
2521 static inline void RTW89_SET_FWCMD_CXTRX_RXERRRA(void *cmd, u32 val) in RTW89_SET_FWCMD_CXTRX_RXERRRA() argument
2523 le32p_replace_bits((__le32 *)((u8 *)cmd + 26), val, GENMASK(31, 0)); in RTW89_SET_FWCMD_CXTRX_RXERRRA()
2526 static inline void RTW89_SET_FWCMD_CXRFK_STATE(void *cmd, u32 val) in RTW89_SET_FWCMD_CXRFK_STATE() argument
2528 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, GENMASK(1, 0)); in RTW89_SET_FWCMD_CXRFK_STATE()
2531 static inline void RTW89_SET_FWCMD_CXRFK_PATH_MAP(void *cmd, u32 val) in RTW89_SET_FWCMD_CXRFK_PATH_MAP() argument
2533 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, GENMASK(5, 2)); in RTW89_SET_FWCMD_CXRFK_PATH_MAP()
2536 static inline void RTW89_SET_FWCMD_CXRFK_PHY_MAP(void *cmd, u32 val) in RTW89_SET_FWCMD_CXRFK_PHY_MAP() argument
2538 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, GENMASK(7, 6)); in RTW89_SET_FWCMD_CXRFK_PHY_MAP()
2541 static inline void RTW89_SET_FWCMD_CXRFK_BAND(void *cmd, u32 val) in RTW89_SET_FWCMD_CXRFK_BAND() argument
2543 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, GENMASK(9, 8)); in RTW89_SET_FWCMD_CXRFK_BAND()
2546 static inline void RTW89_SET_FWCMD_CXRFK_TYPE(void *cmd, u32 val) in RTW89_SET_FWCMD_CXRFK_TYPE() argument
2548 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 2), val, GENMASK(17, 10)); in RTW89_SET_FWCMD_CXRFK_TYPE()
2551 static inline void RTW89_SET_FWCMD_PACKET_OFLD_PKT_IDX(void *cmd, u32 val) in RTW89_SET_FWCMD_PACKET_OFLD_PKT_IDX() argument
2553 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_PACKET_OFLD_PKT_IDX()
2556 static inline void RTW89_SET_FWCMD_PACKET_OFLD_PKT_OP(void *cmd, u32 val) in RTW89_SET_FWCMD_PACKET_OFLD_PKT_OP() argument
2558 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(10, 8)); in RTW89_SET_FWCMD_PACKET_OFLD_PKT_OP()
2561 static inline void RTW89_SET_FWCMD_PACKET_OFLD_PKT_LENGTH(void *cmd, u32 val) in RTW89_SET_FWCMD_PACKET_OFLD_PKT_LENGTH() argument
2563 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(31, 16)); in RTW89_SET_FWCMD_PACKET_OFLD_PKT_LENGTH()
2566 static inline void RTW89_SET_FWCMD_SCANOFLD_CH_NUM(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_CH_NUM() argument
2568 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_SCANOFLD_CH_NUM()
2571 static inline void RTW89_SET_FWCMD_SCANOFLD_CH_SIZE(void *cmd, u32 val) in RTW89_SET_FWCMD_SCANOFLD_CH_SIZE() argument
2573 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(15, 8)); in RTW89_SET_FWCMD_SCANOFLD_CH_SIZE()
2576 static inline void RTW89_SET_FWCMD_CHINFO_PERIOD(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PERIOD() argument
2578 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CHINFO_PERIOD()
2581 static inline void RTW89_SET_FWCMD_CHINFO_DWELL(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_DWELL() argument
2583 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(15, 8)); in RTW89_SET_FWCMD_CHINFO_DWELL()
2586 static inline void RTW89_SET_FWCMD_CHINFO_CENTER_CH(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_CENTER_CH() argument
2588 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(23, 16)); in RTW89_SET_FWCMD_CHINFO_CENTER_CH()
2591 static inline void RTW89_SET_FWCMD_CHINFO_PRI_CH(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PRI_CH() argument
2593 le32p_replace_bits((__le32 *)((u8 *)(cmd)), val, GENMASK(31, 24)); in RTW89_SET_FWCMD_CHINFO_PRI_CH()
2596 static inline void RTW89_SET_FWCMD_CHINFO_BW(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_BW() argument
2598 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(2, 0)); in RTW89_SET_FWCMD_CHINFO_BW()
2601 static inline void RTW89_SET_FWCMD_CHINFO_ACTION(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_ACTION() argument
2603 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(7, 3)); in RTW89_SET_FWCMD_CHINFO_ACTION()
2606 static inline void RTW89_SET_FWCMD_CHINFO_NUM_PKT(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_NUM_PKT() argument
2608 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(11, 8)); in RTW89_SET_FWCMD_CHINFO_NUM_PKT()
2611 static inline void RTW89_SET_FWCMD_CHINFO_TX(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_TX() argument
2613 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(12)); in RTW89_SET_FWCMD_CHINFO_TX()
2616 static inline void RTW89_SET_FWCMD_CHINFO_PAUSE_DATA(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PAUSE_DATA() argument
2618 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(13)); in RTW89_SET_FWCMD_CHINFO_PAUSE_DATA()
2621 static inline void RTW89_SET_FWCMD_CHINFO_BAND(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_BAND() argument
2623 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(15, 14)); in RTW89_SET_FWCMD_CHINFO_BAND()
2626 static inline void RTW89_SET_FWCMD_CHINFO_PKT_ID(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT_ID() argument
2628 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, GENMASK(23, 16)); in RTW89_SET_FWCMD_CHINFO_PKT_ID()
2631 static inline void RTW89_SET_FWCMD_CHINFO_DFS(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_DFS() argument
2633 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(24)); in RTW89_SET_FWCMD_CHINFO_DFS()
2636 static inline void RTW89_SET_FWCMD_CHINFO_TX_NULL(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_TX_NULL() argument
2638 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(25)); in RTW89_SET_FWCMD_CHINFO_TX_NULL()
2641 static inline void RTW89_SET_FWCMD_CHINFO_RANDOM(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_RANDOM() argument
2643 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(26)); in RTW89_SET_FWCMD_CHINFO_RANDOM()
2646 static inline void RTW89_SET_FWCMD_CHINFO_CFG_TX(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_CFG_TX() argument
2648 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 4), val, BIT(27)); in RTW89_SET_FWCMD_CHINFO_CFG_TX()
2651 static inline void RTW89_SET_FWCMD_CHINFO_PKT0(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT0() argument
2653 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 8), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CHINFO_PKT0()
2656 static inline void RTW89_SET_FWCMD_CHINFO_PKT1(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT1() argument
2658 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 8), val, GENMASK(15, 8)); in RTW89_SET_FWCMD_CHINFO_PKT1()
2661 static inline void RTW89_SET_FWCMD_CHINFO_PKT2(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT2() argument
2663 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 8), val, GENMASK(23, 16)); in RTW89_SET_FWCMD_CHINFO_PKT2()
2666 static inline void RTW89_SET_FWCMD_CHINFO_PKT3(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT3() argument
2668 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 8), val, GENMASK(31, 24)); in RTW89_SET_FWCMD_CHINFO_PKT3()
2671 static inline void RTW89_SET_FWCMD_CHINFO_PKT4(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT4() argument
2673 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 12), val, GENMASK(7, 0)); in RTW89_SET_FWCMD_CHINFO_PKT4()
2676 static inline void RTW89_SET_FWCMD_CHINFO_PKT5(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT5() argument
2678 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 12), val, GENMASK(15, 8)); in RTW89_SET_FWCMD_CHINFO_PKT5()
2681 static inline void RTW89_SET_FWCMD_CHINFO_PKT6(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT6() argument
2683 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 12), val, GENMASK(23, 16)); in RTW89_SET_FWCMD_CHINFO_PKT6()
2686 static inline void RTW89_SET_FWCMD_CHINFO_PKT7(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_PKT7() argument
2688 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 12), val, GENMASK(31, 24)); in RTW89_SET_FWCMD_CHINFO_PKT7()
2691 static inline void RTW89_SET_FWCMD_CHINFO_POWER_IDX(void *cmd, u32 val) in RTW89_SET_FWCMD_CHINFO_POWER_IDX() argument
2693 le32p_replace_bits((__le32 *)((u8 *)(cmd) + 16), val, GENMASK(15, 0)); in RTW89_SET_FWCMD_CHINFO_POWER_IDX()
2723 static inline void RTW89_SET_FWCMD_P2P_MACID(void *cmd, u32 val) in RTW89_SET_FWCMD_P2P_MACID() argument
2725 le32p_replace_bits((__le32 *)cmd, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_P2P_MACID()
2728 static inline void RTW89_SET_FWCMD_P2P_P2PID(void *cmd, u32 val) in RTW89_SET_FWCMD_P2P_P2PID() argument
2730 le32p_replace_bits((__le32 *)cmd, val, GENMASK(11, 8)); in RTW89_SET_FWCMD_P2P_P2PID()
2733 static inline void RTW89_SET_FWCMD_P2P_NOAID(void *cmd, u32 val) in RTW89_SET_FWCMD_P2P_NOAID() argument
2735 le32p_replace_bits((__le32 *)cmd, val, GENMASK(15, 12)); in RTW89_SET_FWCMD_P2P_NOAID()
2738 static inline void RTW89_SET_FWCMD_P2P_ACT(void *cmd, u32 val) in RTW89_SET_FWCMD_P2P_ACT() argument
2740 le32p_replace_bits((__le32 *)cmd, val, GENMASK(19, 16)); in RTW89_SET_FWCMD_P2P_ACT()
2743 static inline void RTW89_SET_FWCMD_P2P_TYPE(void *cmd, u32 val) in RTW89_SET_FWCMD_P2P_TYPE() argument
2745 le32p_replace_bits((__le32 *)cmd, val, BIT(20)); in RTW89_SET_FWCMD_P2P_TYPE()
2748 static inline void RTW89_SET_FWCMD_P2P_ALL_SLEP(void *cmd, u32 val) in RTW89_SET_FWCMD_P2P_ALL_SLEP() argument
2750 le32p_replace_bits((__le32 *)cmd, val, BIT(21)); in RTW89_SET_FWCMD_P2P_ALL_SLEP()
2753 static inline void RTW89_SET_FWCMD_NOA_START_TIME(void *cmd, __le32 val) in RTW89_SET_FWCMD_NOA_START_TIME() argument
2755 *((__le32 *)cmd + 1) = val; in RTW89_SET_FWCMD_NOA_START_TIME()
2758 static inline void RTW89_SET_FWCMD_NOA_INTERVAL(void *cmd, __le32 val) in RTW89_SET_FWCMD_NOA_INTERVAL() argument
2760 *((__le32 *)cmd + 2) = val; in RTW89_SET_FWCMD_NOA_INTERVAL()
2763 static inline void RTW89_SET_FWCMD_NOA_DURATION(void *cmd, __le32 val) in RTW89_SET_FWCMD_NOA_DURATION() argument
2765 *((__le32 *)cmd + 3) = val; in RTW89_SET_FWCMD_NOA_DURATION()
2768 static inline void RTW89_SET_FWCMD_NOA_COUNT(void *cmd, u32 val) in RTW89_SET_FWCMD_NOA_COUNT() argument
2770 le32p_replace_bits((__le32 *)(cmd) + 4, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_NOA_COUNT()
2773 static inline void RTW89_SET_FWCMD_NOA_CTWINDOW(void *cmd, u32 val) in RTW89_SET_FWCMD_NOA_CTWINDOW() argument
2780 le32p_replace_bits((__le32 *)(cmd) + 4, ctwnd, GENMASK(23, 8)); in RTW89_SET_FWCMD_NOA_CTWINDOW()
2783 static inline void RTW89_SET_FWCMD_TSF32_TOGL_BAND(void *cmd, u32 val) in RTW89_SET_FWCMD_TSF32_TOGL_BAND() argument
2785 le32p_replace_bits((__le32 *)cmd, val, BIT(0)); in RTW89_SET_FWCMD_TSF32_TOGL_BAND()
2788 static inline void RTW89_SET_FWCMD_TSF32_TOGL_EN(void *cmd, u32 val) in RTW89_SET_FWCMD_TSF32_TOGL_EN() argument
2790 le32p_replace_bits((__le32 *)cmd, val, BIT(1)); in RTW89_SET_FWCMD_TSF32_TOGL_EN()
2793 static inline void RTW89_SET_FWCMD_TSF32_TOGL_PORT(void *cmd, u32 val) in RTW89_SET_FWCMD_TSF32_TOGL_PORT() argument
2795 le32p_replace_bits((__le32 *)cmd, val, GENMASK(4, 2)); in RTW89_SET_FWCMD_TSF32_TOGL_PORT()
2798 static inline void RTW89_SET_FWCMD_TSF32_TOGL_EARLY(void *cmd, u32 val) in RTW89_SET_FWCMD_TSF32_TOGL_EARLY() argument
2800 le32p_replace_bits((__le32 *)cmd, val, GENMASK(31, 16)); in RTW89_SET_FWCMD_TSF32_TOGL_EARLY()
2834 static inline void RTW89_SET_FWCMD_ADD_MCC_MACID(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_MACID() argument
2836 le32p_replace_bits((__le32 *)cmd, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_ADD_MCC_MACID()
2839 static inline void RTW89_SET_FWCMD_ADD_MCC_CENTRAL_CH_SEG0(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_CENTRAL_CH_SEG0() argument
2841 le32p_replace_bits((__le32 *)cmd, val, GENMASK(15, 8)); in RTW89_SET_FWCMD_ADD_MCC_CENTRAL_CH_SEG0()
2844 static inline void RTW89_SET_FWCMD_ADD_MCC_CENTRAL_CH_SEG1(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_CENTRAL_CH_SEG1() argument
2846 le32p_replace_bits((__le32 *)cmd, val, GENMASK(23, 16)); in RTW89_SET_FWCMD_ADD_MCC_CENTRAL_CH_SEG1()
2849 static inline void RTW89_SET_FWCMD_ADD_MCC_PRIMARY_CH(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_PRIMARY_CH() argument
2851 le32p_replace_bits((__le32 *)cmd, val, GENMASK(31, 24)); in RTW89_SET_FWCMD_ADD_MCC_PRIMARY_CH()
2854 static inline void RTW89_SET_FWCMD_ADD_MCC_BANDWIDTH(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_BANDWIDTH() argument
2856 le32p_replace_bits((__le32 *)cmd + 1, val, GENMASK(3, 0)); in RTW89_SET_FWCMD_ADD_MCC_BANDWIDTH()
2859 static inline void RTW89_SET_FWCMD_ADD_MCC_GROUP(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_GROUP() argument
2861 le32p_replace_bits((__le32 *)cmd + 1, val, GENMASK(5, 4)); in RTW89_SET_FWCMD_ADD_MCC_GROUP()
2864 static inline void RTW89_SET_FWCMD_ADD_MCC_C2H_RPT(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_C2H_RPT() argument
2866 le32p_replace_bits((__le32 *)cmd + 1, val, GENMASK(7, 6)); in RTW89_SET_FWCMD_ADD_MCC_C2H_RPT()
2869 static inline void RTW89_SET_FWCMD_ADD_MCC_DIS_TX_NULL(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_DIS_TX_NULL() argument
2871 le32p_replace_bits((__le32 *)cmd + 1, val, BIT(8)); in RTW89_SET_FWCMD_ADD_MCC_DIS_TX_NULL()
2874 static inline void RTW89_SET_FWCMD_ADD_MCC_DIS_SW_RETRY(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_DIS_SW_RETRY() argument
2876 le32p_replace_bits((__le32 *)cmd + 1, val, BIT(9)); in RTW89_SET_FWCMD_ADD_MCC_DIS_SW_RETRY()
2879 static inline void RTW89_SET_FWCMD_ADD_MCC_IN_CURR_CH(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_IN_CURR_CH() argument
2881 le32p_replace_bits((__le32 *)cmd + 1, val, BIT(10)); in RTW89_SET_FWCMD_ADD_MCC_IN_CURR_CH()
2884 static inline void RTW89_SET_FWCMD_ADD_MCC_SW_RETRY_COUNT(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_SW_RETRY_COUNT() argument
2886 le32p_replace_bits((__le32 *)cmd + 1, val, GENMASK(13, 11)); in RTW89_SET_FWCMD_ADD_MCC_SW_RETRY_COUNT()
2889 static inline void RTW89_SET_FWCMD_ADD_MCC_TX_NULL_EARLY(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_TX_NULL_EARLY() argument
2891 le32p_replace_bits((__le32 *)cmd + 1, val, GENMASK(17, 14)); in RTW89_SET_FWCMD_ADD_MCC_TX_NULL_EARLY()
2894 static inline void RTW89_SET_FWCMD_ADD_MCC_BTC_IN_2G(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_BTC_IN_2G() argument
2896 le32p_replace_bits((__le32 *)cmd + 1, val, BIT(18)); in RTW89_SET_FWCMD_ADD_MCC_BTC_IN_2G()
2899 static inline void RTW89_SET_FWCMD_ADD_MCC_PTA_EN(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_PTA_EN() argument
2901 le32p_replace_bits((__le32 *)cmd + 1, val, BIT(19)); in RTW89_SET_FWCMD_ADD_MCC_PTA_EN()
2904 static inline void RTW89_SET_FWCMD_ADD_MCC_RFK_BY_PASS(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_RFK_BY_PASS() argument
2906 le32p_replace_bits((__le32 *)cmd + 1, val, BIT(20)); in RTW89_SET_FWCMD_ADD_MCC_RFK_BY_PASS()
2909 static inline void RTW89_SET_FWCMD_ADD_MCC_CH_BAND_TYPE(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_CH_BAND_TYPE() argument
2911 le32p_replace_bits((__le32 *)cmd + 1, val, GENMASK(22, 21)); in RTW89_SET_FWCMD_ADD_MCC_CH_BAND_TYPE()
2914 static inline void RTW89_SET_FWCMD_ADD_MCC_DURATION(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_DURATION() argument
2916 le32p_replace_bits((__le32 *)cmd + 2, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_ADD_MCC_DURATION()
2919 static inline void RTW89_SET_FWCMD_ADD_MCC_COURTESY_EN(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_COURTESY_EN() argument
2921 le32p_replace_bits((__le32 *)cmd + 3, val, BIT(0)); in RTW89_SET_FWCMD_ADD_MCC_COURTESY_EN()
2924 static inline void RTW89_SET_FWCMD_ADD_MCC_COURTESY_NUM(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_COURTESY_NUM() argument
2926 le32p_replace_bits((__le32 *)cmd + 3, val, GENMASK(15, 8)); in RTW89_SET_FWCMD_ADD_MCC_COURTESY_NUM()
2929 static inline void RTW89_SET_FWCMD_ADD_MCC_COURTESY_TARGET(void *cmd, u32 val) in RTW89_SET_FWCMD_ADD_MCC_COURTESY_TARGET() argument
2931 le32p_replace_bits((__le32 *)cmd + 3, val, GENMASK(23, 16)); in RTW89_SET_FWCMD_ADD_MCC_COURTESY_TARGET()
2949 static inline void RTW89_SET_FWCMD_START_MCC_GROUP(void *cmd, u32 val) in RTW89_SET_FWCMD_START_MCC_GROUP() argument
2951 le32p_replace_bits((__le32 *)cmd, val, GENMASK(1, 0)); in RTW89_SET_FWCMD_START_MCC_GROUP()
2954 static inline void RTW89_SET_FWCMD_START_MCC_BTC_IN_GROUP(void *cmd, u32 val) in RTW89_SET_FWCMD_START_MCC_BTC_IN_GROUP() argument
2956 le32p_replace_bits((__le32 *)cmd, val, BIT(2)); in RTW89_SET_FWCMD_START_MCC_BTC_IN_GROUP()
2959 static inline void RTW89_SET_FWCMD_START_MCC_OLD_GROUP_ACTION(void *cmd, u32 val) in RTW89_SET_FWCMD_START_MCC_OLD_GROUP_ACTION() argument
2961 le32p_replace_bits((__le32 *)cmd, val, GENMASK(4, 3)); in RTW89_SET_FWCMD_START_MCC_OLD_GROUP_ACTION()
2964 static inline void RTW89_SET_FWCMD_START_MCC_OLD_GROUP(void *cmd, u32 val) in RTW89_SET_FWCMD_START_MCC_OLD_GROUP() argument
2966 le32p_replace_bits((__le32 *)cmd, val, GENMASK(6, 5)); in RTW89_SET_FWCMD_START_MCC_OLD_GROUP()
2969 static inline void RTW89_SET_FWCMD_START_MCC_NOTIFY_CNT(void *cmd, u32 val) in RTW89_SET_FWCMD_START_MCC_NOTIFY_CNT() argument
2971 le32p_replace_bits((__le32 *)cmd, val, GENMASK(18, 16)); in RTW89_SET_FWCMD_START_MCC_NOTIFY_CNT()
2974 static inline void RTW89_SET_FWCMD_START_MCC_NOTIFY_RXDBG_EN(void *cmd, u32 val) in RTW89_SET_FWCMD_START_MCC_NOTIFY_RXDBG_EN() argument
2976 le32p_replace_bits((__le32 *)cmd, val, BIT(21)); in RTW89_SET_FWCMD_START_MCC_NOTIFY_RXDBG_EN()
2979 static inline void RTW89_SET_FWCMD_START_MCC_MACID(void *cmd, u32 val) in RTW89_SET_FWCMD_START_MCC_MACID() argument
2981 le32p_replace_bits((__le32 *)cmd, val, GENMASK(31, 24)); in RTW89_SET_FWCMD_START_MCC_MACID()
2984 static inline void RTW89_SET_FWCMD_START_MCC_TSF_LOW(void *cmd, u32 val) in RTW89_SET_FWCMD_START_MCC_TSF_LOW() argument
2986 le32p_replace_bits((__le32 *)cmd + 1, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_START_MCC_TSF_LOW()
2989 static inline void RTW89_SET_FWCMD_START_MCC_TSF_HIGH(void *cmd, u32 val) in RTW89_SET_FWCMD_START_MCC_TSF_HIGH() argument
2991 le32p_replace_bits((__le32 *)cmd + 2, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_START_MCC_TSF_HIGH()
2994 static inline void RTW89_SET_FWCMD_STOP_MCC_MACID(void *cmd, u32 val) in RTW89_SET_FWCMD_STOP_MCC_MACID() argument
2996 le32p_replace_bits((__le32 *)cmd, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_STOP_MCC_MACID()
2999 static inline void RTW89_SET_FWCMD_STOP_MCC_GROUP(void *cmd, u32 val) in RTW89_SET_FWCMD_STOP_MCC_GROUP() argument
3001 le32p_replace_bits((__le32 *)cmd, val, GENMASK(9, 8)); in RTW89_SET_FWCMD_STOP_MCC_GROUP()
3004 static inline void RTW89_SET_FWCMD_STOP_MCC_PREV_GROUPS(void *cmd, u32 val) in RTW89_SET_FWCMD_STOP_MCC_PREV_GROUPS() argument
3006 le32p_replace_bits((__le32 *)cmd, val, BIT(10)); in RTW89_SET_FWCMD_STOP_MCC_PREV_GROUPS()
3009 static inline void RTW89_SET_FWCMD_DEL_MCC_GROUP_GROUP(void *cmd, u32 val) in RTW89_SET_FWCMD_DEL_MCC_GROUP_GROUP() argument
3011 le32p_replace_bits((__le32 *)cmd, val, GENMASK(1, 0)); in RTW89_SET_FWCMD_DEL_MCC_GROUP_GROUP()
3014 static inline void RTW89_SET_FWCMD_DEL_MCC_GROUP_PREV_GROUPS(void *cmd, u32 val) in RTW89_SET_FWCMD_DEL_MCC_GROUP_PREV_GROUPS() argument
3016 le32p_replace_bits((__le32 *)cmd, val, BIT(2)); in RTW89_SET_FWCMD_DEL_MCC_GROUP_PREV_GROUPS()
3019 static inline void RTW89_SET_FWCMD_RESET_MCC_GROUP_GROUP(void *cmd, u32 val) in RTW89_SET_FWCMD_RESET_MCC_GROUP_GROUP() argument
3021 le32p_replace_bits((__le32 *)cmd, val, GENMASK(1, 0)); in RTW89_SET_FWCMD_RESET_MCC_GROUP_GROUP()
3032 static inline void RTW89_SET_FWCMD_MCC_REQ_TSF_GROUP(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_REQ_TSF_GROUP() argument
3034 le32p_replace_bits((__le32 *)cmd, val, GENMASK(1, 0)); in RTW89_SET_FWCMD_MCC_REQ_TSF_GROUP()
3037 static inline void RTW89_SET_FWCMD_MCC_REQ_TSF_MACID_X(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_REQ_TSF_MACID_X() argument
3039 le32p_replace_bits((__le32 *)cmd, val, GENMASK(15, 8)); in RTW89_SET_FWCMD_MCC_REQ_TSF_MACID_X()
3042 static inline void RTW89_SET_FWCMD_MCC_REQ_TSF_MACID_Y(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_REQ_TSF_MACID_Y() argument
3044 le32p_replace_bits((__le32 *)cmd, val, GENMASK(23, 16)); in RTW89_SET_FWCMD_MCC_REQ_TSF_MACID_Y()
3047 static inline void RTW89_SET_FWCMD_MCC_MACID_BITMAP_GROUP(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_MACID_BITMAP_GROUP() argument
3049 le32p_replace_bits((__le32 *)cmd, val, GENMASK(1, 0)); in RTW89_SET_FWCMD_MCC_MACID_BITMAP_GROUP()
3052 static inline void RTW89_SET_FWCMD_MCC_MACID_BITMAP_MACID(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_MACID_BITMAP_MACID() argument
3054 le32p_replace_bits((__le32 *)cmd, val, GENMASK(15, 8)); in RTW89_SET_FWCMD_MCC_MACID_BITMAP_MACID()
3057 static inline void RTW89_SET_FWCMD_MCC_MACID_BITMAP_BITMAP_LENGTH(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_MACID_BITMAP_BITMAP_LENGTH() argument
3059 le32p_replace_bits((__le32 *)cmd, val, GENMASK(23, 16)); in RTW89_SET_FWCMD_MCC_MACID_BITMAP_BITMAP_LENGTH()
3062 static inline void RTW89_SET_FWCMD_MCC_MACID_BITMAP_BITMAP(void *cmd, in RTW89_SET_FWCMD_MCC_MACID_BITMAP_BITMAP() argument
3065 memcpy((__le32 *)cmd + 1, bitmap, len); in RTW89_SET_FWCMD_MCC_MACID_BITMAP_BITMAP()
3068 static inline void RTW89_SET_FWCMD_MCC_SYNC_GROUP(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_SYNC_GROUP() argument
3070 le32p_replace_bits((__le32 *)cmd, val, GENMASK(1, 0)); in RTW89_SET_FWCMD_MCC_SYNC_GROUP()
3073 static inline void RTW89_SET_FWCMD_MCC_SYNC_MACID_SOURCE(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_SYNC_MACID_SOURCE() argument
3075 le32p_replace_bits((__le32 *)cmd, val, GENMASK(15, 8)); in RTW89_SET_FWCMD_MCC_SYNC_MACID_SOURCE()
3078 static inline void RTW89_SET_FWCMD_MCC_SYNC_MACID_TARGET(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_SYNC_MACID_TARGET() argument
3080 le32p_replace_bits((__le32 *)cmd, val, GENMASK(23, 16)); in RTW89_SET_FWCMD_MCC_SYNC_MACID_TARGET()
3083 static inline void RTW89_SET_FWCMD_MCC_SYNC_SYNC_OFFSET(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_SYNC_SYNC_OFFSET() argument
3085 le32p_replace_bits((__le32 *)cmd, val, GENMASK(31, 24)); in RTW89_SET_FWCMD_MCC_SYNC_SYNC_OFFSET()
3101 static inline void RTW89_SET_FWCMD_MCC_SET_DURATION_GROUP(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_SET_DURATION_GROUP() argument
3103 le32p_replace_bits((__le32 *)cmd, val, GENMASK(1, 0)); in RTW89_SET_FWCMD_MCC_SET_DURATION_GROUP()
3107 inline void RTW89_SET_FWCMD_MCC_SET_DURATION_BTC_IN_GROUP(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_SET_DURATION_BTC_IN_GROUP() argument
3109 le32p_replace_bits((__le32 *)cmd, val, BIT(2)); in RTW89_SET_FWCMD_MCC_SET_DURATION_BTC_IN_GROUP()
3113 inline void RTW89_SET_FWCMD_MCC_SET_DURATION_START_MACID(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_SET_DURATION_START_MACID() argument
3115 le32p_replace_bits((__le32 *)cmd, val, GENMASK(15, 8)); in RTW89_SET_FWCMD_MCC_SET_DURATION_START_MACID()
3118 static inline void RTW89_SET_FWCMD_MCC_SET_DURATION_MACID_X(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_SET_DURATION_MACID_X() argument
3120 le32p_replace_bits((__le32 *)cmd, val, GENMASK(23, 16)); in RTW89_SET_FWCMD_MCC_SET_DURATION_MACID_X()
3123 static inline void RTW89_SET_FWCMD_MCC_SET_DURATION_MACID_Y(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_SET_DURATION_MACID_Y() argument
3125 le32p_replace_bits((__le32 *)cmd, val, GENMASK(31, 24)); in RTW89_SET_FWCMD_MCC_SET_DURATION_MACID_Y()
3129 inline void RTW89_SET_FWCMD_MCC_SET_DURATION_START_TSF_LOW(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_SET_DURATION_START_TSF_LOW() argument
3131 le32p_replace_bits((__le32 *)cmd + 1, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_MCC_SET_DURATION_START_TSF_LOW()
3135 inline void RTW89_SET_FWCMD_MCC_SET_DURATION_START_TSF_HIGH(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_SET_DURATION_START_TSF_HIGH() argument
3137 le32p_replace_bits((__le32 *)cmd + 2, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_MCC_SET_DURATION_START_TSF_HIGH()
3141 inline void RTW89_SET_FWCMD_MCC_SET_DURATION_DURATION_X(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_SET_DURATION_DURATION_X() argument
3143 le32p_replace_bits((__le32 *)cmd + 3, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_MCC_SET_DURATION_DURATION_X()
3147 inline void RTW89_SET_FWCMD_MCC_SET_DURATION_DURATION_Y(void *cmd, u32 val) in RTW89_SET_FWCMD_MCC_SET_DURATION_DURATION_Y() argument
3149 le32p_replace_bits((__le32 *)cmd + 4, val, GENMASK(31, 0)); in RTW89_SET_FWCMD_MCC_SET_DURATION_DURATION_Y()