EEPROM_SIZE
if (off > EEPROM_SIZE)
if (cnt > (EEPROM_SIZE - off))
cnt = (EEPROM_SIZE - off);
buf = kmem_alloc(EEPROM_SIZE, KM_SLEEP);
for (bcnt = 0; bcnt < EEPROM_SIZE; ++bcnt)
kmem_free(buf, EEPROM_SIZE);
EEPROM_SIZE,
ee_size = EEPROM_SIZE;
if (ee_size < EEPROM_SIZE) {
memset(dst, 0, (EEPROM_SIZE - ee_size));
if ((off < 0) || (off > EEPROM_SIZE))
cnt = uimin(uio->uio_resid, (EEPROM_SIZE - off));
#ifndef EEPROM_SIZE
if (sizeof(struct eeprom) != EEPROM_SIZE)
static uint16_t eeprom_default[EEPROM_SIZE] = {
EEP_WORD(EEPROM_SIZE * 2, 0x01),
for (i = 0, chksum = 0; i < EEPROM_SIZE - 1; i++) {
for (i = 0, chksum = 0; i < EEPROM_SIZE - 1; i++) {
for (i = 0; i < EEPROM_SIZE; i++) {
uint16_t sc_eeprom[EEPROM_SIZE];