Home
last modified time | relevance | path

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

/freebsd-14.2/sys/dev/usb/serial/
H A Duslcom.c141 struct ucom_softc sc_ucom; member
463 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in uslcom_detach()
532 if (ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uslcom_cfg_close()
578 if (ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uslcom_cfg_set_dtr()
602 if (ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uslcom_cfg_set_rts()
652 if (ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uslcom_cfg_param()
689 if (ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uslcom_cfg_param()
709 if (ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uslcom_cfg_param()
817 if (ucom_get_data(&sc->sc_ucom, pc, 0, in uslcom_write_callback()
848 ucom_put_data(&sc->sc_ucom, pc, 0, actlen); in uslcom_read_callback()
[all …]
H A Dumcs.c334 sc->sc_ucom[0].sc_portno = 0; in umcs7840_attach()
335 sc->sc_ucom[1].sc_portno = 1; in umcs7840_attach()
336 sc->sc_ucom[2].sc_portno = 2; in umcs7840_attach()
337 sc->sc_ucom[3].sc_portno = 3; in umcs7840_attach()
341 sc->sc_ucom[0].sc_portno = 0; in umcs7840_attach()
342 sc->sc_ucom[1].sc_portno = 2; /* '1' is skipped */ in umcs7840_attach()
406 ucom_detach(&sc->sc_super_ucom, sc->sc_ucom); in umcs7840_detach()
785 uint8_t pn = sc->sc_ucom[subunit].sc_portno; in umcs7840_intr_callback()
795 ucom_status_change(&sc->sc_ucom[subunit]); in umcs7840_intr_callback()
848 struct ucom_softc *ucom = &sc->sc_ucom[subunit]; in umcs7840_read_callbackN()
[all …]
H A Dubsa.c159 struct ucom_softc sc_ucom; member
324 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in ubsa_attach()
346 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in ubsa_detach()
386 err = ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in ubsa_cfg_request()
461 ubsa_cfg_set_dtr(&sc->sc_ucom, 0); in ubsa_cfg_param()
462 ubsa_cfg_set_rts(&sc->sc_ucom, 0); in ubsa_cfg_param()
584 if (ucom_get_data(&sc->sc_ucom, pc, 0, in ubsa_write_callback()
613 ucom_put_data(&sc->sc_ucom, pc, 0, actlen); in ubsa_read_callback()
666 ucom_status_change(&sc->sc_ucom); in ubsa_intr_callback()
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 Duftdi.c148 struct ucom_softc sc_ucom; member
1002 sc->sc_ucom.sc_portno = 0; in uftdi_devtype_setup()
1006 sc->sc_ucom.sc_portno = 0; in uftdi_devtype_setup()
1015 sc->sc_ucom.sc_portno = 0; in uftdi_devtype_setup()
1047 sc->sc_ucom.sc_portno = 0; in uftdi_devtype_setup()
1129 ucom_use_lsr_txbits(&sc->sc_ucom); in uftdi_attach()
1240 sc->sc_ucom.sc_portno); in uftdi_write_callback()
1333 ucom_status_change(&sc->sc_ucom); in uftdi_read_callback()
1696 USETW(req.wIndex, sc->sc_ucom.sc_portno); in uftdi_reset()
1715 USETW(req.wIndex, sc->sc_ucom.sc_portno); in uftdi_set_bitmode()
[all …]
H A Dubser.c126 struct ucom_softc sc_ucom[UBSER_UNIT_MAX]; member
281 sc->sc_ucom[n].sc_portno = n; in ubser_attach()
284 error = ucom_attach(&sc->sc_super_ucom, sc->sc_ucom, in ubser_attach()
311 ucom_detach(&sc->sc_super_ucom, sc->sc_ucom); in ubser_detach()
411 if (ucom_get_data(sc->sc_ucom + sc->sc_curr_tx_unit, in ubser_write_callback()
464 ucom_put_data(sc->sc_ucom + buf[0], pc, 1, actlen - 1); in ubser_read_callback()
H A Duvscom.c147 struct ucom_softc sc_ucom; member
321 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in uvscom_attach()
352 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in uvscom_detach()
391 if (ucom_get_data(&sc->sc_ucom, pc, 0, in uvscom_write_callback()
420 ucom_put_data(&sc->sc_ucom, pc, 0, actlen); in uvscom_read_callback()
477 ucom_status_change(&sc->sc_ucom); in uvscom_intr_callback()
732 err = ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uvscom_cfg_write()
753 err = ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uvscom_cfg_read_status()
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 Dufoma.c165 struct ucom_softc sc_ucom; member
481 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in ufoma_detach()
544 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in ufoma_cfg_link_state()
566 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in ufoma_cfg_activate_state()
594 ucom_put_data(&sc->sc_ucom, pc1, 0, len); in ufoma_ctrl_read_callback()
757 ucom_status_change(&sc->sc_ucom); in ufoma_intr_callback()
792 if (ucom_get_data(&sc->sc_ucom, pc, 0, in ufoma_bulk_write_callback()
821 ucom_put_data(&sc->sc_ucom, pc, 0, actlen); in ufoma_bulk_read_callback()
888 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in ufoma_cfg_set_break()
918 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in ufoma_cfg_set_line_state()
[all …]
H A Duplcom.c165 struct ucom_softc sc_ucom; member
558 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in uplcom_detach()
679 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uplcom_cfg_set_dtr()
703 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uplcom_cfg_set_rts()
725 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uplcom_cfg_set_break()
924 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uplcom_cfg_param()
945 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uplcom_cfg_param()
960 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uplcom_cfg_param()
1064 ucom_status_change(&sc->sc_ucom); in uplcom_intr_callback()
1094 if (ucom_get_data(&sc->sc_ucom, pc, 0, in uplcom_write_callback()
[all …]
H A Dumct.c111 struct ucom_softc sc_ucom; member
300 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in umct_attach()
319 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in umct_detach()
364 err = ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in umct_cfg_do_request()
407 ucom_status_change(&sc->sc_ucom); in umct_intr_callback_sub()
625 if (ucom_get_data(&sc->sc_ucom, pc, 0, in umct_write_callback()
654 ucom_put_data(&sc->sc_ucom, pc, 0, actlen); in umct_read_callback_sub()
H A Dumodem.c177 struct ucom_softc sc_ucom; member
454 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in umodem_attach()
626 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in umodem_cfg_param()
691 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in umodem_cfg_set_dtr()
715 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in umodem_cfg_set_rts()
738 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in umodem_cfg_set_break()
836 ucom_status_change(&sc->sc_ucom); in umodem_intr_read_callback()
873 if (ucom_get_data(&sc->sc_ucom, pc, 0, in umodem_write_callback()
905 ucom_put_data(&sc->sc_ucom, pc, 0, actlen); in umodem_read_callback()
958 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in umodem_detach()
H A Ducycom.c82 struct ucom_softc sc_ucom; member
273 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in ucycom_attach()
299 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in ucycom_detach()
397 if (ucom_get_data(&sc->sc_ucom, pc1, offset, in ucycom_ctrl_write_callback()
464 err = ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in ucycom_cfg_write()
587 ucom_put_data(&sc->sc_ucom, pc, offset, len); in ucycom_intr_read_callback()
H A Duchcom.c165 struct ucom_softc sc_ucom; member
357 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in uchcom_attach()
378 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in uchcom_detach()
424 &sc->sc_ucom, &req, NULL, 0, 1000); in uchcom_ctrl_write()
442 &sc->sc_ucom, &req, buf, USB_SHORT_XFER_OK, 1000); in uchcom_ctrl_read()
802 ucom_status_change(&sc->sc_ucom); in uchcom_intr_callback()
832 if (ucom_get_data(&sc->sc_ucom, pc, 0, in uchcom_write_callback()
865 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.c91 struct ucom_softc sc_ucom; member
1160 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in uipaq_attach()
1179 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in uipaq_detach()
1260 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uipaq_cfg_set_dtr()
1284 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uipaq_cfg_set_rts()
1304 ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uipaq_cfg_set_break()
1320 if (ucom_get_data(&sc->sc_ucom, pc, 0, in uipaq_write_callback()
1349 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-14.2/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()
1231 if (ucom_get_data(&sc->sc_ucom[ht->ht_muxport], pc, in uhso_mux_write_callback()
1310 ucom_put_data(&sc->sc_ucom[0], pc, 0, actlen); in uhso_bs_read_callback()
[all …]
H A Dif_usievar.h215 struct ucom_softc sc_ucom[USIE_UCOM_MAX]; member
H A Dif_usie.c401 &sc->sc_ucom[sc->sc_nucom], &sc->sc_mtx); in usie_attach()
423 err = ucom_attach(&sc->sc_super_ucom, sc->sc_ucom, in usie_attach()
482 ucom_detach(&sc->sc_super_ucom, sc->sc_ucom); in usie_detach()
626 if (ucom == sc->sc_ucom && actlen >= USIE_HIPCNS_MIN) { in usie_uc_rx_callback()