Lines Matching refs:ed
345 edc_add_disk(struct edc_mca_softc *sc, struct ed_softc *ed) in edc_add_disk() argument
347 sc->sc_ed[ed->sc_devno] = ed; in edc_add_disk()
807 struct ed_softc *ed; in edcworker() local
818 if ((ed = sc->sc_ed[i]) == NULL) { in edcworker()
824 mutex_enter(&ed->sc_q_lock); in edcworker()
825 if ((bp = bufq_get(ed->sc_q)) == NULL) { in edcworker()
826 mutex_exit(&ed->sc_q_lock); in edcworker()
830 mutex_exit(&ed->sc_q_lock); in edcworker()
833 disk_busy(&ed->sc_dk); in edcworker()
835 error = edc_bio(sc, ed, bp->b_data, bp->b_bcount, in edcworker()
845 disk_unbusy(&ed->sc_dk, (bp->b_bcount - bp->b_resid), in edcworker()
847 rnd_add_uint32(&ed->rnd_source, bp->b_blkno); in edcworker()
854 edc_bio(struct edc_mca_softc *sc, struct ed_softc *ed, void *data, in edc_bio() argument
874 device_xname(ed->sc_dev), error); in edc_bio()
881 track = rawblkno / ed->sectors; in edc_bio()
882 head = track % ed->heads; in edc_bio()
883 cyl = track / ed->heads; in edc_bio()
884 sector = rawblkno % ed->sectors; in edc_bio()
893 ed->sc_devno, cmd_args, 4, poll); in edc_bio()