Home
last modified time | relevance | path

Searched refs:nvram_len (Results 1 – 4 of 4) sorted by relevance

/linux-5.19.10/drivers/firmware/broadcom/
Dbcm47xx_nvram.c34 static size_t nvram_len; variable
66 nvram_len = copy_size; in bcm47xx_nvram_copy()
78 if (nvram_len) { in bcm47xx_nvram_find_and_copy()
151 nvram_len = header.len; in nvram_init()
152 if (nvram_len >= NVRAM_SPACE) { in nvram_init()
154 nvram_len, NVRAM_SPACE); in nvram_init()
155 nvram_len = NVRAM_SPACE - 1; in nvram_init()
158 err = mtd_read(mtd, 0, nvram_len, &nvram_len, in nvram_init()
175 if (!nvram_len) { in bcm47xx_nvram_getenv()
224 if (!nvram_len) { in bcm47xx_nvram_get_contents()
[all …]
/linux-5.19.10/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dfirmware.c52 u32 nvram_len; member
149 if (nvp->nvram_len + cplen + 1 >= BRCMF_FW_MAX_NVRAM_SIZE) in brcmf_nvram_handle_value()
152 memcpy(&nvp->nvram[nvp->nvram_len], skv, cplen); in brcmf_nvram_handle_value()
153 nvp->nvram_len += cplen; in brcmf_nvram_handle_value()
154 nvp->nvram[nvp->nvram_len] = '\0'; in brcmf_nvram_handle_value()
155 nvp->nvram_len++; in brcmf_nvram_handle_value()
242 nvram = kzalloc(nvp->nvram_len + 1 + 3 + sizeof(u32), GFP_KERNEL); in brcmf_fw_strip_multi_v1()
247 if (nvp->nvram_len < BRCMF_FW_NVRAM_DEVPATH_LEN + 6) in brcmf_fw_strip_multi_v1()
261 while (i < nvp->nvram_len - BRCMF_FW_NVRAM_DEVPATH_LEN) { in brcmf_fw_strip_multi_v1()
282 while (i < nvp->nvram_len) { in brcmf_fw_strip_multi_v1()
[all …]
Dpcie.c1533 u32 nvram_len) in brcmf_pcie_download_fw_nvram() argument
1563 nvram_len; in brcmf_pcie_download_fw_nvram()
1564 memcpy_toio(devinfo->tcm + address, nvram, nvram_len); in brcmf_pcie_download_fw_nvram()
1744 u32 i, nvram_len; in brcmf_pcie_setup() local
1757 nvram_len = fwreq->items[BRCMF_PCIE_FW_NVRAM].nv_data.len; in brcmf_pcie_setup()
1775 ret = brcmf_pcie_download_fw_nvram(devinfo, fw, nvram, nvram_len); in brcmf_pcie_setup()
Dsdio.c4209 u32 nvram_len; in brcmf_sdio_firmware_callback() local
4220 nvram_len = fwreq->items[BRCMF_SDIO_FW_NVRAM].nv_data.len; in brcmf_sdio_firmware_callback()
4225 err = brcmf_sdio_download_firmware(bus, code, nvram, nvram_len); in brcmf_sdio_firmware_callback()