Lines Matching refs:eeseq
548 struct idt_eeprom_seq eeseq; in idt_eeprom_read_byte() local
554 smbseq.data = (u8 *)&eeseq; in idt_eeprom_read_byte()
564 eeseq.cmd = pdev->inieecmd | EEPROM_OP_READ; in idt_eeprom_read_byte()
565 eeseq.eeaddr = pdev->eeaddr; in idt_eeprom_read_byte()
566 eeseq.memaddr = cpu_to_le16(memaddr); in idt_eeprom_read_byte()
584 if (retry && (eeseq.cmd & EEPROM_NAERR)) { in idt_eeprom_read_byte()
592 if (eeseq.cmd & (EEPROM_NAERR | EEPROM_LAERR | EEPROM_MSS)) { in idt_eeprom_read_byte()
595 eeseq.cmd); in idt_eeprom_read_byte()
601 *data = eeseq.data; in idt_eeprom_read_byte()
620 struct idt_eeprom_seq eeseq; in idt_eeprom_write() local
627 smbseq.data = (u8 *)&eeseq; in idt_eeprom_write()
636 eeseq.cmd = pdev->inieecmd | EEPROM_OP_WRITE; in idt_eeprom_write()
637 eeseq.eeaddr = pdev->eeaddr; in idt_eeprom_write()
638 eeseq.memaddr = cpu_to_le16(memaddr); in idt_eeprom_write()
639 eeseq.data = data[idx]; in idt_eeprom_write()
652 eeseq.data = ~data[idx]; in idt_eeprom_write()
653 ret = idt_eeprom_read_byte(pdev, memaddr, &eeseq.data); in idt_eeprom_write()
658 if (eeseq.data != data[idx]) { in idt_eeprom_write()
660 eeseq.data, data[idx]); in idt_eeprom_write()