Home
last modified time | relevance | path

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

/freebsd/sys/dev/usb/serial/
H A Duslcom.c140 struct ucom_softc sc_ucom; member
441 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in uslcom_attach()
462 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in uslcom_detach()
503 if (ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uslcom_cfg_open()
531 if (ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uslcom_cfg_close()
577 if (ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uslcom_cfg_set_dtr()
601 if (ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uslcom_cfg_set_rts()
651 if (ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uslcom_cfg_param()
688 if (ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uslcom_cfg_param()
708 if (ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uslcom_cfg_param()
[all …]
H A Dumcs.c127 struct ucom_softc sc_ucom[UMCS7840_MAX_PORTS]; /* Need to be continuous member
333 sc->sc_ucom[0].sc_portno = 0; in umcs7840_attach()
334 sc->sc_ucom[1].sc_portno = 1; in umcs7840_attach()
335 sc->sc_ucom[2].sc_portno = 2; in umcs7840_attach()
336 sc->sc_ucom[3].sc_portno = 3; in umcs7840_attach()
340 sc->sc_ucom[0].sc_portno = 0; in umcs7840_attach()
341 sc->sc_ucom[1].sc_portno = 2; /* '1' is skipped */ in umcs7840_attach()
358 …umcs7840_config_tmp[n].endpoint = umcs7840_bulk_config_data[n].endpoint + 2 * sc->sc_ucom[subunit]… in umcs7840_attach()
362 &iface_index, sc->sc_ports[sc->sc_ucom[subunit].sc_portno].sc_xfer, umcs7840_config_tmp, in umcs7840_attach()
380 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.c158 struct ucom_softc sc_ucom; member
323 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in ubsa_attach()
345 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in ubsa_detach()
385 err = ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in ubsa_cfg_request()
460 ubsa_cfg_set_dtr(&sc->sc_ucom, 0); in ubsa_cfg_param()
461 ubsa_cfg_set_rts(&sc->sc_ucom, 0); in ubsa_cfg_param()
583 if (ucom_get_data(&sc->sc_ucom, pc, 0, in ubsa_write_callback()
612 ucom_put_data(&sc->sc_ucom, pc, 0, actlen); in ubsa_read_callback()
665 ucom_status_change(&sc->sc_ucom); in ubsa_intr_callback()
H A Duftdi.c147 struct ucom_softc sc_ucom; member
1019 sc->sc_ucom.sc_portno = 0; in uftdi_devtype_setup()
1023 sc->sc_ucom.sc_portno = 0; in uftdi_devtype_setup()
1028 sc->sc_ucom.sc_portno = FTDI_PIT_SIOA + uaa->info.bIfaceNum; in uftdi_devtype_setup()
1032 sc->sc_ucom.sc_portno = 0; in uftdi_devtype_setup()
1037 sc->sc_ucom.sc_portno = FTDI_PIT_SIOA + uaa->info.bIfaceNum; in uftdi_devtype_setup()
1042 sc->sc_ucom.sc_portno = FTDI_PIT_SIOA + uaa->info.bIfaceNum; in uftdi_devtype_setup()
1047 sc->sc_ucom.sc_portno = FTDI_PIT_SIOA + uaa->info.bIfaceNum; in uftdi_devtype_setup()
1052 sc->sc_ucom.sc_portno = FTDI_PIT_SIOA + uaa->info.bIfaceNum; in uftdi_devtype_setup()
1064 sc->sc_ucom.sc_portno = 0; in uftdi_devtype_setup()
[all …]
H A Duark.c84 struct ucom_softc sc_ucom; member
222 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in uark_attach()
242 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in uark_detach()
281 if (ucom_get_data(&sc->sc_ucom, pc, 0, in uark_bulk_write_callback()
310 ucom_put_data(&sc->sc_ucom, pc, 0, actlen); in uark_bulk_read_callback()
450 err = ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uark_cfg_write()
H A Dubser.c125 struct ucom_softc sc_ucom[UBSER_UNIT_MAX]; member
280 sc->sc_ucom[n].sc_portno = n; in ubser_attach()
283 error = ucom_attach(&sc->sc_super_ucom, sc->sc_ucom, in ubser_attach()
310 ucom_detach(&sc->sc_super_ucom, sc->sc_ucom); in ubser_detach()
410 if (ucom_get_data(sc->sc_ucom + sc->sc_curr_tx_unit, in ubser_write_callback()
463 ucom_put_data(sc->sc_ucom + buf[0], pc, 1, actlen - 1); in ubser_read_callback()
H A Dumoscom.c177 struct ucom_softc sc_ucom; member
337 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in umoscom_attach()
357 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in umoscom_detach()
561 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in umoscom_cfg_write()
577 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in umoscom_cfg_read()
640 if (ucom_get_data(&sc->sc_ucom, pc, 0, in umoscom_write_callback()
671 ucom_put_data(&sc->sc_ucom, pc, 0, actlen); in umoscom_read_callback()
706 ucom_status_change(&sc->sc_ucom); in umoscom_intr_callback()
H A Duvscom.c146 struct ucom_softc sc_ucom; member
320 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in uvscom_attach()
351 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in uvscom_detach()
390 if (ucom_get_data(&sc->sc_ucom, pc, 0, in uvscom_write_callback()
419 ucom_put_data(&sc->sc_ucom, pc, 0, actlen); in uvscom_read_callback()
476 ucom_status_change(&sc->sc_ucom); in uvscom_intr_callback()
731 err = ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uvscom_cfg_write()
752 err = ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uvscom_cfg_read_status()
H A Dufoma.c164 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()
543 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in ufoma_cfg_link_state()
565 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in ufoma_cfg_activate_state()
593 ucom_put_data(&sc->sc_ucom, pc1, 0, len); in ufoma_ctrl_read_callback()
640 if (ucom_get_data(&sc->sc_ucom, pc, 0, 1, &actlen)) { in ufoma_ctrl_write_callback()
756 ucom_status_change(&sc->sc_ucom); in ufoma_intr_callback()
791 if (ucom_get_data(&sc->sc_ucom, pc, 0, in ufoma_bulk_write_callback()
820 ucom_put_data(&sc->sc_ucom, pc, 0, actlen); in ufoma_bulk_read_callback()
[all …]
H A Duplcom.c164 struct ucom_softc sc_ucom; member
528 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in uplcom_attach()
557 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in uplcom_detach()
678 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uplcom_cfg_set_dtr()
702 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uplcom_cfg_set_rts()
724 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uplcom_cfg_set_break()
923 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uplcom_cfg_param()
944 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uplcom_cfg_param()
959 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uplcom_cfg_param()
1063 ucom_status_change(&sc->sc_ucom); in uplcom_intr_callback()
[all …]
H A Dumct.c110 struct ucom_softc sc_ucom; member
299 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in umct_attach()
318 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in umct_detach()
363 err = ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in umct_cfg_do_request()
406 ucom_status_change(&sc->sc_ucom); in umct_intr_callback_sub()
624 if (ucom_get_data(&sc->sc_ucom, pc, 0, in umct_write_callback()
653 ucom_put_data(&sc->sc_ucom, pc, 0, actlen); in umct_read_callback_sub()
H A Dumodem.c176 struct ucom_softc sc_ucom; member
453 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in umodem_attach()
625 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in umodem_cfg_param()
690 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in umodem_cfg_set_dtr()
714 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in umodem_cfg_set_rts()
737 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in umodem_cfg_set_break()
835 ucom_status_change(&sc->sc_ucom); in umodem_intr_read_callback()
872 if (ucom_get_data(&sc->sc_ucom, pc, 0, in umodem_write_callback()
904 ucom_put_data(&sc->sc_ucom, pc, 0, actlen); in umodem_read_callback()
957 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in umodem_detach()
H A Ducycom.c81 struct ucom_softc sc_ucom; member
272 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in ucycom_attach()
298 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in ucycom_detach()
396 if (ucom_get_data(&sc->sc_ucom, pc1, offset, in ucycom_ctrl_write_callback()
463 err = ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in ucycom_cfg_write()
586 ucom_put_data(&sc->sc_ucom, pc, offset, len); in ucycom_intr_read_callback()
H A Duchcom.c164 struct ucom_softc sc_ucom; member
356 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in uchcom_attach()
377 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in uchcom_detach()
423 &sc->sc_ucom, &req, NULL, 0, 1000); in uchcom_ctrl_write()
441 &sc->sc_ucom, &req, buf, USB_SHORT_XFER_OK, 1000); in uchcom_ctrl_read()
801 ucom_status_change(&sc->sc_ucom); in uchcom_intr_callback()
831 if (ucom_get_data(&sc->sc_ucom, pc, 0, in uchcom_write_callback()
864 ucom_put_data(&sc->sc_ucom, pc, 0, actlen); in uchcom_read_callback()
H A Duvisor.c173 struct ucom_softc sc_ucom; member
348 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in uvisor_attach()
370 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in uvisor_detach()
566 err = ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uvisor_cfg_close()
623 if (ucom_get_data(&sc->sc_ucom, pc, 0, in uvisor_write_callback()
659 ucom_put_data(&sc->sc_ucom, pc, 0, actlen); in uvisor_read_callback()
H A Dugensa.c87 struct ucom_softc sc_ucom[UGENSA_PORT_MAX]; member
214 ssc->sc_ucom_ptr = sc->sc_ucom + sc->sc_nports; in ugensa_attach()
250 error = ucom_attach(&sc->sc_super_ucom, sc->sc_ucom, sc->sc_nports, sc, in ugensa_attach()
272 ucom_detach(&sc->sc_super_ucom, sc->sc_ucom); in ugensa_detach()
H A Duipaq.c90 struct ucom_softc sc_ucom; member
1159 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in uipaq_attach()
1178 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in uipaq_detach()
1259 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uipaq_cfg_set_dtr()
1283 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uipaq_cfg_set_rts()
1303 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uipaq_cfg_set_break()
1319 if (ucom_get_data(&sc->sc_ucom, pc, 0, in uipaq_write_callback()
1348 ucom_put_data(&sc->sc_ucom, pc, 0, actlen); in uipaq_read_callback()
H A Du3g.c103 struct ucom_softc sc_ucom[U3G_MAXPORTS]; member
1013 &sc->sc_ucom[nports], &sc->sc_mtx); in u3g_attach()
1047 error = ucom_attach(&sc->sc_super_ucom, sc->sc_ucom, in u3g_attach()
1073 ucom_detach(&sc->sc_super_ucom, sc->sc_ucom); in u3g_detach()
/freebsd/sys/dev/usb/net/
H A Duhso.c106 struct ucom_softc *sc_ucom; member
630 ucom = &sc->sc_ucom[i]; in uhso_attach()
676 ucom_detach(&sc->sc_super_ucom, sc->sc_ucom); in uhso_detach()
712 free(sc->sc_ucom, M_USBDEV); in uhso_free_softc()
928 error = ucom_attach(&sc->sc_super_ucom, sc->sc_ucom, in uhso_probe_iface()
946 error = ucom_attach(&sc->sc_super_ucom, sc->sc_ucom, in uhso_probe_iface()
1018 sc->sc_ucom = reallocf(sc->sc_ucom, in uhso_alloc_tty()
1020 if (sc->sc_ucom == NULL) in uhso_alloc_tty()
1178 ucom_put_data(&sc->sc_ucom[ht->ht_muxport], pc, 0, len); in uhso_mux_read_callback()
1231 if (ucom_get_data(&sc->sc_ucom[ht->ht_muxport], pc, in uhso_mux_write_callback()
[all …]
H A Dif_usievar.h215 struct ucom_softc sc_ucom[USIE_UCOM_MAX]; member
H A Dif_usie.c402 &sc->sc_ucom[sc->sc_nucom], &sc->sc_mtx); in usie_attach()
424 err = ucom_attach(&sc->sc_super_ucom, sc->sc_ucom, in usie_attach()
483 ucom_detach(&sc->sc_super_ucom, sc->sc_ucom); in usie_detach()
627 if (ucom == sc->sc_ucom && actlen >= USIE_HIPCNS_MIN) { in usie_uc_rx_callback()