Lines Matching refs:frame
224 static bool brcmf_p2p_is_pub_action(void *frame, u32 frame_len) in brcmf_p2p_is_pub_action() argument
228 if (frame == NULL) in brcmf_p2p_is_pub_action()
231 pact_frm = (struct brcmf_p2p_pub_act_frame *)frame; in brcmf_p2p_is_pub_action()
252 static bool brcmf_p2p_is_p2p_action(void *frame, u32 frame_len) in brcmf_p2p_is_p2p_action() argument
256 if (frame == NULL) in brcmf_p2p_is_p2p_action()
259 act_frm = (struct brcmf_p2p_action_frame *)frame; in brcmf_p2p_is_p2p_action()
279 static bool brcmf_p2p_is_gas_action(void *frame, u32 frame_len) in brcmf_p2p_is_gas_action() argument
283 if (frame == NULL) in brcmf_p2p_is_gas_action()
286 sd_act_frm = (struct brcmf_p2psd_gas_pub_act_frame *)frame; in brcmf_p2p_is_gas_action()
314 static void brcmf_p2p_print_actframe(bool tx, void *frame, u32 frame_len) in brcmf_p2p_print_actframe() argument
320 if (!frame || frame_len <= 2) in brcmf_p2p_print_actframe()
323 if (brcmf_p2p_is_pub_action(frame, frame_len)) { in brcmf_p2p_print_actframe()
324 pact_frm = (struct brcmf_p2p_pub_act_frame *)frame; in brcmf_p2p_print_actframe()
367 } else if (brcmf_p2p_is_p2p_action(frame, frame_len)) { in brcmf_p2p_print_actframe()
368 act_frm = (struct brcmf_p2p_action_frame *)frame; in brcmf_p2p_print_actframe()
391 } else if (brcmf_p2p_is_gas_action(frame, frame_len)) { in brcmf_p2p_print_actframe()
392 sd_act_frm = (struct brcmf_p2psd_gas_pub_act_frame *)frame; in brcmf_p2p_print_actframe()
420 static void brcmf_p2p_print_actframe(bool tx, void *frame, u32 frame_len) in brcmf_p2p_print_actframe() argument
1360 u8 *frame = (u8 *)(rxframe + 1); in brcmf_p2p_notify_action_frame_rx() local
1377 brcmf_p2p_print_actframe(false, frame, mgmt_frame_len); in brcmf_p2p_notify_action_frame_rx()
1380 if (brcmf_p2p_is_pub_action(frame, mgmt_frame_len)) { in brcmf_p2p_notify_action_frame_rx()
1381 act_frm = (struct brcmf_p2p_pub_act_frame *)frame; in brcmf_p2p_notify_action_frame_rx()
1403 } else if (brcmf_p2p_is_gas_action(frame, mgmt_frame_len)) { in brcmf_p2p_notify_action_frame_rx()
1404 sd_act_frm = (struct brcmf_p2psd_gas_pub_act_frame *)frame; in brcmf_p2p_notify_action_frame_rx()
1428 memcpy(&mgmt_frame->u, frame, mgmt_frame_len); in brcmf_p2p_notify_action_frame_rx()