Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/firmware/broadcom/
Dbcm47xx_nvram.c38 static size_t nvram_len; variable
62 if (nvram_len) { in nvram_find_and_copy()
97 nvram_len = ((struct nvram_header *)(nvram_buf))->len; in nvram_find_and_copy()
98 if (nvram_len > size) { in nvram_find_and_copy()
100 nvram_len = size; in nvram_find_and_copy()
102 if (nvram_len >= NVRAM_SPACE) { in nvram_find_and_copy()
104 nvram_len, NVRAM_SPACE - 1); in nvram_find_and_copy()
105 nvram_len = NVRAM_SPACE - 1; in nvram_find_and_copy()
109 DIV_ROUND_UP(nvram_len, 4)); in nvram_find_and_copy()
153 nvram_len = header.len; in nvram_init()
[all …]
/Linux-v4.19/drivers/char/
Dgeneric_nvram.c33 static ssize_t nvram_len; variable
38 MAX_LFS_FILESIZE, nvram_len); in nvram_llseek()
49 if (*ppos >= nvram_len) in read_nvram()
51 for (i = *ppos; count > 0 && i < nvram_len; ++i, ++p, --count) in read_nvram()
67 if (*ppos >= nvram_len) in write_nvram()
69 for (i = *ppos; count > 0 && i < nvram_len; ++i, ++p, --count) { in write_nvram()
144 nvram_len = nvram_get_size(); in nvram_init()
145 if (nvram_len < 0) in nvram_init()
146 nvram_len = NVRAM_SIZE; in nvram_init()
/Linux-v4.19/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dfirmware.c62 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()
[all …]
Dpcie.c1491 u32 nvram_len) in brcmf_pcie_download_fw_nvram() argument
1520 nvram_len; in brcmf_pcie_download_fw_nvram()
1521 brcmf_pcie_copy_mem_todev(devinfo, address, nvram, nvram_len); in brcmf_pcie_download_fw_nvram()
1696 u32 i, nvram_len; in brcmf_pcie_setup() local
1709 nvram_len = fwreq->items[BRCMF_PCIE_FW_NVRAM].nv_data.len; in brcmf_pcie_setup()
1719 ret = brcmf_pcie_download_fw_nvram(devinfo, fw, nvram, nvram_len); in brcmf_pcie_setup()
Dsdio.c4050 u32 nvram_len; in brcmf_sdio_firmware_callback() local
4060 nvram_len = fwreq->items[BRCMF_SDIO_FW_NVRAM].nv_data.len; in brcmf_sdio_firmware_callback()
4065 err = brcmf_sdio_download_firmware(bus, code, nvram, nvram_len); in brcmf_sdio_firmware_callback()