| /netbsd-src/sys/dev/pcmcia/ |
| H A D | bt3c.c | 106 struct hci_unit *sc_unit; /* Bluetooth HCI Unit */ member 400 if (!hci_input_acl(sc->sc_unit, sc->sc_rxp)) in bt3c_receive() 409 if (!hci_input_sco(sc->sc_unit, sc->sc_rxp)) in bt3c_receive() 418 if (!hci_input_event(sc->sc_unit, sc->sc_rxp)) in bt3c_receive() 469 else if (!hci_complete_sco(sc->sc_unit, m)) in bt3c_transmit() 975 sc->sc_unit = hci_attach_pcb(&bt3c_hci, self, BTF_POWER_UP_NOOP); in bt3c_attach() 976 if (sc->sc_unit == NULL) in bt3c_attach() 1001 if (sc->sc_unit) { in bt3c_detach() 1002 hci_detach_pcb(sc->sc_unit); in bt3c_detach() 1003 sc->sc_unit = NULL; in bt3c_detach() [all …]
|
| H A D | btbc.c | 81 struct hci_unit *sc_unit; /* Bluetooth HCI Unit */ member 190 sc->sc_unit = hci_attach_pcb(&btbc_hci, self, 0); in btbc_attach() 191 if (sc->sc_unit == NULL) in btbc_attach() 216 if (sc->sc_unit) { in btbc_detach() 217 hci_detach_pcb(sc->sc_unit); in btbc_detach() 218 sc->sc_unit = NULL; in btbc_detach() 231 if (sc->sc_unit) { in btbc_suspend() 232 hci_detach_pcb(sc->sc_unit); in btbc_suspend() 233 sc->sc_unit = NULL; in btbc_suspend() 245 KASSERT(sc->sc_unit == NULL); in btbc_resume() [all …]
|
| /netbsd-src/sys/arch/arm/sunxi/ |
| H A D | sunxi_tcon.c | 74 int sc_unit; /* tcon0 or tcon1 */ member 166 sc->sc_unit = -1; in sunxi_tcon_attach() 240 if (sc->sc_unit != 0) { in sunxi_tcon_doreset() 264 bool do_print = (sc->sc_unit == -1); in sunxi_tcon_ep_connect() 269 if (sc->sc_unit != -1 && rep_idx != -1 && in sunxi_tcon_ep_connect() 270 sc->sc_unit != rep_idx) { in sunxi_tcon_ep_connect() 273 rep_idx, sc->sc_unit); in sunxi_tcon_ep_connect() 284 sc->sc_unit = rep_idx; in sunxi_tcon_ep_connect() 287 sc->sc_unit = 0; in sunxi_tcon_ep_connect() 290 aprint_verbose_dev(self, "tcon unit %d\n", sc->sc_unit); in sunxi_tcon_ep_connect() [all …]
|
| H A D | sunxi_debe.c | 96 int sc_unit; /* debe0 or debe1 */ member 208 sc->sc_unit = -1; in sunxi_debe_attach() 284 bool do_print = (sc->sc_unit == -1); in sunxi_debe_ep_connect() 289 if (sc->sc_unit != -1 && rep_idx != -1 && in sunxi_debe_ep_connect() 290 sc->sc_unit != rep_idx) { in sunxi_debe_ep_connect() 293 rep_idx, sc->sc_unit); in sunxi_debe_ep_connect() 303 sc->sc_unit = rep_idx; in sunxi_debe_ep_connect() 306 sc->sc_unit = 0; in sunxi_debe_ep_connect() 309 aprint_verbose_dev(self, "debe unit %d\n", sc->sc_unit); in sunxi_debe_ep_connect() 369 &sc->sc_ports, SUNXI_PORT_OUTPUT, sc->sc_unit); in sunxi_debe_setup_fbdev() [all …]
|
| /netbsd-src/sys/dev/bluetooth/ |
| H A D | btuart.c | 59 struct hci_unit *sc_unit; /* Bluetooth HCI handle */ member 190 sc->sc_unit = hci_attach_pcb(&btuart_hci, self, 0); in btuart_attach() 191 if (sc->sc_unit == NULL) in btuart_attach() 206 if (sc->sc_unit) { in btuart_detach() 207 hci_detach_pcb(sc->sc_unit); in btuart_detach() 208 sc->sc_unit = NULL; in btuart_detach() 448 if (!hci_input_acl(sc->sc_unit, sc->sc_rxp)) in btuartinput() 456 if (!hci_input_sco(sc->sc_unit, sc->sc_rxp)) in btuartinput() 464 if (!hci_input_event(sc->sc_unit, sc->sc_rxp)) in btuartinput() 523 else if (!hci_complete_sco(sc->sc_unit, m)) in btuartstart()
|
| H A D | bth5.c | 81 struct hci_unit *sc_unit; /* Bluetooth HCI Unit */ member 292 sc->sc_unit = hci_attach_pcb(&bth5_hci, self, 0); in bthfive_attach() 351 if (sc->sc_unit != NULL) { in bthfive_detach() 352 hci_detach_pcb(sc->sc_unit); in bthfive_detach() 353 sc->sc_unit = NULL; in bthfive_detach() 1134 if (!hci_input_event(sc->sc_unit, m)) in bth5_sequencing_receive() 1142 if (!hci_input_event(sc->sc_unit, m)) in bth5_sequencing_receive() 1150 if (!hci_input_acl(sc->sc_unit, m)) in bth5_sequencing_receive() 1158 if (!hci_input_sco(sc->sc_unit, m)) in bth5_sequencing_receive() 1393 if (!hci_input_sco(sc->sc_unit, m)) in bth5_datagramq_receive() [all …]
|
| H A D | bcsp.c | 78 struct hci_unit *sc_unit; /* Bluetooth HCI Unit */ member 287 sc->sc_unit = hci_attach_pcb(&bcsp_hci, self, 0); in bcsp_attach() 346 if (sc->sc_unit != NULL) { in bcsp_detach() 347 hci_detach_pcb(sc->sc_unit); in bcsp_detach() 348 sc->sc_unit = NULL; in bcsp_detach() 1077 if (!hci_input_event(sc->sc_unit, m)) in bcsp_sequencing_receive() 1085 if (!hci_input_acl(sc->sc_unit, m)) in bcsp_sequencing_receive() 1093 if (!hci_input_sco(sc->sc_unit, m)) in bcsp_sequencing_receive() 1345 if (!hci_input_sco(sc->sc_unit, m)) in bcsp_datagramq_receive() 1426 else if (!hci_complete_sco(sc->sc_unit, m)) in bcsp_unreliabletx_callback()
|
| /netbsd-src/sys/arch/dreamcast/dev/maple/ |
| H A D | mms.c | 87 struct maple_unit *sc_unit; member 133 sc->sc_unit = ma->ma_unit; in mms_attach() 163 maple_set_callback(parent, sc->sc_unit, MAPLE_FN_MOUSE, mms_intr, sc); in mms_attach() 183 maple_enable_periodic(sc->sc_parent, sc->sc_unit, MAPLE_FN_MOUSE, 1); in mms_enable() 192 maple_enable_periodic(sc->sc_parent, sc->sc_unit, MAPLE_FN_MOUSE, 0); in mms_disable()
|
| H A D | mlcd.c | 99 struct maple_unit *sc_unit; member 231 sc->sc_unit = ma->ma_unit; in mlcdattach() 283 maple_set_callback(parent, sc->sc_unit, MAPLE_FN_LCD, in mlcdattach() 291 maple_command(sc->sc_parent, sc->sc_unit, MAPLE_FN_LCD, in mlcdattach() 392 maple_command(sc->sc_parent, sc->sc_unit, in mlcd_intr() 399 maple_command(sc->sc_parent, sc->sc_unit, in mlcd_intr() 423 maple_command(sc->sc_parent, sc->sc_unit, in mlcd_intr() 521 maple_enable_unit_ping(sc->sc_parent, sc->sc_unit, in mlcdstart() 556 maple_enable_unit_ping(sc->sc_parent, sc->sc_unit, MAPLE_FN_LCD, 0); in mlcdstart_bp() 569 maple_command(sc->sc_parent, sc->sc_unit, MAPLE_FN_LCD, in mlcdstart_bp() [all …]
|
| H A D | mmemcard.c | 110 struct maple_unit *sc_unit; member 245 sc->sc_unit = ma->ma_unit; in mmemattach() 309 maple_set_callback(parent, sc->sc_unit, MAPLE_FN_MEMCARD, in mmemattach() 317 maple_command(sc->sc_parent, sc->sc_unit, MAPLE_FN_MEMCARD, in mmemattach() 468 maple_command(sc->sc_parent, sc->sc_unit, in mmem_intr() 477 maple_command(sc->sc_parent, sc->sc_unit, in mmem_intr() 503 maple_command(sc->sc_parent, sc->sc_unit, in mmem_intr() 544 maple_command(sc->sc_parent, sc->sc_unit, in mmem_intr() 575 maple_command(sc->sc_parent, sc->sc_unit, in mmem_intr() 584 maple_command(sc->sc_parent, sc->sc_unit, in mmem_intr() [all …]
|
| H A D | mkbd.c | 123 sc->sc_unit = ma->ma_unit; in mkbdattach() 166 maple_set_callback(parent, sc->sc_unit, MAPLE_FN_KEYBOARD, in mkbdattach() 168 maple_enable_periodic(parent, sc->sc_unit, MAPLE_FN_KEYBOARD, 1); in mkbdattach()
|
| /netbsd-src/sys/arch/hpcmips/vr/ |
| H A D | vrdsiu_mouse.c | 66 int sc_unit; member 142 sc->sc_unit = va->va_unit; in vrdsiu_attach() 147 vrip_intr_establish(sc->sc_vrip, sc->sc_unit, 0, IPL_TTY, in vrdsiu_attach() 172 vrip_power(sc->sc_vrip, sc->sc_unit, 1); in vrdsiu_attach() 189 vrip_power(sc->sc_vrip, sc->sc_unit, 1); in vrdsiu_mouse_enable()
|
| H A D | vrpiu.c | 235 sc->sc_unit = va->va_unit; in vrpiu_init() 313 vrip_intr_establish(sc->sc_vrip, sc->sc_unit, 0, IPL_TTY, in vrpiu_init() 391 vrip_power(sc->sc_vrip, sc->sc_unit, 1); in vrpiu_ad_enable() 444 vrip_power(sc->sc_vrip, sc->sc_unit, 0); in vrpiu_ad_disable() 461 vrip_power(sc->sc_vrip, sc->sc_unit, 1); in vrpiu_tp_enable() 516 vrip_power(sc->sc_vrip, sc->sc_unit, 0); in vrpiu_tp_disable()
|
| /netbsd-src/sys/dev/qbus/ |
| H A D | uda.c | 97 struct uba_unit sc_unit; /* Struct common for UBA to communicate */ member 220 sc->sc_unit.uu_dev = self; /* Backpointer to softc */ in udaattach() 221 sc->sc_unit.uu_ready = udaready;/* go routine called from adapter */ in udaattach() 222 sc->sc_unit.uu_keepbdp = vax_cputype == VAX_750 ? 1 : 0; in udaattach() 436 if (sc->sc_unit.uu_bdp) { in udareset() 438 sc->sc_unit.uu_bdp = 0; in udareset()
|
| /netbsd-src/sys/dev/sdmmc/ |
| H A D | sbt.c | 61 struct hci_unit *sc_unit; /* Bluetooth HCI Unit */ member 201 sc->sc_unit = hci_attach_pcb(&sbt_hci, self, 0); in sbt_attach() 211 if (sc->sc_unit) { in sbt_detach() 212 hci_detach_pcb(sc->sc_unit); in sbt_detach() 213 sc->sc_unit = NULL; in sbt_detach() 366 hci_input_acl(sc->sc_unit, m); in sbt_intr() 371 hci_input_sco(sc->sc_unit, m); in sbt_intr() 376 hci_input_event(sc->sc_unit, m); in sbt_intr()
|
| /netbsd-src/sys/arch/hp300/stand/common/ |
| H A D | sd.c | 64 int sc_unit; member 175 ss->sc_ctlr, ss->sc_unit, ss->sc_part, msg); in sdgetinfo() 214 ss->sc_unit = unit; in sdopen() 251 int unit = ss->sc_unit; in sdstrategy()
|
| H A D | rd.c | 69 int sc_unit; member 242 rs->sc_ctlr, rs->sc_unit, rs->sc_part, msg); in rdgetinfo() 274 rs->sc_unit = unit; in rdopen() 311 int unit = rs->sc_unit; in rdstrategy()
|
| H A D | ct.c | 53 int sc_unit; member 194 rs->sc_unit = unit; in ctopen() 223 int unit = rs->sc_unit; in ctstrategy()
|
| /netbsd-src/sys/arch/next68k/stand/boot/ |
| H A D | sd.c | 58 int sc_unit; member 129 error = scsiicmd(ss->sc_unit, ss->sc_lun, (u_char *)&cdb, sizeof(cdb), in sdgetinfo() 225 ss->sc_unit = unit; in sdopen() 290 error = scsiicmd(ss->sc_unit, ss->sc_lun, in sdstrategy()
|
| /netbsd-src/sys/dev/marvell/ |
| H A D | gtmpsc.c | 268 sc->sc_unit = unit; in gtmpscattach() 348 SDMA_INTR_RXBUF(sc->sc_unit) | in gtmpscattach() 349 SDMA_INTR_RXERR(sc->sc_unit) | in gtmpscattach() 350 SDMA_INTR_TXBUF(sc->sc_unit) | in gtmpscattach() 351 SDMA_INTR_TXEND(sc->sc_unit)); in gtmpscattach() 379 if (sc->sc_unit == gtmpsckgdbport) { in gtmpscattach() 381 if (sc->sc_unit == MPSC_CONSOLE) { in gtmpscattach() 433 if (icause & SDMA_INTR_RXBUF(sc->sc_unit)) { in gtmpsc_intr() 435 icause &= ~SDMA_INTR_RXBUF(sc->sc_unit); in gtmpsc_intr() 437 if (icause & SDMA_INTR_TXBUF(sc->sc_unit)) { in gtmpsc_intr() [all...] |
| H A D | gtpci.c | 56 bus_space_read_4((sc)->sc_iot, (sc)->sc_ioh, r((sc)->sc_unit)) 58 bus_space_write_4((sc)->sc_iot, (sc)->sc_ioh, r((sc)->sc_unit), (v)) 60 bus_space_write_4((sc)->sc_iot, (sc)->sc_ioh, r((sc)->sc_unit, (n)), (v)) 191 sc->sc_unit = mva->mva_unit; in gtpci_attach() 326 if (maps[map].bars[sc->sc_unit] != -1) in gtpci_barinit() 328 maps[map].bars[sc->sc_unit], GTPCI_BARSIZE(size)); in gtpci_barinit()
|
| /netbsd-src/sys/arch/luna68k/stand/boot/ |
| H A D | sd.c | 88 int sc_unit; member 140 sc->sc_unit = unit; in sdinit() 260 printf("sdstrategy: unit = %d\n", sc->sc_unit); in sdstrategy()
|
| /netbsd-src/sys/arch/evbppc/ev64260/ |
| H A D | gt_mainbus.c | 139 GTMPSC_BASE(gtmpsc->sc_unit), GTMPSC_SIZE, in gt_attach() 145 GTSDMA_BASE(gtmpsc->sc_unit), GTSDMA_SIZE, in gt_attach() 230 *iline = (sc->sc_unit == 0 ? 27 : 29); in gtpci_md_conf_interrupt()
|
| /netbsd-src/sys/arch/pmax/stand/common/ |
| H A D | rz.c | 53 int sc_unit; /* disk unit number */ member 147 sc->sc_unit = unit; in rzopen()
|
| /netbsd-src/sys/arch/mipsco/stand/common/ |
| H A D | saio.c | 50 int sc_unit; /* disk unit number */ member 181 sc->sc_unit = unit; in saioopen()
|