Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/mmc/mmcsd.c
Show First 20 Lines • Show All 749 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
return (0); | return (0); | ||||
} | } | ||||
static void | static void | ||||
mmcsd_strategy(struct bio *bp) | mmcsd_strategy(struct bio *bp) | ||||
{ | { | ||||
struct mmcsd_softc *sc; | |||||
struct mmcsd_part *part; | struct mmcsd_part *part; | ||||
part = bp->bio_disk->d_drv1; | part = bp->bio_disk->d_drv1; | ||||
sc = part->sc; | |||||
MMCSD_DISK_LOCK(part); | MMCSD_DISK_LOCK(part); | ||||
if (part->running > 0 || part->suspend > 0) { | if (part->running > 0 || part->suspend > 0) { | ||||
bioq_disksort(&part->bio_queue, bp); | bioq_disksort(&part->bio_queue, bp); | ||||
MMCSD_DISK_UNLOCK(part); | MMCSD_DISK_UNLOCK(part); | ||||
wakeup(part); | wakeup(part); | ||||
} else { | } else { | ||||
MMCSD_DISK_UNLOCK(part); | MMCSD_DISK_UNLOCK(part); | ||||
biofinish(bp, NULL, ENXIO); | biofinish(bp, NULL, ENXIO); | ||||
▲ Show 20 Lines • Show All 702 Lines • Show Last 20 Lines |