Lines Matching refs:words
221 u16 words, void *data, in i40e_read_nvm_aq() argument
235 if ((offset + words) > hw->nvm.sr_size) in i40e_read_nvm_aq()
238 (offset + words), hw->nvm.sr_size); in i40e_read_nvm_aq()
239 else if (words > I40E_SR_SECTOR_SIZE_IN_WORDS) in i40e_read_nvm_aq()
243 words, I40E_SR_SECTOR_SIZE_IN_WORDS); in i40e_read_nvm_aq()
244 else if (((offset + (words - 1)) / I40E_SR_SECTOR_SIZE_IN_WORDS) in i40e_read_nvm_aq()
249 offset, words); in i40e_read_nvm_aq()
253 2 * words, /*bytes*/ in i40e_read_nvm_aq()
407 u16 *words, u16 *data) in i40e_read_nvm_buffer_srctl() argument
413 for (word = 0; word < *words; word++) { in i40e_read_nvm_buffer_srctl()
421 *words = word; in i40e_read_nvm_buffer_srctl()
438 u16 *words, u16 *data) in i40e_read_nvm_buffer_aq() argument
452 read_size = min(*words, in i40e_read_nvm_buffer_aq()
456 read_size = min((*words - words_read), in i40e_read_nvm_buffer_aq()
460 if ((words_read + read_size) >= *words) in i40e_read_nvm_buffer_aq()
473 } while (words_read < *words); in i40e_read_nvm_buffer_aq()
475 for (i = 0; i < *words; i++) in i40e_read_nvm_buffer_aq()
479 *words = words_read; in i40e_read_nvm_buffer_aq()
494 u16 offset, u16 *words, in __i40e_read_nvm_buffer() argument
498 return i40e_read_nvm_buffer_aq(hw, offset, words, data); in __i40e_read_nvm_buffer()
500 return i40e_read_nvm_buffer_srctl(hw, offset, words, data); in __i40e_read_nvm_buffer()
515 u16 *words, u16 *data) in i40e_read_nvm_buffer() argument
522 ret_code = i40e_read_nvm_buffer_aq(hw, offset, words, in i40e_read_nvm_buffer()
527 ret_code = i40e_read_nvm_buffer_srctl(hw, offset, words, data); in i40e_read_nvm_buffer()
545 u32 offset, u16 words, void *data, in i40e_write_nvm_aq() argument
559 if ((offset + words) > hw->nvm.sr_size) in i40e_write_nvm_aq()
562 (offset + words), hw->nvm.sr_size); in i40e_write_nvm_aq()
563 else if (words > I40E_SR_SECTOR_SIZE_IN_WORDS) in i40e_write_nvm_aq()
567 words, I40E_SR_SECTOR_SIZE_IN_WORDS); in i40e_write_nvm_aq()
568 else if (((offset + (words - 1)) / I40E_SR_SECTOR_SIZE_IN_WORDS) in i40e_write_nvm_aq()
573 offset, words); in i40e_write_nvm_aq()
577 2 * words, /*bytes*/ in i40e_write_nvm_aq()
632 u16 words = I40E_SR_SECTOR_SIZE_IN_WORDS; in i40e_calc_nvm_checksum() local
634 ret_code = __i40e_read_nvm_buffer(hw, i, &words, data); in i40e_calc_nvm_checksum()