Lines Matching defs:req

672 	usb_bulk_req_t *req;
676 req = usb_alloc_bulk_req(sc->sc_dev, len, USB_FLAGS_SLEEP);
677 if (req == NULL) {
680 "uath_rx_transfer(): failed to allocate req");
684 req->bulk_len = len;
685 req->bulk_client_private = (usb_opaque_t)sc;
686 req->bulk_timeout = 0;
687 req->bulk_attributes = USB_ATTRS_SHORT_XFER_OK
690 err = usb_pipe_bulk_xfer(sc->rx_cmd_pipe, req, USB_FLAGS_SLEEP);
694 usb_free_bulk_req(req);
698 mp = req->bulk_data;
699 req->bulk_data = NULL;
707 usb_free_bulk_req(req);
1203 uath_cmd_txeof(usb_pipe_handle_t pipe, struct usb_bulk_req *req)
1205 struct uath_softc *sc = (struct uath_softc *)req->bulk_client_private;
1209 usb_str_cr(req->bulk_completion_reason),
1210 req->bulk_completion_reason,
1211 req->bulk_cb_flags,
1214 if (req->bulk_completion_reason != USB_CR_OK)
1220 usb_free_bulk_req(req);
1389 uath_cmd_rxeof(usb_pipe_handle_t pipe, usb_bulk_req_t *req)
1391 struct uath_softc *sc = (struct uath_softc *)req->bulk_client_private;
1399 usb_str_cr(req->bulk_completion_reason),
1400 req->bulk_completion_reason,
1401 req->bulk_cb_flags,
1404 m = req->bulk_data;
1405 req->bulk_data = NULL;
1407 if (req->bulk_completion_reason != USB_CR_OK) {
1442 usb_free_bulk_req(req);
1448 usb_bulk_req_t *req;
1451 req = usb_alloc_bulk_req(sc->sc_dev, UATH_MAX_CMDSZ, USB_FLAGS_SLEEP);
1452 if (req == NULL) {
1454 "failed to allocate req");
1458 req->bulk_len = UATH_MAX_CMDSZ;
1459 req->bulk_client_private = (usb_opaque_t)sc;
1460 req->bulk_cb = uath_cmd_rxeof;
1461 req->bulk_exc_cb = uath_cmd_rxeof;
1462 req->bulk_timeout = 0;
1463 req->bulk_completion_reason = 0;
1464 req->bulk_cb_flags = 0;
1465 req->bulk_attributes = USB_ATTRS_SHORT_XFER_OK
1468 err = usb_pipe_bulk_xfer(sc->rx_cmd_pipe, req, USB_FLAGS_NOSLEEP);
1472 usb_free_bulk_req(req);
1490 uath_data_txeof(usb_pipe_handle_t pipe, usb_bulk_req_t *req)
1492 struct uath_softc *sc = (struct uath_softc *)req->bulk_client_private;
1497 usb_str_cr(req->bulk_completion_reason),
1498 req->bulk_completion_reason,
1499 req->bulk_cb_flags,
1502 if (req->bulk_completion_reason != USB_CR_OK)
1514 usb_free_bulk_req(req);
1520 usb_bulk_req_t *req;
1523 req = usb_alloc_bulk_req(sc->sc_dev, 0, USB_FLAGS_SLEEP);
1524 if (req == NULL) {
1526 "uath_tx_data_xfer(): failed to allocate req");
1531 req->bulk_len = msgdsize(mp);
1532 req->bulk_data = mp;
1533 req->bulk_client_private = (usb_opaque_t)sc;
1534 req->bulk_timeout = UATH_DATA_TIMEOUT;
1535 req->bulk_attributes = USB_ATTRS_AUTOCLEARING;
1536 req->bulk_cb = uath_data_txeof;
1537 req->bulk_exc_cb = uath_data_txeof;
1538 req->bulk_completion_reason = 0;
1539 req->bulk_cb_flags = 0;
1541 if ((err = usb_pipe_bulk_xfer(sc->tx_data_pipe, req, 0)) !=
1546 usb_free_bulk_req(req);
1556 uath_data_rxeof(usb_pipe_handle_t pipe, usb_bulk_req_t *req)
1558 struct uath_softc *sc = (struct uath_softc *)req->bulk_client_private;
1573 usb_str_cr(req->bulk_completion_reason),
1574 req->bulk_completion_reason,
1575 req->bulk_cb_flags,
1578 mp = req->bulk_data;
1579 req->bulk_data = NULL;
1581 if (req->bulk_completion_reason != USB_CR_OK) {
1682 usb_free_bulk_req(req);
1692 usb_bulk_req_t *req;
1695 req = usb_alloc_bulk_req(sc->sc_dev,
1697 if (req == NULL) {
1699 "failed to allocate req");
1703 req->bulk_len = IEEE80211_MAX_LEN;
1704 req->bulk_cb = uath_data_rxeof;
1705 req->bulk_exc_cb = uath_data_rxeof;
1706 req->bulk_client_private = (usb_opaque_t)sc;
1707 req->bulk_timeout = 0;
1708 req->bulk_completion_reason = 0;
1709 req->bulk_cb_flags = 0;
1710 req->bulk_attributes = USB_ATTRS_SHORT_XFER_OK
1713 err = usb_pipe_bulk_xfer(sc->rx_data_pipe, req, 0);
1717 usb_free_bulk_req(req);