Lines Matching refs:data_len

207 				   const u8 *data, size_t data_len)  in brcmf_init_nvram_parser()  argument
214 if (data_len > BRCMF_FW_MAX_NVRAM_SIZE) in brcmf_init_nvram_parser()
217 size = data_len; in brcmf_init_nvram_parser()
395 static void *brcmf_fw_nvram_strip(const u8 *data, size_t data_len, in brcmf_fw_nvram_strip() argument
405 if (brcmf_init_nvram_parser(&nvp, data, data_len) < 0) in brcmf_fw_nvram_strip()
411 while (nvp.pos < data_len) { in brcmf_fw_nvram_strip()
473 static void brcmf_fw_fix_efi_nvram_ccode(char *data, unsigned long data_len) in brcmf_fw_fix_efi_nvram_ccode() argument
477 ccode = strnstr((char *)data, "ccode=ALL", data_len); in brcmf_fw_fix_efi_nvram_ccode()
479 ccode = strnstr((char *)data, "ccode=XV\r", data_len); in brcmf_fw_fix_efi_nvram_ccode()
492 unsigned long data_len = 0; in brcmf_fw_nvram_from_efi() local
499 status = efi.get_variable(L"nvram", &guid, NULL, &data_len, NULL); in brcmf_fw_nvram_from_efi()
503 data = kmalloc(data_len, GFP_KERNEL); in brcmf_fw_nvram_from_efi()
507 status = efi.get_variable(L"nvram", &guid, NULL, &data_len, data); in brcmf_fw_nvram_from_efi()
511 brcmf_fw_fix_efi_nvram_ccode(data, data_len); in brcmf_fw_nvram_from_efi()
514 *data_len_ret = data_len; in brcmf_fw_nvram_from_efi()
521 static inline u8 *brcmf_fw_nvram_from_efi(size_t *data_len) { return NULL; } in brcmf_fw_nvram_from_efi() argument
547 size_t data_len; in brcmf_fw_request_nvram_done() local
555 data_len = fw->size; in brcmf_fw_request_nvram_done()
557 if ((data = bcm47xx_nvram_get_contents(&data_len))) in brcmf_fw_request_nvram_done()
559 else if ((data = brcmf_fw_nvram_from_efi(&data_len))) in brcmf_fw_request_nvram_done()
566 nvram = brcmf_fw_nvram_strip(data, data_len, &nvram_length, in brcmf_fw_request_nvram_done()