Lines Matching refs:portnum
478 static void set_owner(struct ehci_hcd *ehci, int portnum, int new_owner)
484 status_reg = &ehci->regs->port_status[portnum];
511 * Syntax is "[-]portnum", where a leading '-' sign means
519 int portnum, new_owner;
523 if (sscanf(buf, "%d", &portnum) != 1)
525 if (portnum < 0) {
526 portnum = - portnum;
529 if (portnum <= 0 || portnum > HCS_N_PORTS(ehci->hcs_params))
531 portnum--;
533 set_bit(portnum, &ehci->companion_ports);
535 clear_bit(portnum, &ehci->companion_ports);
536 set_owner(ehci, portnum, new_owner);
1102 static void ehci_relinquish_port(struct usb_hcd *hcd, int portnum)
1108 set_owner(ehci, --portnum, PORT_OWNER);
1111 static int ehci_port_handed_over(struct usb_hcd *hcd, int portnum)
1118 reg = &ehci->regs->port_status[portnum - 1];