Lines Matching refs:cmdhdr
25 const struct brcmf_vndr_dcmd_hdr *cmdhdr = data; in brcmf_cfg80211_vndr_cmds_dcmd_handler() local
32 if (len < sizeof(*cmdhdr)) { in brcmf_cfg80211_vndr_cmds_dcmd_handler()
40 brcmf_dbg(TRACE, "ifidx=%d, cmd=%d\n", ifp->ifidx, cmdhdr->cmd); in brcmf_cfg80211_vndr_cmds_dcmd_handler()
42 if (cmdhdr->offset > len) { in brcmf_cfg80211_vndr_cmds_dcmd_handler()
43 brcmf_err("bad buffer offset %d > %d\n", cmdhdr->offset, len); in brcmf_cfg80211_vndr_cmds_dcmd_handler()
47 len -= cmdhdr->offset; in brcmf_cfg80211_vndr_cmds_dcmd_handler()
48 ret_len = cmdhdr->len; in brcmf_cfg80211_vndr_cmds_dcmd_handler()
63 memcpy(dcmd_buf, (void *)cmdhdr + cmdhdr->offset, len); in brcmf_cfg80211_vndr_cmds_dcmd_handler()
67 if (cmdhdr->set) in brcmf_cfg80211_vndr_cmds_dcmd_handler()
68 ret = brcmf_fil_cmd_data_set(ifp, cmdhdr->cmd, dcmd_buf, in brcmf_cfg80211_vndr_cmds_dcmd_handler()
71 ret = brcmf_fil_cmd_data_get(ifp, cmdhdr->cmd, dcmd_buf, in brcmf_cfg80211_vndr_cmds_dcmd_handler()