Lines Matching refs:nvm

49 	struct i40e_nvm_info *nvm = &hw->nvm;
56 /* The SR size is stored regardless of the nvm programming mode
63 nvm->sr_size = BIT(sr_size) * I40E_SR_WORDS_IN_1KB;
69 nvm->timeout = I40E_MAX_NVM_TIMEOUT;
70 nvm->blank_nvm_mode = FALSE;
72 nvm->blank_nvm_mode = TRUE;
97 if (hw->nvm.blank_nvm_mode)
106 hw->nvm.hw_semaphore_timeout = I40E_MS_TO_GTIME(time_left) + gtime;
124 hw->nvm.hw_semaphore_timeout =
130 hw->nvm.hw_semaphore_timeout = 0;
154 if (hw->nvm.blank_nvm_mode)
214 if (offset >= hw->nvm.sr_size) {
217 offset, hw->nvm.sr_size);
277 if ((offset + words) > hw->nvm.sr_size)
280 (offset + words), hw->nvm.sr_size);
330 * Do not use this function except in cases where the nvm lock is already
391 "Reading nvm word failed.Error code: %d.\n",
410 "Reading nvm data failed. Pointer points outside of the Shared RAM mapped area.\n");
420 "Reading nvm word failed.Error code: %d.\n",
432 "Reading nvm buffer failed.Error code: %d.\n",
610 if ((offset + words) > hw->nvm.sr_size)
730 for (i = 0; i < hw->nvm.sr_size; i++) {
906 * @cmd: pointer to nvm update command
1048 * @cmd: pointer to nvm update command buffer
1189 * @cmd: pointer to nvm update command buffer
1233 * @cmd: pointer to nvm update command buffer
1278 /* Assumes the caller has acquired the nvm */
1293 /* Assumes the caller has acquired the nvm */
1330 if (gtime >= hw->nvm.hw_semaphore_timeout) {
1333 gtime, hw->nvm.hw_semaphore_timeout);
1408 * @cmd: pointer to nvm update command buffer
1515 * @cmd: pointer to nvm update command buffer
1600 * @cmd: pointer to nvm update command buffer
1669 * @cmd: pointer to nvm update command buffer
1704 * @cmd: pointer to nvm update command buffer
1744 * @cmd: pointer to nvm update command buffer
1783 * @cmd: pointer to nvm update command buffer