Lines Matching refs:words
226 u32 offset, u16 words, void *data, in i40e_read_nvm_aq() argument
239 if ((offset + words) > hw->nvm.sr_size) in i40e_read_nvm_aq()
242 (offset + words), hw->nvm.sr_size); in i40e_read_nvm_aq()
243 else if (words > I40E_SR_SECTOR_SIZE_IN_WORDS) in i40e_read_nvm_aq()
247 words, I40E_SR_SECTOR_SIZE_IN_WORDS); in i40e_read_nvm_aq()
248 else if (((offset + (words - 1)) / I40E_SR_SECTOR_SIZE_IN_WORDS) in i40e_read_nvm_aq()
253 offset, words); in i40e_read_nvm_aq()
257 2 * words, /*bytes*/ in i40e_read_nvm_aq()
319 u16 *words, u16 *data) in i40e_read_nvm_buffer_srctl() argument
325 for (word = 0; word < *words; word++) { in i40e_read_nvm_buffer_srctl()
333 *words = word; in i40e_read_nvm_buffer_srctl()
350 u16 *words, u16 *data) in i40e_read_nvm_buffer_aq() argument
353 u16 read_size = *words; in i40e_read_nvm_buffer_aq()
364 read_size = min(*words, in i40e_read_nvm_buffer_aq()
368 read_size = min((*words - words_read), in i40e_read_nvm_buffer_aq()
372 if ((words_read + read_size) >= *words) in i40e_read_nvm_buffer_aq()
385 } while (words_read < *words); in i40e_read_nvm_buffer_aq()
387 for (i = 0; i < *words; i++) in i40e_read_nvm_buffer_aq()
391 *words = words_read; in i40e_read_nvm_buffer_aq()
407 u16 *words, u16 *data) in i40e_read_nvm_buffer() argument
414 ret_code = i40e_read_nvm_buffer_aq(hw, offset, words, in i40e_read_nvm_buffer()
419 ret_code = i40e_read_nvm_buffer_srctl(hw, offset, words, data); in i40e_read_nvm_buffer()
436 u32 offset, u16 words, void *data, in i40e_write_nvm_aq() argument
450 if ((offset + words) > hw->nvm.sr_size) in i40e_write_nvm_aq()
453 (offset + words), hw->nvm.sr_size); in i40e_write_nvm_aq()
454 else if (words > I40E_SR_SECTOR_SIZE_IN_WORDS) in i40e_write_nvm_aq()
458 words, I40E_SR_SECTOR_SIZE_IN_WORDS); in i40e_write_nvm_aq()
459 else if (((offset + (words - 1)) / I40E_SR_SECTOR_SIZE_IN_WORDS) in i40e_write_nvm_aq()
464 offset, words); in i40e_write_nvm_aq()
468 2 * words, /*bytes*/ in i40e_write_nvm_aq()
522 u16 words = I40E_SR_SECTOR_SIZE_IN_WORDS; in i40e_calc_nvm_checksum() local
524 ret_code = i40e_read_nvm_buffer(hw, i, &words, data); in i40e_calc_nvm_checksum()