| /src/sys/arm/nvidia/drm2/ |
| H A D | tegra_fb.c | 45 struct tegra_fb *fb; in fb_destroy() local 49 fb = container_of(drm_fb, struct tegra_fb, drm_fb); in fb_destroy() 50 for (i = 0; i < fb->nplanes; i++) { in fb_destroy() 51 bo = fb->planes[i]; in fb_destroy() 57 free(fb->planes, DRM_MEM_DRIVER); in fb_destroy() 64 struct tegra_fb *fb; in fb_create_handle() local 67 fb = container_of(drm_fb, struct tegra_fb, drm_fb); in fb_create_handle() 68 rv = drm_gem_handle_create(file, &fb->planes[0]->gem_obj, handle); in fb_create_handle() 74 fb_dirty(struct drm_framebuffer *fb, struct drm_file *file_priv, in fb_dirty() argument 91 struct tegra_fb *fb; in fb_alloc() local [all …]
|
| H A D | tegra_dc.c | 143 dc_parse_drm_format(struct tegra_fb *fb, struct dc_window *win) in dc_parse_drm_format() argument 151 switch (fb->drm_fb.pixel_format) { in dc_parse_drm_format() 207 switch (fb->rotation) { in dc_parse_drm_format() 214 if (!fb->block_linear) in dc_parse_drm_format() 227 fb->block_linear ? SURFACE_KIND_BL_16B2: SURFACE_KIND_PITCH; in dc_parse_drm_format() 228 win->block_height = fb->block_height; in dc_parse_drm_format() 229 switch (fb->rotation) { in dc_parse_drm_format() 254 win->flip_x ^= fb->flip_x; in dc_parse_drm_format() 255 win->flip_y ^= fb->flip_y; in dc_parse_drm_format() 259 win->bits_per_pixel = fb->drm_fb.bits_per_pixel; in dc_parse_drm_format() [all …]
|
| /src/contrib/jemalloc/include/jemalloc/internal/ |
| H A D | fb.h | 18 fb_init(fb_group_t *fb, size_t nbits) { in fb_init() argument 20 memset(fb, 0, ngroups * sizeof(fb_group_t)); in fb_init() 24 fb_empty(fb_group_t *fb, size_t nbits) { in fb_empty() argument 27 if (fb[i] != 0) { in fb_empty() 35 fb_full(fb_group_t *fb, size_t nbits) { in fb_full() argument 40 if (fb[i] != ~(fb_group_t)0) { in fb_full() 47 return fb[ngroups - 1] == ((fb_group_t)1 << trailing_bits) - 1; in fb_full() 51 fb_get(fb_group_t *fb, size_t nbits, size_t bit) { in fb_get() argument 55 return (bool)(fb[group_ind] & ((fb_group_t)1 << bit_ind)); in fb_get() 59 fb_set(fb_group_t *fb, size_t nbits, size_t bit) { in fb_set() argument [all …]
|
| /src/sys/arm/broadcom/bcm2835/ |
| H A D | 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 …]
|
| H A D | 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 …]
|
| H A D | bcm2835_mbox.c | 507 bcm2835_mbox_fb_get_w_h(struct bcm2835_fb_config *fb) in bcm2835_mbox_fb_get_w_h() argument 521 fb->xres = msg.physical_w_h.body.resp.width; in bcm2835_mbox_fb_get_w_h() 522 fb->yres = msg.physical_w_h.body.resp.height; in bcm2835_mbox_fb_get_w_h() 529 bcm2835_mbox_fb_get_bpp(struct bcm2835_fb_config *fb) in bcm2835_mbox_fb_get_bpp() argument 543 fb->bpp = msg.bpp.body.resp.bpp; in bcm2835_mbox_fb_get_bpp() 549 bcm2835_mbox_fb_init(struct bcm2835_fb_config *fb) in bcm2835_mbox_fb_init() argument 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() 562 msg.virtual_w_h.body.req.height = fb->vyres; in bcm2835_mbox_fb_init() [all …]
|
| /src/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() 71 fb->len = FILEWBUF_INIT_LEN; in fgetwln() 73 wp = reallocarray(fb->wbuf, fb->len, sizeof(wchar_t)); 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()
|
| /src/bin/mv/tests/ |
| H A D | mv_test.sh | 64 atf_check mv fa ${FS}fb 65 mv_checkfile fa ${FS}fb 82 mv_makefile fb 84 atf_check mv fa fb ${FS}1/2/3 86 mv_checkfile fb ${FS}1/2/3/fb 88 mv_checkabsent fb 105 atf_check mv 1/2/3/fa ${FS}fb 106 mv_checkfile fa ${FS}fb 124 :> ${FS}fb 125 atf_check mv 1/2/3/fa ${FS}fb [all …]
|
| /src/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 *); 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 …]
|
| /src/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 *); 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 …]
|
| /src/sys/x86/xen/ |
| H A D | hvm.c | 214 } *fb = NULL; in fixup_console() local 225 fb = (__typeof__ (fb))preload_search_info(preload_kmdp, in fixup_console() 228 if (fb == NULL) { in fixup_console() 235 sizeof(fb->efi.fb_mask_reserved), in fixup_console() 237 fb->vbe.fb_bpp = console->u.vesa_lfb.bits_per_pixel; in fixup_console() 240 if (fb == NULL) { in fixup_console() 241 fb = (__typeof__ (fb))preload_search_info(preload_kmdp, in fixup_console() 243 if (fb == NULL) { in fixup_console() 249 fb->efi.fb_addr = console->u.vesa_lfb.lfb_base; in fixup_console() 252 fb->efi.fb_addr |= in fixup_console() [all …]
|
| /src/sys/dev/vt/hw/ofwfb/ |
| H A D | ofwfb.c | 50 struct fb_info fb; member 415 sc->fb.fb_cmsize = 16; in ofwfb_initialize() 417 if (sc->fb.fb_flags & FB_FLAG_NOWRITE) in ofwfb_initialize() 425 switch (sc->fb.fb_bpp) { in ofwfb_initialize() 431 vt_config_cons_colors(&sc->fb, COLOR_FORMAT_RGB, 255, in ofwfb_initialize() 436 (cell_t)((sc->fb.fb_cmap[i] >> 16) & 0xff), in ofwfb_initialize() 437 (cell_t)((sc->fb.fb_cmap[i] >> 8) & 0xff), in ofwfb_initialize() 438 (cell_t)((sc->fb.fb_cmap[i] >> 0) & 0xff), in ofwfb_initialize() 478 vt_config_cons_colors(&sc->fb, in ofwfb_initialize() 483 panic("Unknown color space depth %d", sc->fb.fb_bpp); in ofwfb_initialize() [all …]
|
| /src/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() 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 …]
|
| H A D | 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 …]
|
| H A D | 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 …]
|
| /src/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()
|
| /src/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);
|
| /src/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()
|