• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/usb/wusbcore/

Lines Matching defs:port_idx

26  * @port_idx refers to the wusbhc's port index, not the USB port number
28 static int wusbhc_rh_port_reset(struct wusbhc *wusbhc, u8 port_idx)
31 struct wusb_port *port = wusb_port_by_idx(wusbhc, port_idx);
164 u8 selector, u8 port_idx)
168 if (port_idx > wusbhc->ports_max)
183 wusb_port_by_idx(wusbhc, port_idx)->status |= USB_PORT_STAT_POWER;
187 return wusbhc_rh_port_reset(wusbhc, port_idx);
190 dev_err(dev, "(port_idx %d) set feat %d/%d UNIMPLEMENTED\n",
191 port_idx, feature, selector);
194 dev_err(dev, "(port_idx %d) set feat %d/%d UNKNOWN\n",
195 port_idx, feature, selector);
208 u8 selector, u8 port_idx)
213 if (port_idx > wusbhc->ports_max)
223 wusb_port_by_idx(wusbhc, port_idx)->change &= ~USB_PORT_STAT_C_RESET;
226 wusb_port_by_idx(wusbhc, port_idx)->change &= ~USB_PORT_STAT_C_CONNECTION;
229 __wusbhc_dev_disable(wusbhc, port_idx);
232 wusb_port_by_idx(wusbhc, port_idx)->change &= ~USB_PORT_STAT_C_ENABLE;
236 dev_err(dev, "(port_idx %d) Clear feat %d/%d UNIMPLEMENTED\n",
237 port_idx, feature, selector);
241 dev_err(dev, "(port_idx %d) Clear feat %d/%d UNKNOWN\n",
242 port_idx, feature, selector);
256 static int wusbhc_rh_get_port_status(struct wusbhc *wusbhc, u16 port_idx,
261 if (port_idx > wusbhc->ports_max)
265 buf[0] = cpu_to_le16(wusb_port_by_idx(wusbhc, port_idx)->status);
266 buf[1] = cpu_to_le16(wusb_port_by_idx(wusbhc, port_idx)->change);
341 int wusbhc_rh_start_port_reset(struct usb_hcd *usb_hcd, unsigned port_idx)
344 dev_err(wusbhc->dev, "%s (%p [%p], port_idx %u) UNIMPLEMENTED\n",
345 __func__, usb_hcd, wusbhc, port_idx);