Lines Matching refs:rh
987 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; in start_root_hub_sampling() local
989 rh->old_syssts = r8a66597_read(r8a66597, get_syssts_reg(port)) & LNST; in start_root_hub_sampling()
990 rh->scount = R8A66597_MAX_SAMPLING; in start_root_hub_sampling()
992 rh->port |= 1 << USB_PORT_FEAT_CONNECTION; in start_root_hub_sampling()
994 rh->port &= ~(1 << USB_PORT_FEAT_CONNECTION); in start_root_hub_sampling()
995 rh->port |= 1 << USB_PORT_FEAT_C_CONNECTION; in start_root_hub_sampling()
1023 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; in r8a66597_usb_connect() local
1026 rh->port |= (1 << USB_PORT_FEAT_HIGHSPEED); in r8a66597_usb_connect()
1028 rh->port |= (1 << USB_PORT_FEAT_LOWSPEED); in r8a66597_usb_connect()
1030 rh->port &= ~(1 << USB_PORT_FEAT_RESET); in r8a66597_usb_connect()
1031 rh->port |= 1 << USB_PORT_FEAT_ENABLE; in r8a66597_usb_connect()
1660 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; in r8a66597_root_hub_control() local
1662 if (rh->port & (1 << USB_PORT_FEAT_RESET)) { in r8a66597_root_hub_control()
1674 if (!(rh->port & (1 << USB_PORT_FEAT_CONNECTION))) { in r8a66597_root_hub_control()
1679 if (rh->scount > 0) { in r8a66597_root_hub_control()
1681 if (tmp == rh->old_syssts) { in r8a66597_root_hub_control()
1682 rh->scount--; in r8a66597_root_hub_control()
1683 if (rh->scount == 0) in r8a66597_root_hub_control()
1688 rh->scount = R8A66597_MAX_SAMPLING; in r8a66597_root_hub_control()
1689 rh->old_syssts = tmp; in r8a66597_root_hub_control()
2119 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; in r8a66597_hub_control() local
2144 rh->port &= (1 << USB_PORT_FEAT_POWER); in r8a66597_hub_control()
2160 rh->port &= ~(1 << wValue); in r8a66597_hub_control()
2172 *(__le32 *)buf = cpu_to_le32(rh->port); in r8a66597_hub_control()
2185 rh->port |= (1 << USB_PORT_FEAT_POWER); in r8a66597_hub_control()
2188 struct r8a66597_device *dev = rh->dev; in r8a66597_hub_control()
2190 rh->port |= (1 << USB_PORT_FEAT_RESET); in r8a66597_hub_control()
2204 rh->port |= 1 << wValue; in r8a66597_hub_control()