Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/ethernet/8390/
H A Dapne.c391 int nic_base = dev->base_addr; in apne_get_8390_hdr() local
405 outb(E8390_NODMA+E8390_PAGE0+E8390_START, nic_base+ NE_CMD); in apne_get_8390_hdr()
406 outb(ENISR_RDC, nic_base + NE_EN0_ISR); in apne_get_8390_hdr()
407 outb(sizeof(struct e8390_pkt_hdr), nic_base + NE_EN0_RCNTLO); in apne_get_8390_hdr()
408 outb(0, nic_base + NE_EN0_RCNTHI); in apne_get_8390_hdr()
409 outb(0, nic_base + NE_EN0_RSARLO); /* On page boundary */ in apne_get_8390_hdr()
410 outb(ring_page, nic_base + NE_EN0_RSARHI); in apne_get_8390_hdr()
411 outb(E8390_RREAD+E8390_START, nic_base + NE_CMD); in apne_get_8390_hdr()
423 outb(ENISR_RDC, nic_base + NE_EN0_ISR); /* Ack intr. */ in apne_get_8390_hdr()
437 int nic_base in apne_block_input() local
479 int nic_base = NE_BASE; apne_block_output() local
[all...]
H A Dzorro8390.c114 int nic_base = dev->base_addr; in zorro8390_get_8390_hdr() local
129 z_writeb(E8390_NODMA + E8390_PAGE0 + E8390_START, nic_base + NE_CMD); in zorro8390_get_8390_hdr()
130 z_writeb(ENISR_RDC, nic_base + NE_EN0_ISR); in zorro8390_get_8390_hdr()
131 z_writeb(sizeof(struct e8390_pkt_hdr), nic_base + NE_EN0_RCNTLO); in zorro8390_get_8390_hdr()
132 z_writeb(0, nic_base + NE_EN0_RCNTHI); in zorro8390_get_8390_hdr()
133 z_writeb(0, nic_base + NE_EN0_RSARLO); /* On page boundary */ in zorro8390_get_8390_hdr()
134 z_writeb(ring_page, nic_base + NE_EN0_RSARHI); in zorro8390_get_8390_hdr()
135 z_writeb(E8390_RREAD+E8390_START, nic_base + NE_CMD); in zorro8390_get_8390_hdr()
141 z_writeb(ENISR_RDC, nic_base + NE_EN0_ISR); /* Ack intr */ in zorro8390_get_8390_hdr()
157 int nic_base in zorro8390_block_input() local
192 int nic_base = NE_BASE; zorro8390_block_output() local
[all...]
H A Dne2k-pci.c503 long nic_base = dev->base_addr; in ne2k_pci_get_8390_hdr() local
514 outb(E8390_NODMA + E8390_PAGE0 + E8390_START, nic_base + NE_CMD); in ne2k_pci_get_8390_hdr()
515 outb(sizeof(struct e8390_pkt_hdr), nic_base + EN0_RCNTLO); in ne2k_pci_get_8390_hdr()
516 outb(0, nic_base + EN0_RCNTHI); in ne2k_pci_get_8390_hdr()
517 outb(0, nic_base + EN0_RSARLO); /* On page boundary */ in ne2k_pci_get_8390_hdr()
518 outb(ring_page, nic_base + EN0_RSARHI); in ne2k_pci_get_8390_hdr()
519 outb(E8390_RREAD+E8390_START, nic_base + NE_CMD); in ne2k_pci_get_8390_hdr()
529 outb(ENISR_RDC, nic_base + EN0_ISR); in ne2k_pci_get_8390_hdr()
542 long nic_base = dev->base_addr; in ne2k_pci_block_input() local
556 outb(E8390_NODMA + E8390_PAGE0 + E8390_START, nic_base in ne2k_pci_block_input()
589 long nic_base = NE_BASE; ne2k_pci_block_output() local
[all...]
H A Dxsurf100.c163 void __iomem *nic_base = ei_local->mem; in xs100_block_input() local
176 ei_outb(E8390_NODMA + E8390_PAGE0 + E8390_START, nic_base + NE_CMD); in xs100_block_input()
177 ei_outb(count & 0xff, nic_base + EN0_RCNTLO); in xs100_block_input()
178 ei_outb(count >> 8, nic_base + EN0_RCNTHI); in xs100_block_input()
179 ei_outb(ring_offset & 0xff, nic_base + EN0_RSARLO); in xs100_block_input()
180 ei_outb(ring_offset >> 8, nic_base + EN0_RSARHI); in xs100_block_input()
181 ei_outb(E8390_RREAD + E8390_START, nic_base + NE_CMD); in xs100_block_input()
192 void __iomem *nic_base = ei_local->mem; in xs100_block_output() local
215 ei_outb(E8390_PAGE0 + E8390_START + E8390_NODMA, nic_base + NE_CMD); in xs100_block_output()
217 ei_outb(ENISR_RDC, nic_base in xs100_block_output()
[all...]
H A Dne.c577 int nic_base = dev->base_addr; in ne_get_8390_hdr() local
590 outb_p(E8390_NODMA+E8390_PAGE0+E8390_START, nic_base+ NE_CMD); in ne_get_8390_hdr()
591 outb_p(sizeof(struct e8390_pkt_hdr), nic_base + EN0_RCNTLO); in ne_get_8390_hdr()
592 outb_p(0, nic_base + EN0_RCNTHI); in ne_get_8390_hdr()
593 outb_p(0, nic_base + EN0_RSARLO); /* On page boundary */ in ne_get_8390_hdr()
594 outb_p(ring_page, nic_base + EN0_RSARHI); in ne_get_8390_hdr()
595 outb_p(E8390_RREAD+E8390_START, nic_base + NE_CMD); in ne_get_8390_hdr()
602 outb_p(ENISR_RDC, nic_base + EN0_ISR); /* Ack intr. */ in ne_get_8390_hdr()
619 int nic_base = dev->base_addr; in ne_block_input() local
631 outb_p(E8390_NODMA+E8390_PAGE0+E8390_START, nic_base in ne_block_input()
683 int nic_base = NE_BASE; ne_block_output() local
[all...]
H A Dax88796.c183 void __iomem *nic_base = ei_local->mem; in ax_get_8390_hdr() local
195 ei_outb(E8390_NODMA + E8390_PAGE0 + E8390_START, nic_base + NE_CMD); in ax_get_8390_hdr()
196 ei_outb(sizeof(struct e8390_pkt_hdr), nic_base + EN0_RCNTLO); in ax_get_8390_hdr()
197 ei_outb(0, nic_base + EN0_RCNTHI); in ax_get_8390_hdr()
198 ei_outb(0, nic_base + EN0_RSARLO); /* On page boundary */ in ax_get_8390_hdr()
199 ei_outb(ring_page, nic_base + EN0_RSARHI); in ax_get_8390_hdr()
200 ei_outb(E8390_RREAD+E8390_START, nic_base + NE_CMD); in ax_get_8390_hdr()
203 ioread16_rep(nic_base + NE_DATAPORT, hdr, in ax_get_8390_hdr()
206 ioread8_rep(nic_base + NE_DATAPORT, hdr, in ax_get_8390_hdr()
209 ei_outb(ENISR_RDC, nic_base in ax_get_8390_hdr()
227 void __iomem *nic_base = ei_local->mem; ax_block_input() local
264 void __iomem *nic_base = ei_local->mem; ax_block_output() local
[all...]
H A Dpcnet_cs.c838 unsigned int nic_base = dev->base_addr; in set_misc_reg() local
843 tmp = inb_p(nic_base + PCNET_MISC) & ~3; in set_misc_reg()
850 outb_p(tmp, nic_base + PCNET_MISC); in set_misc_reg()
855 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 4, 0x01e1); in set_misc_reg()
857 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x0000); in set_misc_reg()
858 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x1200); in set_misc_reg()
861 outb(full_duplex ? 4 : 0, nic_base + DLINK_DIAG); in set_misc_reg()
865 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 4, 0x01e1); in set_misc_reg()
867 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x0000); in set_misc_reg()
868 mdio_write(nic_base in set_misc_reg()
903 unsigned int nic_base = dev->base_addr; pcnet_open() local
955 unsigned int nic_base = dev->base_addr; pcnet_reset_8390() local
1014 unsigned int nic_base = dev->base_addr; ei_watchdog() local
1128 unsigned int nic_base = dev->base_addr; dma_get_8390_hdr() local
1159 unsigned int nic_base = dev->base_addr; dma_block_input() local
1216 unsigned int nic_base = dev->base_addr; dma_block_output() local
[all...]
H A Daxnet_cs.c469 unsigned int nic_base = dev->base_addr; in axnet_open() local
476 outb_p(0xFF, nic_base + EN0_ISR); /* Clear bogus intr. */ in axnet_open()
518 unsigned int nic_base = dev->base_addr; in axnet_reset_8390() local
523 outb_p(E8390_NODMA+E8390_PAGE0+E8390_STOP, nic_base + E8390_CMD); in axnet_reset_8390()
525 outb(inb(nic_base + AXNET_RESET), nic_base + AXNET_RESET); in axnet_reset_8390()
528 if ((inb_p(nic_base+EN0_ISR) & ENISR_RESET) != 0) in axnet_reset_8390()
532 outb_p(ENISR_RESET, nic_base + EN0_ISR); /* Ack intr. */ in axnet_reset_8390()
552 unsigned int nic_base = dev->base_addr; in ei_watchdog() local
553 unsigned int mii_addr = nic_base in ei_watchdog()
630 unsigned int nic_base = dev->base_addr; get_8390_hdr() local
648 unsigned int nic_base = dev->base_addr; block_input() local
672 unsigned int nic_base = dev->base_addr; block_output() local
[all...]
H A Dhydra.c204 int nic_base = dev->base_addr; in hydra_get_8390_hdr() local
206 unsigned long hdr_start= (nic_base-HYDRA_NIC_BASE) + in hydra_get_8390_hdr()
220 unsigned long nic_base = dev->base_addr; in hydra_block_input() local
221 unsigned long mem_base = nic_base - HYDRA_NIC_BASE; in hydra_block_input()
241 unsigned long nic_base = dev->base_addr; in hydra_block_output() local
242 unsigned long mem_base = nic_base - HYDRA_NIC_BASE; in hydra_block_output()
/kernel/linux/linux-6.6/drivers/net/ethernet/8390/
H A Dapne.c380 int nic_base = dev->base_addr; in apne_get_8390_hdr() local
394 outb(E8390_NODMA+E8390_PAGE0+E8390_START, nic_base+ NE_CMD); in apne_get_8390_hdr()
395 outb(ENISR_RDC, nic_base + NE_EN0_ISR); in apne_get_8390_hdr()
396 outb(sizeof(struct e8390_pkt_hdr), nic_base + NE_EN0_RCNTLO); in apne_get_8390_hdr()
397 outb(0, nic_base + NE_EN0_RCNTHI); in apne_get_8390_hdr()
398 outb(0, nic_base + NE_EN0_RSARLO); /* On page boundary */ in apne_get_8390_hdr()
399 outb(ring_page, nic_base + NE_EN0_RSARHI); in apne_get_8390_hdr()
400 outb(E8390_RREAD+E8390_START, nic_base + NE_CMD); in apne_get_8390_hdr()
412 outb(ENISR_RDC, nic_base + NE_EN0_ISR); /* Ack intr. */ in apne_get_8390_hdr()
426 int nic_base in apne_block_input() local
468 int nic_base = NE_BASE; apne_block_output() local
[all...]
H A Dzorro8390.c109 int nic_base = dev->base_addr; in zorro8390_get_8390_hdr() local
124 z_writeb(E8390_NODMA + E8390_PAGE0 + E8390_START, nic_base + NE_CMD); in zorro8390_get_8390_hdr()
125 z_writeb(ENISR_RDC, nic_base + NE_EN0_ISR); in zorro8390_get_8390_hdr()
126 z_writeb(sizeof(struct e8390_pkt_hdr), nic_base + NE_EN0_RCNTLO); in zorro8390_get_8390_hdr()
127 z_writeb(0, nic_base + NE_EN0_RCNTHI); in zorro8390_get_8390_hdr()
128 z_writeb(0, nic_base + NE_EN0_RSARLO); /* On page boundary */ in zorro8390_get_8390_hdr()
129 z_writeb(ring_page, nic_base + NE_EN0_RSARHI); in zorro8390_get_8390_hdr()
130 z_writeb(E8390_RREAD+E8390_START, nic_base + NE_CMD); in zorro8390_get_8390_hdr()
136 z_writeb(ENISR_RDC, nic_base + NE_EN0_ISR); /* Ack intr */ in zorro8390_get_8390_hdr()
152 int nic_base in zorro8390_block_input() local
187 int nic_base = NE_BASE; zorro8390_block_output() local
[all...]
H A Dne2k-pci.c504 long nic_base = dev->base_addr; in ne2k_pci_get_8390_hdr() local
515 outb(E8390_NODMA + E8390_PAGE0 + E8390_START, nic_base + NE_CMD); in ne2k_pci_get_8390_hdr()
516 outb(sizeof(struct e8390_pkt_hdr), nic_base + EN0_RCNTLO); in ne2k_pci_get_8390_hdr()
517 outb(0, nic_base + EN0_RCNTHI); in ne2k_pci_get_8390_hdr()
518 outb(0, nic_base + EN0_RSARLO); /* On page boundary */ in ne2k_pci_get_8390_hdr()
519 outb(ring_page, nic_base + EN0_RSARHI); in ne2k_pci_get_8390_hdr()
520 outb(E8390_RREAD+E8390_START, nic_base + NE_CMD); in ne2k_pci_get_8390_hdr()
530 outb(ENISR_RDC, nic_base + EN0_ISR); in ne2k_pci_get_8390_hdr()
543 long nic_base = dev->base_addr; in ne2k_pci_block_input() local
557 outb(E8390_NODMA + E8390_PAGE0 + E8390_START, nic_base in ne2k_pci_block_input()
590 long nic_base = NE_BASE; ne2k_pci_block_output() local
[all...]
H A Dxsurf100.c158 void __iomem *nic_base = ei_local->mem; in xs100_block_input() local
171 ei_outb(E8390_NODMA + E8390_PAGE0 + E8390_START, nic_base + NE_CMD); in xs100_block_input()
172 ei_outb(count & 0xff, nic_base + EN0_RCNTLO); in xs100_block_input()
173 ei_outb(count >> 8, nic_base + EN0_RCNTHI); in xs100_block_input()
174 ei_outb(ring_offset & 0xff, nic_base + EN0_RSARLO); in xs100_block_input()
175 ei_outb(ring_offset >> 8, nic_base + EN0_RSARHI); in xs100_block_input()
176 ei_outb(E8390_RREAD + E8390_START, nic_base + NE_CMD); in xs100_block_input()
187 void __iomem *nic_base = ei_local->mem; in xs100_block_output() local
210 ei_outb(E8390_PAGE0 + E8390_START + E8390_NODMA, nic_base + NE_CMD); in xs100_block_output()
212 ei_outb(ENISR_RDC, nic_base in xs100_block_output()
[all...]
H A Dne.c574 int nic_base = dev->base_addr; in ne_get_8390_hdr() local
587 outb_p(E8390_NODMA+E8390_PAGE0+E8390_START, nic_base+ NE_CMD); in ne_get_8390_hdr()
588 outb_p(sizeof(struct e8390_pkt_hdr), nic_base + EN0_RCNTLO); in ne_get_8390_hdr()
589 outb_p(0, nic_base + EN0_RCNTHI); in ne_get_8390_hdr()
590 outb_p(0, nic_base + EN0_RSARLO); /* On page boundary */ in ne_get_8390_hdr()
591 outb_p(ring_page, nic_base + EN0_RSARHI); in ne_get_8390_hdr()
592 outb_p(E8390_RREAD+E8390_START, nic_base + NE_CMD); in ne_get_8390_hdr()
599 outb_p(ENISR_RDC, nic_base + EN0_ISR); /* Ack intr. */ in ne_get_8390_hdr()
616 int nic_base = dev->base_addr; in ne_block_input() local
628 outb_p(E8390_NODMA+E8390_PAGE0+E8390_START, nic_base in ne_block_input()
680 int nic_base = NE_BASE; ne_block_output() local
[all...]
H A Dax88796.c190 void __iomem *nic_base = ei_local->mem; in ax_get_8390_hdr() local
202 ei_outb(E8390_NODMA + E8390_PAGE0 + E8390_START, nic_base + NE_CMD); in ax_get_8390_hdr()
203 ei_outb(sizeof(struct e8390_pkt_hdr), nic_base + EN0_RCNTLO); in ax_get_8390_hdr()
204 ei_outb(0, nic_base + EN0_RCNTHI); in ax_get_8390_hdr()
205 ei_outb(0, nic_base + EN0_RSARLO); /* On page boundary */ in ax_get_8390_hdr()
206 ei_outb(ring_page, nic_base + EN0_RSARHI); in ax_get_8390_hdr()
207 ei_outb(E8390_RREAD+E8390_START, nic_base + NE_CMD); in ax_get_8390_hdr()
210 ioread16_rep(nic_base + NE_DATAPORT, hdr, in ax_get_8390_hdr()
213 ioread8_rep(nic_base + NE_DATAPORT, hdr, in ax_get_8390_hdr()
216 ei_outb(ENISR_RDC, nic_base in ax_get_8390_hdr()
234 void __iomem *nic_base = ei_local->mem; ax_block_input() local
271 void __iomem *nic_base = ei_local->mem; ax_block_output() local
[all...]
H A Dpcnet_cs.c847 unsigned int nic_base = dev->base_addr; in set_misc_reg() local
852 tmp = inb_p(nic_base + PCNET_MISC) & ~3; in set_misc_reg()
859 outb_p(tmp, nic_base + PCNET_MISC); in set_misc_reg()
864 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 4, 0x01e1); in set_misc_reg()
866 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x0000); in set_misc_reg()
867 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x1200); in set_misc_reg()
870 outb(full_duplex ? 4 : 0, nic_base + DLINK_DIAG); in set_misc_reg()
874 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 4, 0x01e1); in set_misc_reg()
876 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x0000); in set_misc_reg()
877 mdio_write(nic_base in set_misc_reg()
912 unsigned int nic_base = dev->base_addr; pcnet_open() local
964 unsigned int nic_base = dev->base_addr; pcnet_reset_8390() local
1023 unsigned int nic_base = dev->base_addr; ei_watchdog() local
1137 unsigned int nic_base = dev->base_addr; dma_get_8390_hdr() local
1168 unsigned int nic_base = dev->base_addr; dma_block_input() local
1225 unsigned int nic_base = dev->base_addr; dma_block_output() local
[all...]
H A Daxnet_cs.c472 unsigned int nic_base = dev->base_addr; in axnet_open() local
479 outb_p(0xFF, nic_base + EN0_ISR); /* Clear bogus intr. */ in axnet_open()
521 unsigned int nic_base = dev->base_addr; in axnet_reset_8390() local
526 outb_p(E8390_NODMA+E8390_PAGE0+E8390_STOP, nic_base + E8390_CMD); in axnet_reset_8390()
528 outb(inb(nic_base + AXNET_RESET), nic_base + AXNET_RESET); in axnet_reset_8390()
531 if ((inb_p(nic_base+EN0_ISR) & ENISR_RESET) != 0) in axnet_reset_8390()
535 outb_p(ENISR_RESET, nic_base + EN0_ISR); /* Ack intr. */ in axnet_reset_8390()
555 unsigned int nic_base = dev->base_addr; in ei_watchdog() local
556 unsigned int mii_addr = nic_base in ei_watchdog()
633 unsigned int nic_base = dev->base_addr; get_8390_hdr() local
651 unsigned int nic_base = dev->base_addr; block_input() local
672 unsigned int nic_base = dev->base_addr; block_output() local
[all...]
H A Dhydra.c204 int nic_base = dev->base_addr; in hydra_get_8390_hdr() local
206 unsigned long hdr_start= (nic_base-HYDRA_NIC_BASE) + in hydra_get_8390_hdr()
220 unsigned long nic_base = dev->base_addr; in hydra_block_input() local
221 unsigned long mem_base = nic_base - HYDRA_NIC_BASE; in hydra_block_input()
241 unsigned long nic_base = dev->base_addr; in hydra_block_output() local
242 unsigned long mem_base = nic_base - HYDRA_NIC_BASE; in hydra_block_output()

Completed in 16 milliseconds