Lines Matching refs:io_addr
1874 return inw(uhci->io_addr + USBFRNUM); in uhci_get_current_frame_number()
1964 unsigned int io_addr = uhci->io_addr; in rh_send_irq() local
1971 data |= ((inw(io_addr + USBPORTSC1 + i * 2) & 0xa) > 0 ? (1 << (i + 1)) : 0); in rh_send_irq()
1983 inw(io_addr + USBPORTSC1), inw(io_addr + USBPORTSC2), data); in rh_send_irq()
2072 status = inw(io_addr + USBPORTSC1 + 2 * (wIndex-1)); \
2074 outw(status, io_addr + USBPORTSC1 + 2 * (wIndex-1))
2077 status = inw(io_addr + USBPORTSC1 + 2 * (wIndex-1)); \
2079 outw(status, io_addr + USBPORTSC1 + 2 * (wIndex-1))
2094 unsigned int io_addr = uhci->io_addr; in rh_submit_urb() local
2140 status = inw(io_addr + USBPORTSC1 + 2 * (wIndex - 1)); in rh_submit_urb()
2233 uhci->io_addr, "UHCI-alt", in rh_submit_urb()
2442 unsigned int io_addr = uhci->io_addr; in uhci_interrupt() local
2450 status = inw(io_addr + USBSTS); in uhci_interrupt()
2453 outw(status, io_addr + USBSTS); /* Clear it */ in uhci_interrupt()
2457 err("%x: host system error, PCI problems?", io_addr); in uhci_interrupt()
2459 err("%x: host controller process error. something bad happened", io_addr); in uhci_interrupt()
2461 err("%x: host controller halted. very bad", io_addr); in uhci_interrupt()
2494 unsigned int io_addr = uhci->io_addr; in reset_hc() local
2497 outw(USBCMD_GRESET, io_addr + USBCMD); in reset_hc()
2499 outw(0, io_addr + USBCMD); in reset_hc()
2505 unsigned int io_addr = uhci->io_addr; in suspend_hc() local
2507 dbg("%x: suspend_hc", io_addr); in suspend_hc()
2509 outw(USBCMD_EGSM, io_addr + USBCMD); in suspend_hc()
2516 unsigned int io_addr = uhci->io_addr; in wakeup_hc() local
2519 dbg("%x: wakeup_hc", io_addr); in wakeup_hc()
2521 outw(0, io_addr + USBCMD); in wakeup_hc()
2524 status = inw(io_addr + USBCMD); in wakeup_hc()
2526 status = inw(io_addr + USBCMD); in wakeup_hc()
2531 outw(USBCMD_RS | USBCMD_CF | USBCMD_MAXP, io_addr + USBCMD); in wakeup_hc()
2536 unsigned int io_addr = uhci->io_addr; in ports_active() local
2541 connection |= (inw(io_addr + USBPORTSC1 + i * 2) & 0x1); in ports_active()
2548 unsigned int io_addr = uhci->io_addr; in start_hc() local
2557 outw(USBCMD_HCRESET, io_addr + USBCMD); in start_hc()
2558 while (inw(io_addr + USBCMD) & USBCMD_HCRESET) { in start_hc()
2567 io_addr + USBINTR); in start_hc()
2570 outw(0, io_addr + USBFRNUM); in start_hc()
2571 outl(uhci->fl->dma_handle, io_addr + USBFLBASEADD); in start_hc()
2574 outw(USBCMD_RS | USBCMD_CF | USBCMD_MAXP, io_addr + USBCMD); in start_hc()
2661 static int alloc_uhci(struct pci_dev *dev, unsigned int io_addr, unsigned int io_size) in alloc_uhci() argument
2690 if (!request_region(io_addr, io_size, "usb-uhci")) { in alloc_uhci()
2691 err("couldn't allocate I/O range %x - %x", io_addr, in alloc_uhci()
2692 io_addr + io_size - 1); in alloc_uhci()
2704 io_addr, bufp); in alloc_uhci()
2721 uhci->io_addr = io_addr; in alloc_uhci()
2816 portstatus = inw(uhci->io_addr + 0x10 + (port * 2)); in alloc_uhci()
3001 release_region(io_addr, io_size); in alloc_uhci()
3020 unsigned int io_addr = pci_resource_start(dev, i); in uhci_pci_probe() local
3027 return alloc_uhci(dev, io_addr, io_size); in uhci_pci_probe()
3050 release_region(uhci->io_addr, uhci->io_size); in uhci_pci_remove()