/freebsd-src/sys/arm/broadcom/bcm2835/ |
H A D | bcm2835_fbd.c | 88 if (fb->bpp < FB_DEPTH) { in bcm_fb_init() 89 device_printf(sc->dev, "changing fb bpp from %d to %d\n", in bcm_fb_init() 90 fb->bpp, FB_DEPTH); in bcm_fb_init() 91 fb->bpp = FB_DEPTH; in bcm_fb_init() 93 device_printf(sc->dev, "keeping existing fb bpp of %d\n", in bcm_fb_init() 94 fb->bpp); in bcm_fb_init() 126 sc->info.fb_bpp = sc->info.fb_depth = fb.bpp; in bcm_fb_setup_fbd() 139 COLOR_FORMAT_RGB, 0xff, 0, 0xff, 8, 0xff, 16); in bcm_fb_setup_fbd() 140 sc->info.fb_cmsize = 16; in bcm_fb_setup_fbd() 144 COLOR_FORMAT_RGB, 0xff, 16, 0xff, 8, 0xff, 0); in bcm_fb_setup_fbd() [all …]
|
H A D | bcm2835_mbox.c | 313 err = bus_dma_tag_create(bus_get_dma_tag(dev), 16, 0, in bcm2835_mbox_init_dma() 537 BCM2835_MBOX_INIT_TAG(&msg.bpp, GET_DEPTH); in bcm2835_mbox_fb_get_bpp() 538 msg.bpp.tag_hdr.val_len = 0; in bcm2835_mbox_fb_get_bpp() 543 fb->bpp = msg.bpp.body.resp.bpp; in bcm2835_mbox_fb_get_bpp() 567 msg.depth.body.req.bpp = fb->bpp; in bcm2835_mbox_fb_init()
|
H A D | bcm2835_fb.c | 59 static struct argb bcmfb_palette[16] = { 79 static u_char mouse_pointer[16] = { 84 #define BCMFB_FONT_HEIGHT 16 157 fb.bpp = FB_DEPTH; in bcm_fb_attach() 167 sc->depth = fb.bpp; in bcm_fb_attach() 180 fb.vxres, fb.vyres, fb.xoffset, fb.yoffset, fb.bpp); in bcm_fb_attach() 380 case 16: in bcmrend_draw_cursor() 406 vidd_putm(scp->sc->adp, x, y, mouse_pointer, 0xffffffff, 16, 8); in bcmrend_draw_mouse() 752 int size, int bpp, int bit_ltor, int byte_ltor) in bcmfb_putp() argument 812 case 16: in bcmfb_putc()
|
/freebsd-src/contrib/pnglite/ |
H A D | pnglite.c | 29 (PNG_32b(b1, 24) | PNG_32b(b2, 16) | PNG_32b(b3, 8) | PNG_32b(b4, 0)) 74 int bpp; in png_get_bpp() local 78 bpp = 1; break; in png_get_bpp() 80 bpp = 3; break; in png_get_bpp() 82 bpp = 1; break; in png_get_bpp() 84 bpp = 2; break; in png_get_bpp() 86 bpp = 4; break; in png_get_bpp() 91 bpp *= png->depth / 8; in png_get_bpp() 93 return (bpp); in png_get_bpp() 129 png->interlace_method = ihdr[16]; in png_read_ihdr() [all …]
|
/freebsd-src/stand/common/ |
H A D | gfx_fb.c | 45 * 32-bit to/from 16-bit is more complicated, because we nee to handle 46 * data loss from 32-bit to 16-bit. While reading/writing from/to video, we 47 * need to apply masks of 16-bit color components. This will preserve 49 * translate 32-bit colors to 15/16 bit colors and this means data loss. 67 * - RGB (16/24/32) - 76 * Note: In 8-bit mode, We do store first 16 colors to palette registers 78 * if palette update is not supported, we still have correct 16 colors. 79 * Secondly, the kernel does get correct 16 colors when some other boot 247 code = 16 + (red * 36) + in rgb_color_map() 277 * 15/16 bi 281 int roff, goff, boff, bpp; gfx_fb_color_map() local 412 uint32_t data, bpp, pitch, y, x; gfxfb_blt_fill() local 495 uint32_t bpp, pitch, copybytes; gfxfb_blt_video_to_buffer() local 595 uint32_t bpp, pitch, copybytes; gfxfb_blt_buffer_to_video() local 697 uint32_t bpp, copybytes; gfxfb_blt_video_to_video() local 886 int bpp, bit, byte; gfx_bitblt_bitmap() local [all...] |
/freebsd-src/usr.sbin/makefs/ |
H A D | msdos.h | 1 /* $NetBSD: msdos.h,v 1.3 2015/10/16 16:40:02 christos Exp $ */ 62 int m_readde(struct denode *dep, struct m_buf **bpp, struct direntry **epp); 64 struct m_buf **bpp, struct direntry **epp); 65 int m_extendfile(struct denode *dep, u_long count, struct m_buf **bpp,
|
/freebsd-src/sys/contrib/device-tree/Bindings/display/tilcdc/ |
H A D | panel.txt | 9 - bpp: Bits per pixel 42 dma-burst-sz = <16>; 43 bpp = <16>;
|
/freebsd-src/sys/contrib/device-tree/Bindings/media/i2c/ |
H A D | tda1997x.txt | 8 - YUV422 semi-planar 8bit per component (16 bits total): Y[11:4] CbCr[11:4] 57 - VP[15:0] connected to IMX6 CSI_DATA[19:4] for 16bit YUV422 58 16bit I2S layout0 with a 128*fs clock (A_WS, AP0, A_CLK pins) 73 nxp,audout-width = <16>; 76 * The 8bpp YUV422 semi-planar mode outputs CbCr[11:4] 77 * and Y[11:4] across 16bits in the same pixclk cycle. 80 /* Y[11:8]<->VP[15:12]<->CSI_DATA[19:16] */ 92 bus-width = <16>; 100 16bit I2S layout0 with a 128*fs clock (A_WS, AP0, A_CLK pins) 115 nxp,audout-width = <16>; [all …]
|
/freebsd-src/contrib/file/magic/Magdir/ |
H A D | acorn | 14 # RISC OS AIF, contains "SWI OS_Exit" at offset 16. 15 16 lelong 0xef000011 RISC OS AIF executable 25 0 string FONT\1 RISC OS 1bpp font data, 27 0 string FONT\4 RISC OS 4bpp font data 45 >(9.b+19) byte =3 16-bit linear signed
|
H A D | images | 30 # and Color Map Entry Size 0 15 16 24 32 47 # skip arches.3200 , Finder.Root , Slp.1 by looking for low pixel depth 1 8 15 16 24 32 48 >>>>>16 ubyte 1 53 >>>>>16 ubyte 8 55 >>>>>16 ubyte 15 57 >>>>>16 ubyte 16 59 >>>>>16 ubyte 24 61 >>>>>16 ubyte 32 98 # Image Pixel depth 1 8 15 16 2 [all...] |
H A D | pgf | 19 >>16 byte x %d levels, 21 >>18 byte x %d bpp, 34 >>20 byte 10 gray scale 16, 39 >>20 byte 15 duo tone 16, 43 >>20 byte 20 RGB color 16,
|
/freebsd-src/sys/arm/ti/am335x/ |
H A D | am335x_lcd.c | 109 #define RASTER_TIMING_0_HFP_SHIFT 16 115 #define RASTER_TIMING_1_VFP_SHIFT 16 128 #define RASTER_TIMING_2_ACBI_SHIFT 16 135 #define LCDDMA_CTRL_DMA_MASTER_PRIO_SHIFT 16 504 "bpp", &panel->bpp); in am335x_read_panel_info() 643 dma_size = round_page(sc->sc_panel.panel_width*sc->sc_panel.panel_height*sc->sc_panel.bpp/8); in am335x_lcd_configure() 681 sc->sc_fb_size = sc->sc_panel.panel_width*sc->sc_panel.panel_height*sc->sc_panel.bpp/8; in am335x_lcd_configure() 768 case 16: in am335x_lcd_configure() 787 if (sc->sc_panel.bpp >= 24) in am335x_lcd_configure() 789 if (sc->sc_panel.bpp == 32) in am335x_lcd_configure() [all …]
|
H A D | am335x_lcd_syscons.c | 86 static struct argb am335x_syscons_palette[16] = { 106 static u_char mouse_pointer[16] = { 111 #define AM335X_FONT_HEIGHT 16 298 case 16: in am335x_rend_draw_cursor() 324 vidd_putm(scp->sc->adp, x, y, mouse_pointer, 0xffffffff, 16, 8); in am335x_rend_draw_mouse() 662 int size, int bpp, int bit_ltor, int byte_ltor) in am335x_syscons_putp() argument 714 case 16: in am335x_syscons_putc() 759 va_sc->depth = panel->bpp; in am335x_lcd_syscons_setup() 760 va_sc->stride = panel->bpp*panel->panel_width/8; in am335x_lcd_syscons_setup()
|
/freebsd-src/sys/arm/nvidia/drm2/ |
H A D | tegra_dc.c | 354 uint32_t h_offset, v_offset, h_size, v_size, bpp; in dc_setup_window() local 364 printf(" bpp: %d, color_mode: %d, swap: %d\n", in dc_setup_window() 369 bpp = win->is_yuv_planar ? 1 : 2; in dc_setup_window() 371 bpp = (win->bits_per_pixel + 7) / 8; in dc_setup_window() 374 h_size = win->src_w * bpp; in dc_setup_window() 377 h_size = win->src_h * bpp; in dc_setup_window() 381 h_offset = win->src_x * bpp; in dc_setup_window() 384 h_offset += win->src_w * bpp - 1; in dc_setup_window() 413 printf(" bpp: %d, size: h: %d v: %d, offset: h:%d v: %d\n", in dc_setup_window() 414 bpp, h_siz in dc_setup_window() [all...] |
/freebsd-src/sys/dev/vt/hw/fb/ |
H A D | vt_fb.c | 190 vt_fb_mem_wr1(info, o, (c >> 16) & 0xff); in vt_fb_setpixel() 250 (c >> 16) & 0xff); in vt_fb_blank() 276 int bpp, bpl, xi, yi; in vt_fb_bitblt_bitmap() 280 bpp = FBTYPE_GET_BYTESPP(info); in vt_fb_bitblt_bitmap() 308 o = (y + yi) * info->fb_stride + (x + xi) * bpp; in vt_fb_bitblt_bitmap() 312 switch(bpp) { in vt_fb_bitblt_bitmap() 321 vt_fb_mem_wr1(info, o, (cc >> 16) & 0xff); in vt_fb_bitblt_bitmap() 344 int bpp, xi, yi; in vt_fb_bitblt_text() 347 bpp = FBTYPE_GET_BYTESPP(info); in vt_fb_bitblt_text() 348 if (bpp ! in vt_fb_bitblt_text() 275 int bpp, bpl, xi, yi; vt_fb_bitblt_bitmap() local [all...] |
/freebsd-src/sys/dev/drm2/ |
H A D | drm_fourcc.h | 28 ((__u32)(c) << 16) | ((__u32)(d) << 24)) 35 /* 8 bpp RGB */ 39 /* 16 bpp RGB */ 63 /* 24 bpp RGB */ 67 /* 32 bpp RGB */
|
H A D | drm_crtc.c | 1803 fb_width = fb->width << 16; in drm_mode_setplane() 1804 fb_height = fb->height << 16; in drm_mode_setplane() 1813 plane_req->src_w >> 16, in drm_mode_setplane() 1815 plane_req->src_h >> 16, in drm_mode_setplane() 1817 plane_req->src_x >> 16, in drm_mode_setplane() 1819 plane_req->src_y >> 16, in drm_mode_setplane() 2076 uint32_t drm_mode_legacy_fb_format(uint32_t bpp, uint32_t depth) in drm_mode_cursor_ioctl() 2080 switch (bpp) { in drm_mode_cursor_ioctl() 2084 case 16: in drm_mode_cursor_ioctl() 2102 DRM_ERROR("bad bpp, assumin in drm_mode_legacy_fb_format() 2092 drm_mode_legacy_fb_format(uint32_t bpp,uint32_t depth) drm_mode_legacy_fb_format() argument 3726 drm_fb_get_bpp_depth(uint32_t format,unsigned int * depth,int * bpp) drm_fb_get_bpp_depth() argument 3835 int bpp; drm_format_plane_cpp() local [all...] |
/freebsd-src/sys/sys/ |
H A D | buf.h | 250 "\16inval\15reuse\14noreuse\13eintr\12done\11b8\10delwri" \ 286 #define NSWBUF_MIN 16 549 #define bread(vp, blkno, size, cred, bpp) \ argument 551 NULL, bpp) 552 #define bread_gb(vp, blkno, size, cred, gbflags, bpp) \ argument 554 gbflags, NULL, bpp) 555 #define breadn(vp, blkno, size, rablkno, rabsize, cnt, cred, bpp) \ argument 557 0, NULL, bpp) 578 int slpflag, int slptimeo, int flags, struct buf **bpp);
|
/freebsd-src/sys/geom/eli/ |
H A D | g_eli.c | 92 static u_int g_eli_minbufs = 16; 1004 g_eli_create(struct gctl_req *req, struct g_class *mp, struct g_provider *bpp, in g_eli_create() argument 1016 G_ELI_DEBUG(1, "Creating device %s%s.", bpp->name, G_ELI_SUFFIX); in g_eli_create() 1018 ("%s: unsupported crypto for %s", __func__, bpp->name)); in g_eli_create() 1020 gp = g_new_geomf(mp, "%s%s", bpp->name, G_ELI_SUFFIX); in g_eli_create() 1040 eli_metadata_softc(sc, md, bpp->sectorsize, bpp->mediasize); in g_eli_create() 1055 error = g_attach(cp, bpp); in g_eli_create() 1059 bpp->name, error); in g_eli_create() 1062 bpp->name, error); in g_eli_create() 1078 bpp->name, error); in g_eli_create() [all …]
|
/freebsd-src/sys/dev/altera/sdcard/ |
H A D | altera_sdcard_io.c |
|
/freebsd-src/sys/contrib/device-tree/Bindings/display/ |
H A D | arm,pl11x.txt | 66 arm,pl11x,tft-r0g0b0-pads = <0 8 16>; 68 arm,pl11x,tft-r0g0b0-pads = <16 8 0>; 80 max-memory-bandwidth = <94371840>; /* Bps, 1024x768@60 16bpp */
|
H A D | arm,pl11x.yaml | 119 arm,pl11x,tft-r0g0b0-pads = <0 8 16>; 121 arm,pl11x,tft-r0g0b0-pads = <16 8 0>; 152 max-memory-bandwidth = <94371840>; /* Bps, 1024x768@60 16bpp */
|
/freebsd-src/sys/contrib/device-tree/src/arm/nxp/imx/ |
H A D | imx6q-gw54xx.dts | 63 nxp,audout-width = <16>; 66 * The 8bpp YUV422 semi-planar mode outputs CbCr[11:4] 67 * and Y[11:4] across 16bits in the same cycle 71 /*G_Y_11_8<->VP[15:12]<->CSI_DATA[19:16]*/ 83 bus-width = <16>; 93 bus-width = <16>; 98 bus-width = <16>;
|
/freebsd-src/sys/fs/msdosfs/ |
H A D | msdosfs_lookup.c | 453 scn |= getushort(dep->deHighClust) << 16; in msdosfs_lookup_ino() 886 scn |= getushort(ep->deHighClust) << 16; in doscheckpath() 928 struct buf **bpp, struct direntry **epp) in readep() 939 if ((error = bread(pmp->pm_devvp, bn, blsize, NOCRED, bpp)) != 0) { in readep() 940 brelse(*bpp); in readep() 941 *bpp = NULL; in readep() 945 *epp = bptoep(pmp, *bpp, diroffset); in readep() 955 readde(struct denode *dep, struct buf **bpp, struct direntry **epp) in readde() 959 bpp, epp)); 926 readep(struct msdosfsmount * pmp,u_long dirclust,u_long diroffset,struct buf ** bpp,struct direntry ** epp) readep() argument 953 readde(struct denode * dep,struct buf ** bpp,struct direntry ** epp) readde() argument
|
/freebsd-src/stand/i386/libi386/ |
H A D | vbe.c | 278 gfx_state.tg_fb.fb_mask_red = (1 << palette_format) - 1 << 16; in bios_set_text_mode() 669 int bpp, ret; in vbe_set_mode() local 689 case 16: in vbe_set_mode() 719 bpp = roundup2(mi.BitsPerPixel, NBBY) / NBBY; in vbe_set_mode() 733 gfx_state.tg_fb.fb_mask_red = COLOR_MASK(palette_format, 16); in vbe_set_mode() 756 gfx_state.tg_fb.fb_stride = mi.LinBytesPerScanLine / bpp; in vbe_set_mode() 758 gfx_state.tg_fb.fb_stride = mi.BytesPerScanLine / bpp; in vbe_set_mode() 761 bpp; in vbe_set_mode() 768 * dimensions. If depth is not given, walk values 32, 24, 16, 8. 948 vbe_print_memory(vbep->TotalMemory << 16); in vbe_print_vbe_info()
|