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()
410 u16 *words, u16 *data) in i40e_read_nvm_buffer_srctl() argument
416 for (word = 0; word < *words; word++) { in i40e_read_nvm_buffer_srctl()
424 *words = word; in i40e_read_nvm_buffer_srctl()
441 u16 *words, u16 *data) in i40e_read_nvm_buffer_aq() argument
455 read_size = min(*words, in i40e_read_nvm_buffer_aq()
459 read_size = min((*words - words_read), in i40e_read_nvm_buffer_aq()
463 if ((words_read + read_size) >= *words) in i40e_read_nvm_buffer_aq()
476 } while (words_read < *words); in i40e_read_nvm_buffer_aq()
478 for (i = 0; i < *words; i++) in i40e_read_nvm_buffer_aq()
482 *words = words_read; in i40e_read_nvm_buffer_aq()
497 u16 offset, u16 *words, in __i40e_read_nvm_buffer() argument
501 return i40e_read_nvm_buffer_aq(hw, offset, words, data); in __i40e_read_nvm_buffer()
503 return i40e_read_nvm_buffer_srctl(hw, offset, words, data); in __i40e_read_nvm_buffer()
518 u16 *words, u16 *data) in i40e_read_nvm_buffer() argument
525 ret_code = i40e_read_nvm_buffer_aq(hw, offset, words, in i40e_read_nvm_buffer()
530 ret_code = i40e_read_nvm_buffer_srctl(hw, offset, words, data); in i40e_read_nvm_buffer()
548 u32 offset, u16 words, void *data, in i40e_write_nvm_aq() argument
562 if ((offset + words) > hw->nvm.sr_size) in i40e_write_nvm_aq()
565 (offset + words), hw->nvm.sr_size); in i40e_write_nvm_aq()
566 else if (words > I40E_SR_SECTOR_SIZE_IN_WORDS) in i40e_write_nvm_aq()
570 words, I40E_SR_SECTOR_SIZE_IN_WORDS); in i40e_write_nvm_aq()
571 else if (((offset + (words - 1)) / I40E_SR_SECTOR_SIZE_IN_WORDS) in i40e_write_nvm_aq()
576 offset, words); in i40e_write_nvm_aq()
580 2 * words, /*bytes*/ in i40e_write_nvm_aq()
635 u16 words = I40E_SR_SECTOR_SIZE_IN_WORDS; in i40e_calc_nvm_checksum() local
637 ret_code = __i40e_read_nvm_buffer(hw, i, &words, data); in i40e_calc_nvm_checksum()