Lines Matching defs:secptr
958 static int IsSectorLocked(struct eflash_softc *sc, uint8_t *secptr)
965 sc->sc_ops->read_uint8(sc,secptr+(0x0002*2*sc->sc_chips),&Data);
966 sc->sc_ops->read_uint8(sc,secptr+(0x0003*2*sc->sc_chips),&Data1);
975 static void SectorUnLock(struct eflash_softc *sc, uint8_t *secptr)
981 device_xname(sc->sc_dev), sc->sc_sector_offset, secptr));
984 sc->sc_ops->write_uint8(sc,secptr,CMD_UNLOCK);
992 sc->sc_ops->read_uint8(sc,secptr,&Status);
1015 static int SectorErase(struct eflash_softc *sc, void *secptr)
1021 device_xname(sc->sc_dev), sc->sc_sector_offset, secptr));
1026 IsSectorLocked(sc,secptr))
1027 SectorUnLock(sc,secptr);
1029 sc->sc_ops->write_uint8(sc,secptr,CMD_ERASE_SETUP);
1030 sc->sc_ops->write_uint8(sc,secptr,CMD_ERASE_CONFIRM);
1042 sc->sc_ops->read_uint8(sc,secptr,&Status);