Home
last modified time | relevance | path

Searched refs:sc_provider (Results 1 – 13 of 13) sorted by relevance

/freebsd/sys/geom/stripe/
H A Dg_stripe.c166 if (sc->sc_provider != NULL) { in g_stripe_remove_disk()
168 sc->sc_provider->name); in g_stripe_remove_disk()
169 g_wither_provider(sc->sc_provider, ENXIO); in g_stripe_remove_disk()
170 sc->sc_provider = NULL; in g_stripe_remove_disk()
678 sc->sc_provider = g_new_providerf(sc->sc_geom, "stripe/%s", in g_stripe_check_and_run()
680 sc->sc_provider->flags |= G_PF_DIRECT_SEND | G_PF_DIRECT_RECEIVE; in g_stripe_check_and_run()
682 sc->sc_provider->flags |= G_PF_ACCEPT_UNMAPPED; in g_stripe_check_and_run()
705 sc->sc_provider->flags &= ~G_PF_ACCEPT_UNMAPPED; in g_stripe_check_and_run()
708 sc->sc_provider->sectorsize = sectorsize; in g_stripe_check_and_run()
709 sc->sc_provider in g_stripe_check_and_run()
[all...]
H A Dg_stripe.h60 struct g_provider *sc_provider;
58 struct g_provider *sc_provider; global() member
/freebsd/sys/geom/shsec/
H A Dg_shsec.c161 if (sc->sc_provider != NULL) { in g_shsec_remove_disk()
162 g_wither_provider(sc->sc_provider, ENXIO); in g_shsec_remove_disk()
163 sc->sc_provider = NULL; in g_shsec_remove_disk()
408 sc->sc_provider = g_new_providerf(sc->sc_geom, "shsec/%s", sc->sc_name); in g_shsec_check_and_run()
423 sc->sc_provider->sectorsize = sectorsize; in g_shsec_check_and_run()
424 sc->sc_provider->mediasize = mediasize; in g_shsec_check_and_run()
425 g_error_provider(sc->sc_provider, 0); in g_shsec_check_and_run()
565 sc->sc_provider = NULL; in g_shsec_create()
584 pp = sc->sc_provider; in g_shsec_destroy()
604 KASSERT(sc->sc_provider == NULL, ("Provider still exists? (device=%s)", in g_shsec_destroy()
[all …]
H A Dg_shsec.h55 struct g_provider *sc_provider; member
/freebsd/sys/geom/concat/
H A Dg_concat.c134 if (sc->sc_provider != NULL) { in g_concat_remove_disk()
136 sc->sc_provider->name); in g_concat_remove_disk()
137 g_wither_provider(sc->sc_provider, ENXIO); in g_concat_remove_disk()
138 sc->sc_provider = NULL; in g_concat_remove_disk()
490 sc->sc_provider = pp; in g_concat_check_and_run()
493 G_CONCAT_DEBUG(0, "Device %s activated.", sc->sc_provider->name); in g_concat_check_and_run()
669 sc->sc_provider = NULL; in g_concat_create()
689 pp = sc->sc_provider; in g_concat_destroy()
712 KASSERT(sc->sc_provider == NULL, ("Provider still exists? (device=%s)", in g_concat_destroy()
1091 if (sc->sc_provider == NULL) { in g_concat_ctl_append()
[all …]
H A Dg_concat.h69 struct g_provider *sc_provider; member
/freebsd/sys/geom/gate/
H A Dg_gate.c112 pp = sc->sc_provider; in g_gate_destroy()
163 sc->sc_provider = NULL; in g_gate_destroy()
315 g_gate_units[unit]->sc_provider->name) != 0) { in g_gate_hold()
605 sc->sc_provider = pp; in g_gate_create()
610 sc->sc_name = sc->sc_provider->name; in g_gate_create()
649 pp = sc->sc_provider; in g_gate_modify()
688 cp = g_new_consumer(sc->sc_provider->geom); in g_gate_modify()
717 pp = sc->sc_provider; in g_gate_modify()
H A Dg_gate.h83 struct g_provider *sc_provider; /* P: (read-only) */ member
/freebsd/sys/geom/mirror/
H A Dg_mirror.c576 if (sc->sc_provider != NULL) in g_mirror_destroy_device()
866 if (sc->sc_provider == NULL) in g_mirror_idle()
874 if (acw > 0 || (acw == -1 && sc->sc_provider->acw > 0)) { in g_mirror_idle()
964 KASSERT(sc->sc_provider == bp->bio_parent->bio_to, in g_mirror_regular_request()
1657 mod = slice % sc->sc_provider->sectorsize; in g_mirror_request_split()
1659 slice += sc->sc_provider->sectorsize - mod; in g_mirror_request_split()
2047 } else if (bp->bio_to != sc->sc_provider) { in g_mirror_worker()
2109 bp->bio_to = disk->d_softc->sc_provider; in g_mirror_sync_reinit()
2141 error = g_attach(cp, sc->sc_provider); in g_mirror_sync_start()
2277 sc->sc_provider = pp; in g_mirror_launch_provider()
[all …]
H A Dg_mirror_ctl.c93 if (sc->sc_provider != NULL) in g_mirror_find_launched_device()
692 if (sc->sc_provider->mediasize > pp->mediasize - mdsize) { in g_mirror_ctl_insert()
698 if ((sc->sc_provider->sectorsize % pp->sectorsize) != 0) { in g_mirror_ctl_insert()
897 sc->sc_provider->name); in g_mirror_ctl_resize()
917 g_resize_provider(sc->sc_provider, mediasize); in g_mirror_ctl_resize()
H A Dg_mirror.h179 struct g_provider *sc_provider; member
/freebsd/sys/geom/raid3/
H A Dg_raid3.c653 if (sc->sc_provider != NULL) in g_raid3_destroy_device()
889 if (sc->sc_provider == NULL) in g_raid3_idle()
897 if (acw > 0 || (acw == -1 && sc->sc_provider->acw > 0)) { in g_raid3_idle()
1758 bp->bio_to = sc->sc_provider; in g_raid3_sync_request()
2151 } else if (bp->bio_to != sc->sc_provider) { in g_raid3_worker()
2238 error = g_attach(cp, sc->sc_provider); in g_raid3_sync_start()
2276 bp->bio_to = sc->sc_provider; in g_raid3_sync_start()
2372 sc->sc_provider = pp; in g_raid3_launch_provider()
2388 KASSERT(sc->sc_provider != NULL, ("NULL provider (device=%s).", in g_raid3_destroy_provider()
2392 g_error_provider(sc->sc_provider, ENXI in g_raid3_destroy_provider()
[all...]
H A Dg_raid3.h185 struct g_provider *sc_provider; member