| /freebsd-14-stable/sys/arm/nvidia/drm2/ |
| HD | tegra_fb.c | 46 struct tegra_fb *fb; in fb_destroy() local 50 fb = container_of(drm_fb, struct tegra_fb, drm_fb); in fb_destroy() 51 for (i = 0; i < fb->nplanes; i++) { in fb_destroy() 52 bo = fb->planes[i]; in fb_destroy() 58 free(fb->planes, DRM_MEM_DRIVER); in fb_destroy() 65 struct tegra_fb *fb; in fb_create_handle() local 68 fb = container_of(drm_fb, struct tegra_fb, drm_fb); in fb_create_handle() 69 rv = drm_gem_handle_create(file, &fb->planes[0]->gem_obj, handle); in fb_create_handle() 75 fb_dirty(struct drm_framebuffer *fb, struct drm_file *file_priv, in fb_dirty() argument 92 struct tegra_fb *fb; in fb_alloc() local [all …]
|
| HD | tegra_dc.c | 144 dc_parse_drm_format(struct tegra_fb *fb, struct dc_window *win) in dc_parse_drm_format() argument 152 switch (fb->drm_fb.pixel_format) { in dc_parse_drm_format() 208 switch (fb->rotation) { in dc_parse_drm_format() 215 if (!fb->block_linear) in dc_parse_drm_format() 228 fb->block_linear ? SURFACE_KIND_BL_16B2: SURFACE_KIND_PITCH; in dc_parse_drm_format() 229 win->block_height = fb->block_height; in dc_parse_drm_format() 230 switch (fb->rotation) { in dc_parse_drm_format() 255 win->flip_x ^= fb->flip_x; in dc_parse_drm_format() 256 win->flip_y ^= fb->flip_y; in dc_parse_drm_format() 260 win->bits_per_pixel = fb->drm_fb.bits_per_pixel; in dc_parse_drm_format() [all …]
|
| /freebsd-14-stable/sys/arm/broadcom/bcm2835/ |
| HD | bcm2835_fbd.c | 63 struct bcm2835_fb_config fb; member 77 bcm_fb_init(struct bcmsc_softc *sc, struct bcm2835_fb_config *fb) in bcm_fb_init() argument 83 memset(fb, 0, sizeof(*fb)); in bcm_fb_init() 84 if (bcm2835_mbox_fb_get_w_h(fb) != 0) in bcm_fb_init() 86 if (bcm2835_mbox_fb_get_bpp(fb) != 0) in bcm_fb_init() 88 if (fb->bpp < FB_DEPTH) { in bcm_fb_init() 90 fb->bpp, FB_DEPTH); in bcm_fb_init() 91 fb->bpp = FB_DEPTH; in bcm_fb_init() 94 fb->bpp); in bcm_fb_init() 96 fb->vxres = fb->xres; in bcm_fb_init() [all …]
|
| HD | bcm2835_fb.c | 144 struct bcm2835_fb_config fb; in bcm_fb_attach() local 154 memset(&fb, 0, sizeof(fb)); in bcm_fb_attach() 155 if (bcm2835_mbox_fb_get_w_h(&fb) != 0) in bcm_fb_attach() 157 fb.bpp = FB_DEPTH; in bcm_fb_attach() 158 fb.vxres = fb.xres; in bcm_fb_attach() 159 fb.vyres = fb.yres; in bcm_fb_attach() 160 fb.xoffset = fb.yoffset = 0; in bcm_fb_attach() 161 if (bcm2835_mbox_fb_init(&fb) != 0) in bcm_fb_attach() 164 sc->fb_addr = (intptr_t)pmap_mapdev(fb.base, fb.size); in bcm_fb_attach() 165 sc->fb_paddr = fb.base; in bcm_fb_attach() [all …]
|
| HD | bcm2835_mbox.c | 508 bcm2835_mbox_fb_get_w_h(struct bcm2835_fb_config *fb) in bcm2835_mbox_fb_get_w_h() argument 522 fb->xres = msg.physical_w_h.body.resp.width; in bcm2835_mbox_fb_get_w_h() 523 fb->yres = msg.physical_w_h.body.resp.height; in bcm2835_mbox_fb_get_w_h() 530 bcm2835_mbox_fb_get_bpp(struct bcm2835_fb_config *fb) in bcm2835_mbox_fb_get_bpp() argument 544 fb->bpp = msg.bpp.body.resp.bpp; in bcm2835_mbox_fb_get_bpp() 550 bcm2835_mbox_fb_init(struct bcm2835_fb_config *fb) in bcm2835_mbox_fb_init() argument 559 msg.physical_w_h.body.req.width = fb->xres; in bcm2835_mbox_fb_init() 560 msg.physical_w_h.body.req.height = fb->yres; in bcm2835_mbox_fb_init() 562 msg.virtual_w_h.body.req.width = fb->vxres; in bcm2835_mbox_fb_init() 563 msg.virtual_w_h.body.req.height = fb->vyres; in bcm2835_mbox_fb_init() [all …]
|
| /freebsd-14-stable/tools/build/cross-build/ |
| HD | fgetwln_fallback.c | 50 struct filewbuf *fb; in fgetwln() local 56 fb = &fb_pool[fb_pool_cur]; in fgetwln() 57 if (fb->fp != stream && fb->fp != NULL) { in fgetwln() 60 fb = &fb_pool[fb_pool_cur]; in fgetwln() 62 fb->fp = stream; in fgetwln() 65 if (!fb->len || wused >= fb->len) { in fgetwln() 68 if (fb->len) in fgetwln() 69 fb->len *= 2; in fgetwln() 71 fb->len = FILEWBUF_INIT_LEN; in fgetwln() 73 wp = reallocarray(fb->wbuf, fb->len, sizeof(wchar_t)); in fgetwln() [all …]
|
| HD | fgetln_fallback.c | 51 struct filebuf *fb; in fgetln() local 58 fb = &fb_pool[fb_pool_cur]; in fgetln() 59 if (fb->fp != stream && fb->fp != NULL) { in fgetln() 62 fb = &fb_pool[fb_pool_cur]; in fgetln() 64 fb->fp = stream; in fgetln() 66 nread = getline(&fb->buf, &fb->len, stream); in fgetln() 76 return fb->buf; in fgetln()
|
| /freebsd-14-stable/contrib/telnet/libtelnet/ |
| HD | enc_des.c | 61 struct fb { struct 80 static struct fb fb[2]; argument 110 void fb64_init(struct fb *); 111 static int fb64_start(struct fb *, int, int); 112 int fb64_is(unsigned char *, int, struct fb *); 113 int fb64_reply(unsigned char *, int, struct fb *); 114 static void fb64_session(Session_Key *, int, struct fb *); 116 int fb64_keyid(int, unsigned char *, int *, struct fb *); 121 fb64_init(&fb[CFB]); in cfb64_init() 122 fb[CFB].fb_feed[4] = ENCTYPE_DES_CFB64; in cfb64_init() [all …]
|
| /freebsd-14-stable/crypto/heimdal/appl/telnet/libtelnet/ |
| HD | enc_des.c | 78 struct fb { struct 89 static struct fb fb[2]; argument 119 void fb64_init (struct fb *); 120 static int fb64_start (struct fb *, int, int); 121 int fb64_is (unsigned char *, int, struct fb *); 122 int fb64_reply (unsigned char *, int, struct fb *); 123 static void fb64_session (Session_Key *, int, struct fb *); 125 int fb64_keyid (int, unsigned char *, int *, struct fb *); 131 fb64_init(&fb[CFB]); in cfb64_init() 132 fb[CFB].fb_feed[4] = ENCTYPE_DES_CFB64; in cfb64_init() [all …]
|
| /freebsd-14-stable/sys/dev/vt/hw/ofwfb/ |
| HD | ofwfb.c | 51 struct fb_info fb; member 416 sc->fb.fb_cmsize = 16; in ofwfb_initialize() 418 if (sc->fb.fb_flags & FB_FLAG_NOWRITE) in ofwfb_initialize() 426 switch (sc->fb.fb_bpp) { in ofwfb_initialize() 432 vt_config_cons_colors(&sc->fb, COLOR_FORMAT_RGB, 255, in ofwfb_initialize() 437 (cell_t)((sc->fb.fb_cmap[i] >> 16) & 0xff), in ofwfb_initialize() 438 (cell_t)((sc->fb.fb_cmap[i] >> 8) & 0xff), in ofwfb_initialize() 439 (cell_t)((sc->fb.fb_cmap[i] >> 0) & 0xff), in ofwfb_initialize() 479 vt_config_cons_colors(&sc->fb, in ofwfb_initialize() 484 panic("Unknown color space depth %d", sc->fb.fb_bpp); in ofwfb_initialize() [all …]
|
| /freebsd-14-stable/sys/x86/xen/ |
| HD | pv.c | 348 } *fb = NULL; in fixup_console() local 359 fb = (__typeof__ (fb))preload_search_info(kmdp, in fixup_console() 362 if (fb == NULL) { in fixup_console() 369 sizeof(fb->efi.fb_mask_reserved), in fixup_console() 371 fb->vbe.fb_bpp = console->u.vesa_lfb.bits_per_pixel; in fixup_console() 374 if (fb == NULL) { in fixup_console() 375 fb = (__typeof__ (fb))preload_search_info(kmdp, in fixup_console() 377 if (fb == NULL) { in fixup_console() 383 fb->efi.fb_addr = console->u.vesa_lfb.lfb_base; in fixup_console() 386 fb->efi.fb_addr |= in fixup_console() [all …]
|
| /freebsd-14-stable/sys/dev/drm2/ |
| HD | drm_crtc_helper.c | 303 crtc->fb = NULL; in drm_helper_disable_unused_functions() 579 set->fb = NULL; in drm_crtc_helper_set_config() 581 if (set->fb) { in drm_crtc_helper_set_config() 583 set->crtc->base.id, set->fb->base.id, in drm_crtc_helper_set_config() 637 save_set.fb = set->crtc->fb; in drm_crtc_helper_set_config() 641 if (set->crtc->fb != set->fb) { in drm_crtc_helper_set_config() 643 if (set->crtc->fb == NULL) { in drm_crtc_helper_set_config() 646 } else if (set->fb == NULL) { in drm_crtc_helper_set_config() 648 } else if (set->fb->depth != set->crtc->fb->depth) { in drm_crtc_helper_set_config() 650 } else if (set->fb->bits_per_pixel != in drm_crtc_helper_set_config() [all …]
|
| HD | drm_crtc.c | 279 int drm_framebuffer_init(struct drm_device *dev, struct drm_framebuffer *fb, in drm_framebuffer_init() argument 284 refcount_init(&fb->refcount, 1); in drm_framebuffer_init() 286 ret = drm_mode_object_get(dev, &fb->base, DRM_MODE_OBJECT_FB); in drm_framebuffer_init() 290 fb->dev = dev; in drm_framebuffer_init() 291 fb->funcs = funcs; in drm_framebuffer_init() 293 list_add(&fb->head, &dev->mode_config.fb_list); in drm_framebuffer_init() 299 static void drm_framebuffer_free(struct drm_framebuffer *fb) in drm_framebuffer_free() argument 301 fb->funcs->destroy(fb); in drm_framebuffer_free() 310 void drm_framebuffer_unreference(struct drm_framebuffer *fb) in drm_framebuffer_unreference() argument 312 struct drm_device *dev = fb->dev; in drm_framebuffer_unreference() [all …]
|
| HD | drm_fb_helper.c | 279 mode_set->fb, 298 return c->fb; 309 struct drm_framebuffer *fb; 316 fb = drm_mode_config_fb(crtc); 321 if (!fb) { 327 funcs->mode_set_base_atomic(mode_set->crtc, fb, crtc->x, 575 struct drm_framebuffer *fb = fb_helper->fb; 602 if (fb->bits_per_pixel == 16) { 605 if (fb->depth == 16 && regno > 63) 607 if (fb->depth == 15 && regno > 31) [all …]
|
| /freebsd-14-stable/contrib/llvm-project/compiler-rt/lib/builtins/ |
| HD | fixunsxfti.c | 29 xf_bits fb; in __fixunsxfti() local 30 fb.f = a; in __fixunsxfti() 31 int e = (fb.u.high.s.low & 0x00007FFF) - 16383; in __fixunsxfti() 32 if (e < 0 || (fb.u.high.s.low & 0x00008000)) in __fixunsxfti() 36 tu_int r = fb.u.low.all; in __fixunsxfti()
|
| HD | fixunsxfsi.c | 36 xf_bits fb; in __fixunsxfsi() local 37 fb.f = a; in __fixunsxfsi() 38 int e = (fb.u.high.s.low & 0x00007FFF) - 16383; in __fixunsxfsi() 39 if (e < 0 || (fb.u.high.s.low & 0x00008000)) in __fixunsxfsi() 43 return fb.u.low.s.high >> (31 - e); in __fixunsxfsi()
|
| HD | fixunsxfdi.c | 36 xf_bits fb; in __fixunsxfdi() local 37 fb.f = a; in __fixunsxfdi() 38 int e = (fb.u.high.s.low & 0x00007FFF) - 16383; in __fixunsxfdi() 39 if (e < 0 || (fb.u.high.s.low & 0x00008000)) in __fixunsxfdi() 43 return fb.u.low.all >> (63 - e); in __fixunsxfdi()
|
| HD | fixxfti.c | 30 xf_bits fb; in __fixxfti() local 31 fb.f = a; in __fixxfti() 32 int e = (fb.u.high.s.low & 0x00007FFF) - 16383; in __fixxfti() 35 ti_int s = -(si_int)((fb.u.high.s.low & 0x00008000) >> 15); in __fixxfti() 36 ti_int r = fb.u.low.all; in __fixxfti()
|
| HD | fixxfdi.c | 37 xf_bits fb; in __fixxfdi() local 38 fb.f = a; in __fixxfdi() 39 int e = (fb.u.high.s.low & 0x00007FFF) - 16383; in __fixxfdi() 44 di_int s = -(si_int)((fb.u.high.s.low & 0x00008000) >> 15); in __fixxfdi() 45 di_int r = fb.u.low.all; in __fixxfdi()
|
| HD | floatundixf.c | 31 xf_bits fb; in __floatundixf() local 32 fb.u.high.s.low = (e + 16383); // exponent in __floatundixf() 33 fb.u.low.all = a << clz; // mantissa in __floatundixf() 34 return fb.f; in __floatundixf()
|
| HD | floatdixf.c | 34 xf_bits fb; in __floatdixf() local 35 fb.u.high.s.low = ((su_int)s & 0x00008000) | // sign in __floatdixf() 37 fb.u.low.all = a << clz; // mantissa in __floatdixf() 38 return fb.f; in __floatdixf()
|
| HD | floatuntixf.c | 64 xf_bits fb; in __floatuntixf() local 65 fb.u.high.s.low = (e + 16383); // exponent in __floatuntixf() 66 fb.u.low.all = (du_int)a; // mantissa in __floatuntixf() 67 return fb.f; in __floatuntixf()
|
| /freebsd-14-stable/tools/test/stress2/misc/ |
| HD | rename9.sh | 102 struct stat fb, tb, fa, ta; 111 bzero(&fb, sizeof(fb)); 128 stat(fromFile, &fb); 142 fromFile, (uintmax_t)fb.st_ino, (uintmax_t)fb.st_nlink, 143 fb.st_blocks);
|
| /freebsd-14-stable/contrib/bearssl/tools/ |
| HD | files.c | 113 int fb; in looks_like_DER() local 122 fb = *buf ++; in looks_like_DER() 124 if (fb < 0x80) { in looks_like_DER() 125 return (size_t)fb == len; in looks_like_DER() 126 } else if (fb == 0x80) { in looks_like_DER() 129 fb -= 0x80; in looks_like_DER() 130 if (len < (size_t)fb + 2) { in looks_like_DER() 133 len -= (size_t)fb; in looks_like_DER() 135 while (fb -- > 0) { in looks_like_DER()
|
| /freebsd-14-stable/contrib/mandoc/ |
| HD | read.c | 435 read_whole_file(struct mparse *curp, int fd, struct buf *fb, int *with_mmap) in read_whole_file() argument 461 fb->sz = (size_t)st.st_size; in read_whole_file() 462 fb->buf = mmap(NULL, fb->sz, PROT_READ, MAP_SHARED, fd, 0); in read_whole_file() 463 if (fb->buf != MAP_FAILED) in read_whole_file() 497 fb->sz = 0; in read_whole_file() 498 fb->buf = NULL; in read_whole_file() 500 if (off == fb->sz) { in read_whole_file() 501 if (fb->sz == (1U << 31)) { in read_whole_file() 505 resize_buf(fb, 65536); in read_whole_file() 508 gzread(gz, fb->buf + (int)off, fb->sz - off) : in read_whole_file() [all …]
|