Lines Matching refs:ee_addr
418 #define eeprom_delay(ee_addr) INL(dev, ee_addr) argument
440 int ee_addr = (typeof(ee_addr))addr;
446 dev->iobase + ee_addr, write_cmd, value);
451 OUTL(dev, cmdval, ee_addr);
452 eeprom_delay(ee_addr);
453 OUTL(dev, cmdval | EE_ShiftClk, ee_addr);
454 eeprom_delay(ee_addr);
457 OUTL(dev, 0, ee_addr); /*bring chip select low*/
458 OUTL(dev, EE_ShiftClk, ee_addr);
459 eeprom_delay(ee_addr);
464 OUTL(dev, cmdval, ee_addr);
465 eeprom_delay(ee_addr);
466 OUTL(dev, cmdval | EE_ShiftClk, ee_addr);
467 eeprom_delay(ee_addr);
472 OUTL(dev, cmdval, ee_addr);
473 eeprom_delay(ee_addr);
474 OUTL(dev, cmdval | EE_ShiftClk, ee_addr);
475 eeprom_delay(ee_addr);
478 OUTL(dev, 0, ee_addr); /*bring chip select low*/
479 OUTL(dev, EE_ShiftClk, ee_addr);
481 OUTL(dev, EE_Write0, ee_addr); /*poll for done*/
482 if (INL(dev, ee_addr) & EE_DataOut) {
486 eeprom_delay(ee_addr);
489 OUTL(dev, EE_Write0, ee_addr);
490 OUTL(dev, 0, ee_addr);
500 int ee_addr = (typeof(ee_addr))addr; in read_eeprom() local
503 OUTL(dev, EE_Write0, ee_addr); in read_eeprom()
508 OUTL(dev, dataval, ee_addr); in read_eeprom()
509 eeprom_delay(ee_addr); in read_eeprom()
510 OUTL(dev, dataval | EE_ShiftClk, ee_addr); in read_eeprom()
511 eeprom_delay(ee_addr); in read_eeprom()
513 OUTL(dev, EE_ChipSelect, ee_addr); in read_eeprom()
514 eeprom_delay(ee_addr); in read_eeprom()
517 OUTL(dev, EE_ChipSelect | EE_ShiftClk, ee_addr); in read_eeprom()
518 eeprom_delay(ee_addr); in read_eeprom()
519 retval |= (INL(dev, ee_addr) & EE_DataOut) ? 1 << i : 0; in read_eeprom()
520 OUTL(dev, EE_ChipSelect, ee_addr); in read_eeprom()
521 eeprom_delay(ee_addr); in read_eeprom()
525 OUTL(dev, EE_Write0, ee_addr); in read_eeprom()
526 OUTL(dev, 0, ee_addr); in read_eeprom()
530 dev->iobase + ee_addr, read_cmd, retval); in read_eeprom()