Lines Matching refs:eeprom
708 static void wd719x_eeprom_reg_read(struct eeprom_93cx6 *eeprom) in wd719x_eeprom_reg_read() argument
710 struct wd719x *wd = eeprom->data; in wd719x_eeprom_reg_read()
713 eeprom->reg_data_out = reg & WD719X_EE_DO; in wd719x_eeprom_reg_read()
716 static void wd719x_eeprom_reg_write(struct eeprom_93cx6 *eeprom) in wd719x_eeprom_reg_write() argument
718 struct wd719x *wd = eeprom->data; in wd719x_eeprom_reg_write()
721 if (eeprom->reg_data_in) in wd719x_eeprom_reg_write()
723 if (eeprom->reg_data_clock) in wd719x_eeprom_reg_write()
725 if (eeprom->reg_chip_select) in wd719x_eeprom_reg_write()
734 struct eeprom_93cx6 eeprom; in wd719x_read_eeprom() local
738 eeprom.data = wd; in wd719x_read_eeprom()
739 eeprom.register_read = wd719x_eeprom_reg_read; in wd719x_read_eeprom()
740 eeprom.register_write = wd719x_eeprom_reg_write; in wd719x_read_eeprom()
741 eeprom.width = PCI_EEPROM_WIDTH_93C46; in wd719x_read_eeprom()
754 eeprom_93cx6_multireadb(&eeprom, 0, (u8 *)&header, sizeof(header)); in wd719x_read_eeprom()
757 eeprom_93cx6_multireadb(&eeprom, header.cfg_offset, in wd719x_read_eeprom()