Lines Matching refs:nvs_ptr
241 u8 *nvs_ptr, *nvs_aligned; in wl1271_boot_upload_nvs() local
272 nvs_ptr = (u8 *)wl->nvs->nvs; in wl1271_boot_upload_nvs()
275 nvs_ptr[11] = wl->mac_addr[0]; in wl1271_boot_upload_nvs()
276 nvs_ptr[10] = wl->mac_addr[1]; in wl1271_boot_upload_nvs()
277 nvs_ptr[6] = wl->mac_addr[2]; in wl1271_boot_upload_nvs()
278 nvs_ptr[5] = wl->mac_addr[3]; in wl1271_boot_upload_nvs()
279 nvs_ptr[4] = wl->mac_addr[4]; in wl1271_boot_upload_nvs()
280 nvs_ptr[3] = wl->mac_addr[5]; in wl1271_boot_upload_nvs()
292 while (nvs_ptr[0]) { in wl1271_boot_upload_nvs()
293 burst_len = nvs_ptr[0]; in wl1271_boot_upload_nvs()
294 dest_addr = (nvs_ptr[1] & 0xfe) | ((u32)(nvs_ptr[2] << 8)); in wl1271_boot_upload_nvs()
303 nvs_ptr += 3; in wl1271_boot_upload_nvs()
306 val = (nvs_ptr[0] | (nvs_ptr[1] << 8) in wl1271_boot_upload_nvs()
307 | (nvs_ptr[2] << 16) | (nvs_ptr[3] << 24)); in wl1271_boot_upload_nvs()
314 nvs_ptr += 4; in wl1271_boot_upload_nvs()
323 nvs_ptr = (u8 *)wl->nvs->nvs + in wl1271_boot_upload_nvs()
324 ALIGN(nvs_ptr - (u8 *)wl->nvs->nvs + 7, 4); in wl1271_boot_upload_nvs()
325 nvs_len -= nvs_ptr - (u8 *)wl->nvs->nvs; in wl1271_boot_upload_nvs()
331 nvs_aligned = kmemdup(nvs_ptr, nvs_len, GFP_KERNEL); in wl1271_boot_upload_nvs()