Lines Matching refs:nvs
100 wl1251_error("could not get nvs file: %d", ret);
105 wl1251_error("nvs size is not multiple of 32 bits: %zu",
111 wl->nvs = kmemdup(fw->data, fw->size, GFP_KERNEL);
113 if (!wl->nvs) {
114 wl1251_error("could not allocate memory for the nvs file");
1442 if (wl->nvs[NVS_OFF_MAC_LEN] != 2 ||
1443 wl->nvs[NVS_OFF_MAC_ADDR_LO] != 0x6d ||
1444 wl->nvs[NVS_OFF_MAC_ADDR_HI] != 0x54)
1461 mac[i] = wl->nvs[NVS_OFF_MAC_DATA + ETH_ALEN - i - 1];
1463 /* 00:00:20:07:03:09 is in example file wl1251-nvs.bin, so invalid */
1481 wl->nvs[NVS_OFF_MAC_DATA + i] = wl->mac_addr[ETH_ALEN - i - 1];
1535 if (wl->nvs == NULL && !wl->use_eeprom) {
1559 wl1251_warning("MAC address in eeprom or nvs data is not valid");
1659 kfree(wl->nvs);
1660 wl->nvs = NULL;