Lines Matching full:len
97 brcmf_fil_cmd_data(struct brcmf_if *ifp, u32 cmd, void *data, u32 len, bool set) in brcmf_fil_cmd_data() argument
108 len = min_t(uint, len, BRCMF_DCMD_MAXLEN); in brcmf_fil_cmd_data()
111 data, len, &fwerr); in brcmf_fil_cmd_data()
114 data, len, &fwerr); in brcmf_fil_cmd_data()
130 brcmf_fil_cmd_data_set(struct brcmf_if *ifp, u32 cmd, void *data, u32 len) in brcmf_fil_cmd_data_set() argument
136 brcmf_dbg(FIL, "ifidx=%d, cmd=%d, len=%d\n", ifp->ifidx, cmd, len); in brcmf_fil_cmd_data_set()
138 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_cmd_data_set()
140 err = brcmf_fil_cmd_data(ifp, cmd, data, len, true); in brcmf_fil_cmd_data_set()
148 brcmf_fil_cmd_data_get(struct brcmf_if *ifp, u32 cmd, void *data, u32 len) in brcmf_fil_cmd_data_get() argument
153 err = brcmf_fil_cmd_data(ifp, cmd, data, len, false); in brcmf_fil_cmd_data_get()
155 brcmf_dbg(FIL, "ifidx=%d, cmd=%d, len=%d, err=%d\n", ifp->ifidx, cmd, in brcmf_fil_cmd_data_get()
156 len, err); in brcmf_fil_cmd_data_get()
158 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_cmd_data_get()
170 u32 len; in brcmf_create_iovar() local
172 len = strlen(name) + 1; in brcmf_create_iovar()
174 if ((len + datalen) > buflen) in brcmf_create_iovar()
177 memcpy(buf, name, len); in brcmf_create_iovar()
181 memcpy(&buf[len], data, datalen); in brcmf_create_iovar()
183 return len + datalen; in brcmf_create_iovar()
189 u32 len) in brcmf_fil_iovar_data_set() argument
197 brcmf_dbg(FIL, "ifidx=%d, name=%s, len=%d\n", ifp->ifidx, name, len); in brcmf_fil_iovar_data_set()
199 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_iovar_data_set()
201 buflen = brcmf_create_iovar(name, data, len, drvr->proto_buf, in brcmf_fil_iovar_data_set()
218 u32 len) in brcmf_fil_iovar_data_get() argument
226 buflen = brcmf_create_iovar(name, data, len, drvr->proto_buf, in brcmf_fil_iovar_data_get()
232 memcpy(data, drvr->proto_buf, len); in brcmf_fil_iovar_data_get()
238 brcmf_dbg(FIL, "ifidx=%d, name=%s, len=%d, err=%d\n", ifp->ifidx, name, in brcmf_fil_iovar_data_get()
239 len, err); in brcmf_fil_iovar_data_get()
241 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_iovar_data_get()
295 void *data, u32 len) in brcmf_fil_bsscfg_data_set() argument
303 brcmf_dbg(FIL, "ifidx=%d, bsscfgidx=%d, name=%s, len=%d\n", ifp->ifidx, in brcmf_fil_bsscfg_data_set()
304 ifp->bsscfgidx, name, len); in brcmf_fil_bsscfg_data_set()
306 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_bsscfg_data_set()
308 buflen = brcmf_create_bsscfg(ifp->bsscfgidx, name, data, len, in brcmf_fil_bsscfg_data_set()
325 void *data, u32 len) in brcmf_fil_bsscfg_data_get() argument
333 buflen = brcmf_create_bsscfg(ifp->bsscfgidx, name, data, len, in brcmf_fil_bsscfg_data_get()
339 memcpy(data, drvr->proto_buf, len); in brcmf_fil_bsscfg_data_get()
344 brcmf_dbg(FIL, "ifidx=%d, bsscfgidx=%d, name=%s, len=%d, err=%d\n", in brcmf_fil_bsscfg_data_get()
345 ifp->ifidx, ifp->bsscfgidx, name, len, err); in brcmf_fil_bsscfg_data_get()
347 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_bsscfg_data_get()
354 static u32 brcmf_create_xtlv(const char *name, u16 id, char *data, u32 len, in brcmf_create_xtlv() argument
361 iolen = nmlen + brcmf_xtlv_data_size(len, BRCMF_XTLV_OPTION_ALIGN32); in brcmf_create_xtlv()
369 brcmf_xtlv_pack_header((void *)(buf + nmlen), id, len, data, in brcmf_create_xtlv()
376 void *data, u32 len) in brcmf_fil_xtlv_data_set() argument
384 brcmf_dbg(FIL, "ifidx=%d, name=%s, id=%u, len=%u\n", ifp->ifidx, name, in brcmf_fil_xtlv_data_set()
385 id, len); in brcmf_fil_xtlv_data_set()
387 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_xtlv_data_set()
389 buflen = brcmf_create_xtlv(name, id, data, len, in brcmf_fil_xtlv_data_set()
405 void *data, u32 len) in brcmf_fil_xtlv_data_get() argument
413 buflen = brcmf_create_xtlv(name, id, data, len, in brcmf_fil_xtlv_data_get()
419 memcpy(data, drvr->proto_buf, len); in brcmf_fil_xtlv_data_get()
424 brcmf_dbg(FIL, "ifidx=%d, name=%s, id=%u, len=%u, err=%d\n", in brcmf_fil_xtlv_data_get()
425 ifp->ifidx, name, id, len, err); in brcmf_fil_xtlv_data_get()
427 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_xtlv_data_get()