Lines Matching full:ee
753 static void ks8851_eeprom_regread(struct eeprom_93cx6 *ee) in ks8851_eeprom_regread() argument
755 struct ks8851_net *ks = ee->data; in ks8851_eeprom_regread()
760 ee->reg_data_out = (val & EEPCR_EESB) ? 1 : 0; in ks8851_eeprom_regread()
761 ee->reg_data_clock = (val & EEPCR_EESCK) ? 1 : 0; in ks8851_eeprom_regread()
762 ee->reg_chip_select = (val & EEPCR_EECS) ? 1 : 0; in ks8851_eeprom_regread()
765 static void ks8851_eeprom_regwrite(struct eeprom_93cx6 *ee) in ks8851_eeprom_regwrite() argument
767 struct ks8851_net *ks = ee->data; in ks8851_eeprom_regwrite()
770 if (ee->drive_data) in ks8851_eeprom_regwrite()
772 if (ee->reg_data_in) in ks8851_eeprom_regwrite()
774 if (ee->reg_data_clock) in ks8851_eeprom_regwrite()
776 if (ee->reg_chip_select) in ks8851_eeprom_regwrite()
812 struct ethtool_eeprom *ee, u8 *data) in ks8851_set_eeprom() argument
815 int offset = ee->offset; in ks8851_set_eeprom()
817 int len = ee->len; in ks8851_set_eeprom()
824 if (ee->magic != KS_EEPROM_MAGIC) in ks8851_set_eeprom()
859 struct ethtool_eeprom *ee, u8 *data) in ks8851_get_eeprom() argument
862 int offset = ee->offset; in ks8851_get_eeprom()
864 int len = ee->len; in ks8851_get_eeprom()
877 ee->magic = KS_EEPROM_MAGIC; in ks8851_get_eeprom()