Lines Matching defs:ofs
715 cfi_block_start(struct amdcf_softc *sc, u_int ofs)
724 if (ofs < rofs + rsz)
733 sc->sc_wrofs = ofs - (ofs - rofs) % sc->sc_wrbufsz;
833 cfi_wait_ready(struct amdcf_softc *sc, u_int ofs, u_int timeout, u_int count)
854 st0 = cfi_read(sc, ofs, 0);
855 st = cfi_read(sc, ofs, 0);
865 error, st, st0, ofs);
874 cfi_array_write(struct amdcf_softc *sc, u_int ofs, u_int addr, u_int data)
877 cfi_write(sc, ofs, addr, cfi_make_cmd(data, sc->sc_mask));
881 cfi_amd_write(struct amdcf_softc *sc, u_int ofs, u_int addr, u_int data)
883 cfi_array_write(sc, ofs, AMD_ADDR_START, CFI_AMD_UNLOCK);
884 cfi_array_write(sc, ofs, AMD_ADDR_ACK, CFI_AMD_UNLOCK_ACK);
885 cfi_array_write(sc, ofs, addr, data);