| /netbsd-src/sys/arch/amiga/dev/ |
| H A D | grf.c | 174 struct grf_softc *gp; in grfattach() local 177 gp = device_private(parent); in grfattach() 178 gp->g_device = self; in grfattach() 179 grfsp[gp->g_unit] = gp; in grfattach() 185 gp->g_grfdev = makedev(maj, gp->g_unit); in grfattach() 188 printf(": width %d height %d", gp->g_display.gd_dwidth, in grfattach() 189 gp->g_display.gd_dheight); in grfattach() 190 if (gp->g_display.gd_colors == 2) in grfattach() 193 printf(" colors %d\n", gp->g_display.gd_colors); in grfattach() 196 vcons_init(&gp->g_vd, gp, gp->g_defaultscr, gp->g_accessops); in grfattach() [all …]
|
| H A D | grf_et.c | 334 struct grf_softc *gp; in grfetattach() local 344 gp = &congrf; in grfetattach() 345 gp->g_device = &temp; in grfetattach() 346 temp.dv_private = gp; in grfetattach() 348 gp = device_private(self); in grfetattach() 349 gp->g_device = self; in grfetattach() 356 memcpy(&gp->g_display, &congrf.g_display, in grfetattach() 357 (char *) &gp[1] - (char *) &gp->g_display); in grfetattach() 359 gp->g_regkva = (volatile void *) et_regaddr; in grfetattach() 360 gp->g_fbkva = (volatile void *) et_fbaddr; in grfetattach() [all …]
|
| H A D | grf_cc.c | 122 struct grf_softc *gp; in grfccattach() local 125 gp = &congrf; in grfccattach() 126 gp->g_device = &temp; in grfccattach() 127 temp.dv_private = gp; in grfccattach() 129 gp = device_private(self); in grfccattach() 130 gp->g_device = self; in grfccattach() 138 memcpy(&gp->g_display, &congrf.g_display, in grfccattach() 139 (char *)&gp[1] - (char *)&gp->g_display); in grfccattach() 141 gp->g_unit = GRF_CC_UNIT; in grfccattach() 142 gp->g_flags = GF_ALIVE; in grfccattach() [all …]
|
| H A D | grf_ul.c | 167 struct grf_softc *gp = arg; in ulisr() local 171 if (gp == NULL) in ulisr() 174 ba = (volatile struct gspregs *)gp->g_regkva; in ulisr() 203 ul_load_code(struct grf_softc *gp) in ul_load_code() argument 213 gup = (struct grf_ul_softc *)gp; in ul_load_code() 214 ba = (volatile struct gspregs *)gp->g_regkva; in ul_load_code() 215 gi = &gp->g_display; in ul_load_code() 347 ul_putcmap(gp, &gcm, GRFIMDEV); in ul_load_code() 354 ul_putcmap(gp, &gcm, GRFOVDEV); in ul_load_code() 360 ul_load_mon(struct grf_softc *gp, struct grfvideo_mode *md) in ul_load_mon() argument [all …]
|
| H A D | grf_cv3d.c | 129 int cv3d_ioctl(register struct grf_softc *gp, u_long cmd, void *data); 428 struct grf_softc *gp; in grfcv3dattach() local 438 gp = &congrf; in grfcv3dattach() 439 gp->g_device = &temp; in grfcv3dattach() 440 temp.dv_private = gp; in grfcv3dattach() 442 gp = device_private(self); in grfcv3dattach() 443 gp->g_device = self; in grfcv3dattach() 451 memcpy(&gp->g_display, &congrf.g_display, in grfcv3dattach() 452 (char *) &gp[1] - (char *) &gp->g_display); in grfcv3dattach() 455 gp->g_fbkva = in grfcv3dattach() [all …]
|
| H A D | grf_cl.c | 398 struct grf_softc *gp; in grfclattach() local 412 gp = &congrf; in grfclattach() 413 gp->g_device = &temp; in grfclattach() 414 temp.dv_private = gp; in grfclattach() 416 gp = device_private(self); in grfclattach() 417 gp->g_device = self; in grfclattach() 424 memcpy(&gp->g_display, &congrf.g_display, in grfclattach() 425 (char *) &gp[1] - (char *) &gp->g_display); in grfclattach() 427 gp->g_regkva = (volatile void *) cl_regaddr; in grfclattach() 428 gp->g_fbkva = (volatile void *) cl_fbaddr; in grfclattach() [all …]
|
| H A D | grf_cv.c | 96 int cv_ioctl(register struct grf_softc *gp, u_long cmd, void *data); 354 struct grf_softc *gp = arg; in cvintr() local 355 volatile void *ba = gp->g_regkva; in cvintr() 359 if (gp == NULL) in cvintr() 383 ((volatile char*)gp->g_fbkva + HWC_OFF); in cvintr() 396 cv_setspritepos (gp, NULL); in cvintr() 482 struct grf_softc *gp; in grfcvattach() local 493 gp = &gcp->gcs_sc; in grfcvattach() 494 gp->g_device = &temp; in grfcvattach() 495 temp.dv_private = gp; in grfcvattach() [all …]
|
| H A D | grf_rh.c | 67 int rh_load_mon(struct grf_softc *gp, struct MonDef *md); 68 int rh_getvmode(struct grf_softc *gp, struct grfvideo_mode *vm); 69 int rh_setvmode(struct grf_softc *gp, unsigned int mode, enum mode_type type); 152 RZ3DisableHWC(struct grf_softc *gp) in RZ3DisableHWC() argument 154 volatile void *ba = gp->g_regkva; in RZ3DisableHWC() 160 RZ3SetupHWC(struct grf_softc *gp, unsigned char col1, unsigned col2, in RZ3SetupHWC() argument 163 volatile unsigned char *ba = gp->g_regkva; in RZ3SetupHWC() 167 struct MonDef *MonitorDef = (struct MonDef *) gp->g_data; in RZ3SetupHWC() 220 RZ3AlphaErase(struct grf_softc *gp, unsigned short xd, unsigned short yd, in RZ3AlphaErase() argument 223 const struct MonDef * md = (struct MonDef *) gp->g_data; in RZ3AlphaErase() [all …]
|
| H A D | grf_rt.c | 58 int rt_ioctl(struct grf_softc *gp, u_long, void *); 293 rt_load_mon(struct grf_softc *gp, struct MonDef *md) in rt_load_mon() argument 295 struct grfinfo *gi = &gp->g_display; in rt_load_mon() 306 ba = gp->g_regkva; in rt_load_mon() 307 fb = (volatile char*)gp->g_fbkva; in rt_load_mon() 743 gp->g_data = (void *)md; in rt_load_mon() 848 struct grf_softc *gp; in grfrtattach() local 853 gp = &congrf; in grfrtattach() 854 gp->g_device = &temp; in grfrtattach() 855 temp.dv_private = gp; in grfrtattach() [all …]
|
| /netbsd-src/external/bsd/nvi/dist/cl/ |
| H A D | cl_main.c | 61 GS *gp; in main() local 73 __global_list = gp = gs_init(argv[0]); in main() 93 wp = gs_new_win(gp); in main() 107 gp->progname); in main() 110 term_init(gp->progname, ttype); in main() 114 if ((OG_D_STR(gp, GO_TERM) = in main() 115 OG_STR(gp, GO_TERM) = strdup(ttype)) == NULL) in main() 116 perr(gp->progname, NULL); in main() 123 OG_VAL(gp, GO_LINES) = OG_D_VAL(gp, GO_LINES) = rows; in main() 124 OG_VAL(gp, GO_COLUMNS) = OG_D_VAL(gp, GO_COLUMNS) = cols; in main() [all …]
|
| /netbsd-src/sys/arch/atari/dev/ |
| H A D | grf.c | 171 struct grf_softc *gp; in grfopen() local 176 gp = grfsp[GRFUNIT(dev)]; in grfopen() 177 if (gp == NULL) in grfopen() 180 if ((gp->g_flags & GF_ALIVE) == 0) in grfopen() 183 if ((gp->g_flags & (GF_OPEN|GF_EXCLUDE)) == (GF_OPEN|GF_EXCLUDE)) in grfopen() 185 grf_viewsync(gp); in grfopen() 194 struct grf_softc *gp; in grfclose() local 196 gp = grfsp[GRFUNIT(dev)]; in grfclose() 198 gp->g_flags &= GF_ALIVE; in grfclose() 206 struct grf_softc *gp; in grfioctl() local [all …]
|
| /netbsd-src/external/bsd/nvi/dist/vi/ |
| H A D | vs_msg.c | 67 GS *gp; in vs_busy() local 78 gp = sp->gp; in vs_busy() 98 (void)gp->scr_cursor(sp, &vip->busy_oldy, &vip->busy_oldx); in vs_busy() 102 (void)gp->scr_move(sp, LASTLINE(sp), 0); in vs_busy() 103 (void)gp->scr_addstr(sp, p, len); in vs_busy() 104 (void)gp->scr_cursor(sp, ¬used, &vip->busy_fx); in vs_busy() 105 (void)gp->scr_clrtoeol(sp); in vs_busy() 106 (void)gp->scr_move(sp, LASTLINE(sp), vip->busy_fx); in vs_busy() 118 (void)gp->scr_move(sp, LASTLINE(sp), 0); in vs_busy() 119 (void)gp->scr_clrtoeol(sp); in vs_busy() [all …]
|
| /netbsd-src/sys/arch/x68k/dev/ |
| H A D | grf.c | 115 struct grf_softc *gp; in grfopen() local 118 gp = device_lookup_private(&grf_cd, GRFUNIT(dev)); in grfopen() 119 if (gp == NULL) in grfopen() 122 if ((gp->g_flags & GF_ALIVE) == 0) in grfopen() 125 if ((gp->g_flags & (GF_OPEN|GF_EXCLUDE)) == (GF_OPEN|GF_EXCLUDE)) in grfopen() 133 if ((gp->g_flags & GF_OPEN) == 0) { in grfopen() 134 gp->g_flags |= GF_OPEN; in grfopen() 135 error = grfon(gp); in grfopen() 144 struct grf_softc *gp = device_lookup_private(&grf_cd, GRFUNIT(dev)); in grfclose() local 146 if ((gp->g_flags & GF_ALIVE) == 0) in grfclose() [all …]
|
| H A D | grf_machdep.c | 136 struct grf_softc *gp; in grfattach() local 143 gp = device_private(self); in grfattach() 144 gp->g_device = self; in grfattach() 145 gp->g_cfaddr = addr; in grfattach() 146 grfinit(gp, addr); in grfattach() 149 gp->g_display.gd_dwidth, gp->g_display.gd_dheight); in grfattach() 150 if (gp->g_display.gd_colors == 2) in grfattach() 153 aprint_normal("%d colors", gp->g_display.gd_colors); in grfattach() 154 aprint_normal(" %s display\n", gp->g_sw->gd_desc); in grfattach() 159 config_found(self, gp, grfprint, CFARGS_NONE); in grfattach() [all …]
|
| /netbsd-src/external/bsd/nvi/dist/ip/ |
| H A D | ip_main.c | 56 GS *gp; in main() local 61 __global_list = gp = gs_init(argv[0]); in main() 102 wp = gs_new_win(gp); in main() 108 gp->run(wp, run_editor, (void *)wp); in main() 112 gs_end(gp); in main() 116 free(gp); in main() 124 GS *gp; in run_editor() local 132 gp = wp->gp; in run_editor() 136 if ((OG_D_STR(gp, GO_TERM) = in run_editor() 137 OG_STR(gp, GO_TERM) = strdup("ip_curses")) == NULL) in run_editor() [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/tsan/ |
| H A D | tsan_rtl_mips64.S | 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 37 move $gp,$s0 43 ld $gp,8($sp) 67 sd $gp,8($sp) 70 lui $gp,%hi(%neg(%gp_rel(_setjmp))) 71 daddu $gp,$gp,$t9 [all …]
|
| /netbsd-src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/ |
| H A D | tsan_rtl_mips64.S | 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 37 move $gp,$s0 43 ld $gp,8($sp) 67 sd $gp,8($sp) 70 lui $gp,%hi(%neg(%gp_rel(_setjmp))) 71 daddu $gp,$gp,$t9 [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libsanitizer/tsan/ |
| H A D | tsan_rtl_mips64.S | 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 37 move $gp,$s0 43 ld $gp,8($sp) 67 sd $gp,8($sp) 70 lui $gp,%hi(%neg(%gp_rel(_setjmp))) 71 daddu $gp,$gp,$t9 [all …]
|
| /netbsd-src/external/bsd/nvi/dist/common/ |
| H A D | gs.c | 37 GS *gp; in gs_init() local 45 CALLOC_NOMSG(NULL, gp, GS *, 1, sizeof(GS)); in gs_init() 46 if (gp == NULL) in gs_init() 49 gp->progname = name; in gs_init() 53 TAILQ_INIT(&gp->dq); in gs_init() 55 TAILQ_INIT(&gp->hq); in gs_init() 56 gp->noprint = DEFAULT_NOPRINT; in gs_init() 59 TAILQ_INIT(&gp->frefq); in gs_init() 60 TAILQ_INIT(&gp->exfq); in gs_init() 61 LIST_INIT(&gp->seqq); in gs_init() [all …]
|
| H A D | main.c | 71 GS *gp; in editor() local 82 gp = wp->gp; in editor() 85 if (gp->scr_busy == NULL) in editor() 86 gp->scr_busy = vs_busy; in editor() 93 if (!strcmp(gp->progname, "ex") || !strcmp(gp->progname, "nex")) in editor() 97 if (!strcmp(gp->progname, "nview") || in editor() 98 !strcmp(gp->progname, "view")) in editor() 106 if (v_obsolete(gp->progname, argv)) in editor() 116 F_SET(gp, G_SNAPSHOT); in editor() 133 if (gp->c_option != NULL) { in editor() [all …]
|
| H A D | options.h | 30 (sp)->gp->opts[(sp)->opts[(o)].o_cur.val].fld : \ 34 #define OG_CLR(gp, o) ((gp)->opts[(o)].o_cur.val) = 0 argument 35 #define OG_SET(gp, o) ((gp)->opts[(o)].o_cur.val) = 1 argument 36 #define OG_STR(gp, o) ((gp)->opts[(o)].o_cur.str) argument 37 #define OG_VAL(gp, o) ((gp)->opts[(o)].o_cur.val) argument 38 #define OG_ISSET(gp, o) OG_VAL(gp, o) argument 40 #define OG_D_STR(gp, o) ((gp)->opts[(o)].o_def.str) argument 41 #define OG_D_VAL(gp, o) ((gp)->opts[(o)].o_def.val) argument
|
| /netbsd-src/sys/dev/fdt/ |
| H A D | fdt_gpio.c | 115 struct fdtbus_gpio_pin *gp = NULL; in fdtbus_gpio_acquire_index() local 134 gp = kmem_alloc(sizeof(*gp), KM_SLEEP); in fdtbus_gpio_acquire_index() 135 gp->gp_gc = gc; in fdtbus_gpio_acquire_index() 136 gp->gp_priv = gc->gc_funcs->acquire(gc->gc_dev, in fdtbus_gpio_acquire_index() 138 if (gp->gp_priv == NULL) { in fdtbus_gpio_acquire_index() 139 kmem_free(gp, sizeof(*gp)); in fdtbus_gpio_acquire_index() 148 return gp; in fdtbus_gpio_acquire_index() 152 fdtbus_gpio_release(struct fdtbus_gpio_pin *gp) in fdtbus_gpio_release() argument 154 struct fdtbus_gpio_controller *gc = gp->gp_gc; in fdtbus_gpio_release() 156 gc->gc_funcs->release(gc->gc_dev, gp->gp_priv); in fdtbus_gpio_release() [all …]
|
| /netbsd-src/external/gpl3/binutils/dist/gprofng/doc/ |
| H A D | Makefile.am | 33 gprofng_ug_TEXINFOS = fdl.texi gp-macros.texi 37 man_MANS = gprofng.1 gp-archive.1 gp-collect-app.1 gp-display-html.1 gp-display-src.1 gp-display-te… 42 $(man_MANS): $(srcdir)/gp-macros.texi 50 gp-archive.1: $(srcdir)/gp-archive.texi 51 gp-collect-app.1: $(srcdir)/gp-collect-app.texi 52 gp-display-html.1: $(srcdir)/gp-display-html.texi 53 gp-display-src.1: $(srcdir)/gp-display-src.texi 54 gp-display-text.1: $(srcdir)/gp-display-text.texi
|
| /netbsd-src/sys/kern/ |
| H A D | subr_prof.c | 213 struct gmonparam *gp = curcpu()->ci_gmon; in prof_set_state_xc() local 215 if (gp != NULL) in prof_set_state_xc() 216 gp->state = state; in prof_set_state_xc() 231 struct gmonparam *gp; in sysctl_kern_profiling() local 254 gp = malloc(sizeof(struct gmonparam) + size, M_GPROF, in sysctl_kern_profiling() 256 if (gp == NULL) in sysctl_kern_profiling() 258 memcpy(gp, &_gmonparam, sizeof(_gmonparam)); in sysctl_kern_profiling() 259 cp = (char *)(gp + 1); in sysctl_kern_profiling() 260 gp->tos = (struct tostruct *)cp; in sysctl_kern_profiling() 261 gp->kcount = (u_short *)(cp + gp->tossize); in sysctl_kern_profiling() [all …]
|
| /netbsd-src/sys/external/bsd/compiler_rt/dist/lib/xray/ |
| H A D | xray_trampoline_mips64.S | 28 sd $gp, 128($sp) 46 lui $gp, %hi(%neg(%gp_rel(__xray_FunctionEntry))) 47 daddu $gp, $gp, $t9 48 daddiu $gp ,$gp, %lo(%neg(%gp_rel(__xray_FunctionEntry))) 79 ld $gp, 128($sp) 98 sd $gp, 48($sp) 106 lui $gp, %hi(%neg(%gp_rel(__xray_FunctionExit))) 107 daddu $gp, $gp, $t9 108 daddiu $gp ,$gp, %lo(%neg(%gp_rel(__xray_FunctionExit))) 129 ld $gp, 48($sp)
|