Lines Matching refs:body
55 const struct wfx_hif_cnf_tx *body = buf; in wfx_hif_tx_confirm() local
57 wfx_tx_confirm_cb(wdev, body); in wfx_hif_tx_confirm()
64 const struct wfx_hif_cnf_multi_transmit *body = buf; in wfx_hif_multi_tx_confirm() local
67 WARN(body->num_tx_confs <= 0, "corrupted message"); in wfx_hif_multi_tx_confirm()
68 for (i = 0; i < body->num_tx_confs; i++) in wfx_hif_multi_tx_confirm()
69 wfx_tx_confirm_cb(wdev, &body->tx_conf_payload[i]); in wfx_hif_multi_tx_confirm()
76 const struct wfx_hif_ind_startup *body = buf; in wfx_hif_startup_indication() local
78 if (body->status || body->firmware_type > 4) { in wfx_hif_startup_indication()
82 memcpy(&wdev->hw_caps, body, sizeof(struct wfx_hif_ind_startup)); in wfx_hif_startup_indication()
101 const struct wfx_hif_ind_rx *body = buf; in wfx_hif_receive_indication() local
108 wfx_rx_cb(wvif, body, skb); in wfx_hif_receive_indication()
117 const struct wfx_hif_ind_event *body = buf; in wfx_hif_event_indication() local
118 int type = le32_to_cpu(body->event_id); in wfx_hif_event_indication()
127 wfx_event_report_rssi(wvif, body->event_data.rcpi_rssi); in wfx_hif_event_indication()
138 le32_to_cpu(body->event_data.ps_mode_error)); in wfx_hif_event_indication()
165 const struct wfx_hif_ind_scan_cmpl *body = buf; in wfx_hif_scan_complete_indication() local
172 wfx_scan_complete(wvif, body->num_channels_completed); in wfx_hif_scan_complete_indication()
194 const struct wfx_hif_ind_suspend_resume_tx *body = buf; in wfx_hif_suspend_resume_indication() local
197 if (body->bc_mc_only) { in wfx_hif_suspend_resume_indication()
203 if (body->resume) in wfx_hif_suspend_resume_indication()
208 WARN(body->peer_sta_set, "misunderstood indication"); in wfx_hif_suspend_resume_indication()
210 if (body->resume) in wfx_hif_suspend_resume_indication()
222 const struct wfx_hif_ind_generic *body = buf; in wfx_hif_generic_indication() local
223 int type = le32_to_cpu(body->type); in wfx_hif_generic_indication()
229 dev_info(wdev->dev, "firmware says: %s\n", (char *)&body->data); in wfx_hif_generic_indication()
236 body->data.rx_stats.current_temp); in wfx_hif_generic_indication()
237 memcpy(&wdev->rx_stats, &body->data.rx_stats, sizeof(wdev->rx_stats)); in wfx_hif_generic_indication()
242 memcpy(&wdev->tx_power_loop_info, &body->data.tx_power_loop_info, in wfx_hif_generic_indication()
299 const struct wfx_hif_ind_error *body = buf; in wfx_hif_error_indication() local
300 int type = le32_to_cpu(body->type); in wfx_hif_error_indication()
301 int param = (s8)body->data[0]; in wfx_hif_error_indication()
325 const struct wfx_hif_ind_exception *body = buf; in wfx_hif_exception_indication() local
326 int type = le32_to_cpu(body->type); in wfx_hif_exception_indication()
329 dev_err(wdev->dev, "firmware assert %d\n", le32_to_cpup((__le32 *)body->data)); in wfx_hif_exception_indication()
369 wfx_hif_receive_indication(wdev, hif, hif->body, skb); in wfx_handle_rx()
375 wfx_hif_generic_confirm(wdev, hif, hif->body); in wfx_handle_rx()
381 hif_handlers[i].handler(wdev, hif, hif->body); in wfx_handle_rx()