Lines Matching refs:nvram_len

55 	u32 nvram_len;  member
157 if (nvp->nvram_len + cplen + 1 >= BRCMF_FW_MAX_NVRAM_SIZE) in brcmf_nvram_handle_value()
160 memcpy(&nvp->nvram[nvp->nvram_len], skv, cplen); in brcmf_nvram_handle_value()
161 nvp->nvram_len += cplen; in brcmf_nvram_handle_value()
162 nvp->nvram[nvp->nvram_len] = '\0'; in brcmf_nvram_handle_value()
163 nvp->nvram_len++; in brcmf_nvram_handle_value()
251 nvram = kzalloc(nvp->nvram_len + 1 + 3 + sizeof(u32), GFP_KERNEL); in brcmf_fw_strip_multi_v1()
256 if (nvp->nvram_len < BRCMF_FW_NVRAM_DEVPATH_LEN + 6) in brcmf_fw_strip_multi_v1()
270 while (i < nvp->nvram_len - BRCMF_FW_NVRAM_DEVPATH_LEN) { in brcmf_fw_strip_multi_v1()
291 while (i < nvp->nvram_len) { in brcmf_fw_strip_multi_v1()
310 nvp->nvram_len = j; in brcmf_fw_strip_multi_v1()
315 nvp->nvram_len = 0; in brcmf_fw_strip_multi_v1()
332 nvram = kzalloc(nvp->nvram_len + 1 + 3 + sizeof(u32), GFP_KERNEL); in brcmf_fw_strip_multi_v2()
334 nvp->nvram_len = 0; in brcmf_fw_strip_multi_v2()
346 while (i < nvp->nvram_len - len) { in brcmf_fw_strip_multi_v2()
365 nvp->nvram_len = j; in brcmf_fw_strip_multi_v2()
373 memcpy(&nvp->nvram[nvp->nvram_len], &BRCMF_FW_DEFAULT_BOARDREV, in brcmf_fw_add_defaults()
375 nvp->nvram_len += strlen(BRCMF_FW_DEFAULT_BOARDREV); in brcmf_fw_add_defaults()
376 nvp->nvram[nvp->nvram_len] = '\0'; in brcmf_fw_add_defaults()
377 nvp->nvram_len++; in brcmf_fw_add_defaults()
384 len = scnprintf(&nvp->nvram[nvp->nvram_len], BRCMF_FW_MACADDR_LEN + 1, in brcmf_fw_add_macaddr()
387 nvp->nvram_len += len + 1; in brcmf_fw_add_macaddr()
424 if (nvp.nvram_len == 0) { in brcmf_fw_nvram_strip()
434 pad = nvp.nvram_len; in brcmf_fw_nvram_strip()
435 *new_length = roundup(nvp.nvram_len + 1, 4); in brcmf_fw_nvram_strip()