Lines Matching refs:rh

998 	struct r8a66597_root_hub *rh = &r8a66597->root_hub[port];  in start_root_hub_sampling()  local
1000 rh->old_syssts = r8a66597_read(r8a66597, get_syssts_reg(port)) & LNST; in start_root_hub_sampling()
1001 rh->scount = R8A66597_MAX_SAMPLING; in start_root_hub_sampling()
1003 rh->port |= USB_PORT_STAT_CONNECTION; in start_root_hub_sampling()
1005 rh->port &= ~USB_PORT_STAT_CONNECTION; in start_root_hub_sampling()
1006 rh->port |= USB_PORT_STAT_C_CONNECTION << 16; in start_root_hub_sampling()
1042 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; in r8a66597_usb_connect() local
1044 rh->port &= ~(USB_PORT_STAT_HIGH_SPEED | USB_PORT_STAT_LOW_SPEED); in r8a66597_usb_connect()
1046 rh->port |= USB_PORT_STAT_HIGH_SPEED; in r8a66597_usb_connect()
1048 rh->port |= USB_PORT_STAT_LOW_SPEED; in r8a66597_usb_connect()
1050 rh->port &= ~USB_PORT_STAT_RESET; in r8a66597_usb_connect()
1051 rh->port |= USB_PORT_STAT_ENABLE; in r8a66597_usb_connect()
1688 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; in r8a66597_root_hub_control() local
1690 if (rh->port & USB_PORT_STAT_RESET) { in r8a66597_root_hub_control()
1702 if (!(rh->port & USB_PORT_STAT_CONNECTION)) { in r8a66597_root_hub_control()
1707 if (rh->scount > 0) { in r8a66597_root_hub_control()
1709 if (tmp == rh->old_syssts) { in r8a66597_root_hub_control()
1710 rh->scount--; in r8a66597_root_hub_control()
1711 if (rh->scount == 0) in r8a66597_root_hub_control()
1716 rh->scount = R8A66597_MAX_SAMPLING; in r8a66597_root_hub_control()
1717 rh->old_syssts = tmp; in r8a66597_root_hub_control()
2145 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; in r8a66597_hub_control() local
2170 rh->port &= ~USB_PORT_STAT_POWER; in r8a66597_hub_control()
2186 rh->port &= ~(1 << wValue); in r8a66597_hub_control()
2198 *(__le32 *)buf = cpu_to_le32(rh->port); in r8a66597_hub_control()
2211 rh->port |= USB_PORT_STAT_POWER; in r8a66597_hub_control()
2214 struct r8a66597_device *dev = rh->dev; in r8a66597_hub_control()
2216 rh->port |= USB_PORT_STAT_RESET; in r8a66597_hub_control()
2230 rh->port |= 1 << wValue; in r8a66597_hub_control()
2251 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; in r8a66597_bus_suspend() local
2254 if (!(rh->port & USB_PORT_STAT_ENABLE)) in r8a66597_bus_suspend()
2257 dev_dbg(&rh->dev->udev->dev, "suspend port = %d\n", port); in r8a66597_bus_suspend()
2259 rh->port |= USB_PORT_STAT_SUSPEND; in r8a66597_bus_suspend()
2261 if (rh->dev->udev->do_remote_wakeup) { in r8a66597_bus_suspend()
2282 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; in r8a66597_bus_resume() local
2285 if (!(rh->port & USB_PORT_STAT_SUSPEND)) in r8a66597_bus_resume()
2288 dev_dbg(&rh->dev->udev->dev, "resume port = %d\n", port); in r8a66597_bus_resume()
2289 rh->port &= ~USB_PORT_STAT_SUSPEND; in r8a66597_bus_resume()
2290 rh->port |= USB_PORT_STAT_C_SUSPEND << 16; in r8a66597_bus_resume()
2349 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; in r8a66597_suspend() local
2351 rh->port = 0x00000000; in r8a66597_suspend()