Lines Matching refs:nvram_len
62 u32 nvram_len; member
159 if (nvp->nvram_len + cplen + 1 >= BRCMF_FW_MAX_NVRAM_SIZE) in brcmf_nvram_handle_value()
162 memcpy(&nvp->nvram[nvp->nvram_len], skv, cplen); in brcmf_nvram_handle_value()
163 nvp->nvram_len += cplen; in brcmf_nvram_handle_value()
164 nvp->nvram[nvp->nvram_len] = '\0'; in brcmf_nvram_handle_value()
165 nvp->nvram_len++; in brcmf_nvram_handle_value()
250 nvram = kzalloc(nvp->nvram_len + 1 + 3 + sizeof(u32), GFP_KERNEL); in brcmf_fw_strip_multi_v1()
255 if (nvp->nvram_len < BRCMF_FW_NVRAM_DEVPATH_LEN + 6) in brcmf_fw_strip_multi_v1()
269 while (i < nvp->nvram_len - BRCMF_FW_NVRAM_DEVPATH_LEN) { in brcmf_fw_strip_multi_v1()
290 while (i < nvp->nvram_len) { in brcmf_fw_strip_multi_v1()
309 nvp->nvram_len = j; in brcmf_fw_strip_multi_v1()
314 nvp->nvram_len = 0; in brcmf_fw_strip_multi_v1()
331 nvram = kzalloc(nvp->nvram_len + 1 + 3 + sizeof(u32), GFP_KERNEL); in brcmf_fw_strip_multi_v2()
343 while (i < nvp->nvram_len - len) { in brcmf_fw_strip_multi_v2()
362 nvp->nvram_len = j; in brcmf_fw_strip_multi_v2()
366 nvp->nvram_len = 0; in brcmf_fw_strip_multi_v2()
374 memcpy(&nvp->nvram[nvp->nvram_len], &BRCMF_FW_DEFAULT_BOARDREV, in brcmf_fw_add_defaults()
376 nvp->nvram_len += strlen(BRCMF_FW_DEFAULT_BOARDREV); in brcmf_fw_add_defaults()
377 nvp->nvram[nvp->nvram_len] = '\0'; in brcmf_fw_add_defaults()
378 nvp->nvram_len++; in brcmf_fw_add_defaults()
410 if (nvp.nvram_len == 0) { in brcmf_fw_nvram_strip()
417 pad = nvp.nvram_len; in brcmf_fw_nvram_strip()
418 *new_length = roundup(nvp.nvram_len + 1, 4); in brcmf_fw_nvram_strip()