Lines Matching refs:rh

996 	struct r8a66597_root_hub *rh = &r8a66597->root_hub[port];  in start_root_hub_sampling()  local
998 rh->old_syssts = r8a66597_read(r8a66597, get_syssts_reg(port)) & LNST; in start_root_hub_sampling()
999 rh->scount = R8A66597_MAX_SAMPLING; in start_root_hub_sampling()
1001 rh->port |= USB_PORT_STAT_CONNECTION; in start_root_hub_sampling()
1003 rh->port &= ~USB_PORT_STAT_CONNECTION; in start_root_hub_sampling()
1004 rh->port |= USB_PORT_STAT_C_CONNECTION << 16; in start_root_hub_sampling()
1040 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; in r8a66597_usb_connect() local
1042 rh->port &= ~(USB_PORT_STAT_HIGH_SPEED | USB_PORT_STAT_LOW_SPEED); in r8a66597_usb_connect()
1044 rh->port |= USB_PORT_STAT_HIGH_SPEED; in r8a66597_usb_connect()
1046 rh->port |= USB_PORT_STAT_LOW_SPEED; in r8a66597_usb_connect()
1048 rh->port &= ~USB_PORT_STAT_RESET; in r8a66597_usb_connect()
1049 rh->port |= USB_PORT_STAT_ENABLE; in r8a66597_usb_connect()
1686 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; in r8a66597_root_hub_control() local
1688 if (rh->port & USB_PORT_STAT_RESET) { in r8a66597_root_hub_control()
1700 if (!(rh->port & USB_PORT_STAT_CONNECTION)) { in r8a66597_root_hub_control()
1705 if (rh->scount > 0) { in r8a66597_root_hub_control()
1707 if (tmp == rh->old_syssts) { in r8a66597_root_hub_control()
1708 rh->scount--; in r8a66597_root_hub_control()
1709 if (rh->scount == 0) in r8a66597_root_hub_control()
1714 rh->scount = R8A66597_MAX_SAMPLING; in r8a66597_root_hub_control()
1715 rh->old_syssts = tmp; in r8a66597_root_hub_control()
2146 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; in r8a66597_hub_control() local
2171 rh->port &= ~USB_PORT_STAT_POWER; in r8a66597_hub_control()
2187 rh->port &= ~(1 << wValue); in r8a66597_hub_control()
2199 *(__le32 *)buf = cpu_to_le32(rh->port); in r8a66597_hub_control()
2212 rh->port |= USB_PORT_STAT_POWER; in r8a66597_hub_control()
2215 struct r8a66597_device *dev = rh->dev; in r8a66597_hub_control()
2217 rh->port |= USB_PORT_STAT_RESET; in r8a66597_hub_control()
2231 rh->port |= 1 << wValue; in r8a66597_hub_control()
2252 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; in r8a66597_bus_suspend() local
2255 if (!(rh->port & USB_PORT_STAT_ENABLE)) in r8a66597_bus_suspend()
2258 dev_dbg(&rh->dev->udev->dev, "suspend port = %d\n", port); in r8a66597_bus_suspend()
2260 rh->port |= USB_PORT_STAT_SUSPEND; in r8a66597_bus_suspend()
2262 if (rh->dev->udev->do_remote_wakeup) { in r8a66597_bus_suspend()
2283 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; in r8a66597_bus_resume() local
2286 if (!(rh->port & USB_PORT_STAT_SUSPEND)) in r8a66597_bus_resume()
2289 dev_dbg(&rh->dev->udev->dev, "resume port = %d\n", port); in r8a66597_bus_resume()
2290 rh->port &= ~USB_PORT_STAT_SUSPEND; in r8a66597_bus_resume()
2291 rh->port |= USB_PORT_STAT_C_SUSPEND << 16; in r8a66597_bus_resume()
2350 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; in r8a66597_suspend() local
2352 rh->port = 0x00000000; in r8a66597_suspend()