/freebsd/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 …]
|
/freebsd/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 …]
|
/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() 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()
|
/freebsd/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 …]
|
/freebsd/contrib/telnet/libtelnet/ |
H A D | enc_des.c | 61 struct fb { struct 80 static struct fb fb[2]; variable 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/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 …]
|
/freebsd/sys/x86/xen/ |
H A D | hvm.c | 214 } *fb = NULL; in fixup_console() local 234 fb = (__typeof__ (fb))preload_search_info(kmdp, in fixup_console() 237 if (fb == NULL) { in fixup_console() 244 sizeof(fb->efi.fb_mask_reserved), in fixup_console() 246 fb->vbe.fb_bpp = console->u.vesa_lfb.bits_per_pixel; in fixup_console() 249 if (fb == NULL) { in fixup_console() 250 fb = (__typeof__ (fb))preload_search_info(kmdp, in fixup_console() 252 if (fb == NULL) { in fixup_console() 258 fb->efi.fb_addr = console->u.vesa_lfb.lfb_base; in fixup_console() 261 fb->efi.fb_addr |= in fixup_console() [all …]
|
/freebsd/sys/dev/vt/hw/ofwfb/ |
H A D | ofwfb.c | 35 #include <dev/vt/hw/fb/vt_fb.h> 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_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() 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 …]
|
/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()
|
/freebsd/contrib/mandoc/ |
H A D | 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 …]
|
/freebsd/sys/contrib/device-tree/Bindings/regulator/ |
H A D | ltc3676.txt | 17 - lltc,fb-voltage-divider: An array of two integers containing the resistor 39 lltc,fb-voltage-divider = <127000 200000>; 48 lltc,fb-voltage-divider = <301000 200000>; 57 lltc,fb-voltage-divider = <127000 200000>; 66 lltc,fb-voltage-divider = <221000 200000>; 75 lltc,fb-voltage-divider = <487000 200000>; 89 lltc,fb-voltage-divider = <634000 200000>;
|
H A D | ltc3589.txt | 17 - lltc,fb-voltage-divider: An array of two integers containing the resistor 39 lltc,fb-voltage-divider = <100000 158000>; 48 lltc,fb-voltage-divider = <180000 191000>; 57 lltc,fb-voltage-divider = <270000 100000>; 66 lltc,fb-voltage-divider = <511000 158000>; 74 lltc,fb-voltage-divider = <100000 158000>; 82 lltc,fb-voltage-divider = <180000 191000>;
|
/freebsd/sys/contrib/device-tree/Bindings/display/ |
H A D | cirrus,clps711x-fb.txt | 4 - compatible: Shall contain "cirrus,ep7209-fb". 20 fb: fb@800002c0 { 21 compatible = "cirrus,ep7312-fb", "cirrus,ep7209-fb";
|
H A D | wm,wm8505-fb.txt | 5 - compatible : "wm,wm8505-fb" 14 fb@d8051700 { 15 compatible = "wm,wm8505-fb";
|
/freebsd/lib/libsecureboot/ |
H A D | brf.c | 108 int fb; in looks_like_DER() local 117 fb = *buf ++; in looks_like_DER() 119 if (fb < 0x80) { in looks_like_DER() 120 return ((size_t)fb == len); in looks_like_DER() 121 } else if (fb == 0x80) { in looks_like_DER() 124 fb -= 0x80; in looks_like_DER() 125 if (len < (size_t)fb + 2) { in looks_like_DER() 128 len -= (size_t)fb; in looks_like_DER() 130 while (fb -- > 0) { in looks_like_DER()
|
/freebsd/tools/test/iconv/gnu/ |
H A D | gnu.c | 346 struct iconv_fallbacks fb; in ctl_mb_to_uc_fb() local 358 fb.uc_to_mb_fallback = NULL; in ctl_mb_to_uc_fb() 359 fb.mb_to_wc_fallback = NULL; in ctl_mb_to_uc_fb() 360 fb.wc_to_mb_fallback = NULL; in ctl_mb_to_uc_fb() 361 fb.mb_to_uc_fallback = mb_to_uc_fb; in ctl_mb_to_uc_fb() 362 fb.data = NULL; in ctl_mb_to_uc_fb() 364 if (iconvctl(cd, ICONV_SET_FALLBACKS, (void *)&fb) != 0) in ctl_mb_to_uc_fb()
|
/freebsd/sys/netinet/ |
H A D | sctp_ss_functions.c | 603 strq->ss_params.ss.fb.rounds = -1; in sctp_ss_fb_clear() 605 TAILQ_REMOVE(&asoc->ss_data.out.wheel, strq, ss_params.ss.fb.next_spoke); in sctp_ss_fb_clear() 627 strq->ss_params.ss.fb.rounds = with_strq->ss_params.ss.fb.rounds; in sctp_ss_fb_init_stream() 629 strq->ss_params.ss.fb.rounds = -1; in sctp_ss_fb_init_stream() 641 if (strq->ss_params.ss.fb.rounds < 0) in sctp_ss_fb_add() 642 strq->ss_params.ss.fb.rounds = TAILQ_FIRST(&strq->outqueue)->length; in sctp_ss_fb_add() 643 TAILQ_INSERT_TAIL(&asoc->ss_data.out.wheel, strq, ss_params.ss.fb.next_spoke); in sctp_ss_fb_add() 663 ss_params.ss.fb.next_spoke); in sctp_ss_fb_remove() 675 TAILQ_REMOVE(&asoc->ss_data.out.wheel, strq, ss_params.ss.fb.next_spoke); in sctp_ss_fb_remove() 699 strqt = TAILQ_NEXT(asoc->ss_data.last_out_stream, ss_params.ss.fb.next_spoke); in sctp_ss_fb_select() [all …]
|