Lines Matching defs:nvm

21 	struct i40e_nvm_info *nvm = &hw->nvm;
26 /* The SR size is stored regardless of the nvm programming mode
32 nvm->sr_size = BIT(sr_size) * I40E_SR_WORDS_IN_1KB;
38 nvm->timeout = I40E_MAX_NVM_TIMEOUT;
39 nvm->blank_nvm_mode = false;
41 nvm->blank_nvm_mode = true;
64 if (hw->nvm.blank_nvm_mode)
73 hw->nvm.hw_semaphore_timeout = I40E_MS_TO_GTIME(time_left) + gtime;
91 hw->nvm.hw_semaphore_timeout =
97 hw->nvm.hw_semaphore_timeout = 0;
119 if (hw->nvm.blank_nvm_mode)
176 if (offset >= hw->nvm.sr_size) {
179 offset, hw->nvm.sr_size);
236 if ((offset + words) > hw->nvm.sr_size)
239 (offset + words), hw->nvm.sr_size);
280 * __i40e_read_nvm_word - Reads nvm word, assumes caller does the locking
287 * Do not use this function except in cases where the nvm lock is already
300 * i40e_read_nvm_word - Reads nvm word and acquire lock if necessary
350 "Reading nvm word failed.Error code: %d.\n",
369 "Reading nvm data failed. Pointer points outside of the Shared RAM mapped area.\n");
379 "Reading nvm word failed.Error code: %d.\n",
391 "Reading nvm buffer failed.Error code: %d.\n",
488 * __i40e_read_nvm_buffer - Reads nvm buffer, caller must acquire lock
563 if ((offset + words) > hw->nvm.sr_size)
566 (offset + words), hw->nvm.sr_size);
633 for (i = 0; i < hw->nvm.sr_size; i++) {
804 * @cmd: pointer to nvm update command
919 * @cmd: pointer to nvm update command buffer
1058 * @cmd: pointer to nvm update command buffer
1100 * @cmd: pointer to nvm update command buffer
1143 /* Assumes the caller has acquired the nvm */
1158 /* Assumes the caller has acquired the nvm */
1195 if (gtime >= hw->nvm.hw_semaphore_timeout) {
1198 gtime, hw->nvm.hw_semaphore_timeout);
1272 * @cmd: pointer to nvm update command buffer
1367 * @cmd: pointer to nvm update command buffer
1451 * @cmd: pointer to nvm update command buffer
1520 * @cmd: pointer to nvm update command buffer
1554 * @cmd: pointer to nvm update command buffer
1594 * @cmd: pointer to nvm update command buffer
1633 * @cmd: pointer to nvm update command buffer