Home
last modified time | relevance | path

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

12

/netbsd/sys/dev/i2c/
H A Ddbcool.c851 cfg = sc->sc_dc.dc_readreg(&sc->sc_dc, reg); in dbcool_do_pmf()
858 sc->sc_dc.dc_writereg(&sc->sc_dc, reg, cfg); in dbcool_do_pmf()
940 val = sc->sc_dc.dc_readreg(&sc->sc_dc, reg); in dbcool_read_temp()
957 val = sc->sc_dc.dc_readreg(&sc->sc_dc, reg); in dbcool_read_temp()
986 val = sc->sc_dc.dc_readreg(&sc->sc_dc, reg); in dbcool_read_temp()
1014 rpm_lo = sc->sc_dc.dc_readreg(&sc->sc_dc, reg); in dbcool_read_rpm()
1063 val = sc->sc_dc.dc_readreg(&sc->sc_dc, reg); in dbcool_read_volt()
1071 val = sc->sc_dc.dc_readreg(&sc->sc_dc, reg); in dbcool_read_volt()
1074 val = sc->sc_dc.dc_readreg(&sc->sc_dc, reg); in dbcool_read_volt()
1144 reg = sc->sc_dc.dc_readreg(&sc->sc_dc, chipreg); in sysctl_dbcool_temp()
[all …]
H A Ddbcool_var.h120 struct dbcool_chipset sc_dc; member
/netbsd/sys/arch/sgimips/dev/
H A Dzs_kbd.c212 sc->sc_dc->enabled = 1; in zskbd_attach()
219 sc->sc_dc->enabled = 0; in zskbd_attach()
222 sc->sc_dc->txq_head = 0; in zskbd_attach()
223 sc->sc_dc->txq_tail = 0; in zskbd_attach()
224 sc->sc_dc->rxq_head = 0; in zskbd_attach()
225 sc->sc_dc->rxq_tail = 0; in zskbd_attach()
227 sc->sc_dc->dip = 0; in zskbd_attach()
262 dc = sc->sc_dc; in zskbd_rxint()
304 dc = sc->sc_dc; in zskbd_softint()
352 dc = sc->sc_dc; in zskbd_send()
[all …]
/netbsd/sys/arch/ews4800mips/dev/
H A Dewskbd.c219 sc->sc_dc->enabled = 1; in ewskbd_zsc_attach()
229 sc->sc_dc->enabled = 0; in ewskbd_zsc_attach()
235 sc->sc_dc->txq_head = 0; in ewskbd_zsc_attach()
236 sc->sc_dc->txq_tail = 0; in ewskbd_zsc_attach()
237 sc->sc_dc->rxq_head = 0; in ewskbd_zsc_attach()
238 sc->sc_dc->rxq_tail = 0; in ewskbd_zsc_attach()
240 sc->sc_dc->leds = 0; in ewskbd_zsc_attach()
300 dc = sc->sc_dc; in ewskbd_zsc_rxint()
342 dc = sc->sc_dc; in ewskbd_zsc_softint()
383 dc = sc->sc_dc; in ewskbd_zsc_send()
[all …]
/netbsd/sys/arch/luna68k/dev/
H A Dlunafb.c207 sc->sc_dc = &omfb_console_dc; in omfbattach()
214 aprint_normal(": %d x %d, %dbpp\n", sc->sc_dc->dc_wid, sc->sc_dc->dc_ht, in omfbattach()
215 sc->sc_dc->dc_depth); in omfbattach()
244 struct om_hwdevconfig *dc = sc->sc_dc; in omfbioctl()
300 struct om_hwdevconfig *dc = sc->sc_dc; in omfbmmap()
330 cmsize = sc->sc_dc->dc_cmsize; in omgetcmap()
355 cmsize = sc->sc_dc->dc_cmsize; in omsetcmap()
377 odac->bt_cmap = sc->sc_dc->dc_cmap.r[i]; in omsetcmap()
378 odac->bt_cmap = sc->sc_dc->dc_cmap.g[i]; in omsetcmap()
379 odac->bt_cmap = sc->sc_dc->dc_cmap.b[i]; in omsetcmap()
[all …]
/netbsd/sys/arch/dreamcast/dev/
H A Dpvr.c279 sc->sc_dc = &pvr_console_dc; in pvr_attach()
280 sc->sc_dc->dc_rinfo.ri_flg &= ~RI_NO_AUTO; in pvr_attach()
285 pvr_getdevconfig(sc->sc_dc); in pvr_attach()
288 sc->sc_dc->dc_ht, sc->sc_dc->dc_depth, in pvr_attach()
311 struct fb_devconfig *dc = sc->sc_dc; in pvrioctl()
320 wsd_fbip->height = sc->sc_dc->dc_ht; in pvrioctl()
321 wsd_fbip->width = sc->sc_dc->dc_wid; in pvrioctl()
322 wsd_fbip->depth = sc->sc_dc->dc_depth; in pvrioctl()
384 struct fb_devconfig *dc = sc->sc_dc; in pvrmmap()
409 (*sc->sc_dc->dc_rinfo.ri_ops.allocattr)(&sc->sc_dc->dc_rinfo, 0, 0, 0, in pvr_alloc_screen()
[all …]
/netbsd/sys/arch/mac68k/dev/
H A Dmacfb.c206 sc->sc_dc = &macfb_console_dc; in macfb_attach()
212 sc->sc_dc->dc_paddr = ga->ga_phys; in macfb_attach()
213 sc->sc_dc->dc_size = gm->fbsize; in macfb_attach()
215 sc->sc_dc->dc_wid = gm->width; in macfb_attach()
216 sc->sc_dc->dc_ht = gm->height; in macfb_attach()
217 sc->sc_dc->dc_depth = gm->psize; in macfb_attach()
218 sc->sc_dc->dc_rowbytes = gm->rowbytes; in macfb_attach()
220 sc->sc_dc->dc_offset = gm->fboff; in macfb_attach()
222 macfb_clear(sc->sc_dc); in macfb_attach()
246 struct macfb_devconfig *dc = sc->sc_dc; in macfb_ioctl()
[all …]
H A Dgrf_compat.c203 macfb_clear(sc->mfb_sc->sc_dc); /* clear the display */ in grfclose()
229 dc = sc->mfb_sc->sc_dc; in grfioctl()
303 dc = sc->mfb_sc->sc_dc; in grfmmap()
317 len = m68k_round_page(sc->sc_dc->dc_offset + sc->sc_dc->dc_size); in grfmap()
321 *addrp = (char *)*addrp + sc->sc_dc->dc_offset; in grfmap()
331 addr = (char *)addr - sc->sc_dc->dc_offset; in grfunmap()
336 size = m68k_round_page(sc->sc_dc->dc_offset + sc->sc_dc->dc_size); in grfunmap()
H A Dmacfbvar.h64 struct macfb_devconfig *sc_dc; member
/netbsd/sys/dev/pci/
H A Digsfb_pci.c177 sc->sc_dc = &igsfb_console_dc; in igsfb_pci_attach()
180 sc->sc_dc = malloc(sizeof(struct igsfb_devconfig), in igsfb_pci_attach()
182 if (igsfb_pci_map_regs(sc->sc_dc, in igsfb_pci_attach()
187 free(sc->sc_dc, M_DEVBUF); in igsfb_pci_attach()
188 sc->sc_dc = NULL; in igsfb_pci_attach()
192 igsfb_enable(sc->sc_dc->dc_iot, sc->sc_dc->dc_iobase, in igsfb_pci_attach()
193 sc->sc_dc->dc_ioflags); in igsfb_pci_attach()
H A Dtga.c408 sc->sc_dc = &tga_console_dc; in tgaattach()
416 if (sc->sc_dc->dc_vaddr == 0) { in tgaattach()
464 dc = sc->sc_dc; in tgaattach()
523 sc->sc_dc->dc_intrenabled = 1; in tga_config_interrupts()
530 struct tga_devconfig *dc = sc->sc_dc; in tga_ioctl()
541 wsd_fbip->height = sc->sc_dc->dc_ht; in tga_ioctl()
562 tga_blank(sc->sc_dc); in tga_ioctl()
564 tga_unblank(sc->sc_dc); in tga_ioctl()
678 return bus_space_mmap(sc->sc_dc->dc_memt, sc->sc_dc->dc_pcipaddr, in tga_mmap()
695 sc->sc_dc->dc_rinfo.ri_ops.allocattr(&sc->sc_dc->dc_rinfo, in tga_alloc_screen()
[all …]
H A Dtgavar.h99 struct tga_devconfig *sc_dc; /* device configuration */ member
/netbsd/sys/arch/next68k/dev/
H A Dnextdisplay.c238 sc->sc_dc = &nextdisplay_console_dc; in nextdisplay_attach()
241 sc->sc_dc = kmem_alloc(sizeof(struct nextdisplay_config), in nextdisplay_attach()
243 nextdisplay_init(sc->sc_dc, iscolor); in nextdisplay_attach()
246 printf(": %d x %d, %dbpp\n", sc->sc_dc->dc_wid, sc->sc_dc->dc_ht, in nextdisplay_attach()
247 sc->sc_dc->dc_depth); in nextdisplay_attach()
296 struct nextdisplay_config *dc = sc->sc_dc; in nextdisplay_ioctl()
346 *cookiep = &sc->sc_dc->dc_rcons; /* one and only for now */ in nextdisplay_alloc_screen()
349 rcons_allocattr(&sc->sc_dc->dc_rcons, 0, 0, in nextdisplay_alloc_screen()
364 if (sc->sc_dc == &nextdisplay_console_dc) in nextdisplay_free_screen()
H A Dnextdisplayvar.h69 struct nextdisplay_config *sc_dc; member
/netbsd/sys/arch/sgimips/gio/
H A Dnewport.c56 struct newport_devconfig *sc_dc; member
613 sc->sc_dc = &newport_console_dc; in newport_attach()
616 sc->sc_dc = kmem_zalloc(sizeof(struct newport_devconfig), in newport_attach()
619 newport_attach_common(sc->sc_dc, ga); in newport_attach()
625 sc->sc_dc->dc_boardrev, sc->sc_dc->dc_cmaprev, in newport_attach()
626 sc->sc_dc->dc_xmaprev, sc->sc_dc->dc_vc2rev, sc->sc_dc->dc_depth); in newport_attach()
627 vcons_init(&sc->sc_dc->dc_vd, sc->sc_dc, sc->sc_dc->dc_screen, in newport_attach()
629 sc->sc_dc->dc_vd.init_screen = newport_init_screen; in newport_attach()
632 vcons_init_screen(&sc->sc_dc->dc_vd, &newport_console_screen, in newport_attach()
634 sc->sc_dc->dc_screen->textops = in newport_attach()
[all …]
H A Dgrtwo.c58 struct grtwo_devconfig *sc_dc; member
507 sc->sc_dc = &grtwo_console_dc; in grtwo_attach()
510 sc->sc_dc = kmem_zalloc(sizeof(struct grtwo_devconfig), in grtwo_attach()
513 grtwo_attach_common(sc->sc_dc, ga); in grtwo_attach()
519 sc->sc_dc->boardrev, sc->sc_dc->monitor, sc->sc_dc->depth); in grtwo_attach()
523 wa.accesscookie = sc->sc_dc; in grtwo_attach()
737 FBINFO.width = sc->sc_dc->xres; in grtwo_ioctl()
738 FBINFO.height = sc->sc_dc->yres; in grtwo_ioctl()
739 FBINFO.depth = sc->sc_dc->depth; in grtwo_ioctl()
H A Dlight.c64 struct light_devconfig *sc_dc; member
320 sc->sc_dc = &light_console_dc; in light_attach()
323 sc->sc_dc = kmem_zalloc(sizeof(struct light_devconfig), in light_attach()
326 light_attach_common(sc->sc_dc, ga); in light_attach()
332 LIGHT_IS_LG1(sc->sc_dc->dc_boardrev) ? 1 : 2, in light_attach()
333 sc->sc_dc->dc_boardrev); in light_attach()
337 wa.accesscookie = sc->sc_dc; in light_attach()
/netbsd/sys/arch/newsmips/apbus/
H A Dxafb.c74 struct xafb_devconfig *sc_dc; member
174 sc->sc_dc = dc; in xafb_attach()
253 struct xafb_devconfig *dc = sc->sc_dc; in xafb_ioctl()
291 struct xafb_devconfig *dc = sc->sc_dc; in xafb_mmap()
305 struct rasops_info *ri = &sc->sc_dc->dc_ri; in xafb_alloc_screen()
325 if (sc->sc_dc == &xafb_console_dc) in xafb_free_screen()
416 xafb_setcolor(sc->sc_dc, index++, *r++, *g++, *b++); in xafb_putcmap()
/netbsd/sys/arch/arm/iomd/
H A Dvidcvideo.c122 struct fb_devconfig *sc_dc; /* device configuration */ member
317 dc = sc->sc_dc = &vidcvideo_console_dc; in vidcvideo_attach()
327 sc->sc_dc); in vidcvideo_attach()
362 struct fb_devconfig *dc = sc->sc_dc; in vidcvideoioctl()
444 if (offset >= sc->sc_dc->dc_size || offset < 0) in vidcvideommap()
447 return arm_btop(sc->sc_dc->dc_paddr + offset); in vidcvideommap()
650 error = copyout(&sc->sc_dc->dc_cmap.r[index], p->red, count); in get_cmap()
656 error = copyout(&sc->sc_dc->dc_cmap.b[index], p->blue, count); in get_cmap()
664 struct fb_devconfig *dc = sc->sc_dc; in set_cmap()
693 struct fb_devconfig *dc = sc->sc_dc; in set_cursor()
[all …]
/netbsd/sys/dev/hpc/
H A Dhpcfb.c304 sc->sc_dc = &hpcfb_console_dc; in hpcfbattach()
308 sc->sc_dc->dc_rinfo.ri_width,sc->sc_dc->dc_rinfo.ri_height, in hpcfbattach()
309 (1 << sc->sc_dc->dc_rinfo.ri_depth), in hpcfbattach()
310 sc->sc_dc->dc_rinfo.ri_cols,sc->sc_dc->dc_rinfo.ri_rows); in hpcfbattach()
362 hpcfb_update(sc->sc_dc); in hpcfb_thread()
561 struct hpcfb_devconfig *dc = sc->sc_dc; in hpcfb_ioctl()
644 if (sc->sc_dc == NULL) in hpcfb_power()
695 struct hpcfb_devconfig *dc = sc->sc_dc; in hpcfb_refresh_screen()
812 odc = sc->sc_dc; in hpcfb_show_screen()
847 odc = sc->sc_dc; in hpcfb_doswitch()
[all …]
/netbsd/sys/arch/newsmips/dev/
H A Dfb.c55 struct fb_devconfig *sc_dc; member
160 sc->sc_dc = dc; in fb_attach()
241 struct fb_devconfig *dc = sc->sc_dc; in fb_ioctl()
280 struct fb_devconfig *dc = sc->sc_dc; in fb_mmap()
293 struct rasops_info *ri = &sc->sc_dc->dc_ri; in fb_alloc_screen()
313 if (sc->sc_dc == &fb_console_dc) in fb_free_screen()
/netbsd/sys/arch/hpcmips/vr/
H A Dvraiu.c70 vrdcu_chipset_tag_t sc_dc; member
166 sc->sc_dc = va->va_dc; in vraiu_attach()
177 if (!sc->sc_dc) { in vraiu_attach()
316 if ((err = sc->sc_dc->dc_enable_aiuout(sc->sc_dc))) { in vraiu_commit_settings()
411 sc->sc_dc->dc_disable(sc->sc_dc); in vraiu_halt_output()
/netbsd/sys/dev/isa/
H A Dpcdisplay.c63 struct pcdisplay_config *sc_dc; member
312 sc->sc_dc = dc; in pcdisplay_attach()
394 *cookiep = sc->sc_dc; in pcdisplay_alloc_screen()
407 if (sc->sc_dc == &pcdisplay_console_dc) in pcdisplay_free_screen()
420 if (cookie != sc->sc_dc) in pcdisplay_show_screen()
/netbsd/sys/arch/shark/ofw/
H A Digsfb_ofbus.c230 sc->sc_dc = &igsfb_console_dc; in igsfb_ofbus_attach()
233 sc->sc_dc = kmem_zalloc(sizeof(struct igsfb_devconfig), in igsfb_ofbus_attach()
241 ret = igsfb_setup_dc(sc->sc_dc); in igsfb_ofbus_attach()
/netbsd/sys/dev/ic/
H A Digsfbvar.h131 struct igsfb_devconfig *sc_dc; member

12