Lines Matching defs:words

46 				  u16 words, u16 *data);
48 u16 words, u16 *data);
64 static s32 e1000_do_read_eeprom(struct e1000_hw *hw, u16 offset, u16 words,
66 static s32 e1000_do_write_eeprom(struct e1000_hw *hw, u16 offset, u16 words,
3843 * @words: number of words to read
3845 s32 e1000_read_eeprom(struct e1000_hw *hw, u16 offset, u16 words, u16 *data)
3850 ret = e1000_do_read_eeprom(hw, offset, words, data);
3855 static s32 e1000_do_read_eeprom(struct e1000_hw *hw, u16 offset, u16 words,
3862 GBE_CONFIG_FLASH_READ(GBE_CONFIG_BASE_VIRT, offset, words,
3867 /* A check for invalid values: offset too large, too many words, and
3868 * not enough words.
3871 (words > eeprom->word_size - offset) ||
3872 (words == 0)) {
3873 e_dbg("\"words\" parameter out of bounds. Words = %d,"
3918 for (i = 0; i < words; i++) {
3923 for (i = 0; i < words; i++) {
3950 * Reads the first 64 16 bit words of the EEPROM and sums the values read.
3951 * If the sum of the 64 16 bit words is 0xBABA, the EEPROM's checksum is
3985 * Sums the first 63 16 bit words of the EEPROM. Subtracts the sum from 0xBABA.
4009 * e1000_write_eeprom - write words to the different EEPROM types.
4012 * @words: number of words to write
4018 s32 e1000_write_eeprom(struct e1000_hw *hw, u16 offset, u16 words, u16 *data)
4023 ret = e1000_do_write_eeprom(hw, offset, words, data);
4028 static s32 e1000_do_write_eeprom(struct e1000_hw *hw, u16 offset, u16 words,
4035 GBE_CONFIG_FLASH_WRITE(GBE_CONFIG_BASE_VIRT, offset, words,
4040 /* A check for invalid values: offset too large, too many words, and
4041 * not enough words.
4044 (words > eeprom->word_size - offset) ||
4045 (words == 0)) {
4046 e_dbg("\"words\" parameter out of bounds\n");
4055 status = e1000_write_eeprom_microwire(hw, offset, words, data);
4057 status = e1000_write_eeprom_spi(hw, offset, words, data);
4071 * @words: number of words to write
4072 * @data: pointer to array of 8 bit words to be written to the EEPROM
4074 static s32 e1000_write_eeprom_spi(struct e1000_hw *hw, u16 offset, u16 words,
4080 while (widx < words) {
4112 while (widx < words) {
4138 * @words: number of words to write
4139 * @data: pointer to array of 8 bit words to be written to the EEPROM
4142 u16 words, u16 *data)
4163 while (words_written < words) {