Home
last modified time | relevance | path

Searched refs:sc_ucom (Results 1 – 18 of 18) sorted by relevance

/dflybsd-src/sys/bus/u4b/serial/
H A Duftdi.c93 struct ucom_softc sc_ucom; member
312 sc->sc_ucom.sc_portno = FTDI_PIT_SIOA + uaa->info.bIfaceNum; in uftdi_attach()
327 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in uftdi_attach()
346 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in uftdi_detach()
369 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uftdi_cfg_open()
379 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uftdi_cfg_open()
402 if (ucom_get_data(&sc->sc_ucom, pc, in uftdi_write_callback()
408 FTDI_OUT_TAG(actlen, sc->sc_ucom.sc_portno); in uftdi_write_callback()
470 ucom_status_change(&sc->sc_ucom); in uftdi_read_callback()
475 ucom_put_data(&sc->sc_ucom, pc, 2, actlen); in uftdi_read_callback()
[all …]
H A Duslcom.c126 struct ucom_softc sc_ucom; member
376 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in uslcom_attach()
397 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in uslcom_detach()
418 if (ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uslcom_open()
442 if (ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uslcom_close()
466 if (ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uslcom_set_dtr()
490 if (ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uslcom_set_rts()
520 if (ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uslcom_param()
557 if (ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uslcom_param()
579 if (ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uslcom_param()
[all …]
H A Dumcs.c125 struct ucom_softc sc_ucom[UMCS7840_MAX_PORTS]; /* Need to be continuous member
328 sc->sc_ucom[0].sc_portno = 0; in umcs7840_attach()
329 sc->sc_ucom[1].sc_portno = 1; in umcs7840_attach()
330 sc->sc_ucom[2].sc_portno = 2; in umcs7840_attach()
331 sc->sc_ucom[3].sc_portno = 3; in umcs7840_attach()
335 sc->sc_ucom[0].sc_portno = 0; in umcs7840_attach()
336 sc->sc_ucom[1].sc_portno = 2; /* '1' is skipped */ in umcs7840_attach()
353 …umcs7840_config_tmp[n].endpoint = umcs7840_bulk_config_data[n].endpoint + 2 * sc->sc_ucom[subunit]… in umcs7840_attach()
357 &iface_index, sc->sc_ports[sc->sc_ucom[subunit].sc_portno].sc_xfer, umcs7840_config_tmp, in umcs7840_attach()
375 usbd_xfer_set_stall(sc->sc_ports[sc->sc_ucom[subunit].sc_portno].sc_xfer[UMCS7840_BULK_RD_EP]); in umcs7840_attach()
[all …]
H A Dubsa.c152 struct ucom_softc sc_ucom; member
317 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in ubsa_attach()
339 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in ubsa_detach()
359 err = ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in ubsa_cfg_request()
434 ubsa_cfg_set_dtr(&sc->sc_ucom, 0); in ubsa_cfg_param()
435 ubsa_cfg_set_rts(&sc->sc_ucom, 0); in ubsa_cfg_param()
557 if (ucom_get_data(&sc->sc_ucom, pc, 0, in ubsa_write_callback()
588 ucom_put_data(&sc->sc_ucom, pc, 0, actlen); in ubsa_read_callback()
634 ucom_status_change(&sc->sc_ucom); in ubsa_intr_callback()
H A Duplcom.c145 struct ucom_softc sc_ucom; member
424 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in uplcom_attach()
453 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in uplcom_detach()
547 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uplcom_cfg_set_dtr()
571 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uplcom_cfg_set_rts()
593 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uplcom_cfg_set_break()
694 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uplcom_cfg_param()
710 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uplcom_cfg_param()
718 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uplcom_cfg_param()
808 ucom_status_change(&sc->sc_ucom); in uplcom_intr_callback()
[all …]
H A Duark.c85 struct ucom_softc sc_ucom; member
221 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in uark_attach()
241 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in uark_detach()
260 if (ucom_get_data(&sc->sc_ucom, pc, 0, in uark_bulk_write_callback()
290 ucom_put_data(&sc->sc_ucom, pc, 0, actlen); in uark_bulk_read_callback()
429 err = ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uark_cfg_write()
H A Dumoscom.c175 struct ucom_softc sc_ucom; member
333 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in umoscom_attach()
353 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in umoscom_detach()
535 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in umoscom_cfg_write()
551 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in umoscom_cfg_read()
614 if (ucom_get_data(&sc->sc_ucom, pc, 0, in umoscom_write_callback()
646 ucom_put_data(&sc->sc_ucom, pc, 0, actlen); in umoscom_read_callback()
681 ucom_status_change(&sc->sc_ucom); in umoscom_intr_callback()
H A Dubser.c120 struct ucom_softc sc_ucom[UBSER_UNIT_MAX]; member
278 sc->sc_ucom[n].sc_portno = n; in ubser_attach()
281 error = ucom_attach(&sc->sc_super_ucom, sc->sc_ucom, in ubser_attach()
308 ucom_detach(&sc->sc_super_ucom, sc->sc_ucom); in ubser_detach()
388 if (ucom_get_data(sc->sc_ucom + sc->sc_curr_tx_unit, in ubser_write_callback()
443 ucom_put_data(sc->sc_ucom + buf[0], pc, 1, actlen - 1); in ubser_read_callback()
H A Duvscom.c141 struct ucom_softc sc_ucom; member
313 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in uvscom_attach()
344 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in uvscom_detach()
363 if (ucom_get_data(&sc->sc_ucom, pc, 0, in uvscom_write_callback()
393 ucom_put_data(&sc->sc_ucom, pc, 0, actlen); in uvscom_read_callback()
451 ucom_status_change(&sc->sc_ucom); in uvscom_intr_callback()
706 err = ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uvscom_cfg_write()
727 err = ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uvscom_cfg_read_status()
H A Dufoma.c161 struct ucom_softc sc_ucom; member
441 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in ufoma_attach()
480 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in ufoma_detach()
524 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in ufoma_cfg_link_state()
546 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in ufoma_cfg_activate_state()
574 ucom_put_data(&sc->sc_ucom, pc1, 0, len); in ufoma_ctrl_read_callback()
625 if (ucom_get_data(&sc->sc_ucom, pc, 0, 1, &actlen)) { in ufoma_ctrl_write_callback()
745 ucom_status_change(&sc->sc_ucom); in ufoma_intr_callback()
780 if (ucom_get_data(&sc->sc_ucom, pc, 0, in ufoma_bulk_write_callback()
809 ucom_put_data(&sc->sc_ucom, pc, 0, actlen); in ufoma_bulk_read_callback()
[all …]
H A Dumct.c96 struct ucom_softc sc_ucom; member
288 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in umct_attach()
307 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in umct_detach()
332 err = ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in umct_cfg_do_request()
363 ucom_status_change(&sc->sc_ucom); in umct_intr_callback_sub()
580 if (ucom_get_data(&sc->sc_ucom, pc, 0, in umct_write_callback()
610 ucom_put_data(&sc->sc_ucom, pc, 0, actlen); in umct_read_callback_sub()
H A Dumodem.c162 struct ucom_softc sc_ucom; member
440 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in umodem_attach()
611 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in umodem_cfg_param()
664 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in umodem_cfg_set_dtr()
688 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in umodem_cfg_set_rts()
712 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in umodem_cfg_set_break()
810 ucom_status_change(&sc->sc_ucom); in umodem_intr_read_callback()
848 if (ucom_get_data(&sc->sc_ucom, pc, 0, in umodem_write_callback()
881 ucom_put_data(&sc->sc_ucom, pc, 0, actlen); in umodem_read_callback()
934 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in umodem_detach()
H A Duchcom.c157 struct ucom_softc sc_ucom; member
337 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in uchcom_attach()
358 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in uchcom_detach()
382 &sc->sc_ucom, &req, NULL, 0, 1000); in uchcom_ctrl_write()
398 &sc->sc_ucom, &req, buf, USB_SHORT_XFER_OK, 1000); in uchcom_ctrl_read()
735 ucom_status_change(&sc->sc_ucom); in uchcom_intr_callback()
765 if (ucom_get_data(&sc->sc_ucom, pc, 0, in uchcom_write_callback()
799 ucom_put_data(&sc->sc_ucom, pc, 0, actlen); in uchcom_read_callback()
H A Ducycom.c74 struct ucom_softc sc_ucom; member
266 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in ucycom_attach()
292 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in ucycom_detach()
370 if (ucom_get_data(&sc->sc_ucom, pc1, offset, in ucycom_ctrl_write_callback()
438 err = ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in ucycom_cfg_write()
561 ucom_put_data(&sc->sc_ucom, pc, offset, len); in ucycom_intr_read_callback()
H A Duvisor.c168 struct ucom_softc sc_ucom; member
341 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in uvisor_attach()
363 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in uvisor_detach()
539 err = ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uvisor_cfg_close()
597 if (ucom_get_data(&sc->sc_ucom, pc, 0, in uvisor_write_callback()
633 ucom_put_data(&sc->sc_ucom, pc, 0, actlen); in uvisor_read_callback()
H A Dugensa.c82 struct ucom_softc sc_ucom[UGENSA_IFACE_MAX]; member
213 ssc->sc_ucom_ptr = sc->sc_ucom + sc->sc_niface; in ugensa_attach()
240 error = ucom_attach(&sc->sc_super_ucom, sc->sc_ucom, sc->sc_niface, sc, in ugensa_attach()
261 ucom_detach(&sc->sc_super_ucom, sc->sc_ucom); in ugensa_detach()
H A Duipaq.c85 struct ucom_softc sc_ucom; member
1152 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in uipaq_attach()
1171 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in uipaq_detach()
1232 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uipaq_cfg_set_dtr()
1256 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uipaq_cfg_set_rts()
1276 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uipaq_cfg_set_break()
1292 if (ucom_get_data(&sc->sc_ucom, pc, 0, in uipaq_write_callback()
1321 ucom_put_data(&sc->sc_ucom, pc, 0, actlen); in uipaq_read_callback()
H A Du3g.c105 struct ucom_softc sc_ucom[U3G_MAXPORTS]; member
843 &sc->sc_ucom[nports], &sc->sc_lock); in u3g_attach()
868 error = ucom_attach(&sc->sc_super_ucom, sc->sc_ucom, in u3g_attach()
894 ucom_detach(&sc->sc_super_ucom, sc->sc_ucom); in u3g_detach()