Lines Matching full:nvram
1186 * Read and validate current NVRAM parameters by accessing
1187 * physical NVRAM directly. if currently stored parameters are
1197 if (!esas2r_read_flash_block(a, a->nvram, FLS_OFFSET_NVR, in esas2r_nvram_read_direct()
1199 esas2r_hdebug("NVRAM read failed, using defaults"); in esas2r_nvram_read_direct()
1211 /* Interrupt callback to process NVRAM completions. */
1242 /* update the NVRAM state */ in esas2r_nvram_callback()
1255 * Write the contents of nvram to the adapter's physical NVRAM.
1256 * The cached copy of the NVRAM is also updated.
1259 struct esas2r_sas_nvram *nvram) in esas2r_nvram_write() argument
1261 struct esas2r_sas_nvram *n = nvram; in esas2r_nvram_write()
1273 n = a->nvram; in esas2r_nvram_write()
1297 memcpy(a->nvram, n, sizeof(struct esas2r_sas_nvram)); in esas2r_nvram_write()
1299 /* write the NVRAM */ in esas2r_nvram_write()
1300 n = a->nvram; in esas2r_nvram_write()
1329 /* Validate the cached NVRAM. if the NVRAM is invalid, load the defaults. */
1332 struct esas2r_sas_nvram *n = a->nvram; in esas2r_nvram_validate()
1339 esas2r_hdebug("invalid NVRAM signature"); in esas2r_nvram_validate()
1341 esas2r_hdebug("invalid NVRAM checksum"); in esas2r_nvram_validate()
1343 esas2r_hdebug("invalid NVRAM version"); in esas2r_nvram_validate()
1358 * Set the cached NVRAM to defaults. note that this function sets the default
1359 * NVRAM when it has been determined that the physical NVRAM is invalid.
1364 struct esas2r_sas_nvram *n = a->nvram; in esas2r_nvram_set_defaults()
1377 struct esas2r_sas_nvram *nvram) in esas2r_nvram_get_defaults() argument
1385 memcpy(&sas_addr[0], a->nvram->sas_addr, 8); in esas2r_nvram_get_defaults()
1386 *nvram = default_sas_nvram; in esas2r_nvram_get_defaults()
1387 memcpy(&nvram->sas_addr[0], &sas_addr[0], 8); in esas2r_nvram_get_defaults()