Searched refs:sc_provider (Results 1 - 14 of 14) sorted by relevance

/freebsd-12-stable/sys/dev/gxemul/disk/
H A Dgxemul_disk.c55 struct g_provider *sc_provider; member in struct:gxemul_disk_softc
176 sc->sc_provider = g_new_providerf(sc->sc_geom, "%s", sc->sc_geom->name);
177 sc->sc_provider->sectorsize = GXEMUL_DISK_DEV_BLOCKSIZE;
178 sc->sc_provider->mediasize = sc->sc_size;
179 g_error_provider(sc->sc_provider, 0);
194 sc->sc_provider = NULL;
/freebsd-12-stable/sys/geom/stripe/
H A Dg_stripe.c175 if (sc->sc_provider != NULL) {
177 sc->sc_provider->name);
178 g_wither_provider(sc->sc_provider, ENXIO);
179 sc->sc_provider = NULL;
678 sc->sc_provider = g_new_providerf(sc->sc_geom, "stripe/%s",
680 sc->sc_provider->flags |= G_PF_DIRECT_SEND | G_PF_DIRECT_RECEIVE;
682 sc->sc_provider->flags |= G_PF_ACCEPT_UNMAPPED;
705 sc->sc_provider->flags &= ~G_PF_ACCEPT_UNMAPPED;
708 sc->sc_provider->sectorsize = sectorsize;
709 sc->sc_provider
[all...]
H A Dg_stripe.h75 struct g_provider *sc_provider; member in struct:g_stripe_softc
/freebsd-12-stable/sys/geom/concat/
H A Dg_concat.h84 struct g_provider *sc_provider; member in struct:g_concat_softc
H A Dg_concat.c133 if (sc->sc_provider != NULL) {
135 sc->sc_provider->name);
136 g_wither_provider(sc->sc_provider, ENXIO);
137 sc->sc_provider = NULL;
478 sc->sc_provider = pp;
481 G_CONCAT_DEBUG(0, "Device %s activated.", sc->sc_provider->name);
631 sc->sc_provider = NULL;
650 pp = sc->sc_provider;
673 KASSERT(sc->sc_provider == NULL, ("Provider still exists? (device=%s)",
1020 if (sc->sc_provider !
[all...]
/freebsd-12-stable/sys/geom/shsec/
H A Dg_shsec.h75 struct g_provider *sc_provider; member in struct:g_shsec_softc
H A Dg_shsec.c160 if (sc->sc_provider != NULL) {
161 g_wither_provider(sc->sc_provider, ENXIO);
162 sc->sc_provider = NULL;
404 sc->sc_provider = g_new_providerf(sc->sc_geom, "shsec/%s", sc->sc_name);
419 sc->sc_provider->sectorsize = sectorsize;
420 sc->sc_provider->mediasize = mediasize;
421 g_error_provider(sc->sc_provider, 0);
561 sc->sc_provider = NULL;
580 pp = sc->sc_provider;
600 KASSERT(sc->sc_provider
[all...]
/freebsd-12-stable/sys/geom/gate/
H A Dg_gate.h85 struct g_provider *sc_provider; /* P: (read-only) */ member in struct:g_gate_softc
H A Dg_gate.c115 pp = sc->sc_provider;
166 sc->sc_provider = NULL;
317 g_gate_units[unit]->sc_provider->name) != 0) {
601 sc->sc_provider = pp;
606 sc->sc_name = sc->sc_provider->name;
644 pp = sc->sc_provider;
677 cp = g_new_consumer(sc->sc_provider->geom);
706 pp = sc->sc_provider;
/freebsd-12-stable/sys/geom/raid3/
H A Dg_raid3.c614 if (sc->sc_provider != NULL)
862 if (sc->sc_provider == NULL)
870 if (acw > 0 || (acw == -1 && sc->sc_provider->acw > 0)) {
1730 bp->bio_to = sc->sc_provider;
2125 } else if (bp->bio_to != sc->sc_provider) {
2212 error = g_attach(cp, sc->sc_provider);
2250 bp->bio_to = sc->sc_provider;
2344 sc->sc_provider = pp;
2360 KASSERT(sc->sc_provider != NULL, ("NULL provider (device=%s).",
2364 g_error_provider(sc->sc_provider, ENXI
[all...]
H A Dg_raid3.h205 struct g_provider *sc_provider; member in struct:g_raid3_softc
/freebsd-12-stable/sys/geom/mirror/
H A Dg_mirror.c554 if (sc->sc_provider != NULL)
851 if (sc->sc_provider == NULL)
859 if (acw > 0 || (acw == -1 && sc->sc_provider->acw > 0)) {
948 KASSERT(sc->sc_provider == bp->bio_parent->bio_to,
1600 mod = slice % sc->sc_provider->sectorsize;
1602 slice += sc->sc_provider->sectorsize - mod;
1989 } else if (bp->bio_to != sc->sc_provider) {
2051 bp->bio_to = disk->d_softc->sc_provider;
2083 error = g_attach(cp, sc->sc_provider);
2219 sc->sc_provider
[all...]
H A Dg_mirror_ctl.c653 if (sc->sc_provider->mediasize > pp->mediasize - mdsize) {
659 if ((sc->sc_provider->sectorsize % pp->sectorsize) != 0) {
858 sc->sc_provider->name);
878 g_resize_provider(sc->sc_provider, mediasize);
H A Dg_mirror.h194 struct g_provider *sc_provider; member in struct:g_mirror_softc

Completed in 202 milliseconds