Searched refs:pld_base (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/net/can/sja1000/
H A Dtscan1.c95 unsigned long pld_base, sja1000_base; tscan1_probe() local
98 pld_base = TSCAN1_PLD_ADDRESS + id * TSCAN1_PLD_SIZE; tscan1_probe()
99 if (!request_region(pld_base, TSCAN1_PLD_SIZE, dev_name(dev))) tscan1_probe()
102 if (inb(pld_base + TSCAN1_ID1) != TSCAN1_ID1_VALUE || tscan1_probe()
103 inb(pld_base + TSCAN1_ID2) != TSCAN1_ID2_VALUE) { tscan1_probe()
104 release_region(pld_base, TSCAN1_PLD_SIZE); tscan1_probe()
108 switch (inb(pld_base + TSCAN1_JUMPERS) & (TSCAN1_JP4 | TSCAN1_JP5)) { tscan1_probe()
120 release_region(pld_base, TSCAN1_PLD_SIZE); tscan1_probe()
126 release_region(pld_base, TSCAN1_PLD_SIZE); tscan1_probe()
133 netdev->base_addr = pld_base; tscan1_probe()
151 outb(TSCAN1_MODE_ENABLE | i, pld_base + TSCAN1_MODE); tscan1_probe()
156 outb(0, pld_base + TSCAN1_LED); tscan1_probe()
158 pld_base, sja1000_base, irq); tscan1_probe()
163 outb(0, pld_base + TSCAN1_MODE); tscan1_probe()
170 release_region(pld_base, TSCAN1_PLD_SIZE); tscan1_probe()
178 unsigned long pld_base, sja1000_base; tscan1_remove() local
185 pld_base = netdev->base_addr; tscan1_remove()
188 outb(0, pld_base + TSCAN1_MODE); /* disable SJA1000 IO space */ tscan1_remove()
191 release_region(pld_base, TSCAN1_PLD_SIZE); tscan1_remove()

Completed in 146 milliseconds