Lines Matching defs:ucom
129 static void u3g_start_read(struct ucom_softc *ucom);
130 static void u3g_stop_read(struct ucom_softc *ucom);
131 static void u3g_start_write(struct ucom_softc *ucom);
132 static void u3g_stop_write(struct ucom_softc *ucom);
133 static void u3g_poll(struct ucom_softc *ucom);
134 static void u3g_free(struct ucom_softc *ucom);
641 MODULE_DEPEND(u3g, ucom, 1, 1, 1);
1097 u3g_free(struct ucom_softc *ucom)
1099 u3g_free_softc(ucom->sc_parent);
1103 u3g_start_read(struct ucom_softc *ucom)
1105 struct u3g_softc *sc = ucom->sc_parent;
1108 usbd_transfer_start(sc->sc_xfer[ucom->sc_subunit][U3G_INTR]);
1111 usbd_transfer_start(sc->sc_xfer[ucom->sc_subunit][U3G_BULK_RD]);
1115 u3g_stop_read(struct ucom_softc *ucom)
1117 struct u3g_softc *sc = ucom->sc_parent;
1120 usbd_transfer_stop(sc->sc_xfer[ucom->sc_subunit][U3G_INTR]);
1123 usbd_transfer_stop(sc->sc_xfer[ucom->sc_subunit][U3G_BULK_RD]);
1127 u3g_start_write(struct ucom_softc *ucom)
1129 struct u3g_softc *sc = ucom->sc_parent;
1131 usbd_transfer_start(sc->sc_xfer[ucom->sc_subunit][U3G_BULK_WR]);
1135 u3g_stop_write(struct ucom_softc *ucom)
1137 struct u3g_softc *sc = ucom->sc_parent;
1139 usbd_transfer_stop(sc->sc_xfer[ucom->sc_subunit][U3G_BULK_WR]);
1145 struct ucom_softc *ucom = usbd_xfer_softc(xfer);
1158 if (ucom_get_data(ucom, pc, 0, U3G_TXSIZE, &actlen) == 0)
1181 struct ucom_softc *ucom = usbd_xfer_softc(xfer);
1190 ucom_put_data(ucom, pc, 0, actlen);
1209 u3g_cfg_get_status(struct ucom_softc *ucom, uint8_t *lsr, uint8_t *msr)
1211 struct u3g_softc *sc = ucom->sc_parent;
1214 *lsr = sc->sc_lsr[ucom->sc_subunit];
1215 *msr = sc->sc_msr[ucom->sc_subunit];
1219 u3g_cfg_set_line(struct ucom_softc *ucom)
1221 struct u3g_softc *sc = ucom->sc_parent;
1226 USETW(req.wValue, sc->sc_line[ucom->sc_subunit]);
1227 req.wIndex[0] = sc->sc_iface[ucom->sc_subunit];
1231 ucom_cfg_do_request(sc->sc_udev, ucom,
1236 u3g_cfg_set_dtr(struct ucom_softc *ucom, uint8_t onoff)
1238 struct u3g_softc *sc = ucom->sc_parent;
1243 sc->sc_line[ucom->sc_subunit] |= UCDC_LINE_DTR;
1245 sc->sc_line[ucom->sc_subunit] &= ~UCDC_LINE_DTR;
1247 u3g_cfg_set_line(ucom);
1251 u3g_cfg_set_rts(struct ucom_softc *ucom, uint8_t onoff)
1253 struct u3g_softc *sc = ucom->sc_parent;
1258 sc->sc_line[ucom->sc_subunit] |= UCDC_LINE_RTS;
1260 sc->sc_line[ucom->sc_subunit] &= ~UCDC_LINE_RTS;
1262 u3g_cfg_set_line(ucom);
1268 struct ucom_softc *ucom = usbd_xfer_softc(xfer);
1269 struct u3g_softc *sc = ucom->sc_parent;
1296 * Set the serial state in ucom driver based on
1303 sc->sc_lsr[ucom->sc_subunit] = 0;
1304 sc->sc_msr[ucom->sc_subunit] = 0;
1309 sc->sc_msr[ucom->sc_subunit] |= SER_RI;
1311 sc->sc_msr[ucom->sc_subunit] |= SER_DSR;
1313 sc->sc_msr[ucom->sc_subunit] |= SER_DCD;
1314 ucom_status_change(ucom);
1334 u3g_poll(struct ucom_softc *ucom)
1336 struct u3g_softc *sc = ucom->sc_parent;
1337 usbd_transfer_poll(sc->sc_xfer[ucom->sc_subunit], U3G_N_TRANSFER);