summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_handle_request.c
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2009-06-07 19:41:11 +0000
committerthompsa <thompsa@FreeBSD.org>2009-06-07 19:41:11 +0000
commit2d149b09c57b22367f7e05e3efaf23f0cb328621 (patch)
treec74029825164c1a63bb75e5f673438c24b743f22 /sys/dev/usb/usb_handle_request.c
parent919e3cbf2805715b8fefeab48237aaec49b8b9e9 (diff)
downloadFreeBSD-src-2d149b09c57b22367f7e05e3efaf23f0cb328621.zip
FreeBSD-src-2d149b09c57b22367f7e05e3efaf23f0cb328621.tar.gz
Rename usb pipes to endpoints as it better represents what they are, and struct
usb_pipe may be used for a different purpose later on.
Diffstat (limited to 'sys/dev/usb/usb_handle_request.c')
-rw-r--r--sys/dev/usb/usb_handle_request.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/usb/usb_handle_request.c b/sys/dev/usb/usb_handle_request.c
index b06b02e..6168cd3 100644
--- a/sys/dev/usb/usb_handle_request.c
+++ b/sys/dev/usb/usb_handle_request.c
@@ -341,7 +341,7 @@ usb2_handle_set_stall(struct usb_xfer *xfer, uint8_t ep, uint8_t do_stall)
USB_XFER_UNLOCK(xfer);
err = usb2_set_endpoint_stall(udev,
- usb2_get_pipe_by_addr(udev, ep), do_stall);
+ usb2_get_ep_by_addr(udev, ep), do_stall);
USB_XFER_LOCK(xfer);
return (err);
}
@@ -356,16 +356,16 @@ usb2_handle_set_stall(struct usb_xfer *xfer, uint8_t ep, uint8_t do_stall)
static uint8_t
usb2_handle_get_stall(struct usb_device *udev, uint8_t ea_val)
{
- struct usb_pipe *pipe;
+ struct usb_endpoint *ep;
uint8_t halted;
- pipe = usb2_get_pipe_by_addr(udev, ea_val);
- if (pipe == NULL) {
+ ep = usb2_get_ep_by_addr(udev, ea_val);
+ if (ep == NULL) {
/* nothing to do */
return (0);
}
USB_BUS_LOCK(udev->bus);
- halted = pipe->is_stalled;
+ halted = ep->is_stalled;
USB_BUS_UNLOCK(udev->bus);
return (halted);
OpenPOWER on IntegriCloud