Home
last modified time | relevance | path

Searched refs:sc_unit (Results 1 – 25 of 80) sorted by relevance

1234

/netbsd-src/sys/dev/pcmcia/
H A Dbt3c.c106 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 Dbtbc.c81 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 Dsunxi_tcon.c74 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 Dsunxi_debe.c96 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 Dbtuart.c59 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 Dbth5.c81 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 Dbcsp.c78 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 Dmms.c87 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 Dmlcd.c99 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 Dmmemcard.c110 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 Dmkbd.c123 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 Dvrdsiu_mouse.c66 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 Dvrpiu.c235 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 Duda.c97 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 Dsbt.c61 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 Dsd.c64 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 Drd.c69 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 Dct.c53 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 Dsd.c58 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 Dgtmpsc.c268 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 Dgtpci.c56 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 Dsd.c88 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 Dgt_mainbus.c139 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 Drz.c53 int sc_unit; /* disk unit number */ member
147 sc->sc_unit = unit; in rzopen()
/netbsd-src/sys/arch/mipsco/stand/common/
H A Dsaio.c50 int sc_unit; /* disk unit number */ member
181 sc->sc_unit = unit; in saioopen()

1234