Lines Matching refs:rh

1011 	struct r8a66597_root_hub *rh = &r8a66597->root_hub[port];
1013 rh->old_syssts = r8a66597_read(r8a66597, get_syssts_reg(port)) & LNST;
1014 rh->scount = R8A66597_MAX_SAMPLING;
1016 rh->port |= USB_PORT_STAT_CONNECTION;
1018 rh->port &= ~USB_PORT_STAT_CONNECTION;
1019 rh->port |= USB_PORT_STAT_C_CONNECTION << 16;
1055 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port];
1057 rh->port &= ~(USB_PORT_STAT_HIGH_SPEED | USB_PORT_STAT_LOW_SPEED);
1059 rh->port |= USB_PORT_STAT_HIGH_SPEED;
1061 rh->port |= USB_PORT_STAT_LOW_SPEED;
1063 rh->port &= ~USB_PORT_STAT_RESET;
1064 rh->port |= USB_PORT_STAT_ENABLE;
1701 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port];
1703 if (rh->port & USB_PORT_STAT_RESET) {
1715 if (!(rh->port & USB_PORT_STAT_CONNECTION)) {
1720 if (rh->scount > 0) {
1722 if (tmp == rh->old_syssts) {
1723 rh->scount--;
1724 if (rh->scount == 0)
1729 rh->scount = R8A66597_MAX_SAMPLING;
1730 rh->old_syssts = tmp;
2156 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port];
2181 rh->port &= ~USB_PORT_STAT_POWER;
2197 rh->port &= ~(1 << wValue);
2209 *(__le32 *)buf = cpu_to_le32(rh->port);
2222 rh->port |= USB_PORT_STAT_POWER;
2225 struct r8a66597_device *dev = rh->dev;
2227 rh->port |= USB_PORT_STAT_RESET;
2241 rh->port |= 1 << wValue;
2262 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port];
2265 if (!(rh->port & USB_PORT_STAT_ENABLE))
2268 dev_dbg(&rh->dev->udev->dev, "suspend port = %d\n", port);
2270 rh->port |= USB_PORT_STAT_SUSPEND;
2272 if (rh->dev->udev->do_remote_wakeup) {
2293 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port];
2296 if (!(rh->port & USB_PORT_STAT_SUSPEND))
2299 dev_dbg(&rh->dev->udev->dev, "resume port = %d\n", port);
2300 rh->port &= ~USB_PORT_STAT_SUSPEND;
2301 rh->port |= USB_PORT_STAT_C_SUSPEND << 16;
2360 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port];
2362 rh->port = 0x00000000;