/freebsd/sys/arm/nvidia/drm2/ |
H A D | tegra_fb.c | 95 fb = malloc(sizeof(*fb), DRM_MEM_DRIVER, M_WAITOK | M_ZERO); in fb_alloc() 110 *res_fb = fb; in fb_alloc() 168 helper->fb = &fb->drm_fb; in tegra_fb_probe() 181 fb->drm_fb.width, fb->drm_fb.height, fb->drm_fb.depth, in tegra_fb_probe() 206 fb = drm->fb; in tegra_drm_fb_getinfo() 207 if (fb == NULL) in tegra_drm_fb_getinfo() 232 fb = malloc(sizeof(*fb), DRM_MEM_DRIVER, M_WAITOK | M_ZERO); in tegra_drm_fb_init() 233 drm->fb = fb; in tegra_drm_fb_init() 325 fb = drm->fb; in tegra_drm_fb_destroy() 326 if (fb == NULL) in tegra_drm_fb_destroy() [all …]
|
H A D | tegra_dc.c | 207 switch (fb->rotation) { in dc_parse_drm_format() 265 bo = fb->planes[i]; in dc_parse_drm_format() 508 struct tegra_fb *fb; in dc_plane_update() local 643 struct tegra_fb *fb; in dc_crtc_mode_set() local 650 fb = container_of(drm_crtc->fb, struct tegra_fb, drm_fb); in dc_crtc_mode_set() 717 struct tegra_fb *fb; in dc_crtc_mode_set_base() local 721 fb = container_of(drm_crtc->fb, struct tegra_fb, drm_fb); in dc_crtc_mode_set_base() 874 struct tegra_fb *fb; in dc_finish_page_flip() local 881 fb = container_of(drm_crtc->fb, struct tegra_fb, drm_fb); in dc_finish_page_flip() 941 struct tegra_fb *fb; in dc_page_flip() local [all …]
|
/freebsd/sys/arm/broadcom/bcm2835/ |
H A D | bcm2835_fbd.c | 83 memset(fb, 0, sizeof(*fb)); 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() 97 fb->vyres = fb->yres; in bcm_fb_init() 98 fb->xoffset = fb->yoffset = 0; in bcm_fb_init() 123 sc->info.fb_vbase = (intptr_t)pmap_mapdev(fb.base, fb.size); in bcm_fb_setup_fbd() 162 device_printf(sc->dev, "%dx%d(%dx%d@%d,%d) %dbpp\n", fb.xres, fb.yres, in bcm_fb_setup_fbd() 163 fb.vxres, fb.vyres, fb.xoffset, fb.yoffset, fb.bpp); in bcm_fb_setup_fbd() 166 sc->fbswap, fb.pitch, fb.base, fb.size); in bcm_fb_setup_fbd() [all …]
|
H A D | bcm2835_fb.c | 154 memset(&fb, 0, sizeof(fb)); 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() 164 sc->fb_addr = (intptr_t)pmap_mapdev(fb.base, fb.size); in bcm_fb_attach() 167 sc->depth = fb.bpp; in bcm_fb_attach() 169 sc->width = fb.xres; in bcm_fb_attach() 179 device_printf(dev, "%dx%d(%dx%d@%d,%d) %dbpp\n", fb.xres, fb.yres, in bcm_fb_attach() 180 fb.vxres, fb.vyres, fb.xoffset, fb.yoffset, fb.bpp); in bcm_fb_attach() [all …]
|
H A D | bcm2835_mbox.c | 543 fb->bpp = msg.bpp.body.resp.bpp; in bcm2835_mbox_fb_get_bpp() 558 msg.physical_w_h.body.req.width = fb->xres; in bcm2835_mbox_fb_init() 559 msg.physical_w_h.body.req.height = fb->yres; in bcm2835_mbox_fb_init() 561 msg.virtual_w_h.body.req.width = fb->vxres; in bcm2835_mbox_fb_init() 564 msg.offset.body.req.x = fb->xoffset; in bcm2835_mbox_fb_init() 565 msg.offset.body.req.y = fb->yoffset; in bcm2835_mbox_fb_init() 567 msg.depth.body.req.bpp = fb->bpp; in bcm2835_mbox_fb_init() 581 fb->xoffset = msg.offset.body.resp.x; in bcm2835_mbox_fb_init() 582 fb->yoffset = msg.offset.body.resp.y; in bcm2835_mbox_fb_init() 583 fb->pitch = msg.pitch.body.resp.pitch; in bcm2835_mbox_fb_init() [all …]
|
/freebsd/tools/build/cross-build/ |
H A D | 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() 73 wp = reallocarray(fb->wbuf, fb->len, sizeof(wchar_t)); in fgetwln() 78 fb->wbuf = wp; in fgetwln() [all …]
|
H A D | 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/bin/mv/tests/ |
H A D | legacy_test.sh | 142 mv fa ${FS}fb 144 ckf fa ${FS}fb 150 mkf fb 155 ckf fb ${FS}1/2/3/fb 157 cknt fb 165 ckf fa ${FS}fb 172 :> ${FS}fb 175 ckf fa ${FS}fb 267 mkp fb 272 ckp fb ${FS}1/2/3/fb [all …]
|
/freebsd/contrib/telnet/libtelnet/ |
H A D | enc_des.c | 61 struct fb { struct 80 static struct fb fb[2]; argument 110 void fb64_init(struct fb *); 121 fb64_init(&fb[CFB]); in cfb64_init() 122 fb[CFB].fb_feed[4] = ENCTYPE_DES_CFB64; in cfb64_init() 130 fb64_init(&fb[OFB]); in ofb64_init() 137 fb64_init(struct fb *fbp) in fb64_init() 235 return(fb64_is(data, cnt, &fb[CFB])); in cfb64_is() 241 return(fb64_is(data, cnt, &fb[OFB])); in ofb64_is() 367 fb64_session(key, server, &fb[CFB]); in cfb64_session() [all …]
|
/freebsd/crypto/heimdal/appl/telnet/libtelnet/ |
H A D | enc_des.c | 78 struct fb { struct 89 static struct fb fb[2]; argument 119 void fb64_init (struct fb *); 131 fb64_init(&fb[CFB]); in cfb64_init() 132 fb[CFB].fb_feed[4] = ENCTYPE_DES_CFB64; in cfb64_init() 140 fb64_init(&fb[OFB]); in ofb64_init() 146 void fb64_init(struct fb *fbp) in fb64_init() 247 return(fb64_is(data, cnt, &fb[CFB])); in cfb64_is() 252 return(fb64_is(data, cnt, &fb[OFB])); in ofb64_is() 376 fb64_session(key, server, &fb[CFB]); in cfb64_session() [all …]
|
/freebsd/sys/x86/xen/ |
H A D | hvm.c | 213 } *fb = NULL; in fixup_console() local 233 fb = (__typeof__ (fb))preload_search_info(kmdp, in fixup_console() 236 if (fb == NULL) { in fixup_console() 243 sizeof(fb->efi.fb_mask_reserved), in fixup_console() 248 if (fb == NULL) { in fixup_console() 249 fb = (__typeof__ (fb))preload_search_info(kmdp, in fixup_console() 251 if (fb == NULL) { in fixup_console() 260 fb->efi.fb_addr |= in fixup_console() 271 fb->efi.fb_mask_red = FBMASK(red); in fixup_console() 272 fb->efi.fb_mask_green = FBMASK(green); in fixup_console() [all …]
|
/freebsd/sys/dev/vt/hw/ofwfb/ |
H A D | ofwfb.c | 50 struct fb_info fb; member 403 sc->fb.fb_cmsize = 16; in ofwfb_initialize() 413 switch (sc->fb.fb_bpp) { in ofwfb_initialize() 466 vt_config_cons_colors(&sc->fb, in ofwfb_initialize() 547 sc->fb.fb_bpp = sc->fb.fb_depth = depth; in ofwfb_init() 556 sc->fb.fb_height = height; in ofwfb_init() 557 sc->fb.fb_width = width; in ofwfb_init() 558 sc->fb.fb_stride = stride; in ofwfb_init() 559 sc->fb.fb_size = sc->fb.fb_height * sc->fb.fb_stride; in ofwfb_init() 680 if (!sc->fb.fb_pbase) in ofwfb_init() [all …]
|
/freebsd/sys/dev/drm2/ |
H A D | 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() 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() 648 } else if (set->fb->depth != set->crtc->fb->depth) { in drm_crtc_helper_set_config() 748 old_fb = set->crtc->fb; in drm_crtc_helper_set_config() 749 set->crtc->fb = set->fb; in drm_crtc_helper_set_config() 771 old_fb = set->crtc->fb; in drm_crtc_helper_set_config() 772 if (set->crtc->fb != set->fb) in drm_crtc_helper_set_config() [all …]
|
H A D | drm_crtc.c | 290 fb->dev = dev; in drm_framebuffer_init() 301 fb->funcs->destroy(fb); in drm_framebuffer_free() 377 if (crtc->fb == fb) { in drm_framebuffer_remove() 389 if (plane->fb == fb) { in drm_framebuffer_remove() 1420 if (crtc->fb) in drm_mode_getcrtc() 1856 plane->fb = fb; in drm_mode_setplane() 1925 fb = crtc->fb; in drm_mode_setcrtc() 1967 fb->width, fb->height, in drm_mode_setcrtc() 2035 set.fb = fb; in drm_mode_setcrtc() 2472 fb->funcs->create_handle(fb, file_priv, &r->handle); in drm_mode_getfb() [all …]
|
H A D | drm_fb_helper.c | 298 return c->fb; 321 if (!fb) { 575 struct drm_framebuffer *fb = fb_helper->fb; 678 struct drm_framebuffer *fb = fb_helper->fb; 686 var->xres > fb->width || var->yres > fb->height || 687 var->xres_virtual > fb->width || var->yres_virtual > fb->height) { 692 fb->width, fb->height, fb->bits_per_pixel); 931 fb_helper->crtc_info[i].mode_set.fb = fb_helper->fb; in drm_fb_helper_single_fb_probe() 1009 struct drm_framebuffer *fb = fb_helper->fb; in drm_fb_helper_fill_var() local 1460 if (crtc->fb) in drm_fb_helper_hotplug_event() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/builtins/ |
H A D | 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()
|
H A D | 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()
|
H A D | 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()
|
H A D | 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()
|
H A D | 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()
|
H A D | 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()
|
H A D | 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()
|
H A D | 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/tools/test/stress2/misc/ |
H A D | 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/contrib/bearssl/tools/ |
H A D | 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()
|