Searched refs:h2c_pkt (Results 1 – 2 of 2) sorted by relevance
/drivers/net/wireless/realtek/rtw88/ |
D | fw.h | 280 #define SET_PKT_H2C_CATEGORY(h2c_pkt, value) \ argument 281 le32p_replace_bits((__le32 *)(h2c_pkt) + 0x00, value, GENMASK(6, 0)) 282 #define SET_PKT_H2C_CMD_ID(h2c_pkt, value) \ argument 283 le32p_replace_bits((__le32 *)(h2c_pkt) + 0x00, value, GENMASK(15, 8)) 284 #define SET_PKT_H2C_SUB_CMD_ID(h2c_pkt, value) \ argument 285 le32p_replace_bits((__le32 *)(h2c_pkt) + 0x00, value, GENMASK(31, 16)) 286 #define SET_PKT_H2C_TOTAL_LEN(h2c_pkt, value) \ argument 287 le32p_replace_bits((__le32 *)(h2c_pkt) + 0x01, value, GENMASK(15, 0)) 289 static inline void rtw_h2c_pkt_set_header(u8 *h2c_pkt, u8 sub_id) in rtw_h2c_pkt_set_header() argument 291 SET_PKT_H2C_CATEGORY(h2c_pkt, H2C_PKT_CATEGORY); in rtw_h2c_pkt_set_header() [all …]
|
D | fw.c | 339 static void rtw_fw_send_h2c_packet(struct rtw_dev *rtwdev, u8 *h2c_pkt) in rtw_fw_send_h2c_packet() argument 345 FW_OFFLOAD_H2C_SET_SEQ_NUM(h2c_pkt, rtwdev->h2c.seq); in rtw_fw_send_h2c_packet() 346 ret = rtw_hci_write_data_h2c(rtwdev, h2c_pkt, H2C_PKT_SIZE); in rtw_fw_send_h2c_packet() 358 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in rtw_fw_send_general_info() local 364 rtw_h2c_pkt_set_header(h2c_pkt, H2C_PKT_GENERAL_INFO); in rtw_fw_send_general_info() 366 SET_PKT_H2C_TOTAL_LEN(h2c_pkt, total_size); in rtw_fw_send_general_info() 368 GENERAL_INFO_SET_FW_TX_BOUNDARY(h2c_pkt, in rtw_fw_send_general_info() 372 rtw_fw_send_h2c_packet(rtwdev, h2c_pkt); in rtw_fw_send_general_info() 380 u8 h2c_pkt[H2C_PKT_SIZE] = {0}; in rtw_fw_send_phydm_info() local 392 rtw_h2c_pkt_set_header(h2c_pkt, H2C_PKT_PHYDM_INFO); in rtw_fw_send_phydm_info() [all …]
|