/drivers/net/wireless/realtek/rtw89/ |
D | fw.h | 3190 #define RTW89_GET_MAC_C2H_REV_ACK_CAT(c2h) \ argument 3191 le32_get_bits(*((const __le32 *)(c2h) + 2), GENMASK(1, 0)) 3192 #define RTW89_GET_MAC_C2H_REV_ACK_CLASS(c2h) \ argument 3193 le32_get_bits(*((const __le32 *)(c2h) + 2), GENMASK(7, 2)) 3194 #define RTW89_GET_MAC_C2H_REV_ACK_FUNC(c2h) \ argument 3195 le32_get_bits(*((const __le32 *)(c2h) + 2), GENMASK(15, 8)) 3196 #define RTW89_GET_MAC_C2H_REV_ACK_H2C_SEQ(c2h) \ argument 3197 le32_get_bits(*((const __le32 *)(c2h) + 2), GENMASK(23, 16)) 3260 #define RTW89_GET_MAC_C2H_PKTOFLD_ID(c2h) \ argument 3261 le32_get_bits(*((const __le32 *)(c2h) + 2), GENMASK(7, 0)) [all …]
|
D | mac.c | 1738 SET_QUOTA(c2h, PLE, 2); in ple_quota_cfg() 4275 rtw89_mac_c2h_macid_pause(struct rtw89_dev *rtwdev, struct sk_buff *c2h, u32 len) in rtw89_mac_c2h_macid_pause() argument 4287 rtw89_mac_c2h_scanofld_rsp(struct rtw89_dev *rtwdev, struct sk_buff *c2h, in rtw89_mac_c2h_scanofld_rsp() argument 4301 tx_fail = RTW89_GET_MAC_C2H_SCANOFLD_TX_FAIL(c2h->data); in rtw89_mac_c2h_scanofld_rsp() 4302 status = RTW89_GET_MAC_C2H_SCANOFLD_STATUS(c2h->data); in rtw89_mac_c2h_scanofld_rsp() 4303 chan = RTW89_GET_MAC_C2H_SCANOFLD_PRI_CH(c2h->data); in rtw89_mac_c2h_scanofld_rsp() 4304 reason = RTW89_GET_MAC_C2H_SCANOFLD_RSP(c2h->data); in rtw89_mac_c2h_scanofld_rsp() 4305 band = RTW89_GET_MAC_C2H_SCANOFLD_BAND(c2h->data); in rtw89_mac_c2h_scanofld_rsp() 4306 actual_period = RTW89_GET_MAC_C2H_ACTUAL_PERIOD(c2h->data); in rtw89_mac_c2h_scanofld_rsp() 4358 const struct rtw89_c2h_mac_bcnfltr_rpt *c2h = in rtw89_mac_bcn_fltr_rpt() local [all …]
|
D | phy.c | 2255 struct sk_buff *c2h; member 2263 const struct rtw89_c2h_ra_rpt *c2h = in rtw89_phy_c2h_ra_rpt_iter() local 2264 (const struct rtw89_c2h_ra_rpt *)ra_data->c2h->data; in rtw89_phy_c2h_ra_rpt_iter() 2274 mac_id = le32_get_bits(c2h->w2, RTW89_C2H_RA_RPT_W2_MACID); in rtw89_phy_c2h_ra_rpt_iter() 2278 rate = le32_get_bits(c2h->w3, RTW89_C2H_RA_RPT_W3_MCSNSS); in rtw89_phy_c2h_ra_rpt_iter() 2279 bw = le32_get_bits(c2h->w3, RTW89_C2H_RA_RPT_W3_BW); in rtw89_phy_c2h_ra_rpt_iter() 2280 giltf = le32_get_bits(c2h->w3, RTW89_C2H_RA_RPT_W3_GILTF); in rtw89_phy_c2h_ra_rpt_iter() 2281 mode = le32_get_bits(c2h->w3, RTW89_C2H_RA_RPT_W3_MD_SEL); in rtw89_phy_c2h_ra_rpt_iter() 2284 t = le32_get_bits(c2h->w2, RTW89_C2H_RA_RPT_W2_MCSNSS_B7); in rtw89_phy_c2h_ra_rpt_iter() 2286 t = le32_get_bits(c2h->w3, RTW89_C2H_RA_RPT_W3_BW_B2); in rtw89_phy_c2h_ra_rpt_iter() [all …]
|
D | fw.c | 3301 static void rtw89_fw_c2h_parse_attr(struct sk_buff *c2h) in rtw89_fw_c2h_parse_attr() argument 3303 const struct rtw89_c2h_hdr *hdr = (const struct rtw89_c2h_hdr *)c2h->data; in rtw89_fw_c2h_parse_attr() 3304 struct rtw89_fw_c2h_attr *attr = RTW89_SKB_C2H_CB(c2h); in rtw89_fw_c2h_parse_attr() 3313 struct sk_buff *c2h) in rtw89_fw_c2h_chk_atomic() argument 3315 struct rtw89_fw_c2h_attr *attr = RTW89_SKB_C2H_CB(c2h); in rtw89_fw_c2h_chk_atomic() 3328 void rtw89_fw_c2h_irqsafe(struct rtw89_dev *rtwdev, struct sk_buff *c2h) in rtw89_fw_c2h_irqsafe() argument 3330 rtw89_fw_c2h_parse_attr(c2h); in rtw89_fw_c2h_irqsafe() 3331 if (!rtw89_fw_c2h_chk_atomic(rtwdev, c2h)) in rtw89_fw_c2h_irqsafe() 3334 rtw89_fw_c2h_cmd_handle(rtwdev, c2h); in rtw89_fw_c2h_irqsafe() 3335 dev_kfree_skb_any(c2h); in rtw89_fw_c2h_irqsafe() [all …]
|
D | core.h | 3204 u16 c2h; member
|
/drivers/net/wireless/realtek/rtw88/ |
D | fw.c | 23 struct rtw_c2h_cmd *c2h; in rtw_fw_c2h_cmd_handle_ext() local 26 c2h = get_c2h_from_skb(skb); in rtw_fw_c2h_cmd_handle_ext() 27 sub_cmd_id = c2h->payload[0]; in rtw_fw_c2h_cmd_handle_ext() 218 struct rtw_c2h_cmd *c2h; in rtw_fw_c2h_cmd_handle() local 223 c2h = (struct rtw_c2h_cmd *)(skb->data + pkt_offset); in rtw_fw_c2h_cmd_handle() 231 switch (c2h->id) { in rtw_fw_c2h_cmd_handle() 236 rtw_coex_bt_info_notify(rtwdev, c2h->payload, len); in rtw_fw_c2h_cmd_handle() 239 rtw_coex_bt_hid_info_notify(rtwdev, c2h->payload, len); in rtw_fw_c2h_cmd_handle() 242 rtw_coex_wl_fwdbginfo_notify(rtwdev, c2h->payload, len); in rtw_fw_c2h_cmd_handle() 245 rtw_fw_bcn_filter_notify(rtwdev, c2h->payload, len); in rtw_fw_c2h_cmd_handle() [all …]
|
D | tx.c | 226 struct rtw_c2h_cmd *c2h; in rtw_tx_report_handle() local 232 c2h = get_c2h_from_skb(skb); in rtw_tx_report_handle() 235 sn = GET_CCX_REPORT_SEQNUM_V0(c2h->payload); in rtw_tx_report_handle() 236 st = GET_CCX_REPORT_STATUS_V0(c2h->payload); in rtw_tx_report_handle() 238 sn = GET_CCX_REPORT_SEQNUM_V1(c2h->payload); in rtw_tx_report_handle() 239 st = GET_CCX_REPORT_STATUS_V1(c2h->payload); in rtw_tx_report_handle()
|
D | coex.c | 607 struct rtw_c2h_cmd *c2h; in get_payload_from_coex_resp() local 611 c2h = (struct rtw_c2h_cmd *)(resp->data + pkt_offset); in get_payload_from_coex_resp() 613 return c2h->payload; in get_payload_from_coex_resp()
|
/drivers/net/wireless/realtek/rtlwifi/ |
D | wifi.h | 158 #define GET_C2H_CMD_ID(c2h) ({u8 *__c2h = c2h; __c2h[0]; }) argument 159 #define GET_C2H_SEQ(c2h) ({u8 *__c2h = c2h; __c2h[1]; }) argument 161 #define GET_C2H_DATA_PTR(c2h) ({u8 *__c2h = c2h; &__c2h[C2H_DATA_OFFSET]; }) argument 163 #define GET_TX_REPORT_SN_V1(c2h) (c2h[6]) argument 164 #define GET_TX_REPORT_ST_V1(c2h) (c2h[0] & 0xC0) argument 165 #define GET_TX_REPORT_RETRY_V1(c2h) (c2h[2] & 0x3F) argument 166 #define GET_TX_REPORT_SN_V2(c2h) (c2h[6]) argument 167 #define GET_TX_REPORT_ST_V2(c2h) (c2h[7] & 0xC0) argument 168 #define GET_TX_REPORT_RETRY_V2(c2h) (c2h[8] & 0x3F) argument
|
/drivers/net/wireless/realtek/rtl8xxxu/ |
D | rtl8xxxu_core.c | 6112 struct rtl8723bu_c2h *c2h; in rtl8xxxu_c2hcmd_callback() local 6126 c2h = (struct rtl8723bu_c2h *)skb->data; in rtl8xxxu_c2hcmd_callback() 6128 switch (c2h->id) { in rtl8xxxu_c2hcmd_callback() 6130 bt_info = c2h->bt_info.bt_info; in rtl8xxxu_c2hcmd_callback() 6142 if (skb->len >= offsetofend(typeof(*c2h), ra_report.bw)) { in rtl8xxxu_c2hcmd_callback() 6143 if (c2h->ra_report.bw == RTL8XXXU_CHANNEL_WIDTH_40) in rtl8xxxu_c2hcmd_callback() 6149 rtl8xxxu_update_ra_report(rarpt, c2h->ra_report.rate, in rtl8xxxu_c2hcmd_callback() 6150 c2h->ra_report.sgi, bw); in rtl8xxxu_c2hcmd_callback() 6163 struct rtl8723bu_c2h *c2h = (struct rtl8723bu_c2h *)skb->data; in rtl8723bu_handle_c2h() local 6170 c2h->id, c2h->seq, len, c2h->bt_info.response_source); in rtl8723bu_handle_c2h() [all …]
|
/drivers/staging/rtl8723bs/core/ |
D | rtw_cmd.c | 222 void *c2h = rtw_cbuf_pop(pevtpriv->c2h_queue); in _rtw_free_evt_priv() local 224 if (c2h && c2h != (void *)pevtpriv) in _rtw_free_evt_priv() 225 kfree(c2h); in _rtw_free_evt_priv()
|