Lines Matching refs:offset

434  *  @offset: offset of word in the EEPROM to read
440 s32 e1000_read_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data)
450 /* A check for invalid values: offset too large, too many words,
453 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) ||
469 if ((nvm->address_bits == 8) && (offset >= 128))
474 e1000_shift_out_eec_bits(hw, (u16)(offset*2), nvm->address_bits);
478 * us to read the whole NVM from any offset
494 * @offset: offset of word in the EEPROM to read
500 s32 e1000_read_nvm_microwire(struct e1000_hw *hw, u16 offset, u16 words,
510 /* A check for invalid values: offset too large, too many words,
513 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) ||
530 e1000_shift_out_eec_bits(hw, (u16)(offset + i),
549 * @offset: offset of word in the EEPROM to read
555 s32 e1000_read_nvm_eerd(struct e1000_hw *hw, u16 offset, u16 words, u16 *data)
563 /* A check for invalid values: offset too large, too many words,
564 * too many words for the offset, and not enough words.
566 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) ||
573 eerd = ((offset+i) << E1000_NVM_RW_ADDR_SHIFT) +
594 * @offset: offset within the EEPROM to be written to
598 * Writes data to EEPROM at offset using SPI interface.
603 s32 e1000_write_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data)
611 /* A check for invalid values: offset too large, too many words,
614 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) ||
644 if ((nvm->address_bits == 8) && (offset >= 128))
649 e1000_shift_out_eec_bits(hw, (u16)((offset + widx) * 2),
659 if ((((offset + widx) * 2) % nvm->page_size) == 0) {
674 * @offset: offset within the EEPROM to be written to
678 * Writes data to EEPROM at offset using microwire interface.
683 s32 e1000_write_nvm_microwire(struct e1000_hw *hw, u16 offset, u16 words,
694 /* A check for invalid values: offset too large, too many words,
697 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) ||
722 e1000_shift_out_eec_bits(hw, (u16)(offset + words_written),
773 u16 offset;
830 for (offset = 0; offset < 10; offset++) {
831 if (pba_num[offset] < 0xA)
832 pba_num[offset] += '0';
833 else if (pba_num[offset] < 0x10)
834 pba_num[offset] += 'A' - 0xA;
860 for (offset = 0; offset < length; offset++) {
861 ret_val = hw->nvm.ops.read(hw, pba_ptr + offset, 1, &nvm_data);
866 pba_num[offset * 2] = (u8)(nvm_data >> 8);
867 pba_num[(offset * 2) + 1] = (u8)(nvm_data & 0xFF);
869 pba_num[offset * 2] = '\0';