Home
last modified time | relevance | path

Searched refs:ri_depth (Results 1 – 25 of 27) sorted by relevance

12

/openbsd/src/sys/arch/powerpc64/dev/
Dastfb.c132 ri->ri_depth = OF_getpropint(node, "depth", 0); in astfb_attach()
133 ri->ri_stride = ri->ri_width * ((ri->ri_depth + 7) / 8); in astfb_attach()
136 switch (ri->ri_depth) { in astfb_attach()
156 ri->ri_width, ri->ri_height, ri->ri_depth); in astfb_attach()
203 wdf->depth = ri->ri_depth; in astfb_wsioctl()
214 switch (ri->ri_depth) { in astfb_wsioctl()
/openbsd/src/sys/dev/pcmcia/
Dcfxga.c477 ri->ri_depth = depth; in cfxga_alloc_screen()
601 wdf->depth = scr->scr_ri.ri_depth; in cfxga_ioctl()
604 wdf->cmsize = scr->scr_ri.ri_depth <= 8 ? in cfxga_ioctl()
605 (1 << scr->scr_ri.ri_depth) : 0; in cfxga_ioctl()
773 ri->ri_depth == 16 ? CRT_MODE_16BPP : CRT_MODE_8BPP); in cfxga_reset_video()
776 cfxga_write_2(sc, CFREG_CRT_MEMORY, ri->ri_width * ri->ri_depth / 16); in cfxga_reset_video()
786 if (ri->ri_depth == 8) { in cfxga_reset_video()
878 pos = (y * ri->ri_width + x) * ri->ri_depth / 8; in cfxga_expand_char()
894 ri->ri_width * ri->ri_depth / 16); in cfxga_expand_char()
900 (ri->ri_depth > 8 ? BITBLT_COLOR_16 : BITBLT_COLOR_8)); in cfxga_expand_char()
[all …]
/openbsd/src/sys/dev/fdt/
Dsimplefb.c169 printf(": %dx%d, %dbpp\n", ri->ri_width, ri->ri_height, ri->ri_depth); in simplefb_attach()
225 ri->ri_depth = fmt->depth; in simplefb_init()
261 wdf->depth = ri->ri_depth; in simplefb_wsioctl()
272 switch (ri->ri_depth) { in simplefb_wsioctl()
Drkdrm.c267 wdf->depth = ri->ri_depth; in rkdrm_wsioctl()
435 ri->ri_depth = helper->fb->format->depth; in rkdrm_attachhook()
438 ri->ri_stride = ri->ri_width * ri->ri_depth / 8; in rkdrm_attachhook()
468 ri->ri_width, ri->ri_height, ri->ri_depth); in rkdrm_attachhook()
Dssdfb.c312 ri->ri_depth = 1; in ssdfb_attach()
315 ri->ri_stride = ri->ri_width * ri->ri_depth / 8; in ssdfb_attach()
340 printf(": %dx%d, %dbpp\n", ri->ri_width, ri->ri_height, ri->ri_depth); in ssdfb_attach()
635 wdf->depth = ri->ri_depth; in ssdfb_ioctl()
/openbsd/src/sys/arch/armv7/exynos/
Dexdisplay.c198 rinfo->ri_depth = 16; in exdisplay_setup_rasops()
201 rinfo->ri_stride = rinfo->ri_width * rinfo->ri_depth / 8; in exdisplay_setup_rasops()
204 if (rinfo->ri_depth == 16) { in exdisplay_setup_rasops()
/openbsd/src/sys/arch/amd64/amd64/
Defifb.c204 printf(": %dx%d, %dbpp\n", ri->ri_width, ri->ri_height, ri->ri_depth); in efifb_attach()
241 ri->ri_depth = fb->depth; in efifb_rasops_init()
252 ri->ri_depth = fb->depth; in efifb_rasops_init()
292 wdf->depth = ri->ri_depth; in efifb_ioctl()
303 switch (ri->ri_depth) { in efifb_ioctl()
/openbsd/src/sys/dev/pci/
Dtga.c346 rip->ri_depth = tgac->tgac_phys_depth;
1168 wb = w * (dst->ri_depth / 8);
1180 xend = w * (dst->ri_depth / 8) - 4;
1194 srcb = sy * src->ri_stride + sx * (src->ri_depth/8);
1195 dstb = dy * dst->ri_stride + dx * (dst->ri_depth/8);
1197 (sx + src->ri_xorigin) * (src->ri_depth/8);
1199 (dx + dst->ri_xorigin) * (dst->ri_depth/8);
1343 if (ri->ri_depth == 8)
1400 if (ri->ri_depth != 8) {
1410 if (ri->ri_depth == 8)
[all …]
/openbsd/src/sys/arch/loongson/dev/
Dsisfb.c233 fb->ri.ri_width, fb->ri.ri_height, fb->ri.ri_depth); in sisfb_attach()
302 wdf->depth = ri->ri_depth; in sisfb_ioctl()
321 if (ri->ri_depth == 8) in sisfb_ioctl()
451 ri->ri_depth = bpp; in sisfb_setup()
452 ri->ri_stride = (ri->ri_width * ri->ri_depth) / 8; in sisfb_setup()
Dradeonfb.c233 fb->ri.ri_width, fb->ri.ri_height, fb->ri.ri_depth); in radeonfb_attach()
308 wdf->depth = ri->ri_depth; in radeonfb_ioctl()
642 ri->ri_depth = bpp; in radeonfb_setup()
643 ri->ri_stride = (ri->ri_width * ri->ri_depth) / 8; in radeonfb_setup()
Dsmfb.c223 sc->sc_fb->ri.ri_height, sc->sc_fb->ri.ri_depth); in smfb_attach_common()
283 wdf->depth = ri->ri_depth; in smfb_ioctl()
405 ri->ri_depth = 16; in smfb_setup()
406 ri->ri_stride = (ri->ri_width * ri->ri_depth) / 8; in smfb_setup()
/openbsd/src/sys/arch/sparc64/dev/
Dfb.c201 ri->ri_depth = sf->sf_depth; in fbwscons_init()
283 if (ri->ri_depth >= 8) /* for 15bpp to compute ok */ in fbwscons_init()
286 ri->ri_bits += (wl * ri->ri_depth) >> 3; in fbwscons_init()
/openbsd/src/sys/arch/macppc/macppc/
Dofw_machdep.c499 ri->ri_depth = cons_depth; in of_display_console()
532 ri->ri_depth = ofwfb.ofw_ri.ri_depth; in ofwconsswitch()
/openbsd/src/sys/dev/rasops/
Drasops.c342 bpp = (ri->ri_depth == 15 ? 16 : ri->ri_depth); in rasops_reconfig()
440 if (ri->ri_depth < 8 || (ri->ri_flg & RI_FORCEMONO) != 0) { in rasops_reconfig()
449 switch (ri->ri_depth) { in rasops_reconfig()
798 if (ri->ri_depth == 1 || (ri->ri_flg & RI_FORCEMONO) != 0) { in rasops_init_devcmap()
805 switch (ri->ri_depth) { in rasops_init_devcmap()
847 if (ri->ri_depth == 24) in rasops_init_devcmap()
849 else if (ri->ri_depth <= 16) in rasops_init_devcmap()
856 else if (ri->ri_depth == 32) in rasops_init_devcmap()
858 else if (ri->ri_depth == 16 || ri->ri_depth == 15) in rasops_init_devcmap()
Drasops.h65 int ri_depth; /* depth in bits */ member
Drasops15.c97 ri->ri_gnum = 5 + (ri->ri_depth == 16); in rasops15_init()
100 ri->ri_bpos = 10 + (ri->ri_depth == 16); in rasops15_init()
/openbsd/src/sys/arch/macppc/pci/
Dvgafb.c230 wdf->depth = ri->ri_depth; in vgafb_ioctl()
249 if (ri->ri_depth == 8) in vgafb_ioctl()
254 if (ri->ri_depth == 8) in vgafb_ioctl()
/openbsd/src/sys/dev/pv/
Dviogpu.c251 ri->ri_depth = 32; in viogpu_attach()
254 ri->ri_stride = ri->ri_width * ri->ri_depth / 8; in viogpu_attach()
275 printf(": %dx%d, %dbpp\n", ri->ri_width, ri->ri_height, ri->ri_depth); in viogpu_attach()
607 wdf->depth = ri->ri_depth; in viogpu_wsioctl()
/openbsd/src/sys/arch/armv7/omap/
Damdisplay.c255 sc->sc_ro.ri_depth = sc->sc_active_depth; in amdisplay_attach()
596 wdf->depth = ri->ri_depth; in amdisplay_ioctl()
607 switch (ri->ri_depth) { in amdisplay_ioctl()
Domdisplay.c985 (scr->rinfo.ri_width * scr->rinfo.ri_depth / 8)); in omdisplay_initialize()
1114 rinfo->ri_depth = descr->depth; in omdisplay_setup_rasops()
/openbsd/src/sys/dev/pci/drm/radeon/
Dradeon_drv.c804 wdf->depth = ri->ri_depth; in radeondrm_wsioctl()
927 if (ri->ri_depth != 8) in radeondrm_setpal()
1328 ri->ri_width, ri->ri_height, ri->ri_depth); in radeondrm_attachhook()
Dradeon_fbdev.c286 ri->ri_depth = fb->format->cpp[0] * 8; in radeon_fbdev_fb_helper_fb_probe()
/openbsd/src/sys/arch/luna88k/dev/
Dlunafb.c451 ri->ri_depth = 1; /* since planes are independently addressed */ in omfb_getdevconfig()
/openbsd/src/sys/dev/pci/drm/i915/display/
Dintel_fbdev.c287 ri->ri_depth = fb->format->cpp[0] * 8; in intelfb_create()
/openbsd/src/sys/dev/pci/drm/amd/amdgpu/
Damdgpu_drv.c3514 wdf->depth = ri->ri_depth; in amdgpu_wsioctl()
3713 ri->ri_depth = fb->format->cpp[0] * 8; in amdgpu_attachhook()
3790 ri->ri_width, ri->ri_height, ri->ri_depth); in amdgpu_attachhook()

12