Lines Matching refs:nvs_len
202 size_t nvs_len, burst_len; in wl1271_boot_upload_nvs() local
213 if (wl->nvs_len == sizeof(struct wl128x_nvs_file)) { in wl1271_boot_upload_nvs()
218 wl->nvs_len, in wl1271_boot_upload_nvs()
222 wl->nvs_len = 0; in wl1271_boot_upload_nvs()
227 nvs_len = sizeof(nvs->nvs); in wl1271_boot_upload_nvs()
238 if (wl->nvs_len == sizeof(struct wl1271_nvs_file) || in wl1271_boot_upload_nvs()
239 wl->nvs_len == WL1271_INI_LEGACY_NVS_FILE_SIZE) { in wl1271_boot_upload_nvs()
244 if (wl->nvs_len != sizeof(struct wl1271_nvs_file) && in wl1271_boot_upload_nvs()
245 (wl->nvs_len != WL1271_INI_LEGACY_NVS_FILE_SIZE || in wl1271_boot_upload_nvs()
248 wl->nvs_len, sizeof(struct wl1271_nvs_file)); in wl1271_boot_upload_nvs()
251 wl->nvs_len = 0; in wl1271_boot_upload_nvs()
256 nvs_len = sizeof(nvs->nvs); in wl1271_boot_upload_nvs()
292 if (nvs_ptr + 3 >= (u8 *) wl->nvs + nvs_len) in wl1271_boot_upload_nvs()
307 if (nvs_ptr >= (u8 *) wl->nvs + nvs_len) in wl1271_boot_upload_nvs()
321 if (nvs_ptr >= (u8 *) wl->nvs + nvs_len) in wl1271_boot_upload_nvs()
324 nvs_len -= nvs_ptr - (u8 *)wl->nvs; in wl1271_boot_upload_nvs()
330 nvs_aligned = kmemdup(nvs_ptr, nvs_len, GFP_KERNEL); in wl1271_boot_upload_nvs()
335 wl1271_write(wl, CMD_MBOX_ADDRESS, nvs_aligned, nvs_len, false); in wl1271_boot_upload_nvs()