Lines Matching refs:offset

441 s32 e1000_read_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data)  in e1000_read_nvm_spi()  argument
454 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) || in e1000_read_nvm_spi()
470 if ((nvm->address_bits == 8) && (offset >= 128)) in e1000_read_nvm_spi()
475 e1000_shift_out_eec_bits(hw, (u16)(offset*2), nvm->address_bits); in e1000_read_nvm_spi()
501 s32 e1000_read_nvm_microwire(struct e1000_hw *hw, u16 offset, u16 words, in e1000_read_nvm_microwire() argument
514 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) || in e1000_read_nvm_microwire()
531 e1000_shift_out_eec_bits(hw, (u16)(offset + i), in e1000_read_nvm_microwire()
556 s32 e1000_read_nvm_eerd(struct e1000_hw *hw, u16 offset, u16 words, u16 *data) in e1000_read_nvm_eerd() argument
567 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) || in e1000_read_nvm_eerd()
574 eerd = ((offset+i) << E1000_NVM_RW_ADDR_SHIFT) + in e1000_read_nvm_eerd()
604 s32 e1000_write_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data) in e1000_write_nvm_spi() argument
615 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) || in e1000_write_nvm_spi()
645 if ((nvm->address_bits == 8) && (offset >= 128)) in e1000_write_nvm_spi()
650 e1000_shift_out_eec_bits(hw, (u16)((offset + widx) * 2), in e1000_write_nvm_spi()
660 if ((((offset + widx) * 2) % nvm->page_size) == 0) { in e1000_write_nvm_spi()
684 s32 e1000_write_nvm_microwire(struct e1000_hw *hw, u16 offset, u16 words, in e1000_write_nvm_microwire() argument
698 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) || in e1000_write_nvm_microwire()
723 e1000_shift_out_eec_bits(hw, (u16)(offset + words_written), in e1000_write_nvm_microwire()
774 u16 offset; in e1000_read_pba_string_generic() local
831 for (offset = 0; offset < 10; offset++) { in e1000_read_pba_string_generic()
832 if (pba_num[offset] < 0xA) in e1000_read_pba_string_generic()
833 pba_num[offset] += '0'; in e1000_read_pba_string_generic()
834 else if (pba_num[offset] < 0x10) in e1000_read_pba_string_generic()
835 pba_num[offset] += 'A' - 0xA; in e1000_read_pba_string_generic()
861 for (offset = 0; offset < length; offset++) { in e1000_read_pba_string_generic()
862 ret_val = hw->nvm.ops.read(hw, pba_ptr + offset, 1, &nvm_data); in e1000_read_pba_string_generic()
867 pba_num[offset * 2] = (u8)(nvm_data >> 8); in e1000_read_pba_string_generic()
868 pba_num[(offset * 2) + 1] = (u8)(nvm_data & 0xFF); in e1000_read_pba_string_generic()
870 pba_num[offset * 2] = '\0'; in e1000_read_pba_string_generic()