Lines Matching refs:status
38 static int vhci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status);
128 pr_debug("status prev -> new: %08x -> %08x\n", prev_status, new_status);
158 u32 status;
165 status = vhci_hcd->port_status[rhport];
167 status |= USB_PORT_STAT_CONNECTION | (1 << USB_PORT_FEAT_C_CONNECTION);
171 status |= USB_PORT_STAT_HIGH_SPEED;
174 status |= USB_PORT_STAT_LOW_SPEED;
180 vhci_hcd->port_status[rhport] = status;
192 u32 status;
199 status = vhci_hcd->port_status[rhport];
201 status &= ~USB_PORT_STAT_CONNECTION;
202 status |= (1 << USB_PORT_FEAT_C_CONNECTION);
204 vhci_hcd->port_status[rhport] = status;
218 * Returns 0 if the status hasn't changed, or the number of bytes in buf.
222 * @buf: a bitmap to show which port status has been changed.
224 * bit 1: the status of port 0 has been changed.
225 * bit 2: the status of port 1 has been changed.
245 /* check pseudo status register for each port */
248 /* The status of a port has been changed, */
249 usbip_dbg_vhci_rh("port %d status changed\n", rhport);
357 /* store old status and compare now and old later */
462 if (vhci_hcd->vdev[rhport].ud.status ==
464 vhci_hcd->vdev[rhport].ud.status ==
467 " enable rhport %d (status %u)\n",
469 vhci_hcd->vdev[rhport].ud.status);
645 /* Only dump valid port status */
717 if (urb->status != -EINPROGRESS) {
718 dev_err(dev, "URB already unlinked!, status %d\n", urb->status);
720 return urb->status;
725 if (vdev->ud.status == VDEV_ST_NULL ||
726 vdev->ud.status == VDEV_ST_ERROR) {
768 vdev->ud.status = VDEV_ST_USED;
771 if (urb->status == -EINPROGRESS) {
774 urb->status = 0;
815 usb_hcd_giveback_urb(hcd, urb, urb->status);
867 static int vhci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status)
888 ret = usb_hcd_check_unlink_urb(hcd, urb, status);
916 usb_hcd_giveback_urb(hcd, urb, urb->status);
976 urb->status = -ENODEV;
985 usb_hcd_giveback_urb(hcd, urb, urb->status);
1085 ud->status = VDEV_ST_NULL;
1095 ud->status = VDEV_ST_ERROR;
1104 vdev->ud.status = VDEV_ST_NULL;