/freebsd/sys/arm/freescale/vybrid/ |
H A D | vf_dcu4.c | 195 struct fb_info sc_info; member 292 reg = ((sc->sc_info.fb_height) << DELTA_Y_S); in dcu_init() 293 reg |= (sc->sc_info.fb_width / 16); in dcu_init() 335 reg = (sc->sc_info.fb_width | (sc->sc_info.fb_height << 16)); in dcu_init() 338 WRITE4(sc, DCU_CTRLDESCLn_3(0), sc->sc_info.fb_pbase); in dcu_init() 410 sc->sc_info.fb_width = panel.width; in dcu_attach() 411 sc->sc_info.fb_height = panel.height; in dcu_attach() 412 sc->sc_info.fb_stride = sc->sc_info.fb_width * 3; in dcu_attach() 413 sc->sc_info.fb_bpp = sc->sc_info.fb_depth = 24; in dcu_attach() 414 sc->sc_info.fb_size = sc->sc_info.fb_height * sc->sc_info.fb_stride; in dcu_attach() [all …]
|
H A D | vf_sai.c | 136 struct sc_info { struct 177 struct sc_info *sc; argument 187 static void setup_sai(struct sc_info *); 188 static void sai_configure_clock(struct sc_info *); 198 struct sc_info *sc; in saimixer_init() 250 struct sc_info *sc; in saichan_init() 277 struct sc_info *sc = scp->sc; in saichan_free() 306 struct sc_info *sc; in saichan_setspeed() 341 sai_configure_clock(struct sc_info *sc) in sai_configure_clock() 368 struct sc_info *sc = scp->sc; in saichan_setblocksize() [all …]
|
/freebsd/sys/powerpc/mpc85xx/ |
H A D | fsl_diu.c | 169 struct fb_info sc_info; member 260 reg = ((sc->sc_info.fb_height) << DELTA_Y_S); in diu_init() 261 reg |= sc->sc_info.fb_width; in diu_init() 299 sc->sc_planes[0]->bitmap_address = htole32(sc->sc_info.fb_pbase); in diu_init() 301 reg = (sc->sc_info.fb_width | (sc->sc_info.fb_height << 12)); in diu_init() 304 reg = (sc->sc_info.fb_width | (sc->sc_info.fb_height << 16)); in diu_init() 401 sc->sc_info.fb_width = sc->sc_panel.panel_width; in diu_attach() 402 sc->sc_info.fb_height = sc->sc_panel.panel_height; in diu_attach() 403 sc->sc_info.fb_stride = sc->sc_info.fb_width * 4; in diu_attach() 404 sc->sc_info.fb_bpp = sc->sc_info.fb_depth = 32; in diu_attach() [all …]
|
/freebsd/sys/dev/sound/pci/ |
H A D | neomagic.c | 50 struct sc_info; 58 struct sc_info *parent; 62 struct sc_info { struct 85 static int nm_loadcoeff(struct sc_info *sc, int dir, int num); argument 87 static int nm_init(struct sc_info *); 91 static u_int32_t nm_rd(struct sc_info *, int, int); 92 static void nm_wr(struct sc_info *, int, u_int32_t, int); 93 static u_int32_t nm_rdbuf(struct sc_info *, int, int); 94 static void nm_wrbuf(struct sc_info *, int, u_int32_t, int); 132 nm_rd(struct sc_info *sc, int regno, int size) in nm_rd() [all …]
|
H A D | als4000.c | 62 struct sc_info; 65 struct sc_info *parent; 74 struct sc_info { struct 108 als_gcr_rd(struct sc_info *sc, int index) in als_gcr_rd() argument 115 als_gcr_wr(struct sc_info *sc, int index, int data) in als_gcr_wr() 122 als_intr_rd(struct sc_info *sc) in als_intr_rd() 128 als_intr_wr(struct sc_info *sc, u_int8_t data) in als_intr_wr() 134 als_mix_rd(struct sc_info *sc, u_int8_t index) in als_mix_rd() 141 als_mix_wr(struct sc_info *sc, u_int8_t index, u_int8_t data) in als_mix_wr() 148 als_esp_wr(struct sc_info *sc, u_int8_t data) in als_esp_wr() [all …]
|
H A D | cs4281.c | 68 struct sc_info; 72 struct sc_info *parent; 83 struct sc_info { struct 110 static int cs4281_power(struct sc_info *, int); argument 111 static int cs4281_init(struct sc_info *); 114 static u_int32_t cs4281_rd(struct sc_info *, int); 115 static void cs4281_wr(struct sc_info *, int, u_int32_t); 147 cs4281_rd(struct sc_info *sc, int regno) in cs4281_rd() 153 cs4281_wr(struct sc_info *sc, int regno, u_int32_t data) in cs4281_wr() 160 cs4281_clr4(struct sc_info *sc, int regno, u_int32_t mask) in cs4281_clr4() [all …]
|
H A D | cmi.c | 99 struct sc_info; 102 struct sc_info *parent; 110 struct sc_info { struct 149 cmi_rd(struct sc_info *sc, int regno, int size) in cmi_rd() argument 165 cmi_wr(struct sc_info *sc, int regno, u_int32_t data, int size) in cmi_wr() 181 cmi_partial_wr4(struct sc_info *sc, in cmi_partial_wr4() 193 cmi_clr4(struct sc_info *sc, int reg, u_int32_t mask) in cmi_clr4() 203 cmi_set4(struct sc_info *sc, int reg, u_int32_t mask) in cmi_set4() 254 cmi_dma_prog(struct sc_info *sc, struct sc_chinfo *ch, u_int32_t base) in cmi_dma_prog() 271 cmi_ch0_start(struct sc_info *sc, struct sc_chinfo *ch) in cmi_ch0_start() [all …]
|
H A D | maestro3.c | 103 struct sc_info; 110 struct sc_info *parent; 124 struct sc_info *parent; 133 struct sc_info { struct 192 static int m3_chan_active(struct sc_info *); 201 static int m3_power(struct sc_info *, int); 202 static int m3_init(struct sc_info *); 203 static int m3_uninit(struct sc_info *); 204 static u_int8_t m3_assp_halt(struct sc_info *); 205 static void m3_config(struct sc_info *); [all …]
|
H A D | ich.c | 156 struct sc_info; 168 struct sc_info *parent; 175 struct sc_info { struct 214 ich_rd(struct sc_info *sc, int regno, int size) in ich_rd() argument 229 ich_wr(struct sc_info *sc, int regno, uint32_t data, int size) in ich_wr() 248 struct sc_info *sc = (struct sc_info *)devinfo; in ich_waitcd() 267 struct sc_info *sc = (struct sc_info *)devinfo; in ich_rdcd() 278 struct sc_info *sc = (struct sc_info *)devinfo; in ich_wrcd() 300 struct sc_info *sc = ch->parent; in ich_filldtbl() 322 ich_resetchan(struct sc_info *sc, int num) in ich_resetchan() [all …]
|
H A D | emu10k1.c | 189 struct sc_info; 197 struct sc_info *parent; 205 struct sc_info *parent; 209 struct sc_info { struct 243 static int emu_init(struct sc_info *); argument 245 static void *emu_malloc(struct sc_info *sc, u_int32_t sz, bus_addr_t *addr, bus_dmamap_t *map); 246 static void *emu_memalloc(struct sc_info *sc, u_int32_t sz, bus_addr_t *addr); 247 static int emu_memfree(struct sc_info *sc, void *buf); 248 static int emu_memstart(struct sc_info *sc, void *buf); 250 static void emu_vdump(struct sc_info *sc, struct emu_voice *v); [all …]
|
H A D | envy24.c | 48 struct sc_info; 75 struct sc_info *parent; 117 struct sc_info { struct 404 envy24_rdcs(struct sc_info *sc, int regno, int size) in envy24_rdcs() 419 envy24_wrcs(struct sc_info *sc, int regno, u_int32_t data, int size) in envy24_wrcs() 435 envy24_rdmt(struct sc_info *sc, int regno, int size) in envy24_rdmt() 450 envy24_wrmt(struct sc_info *sc, int regno, u_int32_t data, int size) in envy24_wrmt() 466 envy24_rdci(struct sc_info *sc, int regno) in envy24_rdci() 473 envy24_wrci(struct sc_info *sc, int regno, u_int32_t data) in envy24_wrci() 484 envy24_rdi2c(struct sc_info *sc, u_int32_t dev, u_int32_t addr) in envy24_rdi2c() [all …]
|
H A D | vibes.c | 62 struct sc_info; 65 struct sc_info *parent; 73 struct sc_info { struct 121 sv_direct_get(struct sc_info *sc, u_int8_t reg) in sv_direct_get() argument 127 _sv_direct_set(struct sc_info *sc, u_int8_t reg, u_int8_t val, int line) in _sv_direct_set() 139 sv_indirect_get(struct sc_info *sc, u_int8_t reg) in sv_indirect_get() 151 _sv_indirect_set(struct sc_info *sc, u_int8_t reg, u_int8_t val, int line) in _sv_indirect_set() 193 struct sc_info *sc = devinfo; in svchan_init() 223 struct sc_info *sc = ch->parent; in svchan_setblocksize() 256 sv_set_recspeed(struct sc_info *sc, u_int32_t speed) in sv_set_recspeed() [all …]
|
H A D | envy24ht.c | 60 struct sc_info; 84 struct sc_info *parent; 126 struct sc_info { struct 457 envy24ht_rdcs(struct sc_info *sc, int regno, int size) in envy24ht_rdcs() 472 envy24ht_wrcs(struct sc_info *sc, int regno, u_int32_t data, int size) in envy24ht_wrcs() 488 envy24ht_rdmt(struct sc_info *sc, int regno, int size) in envy24ht_rdmt() 503 envy24ht_wrmt(struct sc_info *sc, int regno, u_int32_t data, int size) in envy24ht_wrmt() 523 envy24ht_rdi2c(struct sc_info *sc, u_int32_t dev, u_int32_t addr) in envy24ht_rdi2c() 561 envy24ht_wri2c(struct sc_info *sc, u_int32_t dev, u_int32_t addr, u_int32_t data) in envy24ht_wri2c() 596 envy24ht_rdrom(struct sc_info *sc, u_int32_t addr) in envy24ht_rdrom() [all …]
|
H A D | hdspe.c | 113 struct sc_info *sc; in hdspe_intr() 120 sc = (struct sc_info *)p; in hdspe_intr() 151 hdspe_alloc_resources(struct sc_info *sc) in hdspe_alloc_resources() 233 hdspe_map_dmabuf(struct sc_info *sc) in hdspe_map_dmabuf() 252 struct sc_info *sc = oidp->oid_arg1; in hdspe_sysctl_sample_rate() 287 struct sc_info *sc = oidp->oid_arg1; in hdspe_sysctl_period() 312 struct sc_info *sc; in hdspe_sysctl_clock_preference() 363 struct sc_info *sc; in hdspe_sysctl_clock_source() 403 struct sc_info *sc; in hdspe_sysctl_clock_list() 432 struct sc_info *sc; in hdspe_sysctl_sync_status() [all …]
|
H A D | hdsp.c | 103 struct sc_info *sc; in hdsp_intr() 110 sc = (struct sc_info *)p; in hdsp_intr() 141 hdsp_alloc_resources(struct sc_info *sc) in hdsp_alloc_resources() 223 hdsp_map_dmabuf(struct sc_info *sc) in hdsp_map_dmabuf() 252 struct sc_info *sc; in hdsp_sysctl_input_level() 316 struct sc_info *sc; in hdsp_sysctl_output_level() 380 struct sc_info *sc; in hdsp_sysctl_phones_level() 429 struct sc_info *sc = oidp->oid_arg1; in hdsp_sysctl_sample_rate() 464 struct sc_info *sc = oidp->oid_arg1; in hdsp_sysctl_period() 512 struct sc_info *sc; in hdsp_sysctl_clock_preference() [all …]
|
H A D | hdspe-pcm.c | 236 struct sc_info *sc; in hdspe_hw_mixer() 256 struct sc_info *sc; in hdspechan_setgain() 292 struct sc_info *sc; in hdspemixer_init() 356 struct sc_info *sc; in hdspechan_enable() 390 hdspe_running(struct sc_info *sc) in hdspe_running() 426 hdspe_start_audio(struct sc_info *sc) in hdspe_start_audio() 434 hdspe_stop_audio(struct sc_info *sc) in hdspe_stop_audio() 542 struct sc_info *sc; in buffer_copy() 622 struct sc_info *sc; in clean() 660 struct sc_info *sc; in hdspechan_free() [all …]
|
H A D | hdsp-pcm.c | 217 struct sc_info *sc; in hdsp_hw_mixer() 308 struct sc_info *sc; in hdspmixer_init() 372 struct sc_info *sc; in hdspchan_enable() 401 hdsp_running(struct sc_info *sc) in hdsp_running() 440 hdsp_start_audio(struct sc_info *sc) in hdsp_start_audio() 448 hdsp_stop_audio(struct sc_info *sc) in hdsp_stop_audio() 554 struct sc_info *sc; in buffer_copy() 634 struct sc_info *sc; in clean() 669 struct sc_info *sc; in hdspchan_free() 699 struct sc_info *sc; in hdspchan_init() [all …]
|
H A D | hdspe.h | 202 struct sc_info *sc; 207 struct sc_info { struct
|
H A D | hdsp.h | 219 struct sc_info *sc; 224 struct sc_info { struct
|
/freebsd/sys/arm/freescale/imx/ |
H A D | imx6_ssi.c | 171 struct sc_info { struct 212 struct sc_info *sc; argument 222 static void setup_ssi(struct sc_info *); 223 static void ssi_configure_clock(struct sc_info *); 233 struct sc_info *sc; in ssimixer_init() 288 struct sc_info *sc; in ssichan_init() 315 struct sc_info *sc = scp->sc; in ssichan_free() 344 struct sc_info *sc; in ssichan_setspeed() 379 ssi_configure_clock(struct sc_info *sc) in ssi_configure_clock() 395 struct sc_info *sc = scp->sc; in ssichan_setblocksize() [all …]
|
/freebsd/sys/dev/fb/ |
H A D | fbd.c | 66 struct fb_info *sc_info; member 322 sc->sc_info = FB_GETINFO(device_get_parent(dev)); in fbd_attach() 323 if (sc->sc_info == NULL) in fbd_attach() 325 err = fbd_register(sc->sc_info); in fbd_attach() 338 err = fbd_unregister(sc->sc_info); in fbd_detach()
|
/freebsd/sys/dev/etherswitch/ar40xx/ |
H A D | ar40xx_main.c | 495 strlcpy(sc->sc_info.es_name, device_get_desc(dev), in ar40xx_attach() 496 sizeof(sc->sc_info.es_name)); in ar40xx_attach() 497 sc->sc_info.es_nports = AR40XX_NUM_PORTS; in ar40xx_attach() 498 sc->sc_info.es_vlan_caps = ETHERSWITCH_VLAN_DOT1Q; in ar40xx_attach() 500 sc->sc_info.es_nvlangroups = AR40XX_NUM_VTU_ENTRIES; in ar40xx_attach() 541 return (&sc->sc_info); in ar40xx_getinfo() 581 if (p->es_port < 0 || p->es_port > sc->sc_info.es_nports) in ar40xx_getport() 633 if (p->es_port < 0 || p->es_port > sc->sc_info.es_nports) in ar40xx_setport() 673 if (vg->es_vlangroup > sc->sc_info.es_nvlangroups) in ar40xx_getvgroup()
|
H A D | ar40xx_var.h | 86 etherswitch_info_t sc_info; member
|
/freebsd/sys/dev/usb/input/ |
H A D | ums.c | 138 struct ums_info sc_info[UMS_INFO_MAX]; member 222 struct ums_info *info = &sc->sc_info[0]; in ums_intr_callback() 271 if (sc->sc_info[0].sc_flags & UMS_FLAG_SBU) { in ums_intr_callback() 320 if (++info != &sc->sc_info[UMS_INFO_MAX]) in ums_intr_callback() 363 if ((sc->sc_info[0].sc_flags & UMS_FLAG_SBU) && in ums_intr_callback() 464 struct ums_info *info = &sc->sc_info[index]; in ums_hid_parse() 624 sc->sc_info[i].sc_flags |= UMS_FLAG_VBTN; in ums_attach() 635 info = &sc->sc_info[0]; in ums_attach() 668 info = &sc->sc_info[0]; in ums_attach() 682 info = &sc->sc_info[ in ums_attach() [all...] |
/freebsd/sys/geom/gate/ |
H A D | g_gate.c | 448 sbuf_printf(sb, "%s<info>%s</info>\n", indent, sc->sc_info); in g_gate_dumpconf() 504 memset(sc->sc_info, 0, sizeof(sc->sc_info)); in g_gate_create() 505 strncpy(sc->sc_info, ggio->gctl_info, in g_gate_create() 506 MIN(sizeof(sc->sc_info) - 1, sizeof(ggio->gctl_info))); in g_gate_create() 659 memset(sc->sc_info, 0, sizeof(sc->sc_info)); in g_gate_modify() 660 strncpy(sc->sc_info, ggio->gctl_info, in g_gate_modify() 661 MIN(sizeof(sc->sc_info) - 1, sizeof(ggio->gctl_info))); in g_gate_modify()
|