| /freebsd/contrib/nvi/cl/ |
| H A D | cl_main.c | 1 /*- 44 * main -- 52 GS *gp; in main() local 62 __global_list = gp = gs_init(); in main() 74 if (!strcmp(*t_av, "--")) { in main() 82 clp = cl_init(gp); in main() 95 if ((OG_D_STR(gp, GO_TERM) = in main() 96 OG_STR(gp, GO_TERM) = strdup(ttype)) == NULL) in main() 104 OG_VAL(gp, GO_LINES) = OG_D_VAL(gp, GO_LINES) = rows; in main() 105 OG_VAL(gp, GO_COLUMNS) = OG_D_VAL(gp, GO_COLUMNS) = cols; in main() [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_rtl_mips64.S | 11 daddiu $sp,$sp,-40 15 sd $gp,8($sp) 18 lui $gp,%hi(%neg(%gp_rel(setjmp))) 19 daddu $gp,$gp,$t9 20 daddiu $gp,$gp,%lo(%neg(%gp_rel(setjmp))) 21 move $s0,$gp 36 // restore gp 37 move $gp,$s0 43 ld $gp,8($sp) 54 .size setjmp, .-setjmp [all …]
|
| /freebsd/sys/geom/mountver/ |
| H A D | g_mountver.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 5 * Copyright (c) 2004-2006 Pawel Jakub Dawidek <pjd@FreeBSD.org> 63 static int g_mountver_destroy(struct g_geom *gp, boolean_t force); 66 struct g_geom *gp); 70 struct g_geom *gp, struct g_consumer *cp, struct g_provider *pp); 90 if (cp->acr > 0 || cp->acw > 0 || cp->ace > 0) in g_mountver_detach() 91 g_access(cp, -cp->acr, -cp->acw, -cp->ace); in g_mountver_detach() 99 struct g_geom *gp; in g_mountver_done() local 103 cp = bp->bio_from; in g_mountver_done() [all …]
|
| /freebsd/sys/geom/ |
| H A D | geom_subr.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 4 * Copyright (c) 2002 Poul-Henning Kamp 8 * This software was developed for the FreeBSD Project by Poul-Henning Kamp 10 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the 129 struct g_geom *gp; in g_load_class() local 139 mp = hh->mp; in g_load_class() 140 hh->error = 0; in g_load_class() 141 if (hh->post) { in g_load_class() 145 g_trace(G_T_TOPOLOGY, "g_load_class(%s)", mp->name); in g_load_class() [all …]
|
| H A D | geom_dump.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 4 * Copyright (c) 2002 Poul-Henning Kamp 7 * Copyright (c) 2013-2022 Alexander Motin <mav@FreeBSD.org> 9 * This software was developed for the FreeBSD Project by Poul-Henning Kamp 11 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the 54 cp, cp->acr, cp->acw, cp->ace); in g_confdot_consumer() 55 if (cp->provider) in g_confdot_consumer() 56 sbuf_printf(sb, "z%p -> z%p;\n", cp, cp->provider); in g_confdot_consumer() 64 "sector=%u\\nstripe=%ju\"];\n", pp, pp->name, pp->acr, pp->acw, in g_confdot_provider() [all …]
|
| H A D | geom_slice.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 4 * Copyright (c) 2002 Poul-Henning Kamp 8 * This software was developed for the FreeBSD Project by Poul-Henning Kamp 10 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the 62 gsp->softc = g_malloc(scsize, M_WAITOK | M_ZERO); in g_slice_alloc() 64 gsp->softc = NULL; in g_slice_alloc() 65 gsp->slices = g_malloc(nslice * sizeof(struct g_slice), in g_slice_alloc() 67 gsp->nslice = nslice; in g_slice_alloc() 72 g_slice_free(struct g_geom *gp) in g_slice_free() argument [all …]
|
| /freebsd/contrib/nvi/vi/ |
| H A D | vs_msg.c | 1 /*- 32 * -- only wait if the screen is full 43 * vs_busy -- 57 GS *gp; in vs_busy() local 59 static const char flagc[] = "|/-\\"; in vs_busy() 69 gp = sp->gp; in vs_busy() 80 ++vip->busy_ref; in vs_busy() 81 if (vip->totalcount != 0 || vip->busy_ref != 1) in vs_busy() 85 vip->busy_ch = 0; in vs_busy() 86 timepoint_steady(&vip->busy_ts); in vs_busy() [all …]
|
| H A D | vs_split.c | 1 /*- 29 static void vs_insert(SCR *sp, GS *gp); 33 * vs_split -- 42 int ccl) /* Colon-command line split. */ in vs_split() 44 GS *gp; in vs_split() local 49 gp = sp->gp; in vs_split() 53 if (sp->rows < 4) { in vs_split() 55 "222|Screen must be larger than %d lines to split", 4 - 1); in vs_split() 66 _HMAP(new)->lno = sp->lno; in vs_split() 67 _HMAP(new)->coff = 0; in vs_split() [all …]
|
| /freebsd/sys/geom/multipath/ |
| H A D | g_multipath.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2011-2013 Alexander Motin <mav@FreeBSD.org> 5 * Copyright (c) 2006-2007 Matthew Jacob <mjacob@FreeBSD.org> 125 g_multipath_good(struct g_geom *gp) in g_multipath_good() argument 130 LIST_FOREACH(cp, &gp->consumer, consumer) { in g_multipath_good() 131 if ((cp->index & MP_BAD) == 0) in g_multipath_good() 142 struct g_geom *gp; in g_multipath_fault() local 144 gp = cp->geom; in g_multipath_fault() 145 sc = gp->softc; in g_multipath_fault() [all …]
|
| /freebsd/sys/geom/uzip/ |
| H A D | g_uzip.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 6 * Copyright (c) 2006-2016 Maxim Sobolev <sobomax@FreeBSD.org> 62 FEATURE(geom_uzip, "GEOM read-only compressed disks support"); 73 #define ABS(a) ((a) < 0 ? -(a) : (a)) 108 "Debug level (0-4)"); 120 BLK_IN_RANGE(cn, g_uzip_debug_block, -8)) { \ 128 (intmax_t)ecn - (intmax_t)bcn)) { \ 135 * Maximum allowed valid block size (to prevent foot-shooting) 145 g_uzip_softc_free(struct g_geom *gp) in g_uzip_softc_free() argument [all …]
|
| /freebsd/contrib/nvi/common/ |
| H A D | key.c | 1 /*- 91 (sizeof(keylist) / sizeof(keylist[0])) - ADDITIONAL_CHARACTERS; 94 * v_key_init -- 103 GS *gp; in v_key_init() local 107 gp = sp->gp; in v_key_init() 120 for (kp = keylist, cnt = nkeylist; cnt--; ++kp) in v_key_init() 121 gp->special_key[kp->ch] = kp->value; in v_key_init() 123 /* Find a non-printable character to use as a message separator. */ in v_key_init() 126 gp->noprint = ch; in v_key_init() 129 if (ch != gp->noprint) { in v_key_init() [all …]
|
| H A D | main.c | 1 /*- 34 * editor -- 40 editor(GS *gp, int argc, char *argv[]) in editor() argument 56 if (gp->scr_busy == NULL) in editor() 57 gp->scr_busy = vs_busy; in editor() 59 if (gp->scr_msg == NULL) in editor() 60 gp->scr_msg = vs_msg; in editor() 61 gp->catd = (nl_catd)-1; in editor() 64 TAILQ_INIT(gp->dq); in editor() 65 TAILQ_INIT(gp->hq); in editor() [all …]
|
| H A D | options.h | 1 /*- 26 (F_ISSET(&(sp)->opts[(o)], OPT_GLOBAL) ? \ 27 (sp)->gp->opts[(sp)->opts[(o)].o_cur.val].fld : \ 28 (sp)->opts[(o)].fld) 31 #define OG_CLR(gp, o) ((gp)->opts[(o)].o_cur.val) = 0 argument 32 #define OG_SET(gp, o) ((gp)->opts[(o)].o_cur.val) = 1 argument 33 #define OG_STR(gp, o) ((gp)->opts[(o)].o_cur.str) argument 34 #define OG_VAL(gp, o) ((gp)->opts[(o)].o_cur.val) argument 35 #define OG_ISSET(gp, o) OG_VAL(gp, o) argument 37 #define OG_D_STR(gp, o) ((gp)->opts[(o)].o_def.str) argument [all …]
|
| /freebsd/sys/geom/bde/ |
| H A D | g_bde.c | |
| /freebsd/sys/geom/shsec/ |
| H A D | g_shsec.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 52 struct g_geom *gp); 118 g_shsec_maxmem -= g_shsec_maxmem % maxphys; in g_shsec_init() 138 for (i = 0; i < sc->sc_ndisks; i++) { in g_shsec_nvalid() 139 if (sc->sc_disks[i] != NULL) in g_shsec_nvalid() 152 KASSERT(cp != NULL, ("Non-valid disk in %s.", __func__)); in g_shsec_remove_disk() 153 sc = (struct g_shsec_softc *)cp->private; in g_shsec_remove_disk() 155 no = cp->index; in g_shsec_remove_disk() 157 G_SHSEC_DEBUG(0, "Disk %s removed from %s.", cp->provider->name, in g_shsec_remove_disk() [all …]
|
| /freebsd/sys/geom/part/ |
| H A D | g_part.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2002, 2005-2009 Marcel Moolenaar 67 { "apple-apfs", G_PART_ALIAS_APPLE_APFS }, 68 { "apple-boot", G_PART_ALIAS_APPLE_BOOT }, 69 { "apple-core-storage", G_PART_ALIAS_APPLE_CORE_STORAGE }, 70 { "apple-hfs", G_PART_ALIAS_APPLE_HFS }, 71 { "apple-label", G_PART_ALIAS_APPLE_LABEL }, 72 { "apple-raid", G_PART_ALIAS_APPLE_RAID }, 73 { "apple-raid-offline", G_PART_ALIAS_APPLE_RAID_OFFLINE }, [all …]
|
| /freebsd/sys/geom/nop/ |
| H A D | g_nop.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2004-2006 Pawel Jakub Dawidek <pjd@FreeBSD.org> 52 static int g_nop_destroy(struct g_geom *gp, boolean_t force); 54 struct g_geom *gp); 102 g_nop_destroy(cp->geom, 1); in g_nop_orphan() 109 struct g_geom *gp; in g_nop_resize() local 115 gp = cp->geom; in g_nop_resize() 116 sc = gp->softc; in g_nop_resize() 118 if (sc->sc_explicitsize != 0) in g_nop_resize() [all …]
|
| /freebsd/sys/geom/concat/ |
| H A D | g_concat.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2004-2005 Pawel Jakub Dawidek <pjd@FreeBSD.org> 57 struct g_geom *gp); 106 sx_assert(&sc->sc_disks_lock, SA_LOCKED); in g_concat_nvalid() 109 TAILQ_FOREACH(disk, &sc->sc_disks, d_next) { in g_concat_nvalid() 110 if (disk->d_consumer != NULL) in g_concat_nvalid() 124 KASSERT(disk->d_consumer != NULL, ("Non-valid disk in %s.", __func__)); in g_concat_remove_disk() 125 sc = disk->d_softc; in g_concat_remove_disk() 126 cp = disk->d_consumer; in g_concat_remove_disk() [all …]
|
| /freebsd/sbin/geom/core/ |
| H A D | geom.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2004-2009 Pawel Jakub Dawidek <pjd@FreeBSD.org> 94 "[-a] [name ...]" 103 "[-ags] [name ...]" 117 if (cmd->gc_usage != NULL) { in usage_command() 120 sptr = ptr = strdup(cmd->gc_usage); in usage_command() 125 cmd->gc_name, pos); in usage_command() 131 fprintf(stderr, "%s %s %s", prefix, comm, cmd->gc_name); in usage_command() 132 if ((cmd->gc_flags & G_FLAG_VERBOSE) != 0) in usage_command() [all …]
|
| /freebsd/sys/geom/stripe/ |
| H A D | g_stripe.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2004-2005 Pawel Jakub Dawidek <pjd@FreeBSD.org> 52 struct g_geom *gp); 79 "Fast, but memory-consuming, mode"); 122 g_stripe_maxmem -= g_stripe_maxmem % maxphys; in g_stripe_init() 142 for (i = 0; i < sc->sc_ndisks; i++) { in g_stripe_nvalid() 143 if (sc->sc_disks[i] != NULL) in g_stripe_nvalid() 156 KASSERT(cp != NULL, ("Non-valid disk in %s.", __func__)); in g_stripe_remove_disk() 157 sc = (struct g_stripe_softc *)cp->geom->softc; in g_stripe_remove_disk() [all …]
|
| /freebsd/sys/geom/label/ |
| H A D | g_label.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2004-2005 Pawel Jakub Dawidek <pjd@FreeBSD.org> 60 struct g_geom *gp); 61 static int g_label_destroy(struct g_geom *gp, boolean_t force); 118 for (i = size - 1; i >= 0; i--) { in g_label_rtrim() 130 struct g_geom *gp __unused) in g_label_destroy_geom() 145 LIST_FIRST(&cp->geom->provider)->name); in g_label_orphan() 154 LIST_FIRST(&cp->geom->provider)->name); in g_label_spoiled() 163 LIST_FIRST(&cp->geom->provider)->name); in g_label_resize() [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/xray/ |
| H A D | xray_trampoline_mips64.S | 1 //===-- xray_trampoline_mips64.s --------------------------------*- ASM -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 // This implements the MIPS64-specific assembler for the trampolines. 13 //===----------------------------------------------------------------------===// 24 daddiu $sp, $sp, -144 26 .cfi_offset 31, -8 27 sd $gp, 128($sp) 45 lui $gp, %hi(%neg(%gp_rel(__xray_FunctionEntry))) 46 daddu $gp, $gp, $t9 [all …]
|
| /freebsd/lib/geom/part/ |
| H A D | geom_part.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 104 "-t type [-a alignment] [-b start] [-s size] [-i index] " 105 "[-l label] [-f flags] geom" 117 "[-N] [-b bootcode] [-p partcode -i index] [-f flags] geom" 127 "-s scheme [-n entries] [-f flags] provider" 133 "-i index [-f flags] geom" 139 "[-F] [-f flags] geom" 147 "-i index [-l label] [-t type] [-f flags] geom" 154 "-a attrib [-i index] [-f flags] geom" [all …]
|
| /freebsd/sys/geom/cache/ |
| H A D | g_cache.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 74 if (error || !req->newptr) in sysctl_handle_pct() 108 #define OFF2BNO(off, sc) ((off) >> (sc)->sc_bshift) 109 #define BNO2OFF(bno, sc) ((bno) << (sc)->sc_bshift) 116 mtx_assert(&sc->sc_mtx, MA_OWNED); in g_cache_alloc() 118 if (!TAILQ_EMPTY(&sc->sc_usedlist)) { in g_cache_alloc() 119 dp = TAILQ_FIRST(&sc->sc_usedlist); in g_cache_alloc() 120 TAILQ_REMOVE(&sc->sc_usedlist, dp, d_used); in g_cache_alloc() 121 sc->sc_nused--; in g_cache_alloc() [all …]
|
| /freebsd/share/man/man4/ |
| H A D | udbc.4 | 7 .\" SPDX-License-Identifier: BSD-2-Clause 28 interface class is Diagnostic Class and the subclass is DbC.GP. 32 This is designed to provide a general-purpose communication channel 42 The supported class in USB xHCs is typically DbC.GP, 44 The DbC.GP uses IN and OUT endpoint pairs and realizes a single 49 the DbC.GP is seen as a simple serial device. 51 Most systems with USB xHC can be configured to provide DbC.GP access. 54 is a driver that connects to DbC.GP-supported devices, 61 A native DbC.GP device can be attached using the 65 A USB xHC DbC.GP device on a target system needs a special hardware [all …]
|