Home
last modified time | relevance | path

Searched refs:port_base (Results 1 – 10 of 10) sorted by relevance

/linux-4.4.14/drivers/phy/
Dphy-mt65xx-usb3.c116 void __iomem *port_base; member
132 void __iomem *port_base = instance->port_base; in phy_instance_init() local
137 tmp = readl(port_base + U3P_U2PHYDTM0); in phy_instance_init()
140 writel(tmp, port_base + U3P_U2PHYDTM0); in phy_instance_init()
142 tmp = readl(port_base + U3P_U2PHYDTM1); in phy_instance_init()
144 writel(tmp, port_base + U3P_U2PHYDTM1); in phy_instance_init()
147 tmp = readl(port_base + U3P_U2PHYACR4); in phy_instance_init()
149 writel(tmp, port_base + U3P_U2PHYACR4); in phy_instance_init()
151 tmp = readl(port_base + U3P_USBPHYACR2); in phy_instance_init()
153 writel(tmp, port_base + U3P_USBPHYACR2); in phy_instance_init()
[all …]
/linux-4.4.14/drivers/net/ethernet/silan/
Dsc92031.c266 void __iomem *port_base; member
308 static inline void _sc92031_dummy_read(void __iomem *port_base) in _sc92031_dummy_read() argument
310 ioread32(port_base + MAC0); in _sc92031_dummy_read()
313 static u32 _sc92031_mii_wait(void __iomem *port_base) in _sc92031_mii_wait() argument
319 mii_status = ioread32(port_base + Miistatus); in _sc92031_mii_wait()
325 static u32 _sc92031_mii_cmd(void __iomem *port_base, u32 cmd0, u32 cmd1) in _sc92031_mii_cmd() argument
327 iowrite32(Mii_Divider, port_base + Miicmd0); in _sc92031_mii_cmd()
329 _sc92031_mii_wait(port_base); in _sc92031_mii_cmd()
331 iowrite32(cmd1, port_base + Miicmd1); in _sc92031_mii_cmd()
332 iowrite32(Mii_Divider | cmd0, port_base + Miicmd0); in _sc92031_mii_cmd()
[all …]
/linux-4.4.14/drivers/scsi/
Dfdomain.c386 static int port_base; variable
545 port_base); in print_banner()
567 port_base = ints[0] >= 1 ? ints[1] : 0; in fdomain_setup()
586 outb(0, port_base + SCSI_Cntl); in fdomain_make_bus_idle()
587 outb(0, port_base + SCSI_Mode_Cntl); in fdomain_make_bus_idle()
589 outb(0x21 | PARITY_MASK, port_base + TMC_Cntl); /* Clear forced intr. */ in fdomain_make_bus_idle()
591 outb(0x01 | PARITY_MASK, port_base + TMC_Cntl); in fdomain_make_bus_idle()
640 outb( i, port_base + Write_Loopback ); in fdomain_test_loopback()
641 result = inb( port_base + Read_Loopback ); in fdomain_test_loopback()
904 port_base, interrupt_level ); in __fdomain_16x0_detect()
[all …]
DNCR53c406a.c185 static int port_base = PORT_BASE; variable
187 static int port_base; variable
478 if (!request_region(port_base, 0x10, "NCR53c406a")) /* ports already snatched */ in NCR53c406a_detect()
479 port_base = 0; in NCR53c406a_detect()
482 if (port_base) { /* LILO override */ in NCR53c406a_detect()
483 if (!request_region(port_base, 0x10, "NCR53c406a")) in NCR53c406a_detect()
484 port_base = 0; in NCR53c406a_detect()
486 for (i = 0; i < PORT_COUNT && !port_base; i++) { in NCR53c406a_detect()
493 port_base = ports[i]; in NCR53c406a_detect()
495 VDEB(printk("port_base=0x%x\n", port_base)); in NCR53c406a_detect()
[all …]
Deata.c1027 static struct pci_dev *get_pci_dev(unsigned long port_base) in get_pci_dev() argument
1046 if (addr + PCI_BASE_ADDRESS_0 == port_base) in get_pci_dev()
1073 static int port_detect(unsigned long port_base, unsigned int j, in port_detect() argument
1089 if (!request_region(port_base, REGION_SIZE, driver_name)) { in port_detect()
1092 port_base); in port_detect()
1097 if (do_dma(port_base, 0, READ_CONFIG_PIO)) { in port_detect()
1100 port_base); in port_detect()
1106 if (read_pio(port_base, (ushort *) & info, (ushort *) & info.ipad[0])) { in port_detect()
1109 port_base); in port_detect()
1147 } else if (port_base > MAX_EISA_ADDR in port_detect()
[all …]
Du14-34f.c798 (unsigned long port_base, unsigned int j, struct scsi_host_template *tpnt) { in port_detect() argument
852 if (!request_region(port_base, REGION_SIZE, driver_name)) { in port_detect()
854 printk("%s: address 0x%03lx in use, skipping probe.\n", name, port_base); in port_detect()
861 if (inb(port_base + REG_PRODUCT_ID1) != PRODUCT_ID1) goto freelock; in port_detect()
863 in_byte = inb(port_base + REG_PRODUCT_ID2); in port_detect()
867 *(char *)&config_1 = inb(port_base + REG_CONFIG1); in port_detect()
868 *(char *)&config_2 = inb(port_base + REG_CONFIG2); in port_detect()
899 sh[j]->io_port = port_base; in port_detect()
900 sh[j]->unique_id = port_base; in port_detect()
1024 release_region(port_base, REGION_SIZE); in port_detect()
/linux-4.4.14/drivers/scsi/pcmcia/
Dsym53c500_cs.c359 int port_base = dev->io_port; in SYM53C500_intr() local
369 REG1(port_base); in SYM53C500_intr()
370 pio_status = inb(port_base + PIO_STATUS); in SYM53C500_intr()
371 REG0(port_base); in SYM53C500_intr()
372 status = inb(port_base + STAT_REG); in SYM53C500_intr()
373 DEB(seq_reg = inb(port_base + SEQ_REG)); in SYM53C500_intr()
374 int_reg = inb(port_base + INT_REG); in SYM53C500_intr()
375 DEB(fifo_size = inb(port_base + FIFO_FLAGS) & 0x1f); in SYM53C500_intr()
426 outb(FLUSH_FIFO, port_base + CMD_REG); in SYM53C500_intr()
427 LOAD_DMA_COUNT(port_base, scsi_bufflen(curSC)); /* Max transfer size */ in SYM53C500_intr()
[all …]
/linux-4.4.14/drivers/ata/
Dsata_inic162x.c265 static void inic_reset_port(void __iomem *port_base) in inic_reset_port() argument
267 void __iomem *idma_ctl = port_base + PORT_IDMA_CTL; in inic_reset_port()
282 writeb(0xff, port_base + PORT_IRQ_STAT); in inic_reset_port()
313 void __iomem *port_base = inic_port_base(ap); in inic_stop_idma() local
315 readb(port_base + PORT_RPQ_FIFO); in inic_stop_idma()
316 readb(port_base + PORT_RPQ_CNT); in inic_stop_idma()
317 writew(0, port_base + PORT_IDMA_CTL); in inic_stop_idma()
378 void __iomem *port_base = inic_port_base(ap); in inic_host_intr() local
384 irq_stat = readb(port_base + PORT_IRQ_STAT); in inic_host_intr()
385 writeb(irq_stat, port_base + PORT_IRQ_STAT); in inic_host_intr()
[all …]
Dpdc_adma.c645 void __iomem *port_base = ADMA_ATA_REGS(mmio_base, port_no); in adma_ata_init_one() local
646 unsigned int offset = port_base - mmio_base; in adma_ata_init_one()
648 adma_ata_setup_port(&ap->ioaddr, port_base); in adma_ata_init_one()
Dsata_mv.c1299 void __iomem *port_base; in mv_dump_all_regs() local
1329 port_base = mv_port_base(mmio_base, p); in mv_dump_all_regs()
1331 mv_dump_mem(port_base, 0x54); in mv_dump_all_regs()
1333 mv_dump_mem(port_base+0x300, 0x60); in mv_dump_all_regs()