Lines Matching refs:bge_dev
574 dev = sc->bge_dev; in bge_has_eaddr()
614 dev = sc->bge_dev; in bge_readmem_ind()
631 dev = sc->bge_dev; in bge_writemem_ind()
644 dev = sc->bge_dev; in bge_readreg_ind()
656 dev = sc->bge_dev; in bge_writereg_ind()
726 device_printf(sc->bge_dev, in bge_ape_lock_init()
750 device_printf(sc->bge_dev, "APE signature found " in bge_ape_read_fw_ver()
770 device_printf(sc->bge_dev, "APE FW version: %s v%d.%d.%d.%d\n", in bge_ape_read_fw_ver()
846 device_printf(sc->bge_dev, "APE lock %d request failed! " in bge_ape_lock()
937 device_printf(sc->bge_dev, "APE event 0x%08x send timed out\n", in bge_ape_send_event()
1115 device_printf(sc->bge_dev, "EEPROM read timed out\n"); in bge_eeprom_getbyte()
1180 device_printf(sc->bge_dev, in bge_miibus_readreg()
1243 device_printf(sc->bge_dev, in bge_miibus_writereg()
1642 device_printf(sc->bge_dev, in bge_setmulti()
1803 pci_write_config(sc->bge_dev, BGE_PCI_MISC_CTL, misc_ctl, 4); in bge_chipinit()
1823 val = pci_read_config(sc->bge_dev, BGE_PCI_MSI_DATA + 2, 2); in bge_chipinit()
1825 pci_write_config(sc->bge_dev, BGE_PCI_MSI_DATA + 2, val, 2); in bge_chipinit()
1922 pci_write_config(sc->bge_dev, BGE_PCI_DMA_RW_CTL, dma_rw_ctl, 4); in bge_chipinit()
1961 PCI_CLRBIT(sc->bge_dev, BGE_PCI_CMD, PCIM_CMD_MWIEN, 4); in bge_chipinit()
2060 device_printf(sc->bge_dev, "buffer manager failed to start\n"); in bge_blockinit()
2076 device_printf(sc->bge_dev, "flow-through queue init failed\n"); in bge_blockinit()
2372 device_printf(sc->bge_dev, in bge_blockinit()
2772 sc->bge_dev = dev; in bge_probe()
2936 device_printf(sc->bge_dev, in bge_dma_ring_alloc()
2944 device_printf(sc->bge_dev, in bge_dma_ring_alloc()
2953 device_printf(sc->bge_dev, in bge_dma_ring_alloc()
2974 error = bus_dma_tag_create(bus_get_dma_tag(sc->bge_dev), in bge_dma_alloc()
2979 device_printf(sc->bge_dev, in bge_dma_alloc()
3063 error = bus_dma_tag_create(bus_get_dma_tag(sc->bge_dev), 1, 0, lowaddr, in bge_dma_alloc()
3068 device_printf(sc->bge_dev, in bge_dma_alloc()
3086 device_printf(sc->bge_dev, "could not allocate TX dma tag\n"); in bge_dma_alloc()
3100 device_printf(sc->bge_dev, "could not allocate RX dma tag\n"); in bge_dma_alloc()
3108 device_printf(sc->bge_dev, in bge_dma_alloc()
3116 device_printf(sc->bge_dev, in bge_dma_alloc()
3127 device_printf(sc->bge_dev, in bge_dma_alloc()
3140 device_printf(sc->bge_dev, in bge_dma_alloc()
3148 device_printf(sc->bge_dev, in bge_dma_alloc()
3156 device_printf(sc->bge_dev, in bge_dma_alloc()
3172 device_t dev = sc->bge_dev; in bge_has_multiple_ports()
3247 dev = sc->bge_dev; in bge_mbox_reorder()
3261 device_printf(sc->bge_dev, in bge_mbox_reorder()
3276 device_printf(sc->bge_dev, in bge_devinfo()
3312 cfg = pci_read_config(sc->bge_dev, BGE_PCI_PCISTATE, 4); in bge_devinfo()
3334 sc->bge_dev = dev; in bge_attach()
3350 device_printf (sc->bge_dev, "couldn't map BAR0 memory\n"); in bge_attach()
3480 device_printf (sc->bge_dev, in bge_attach()
3652 if (pci_find_cap(sc->bge_dev, PCIY_MSI, ®) == 0) { in bge_attach()
3675 device_printf(sc->bge_dev, "couldn't map interrupt\n"); in bge_attach()
3700 device_printf(sc->bge_dev, "chip reset failed\n"); in bge_attach()
3709 device_printf(sc->bge_dev, "chip initialization failed\n"); in bge_attach()
3716 device_printf(sc->bge_dev, in bge_attach()
3731 device_printf(sc->bge_dev, in bge_attach()
3752 device_printf(sc->bge_dev, "failed to if_alloc()\n"); in bge_attach()
3805 device_printf(sc->bge_dev, "failed to read EEPROM\n"); in bge_attach()
3889 device_printf(sc->bge_dev, "Try again\n"); in bge_attach()
3890 bge_miibus_writereg(sc->bge_dev, in bge_attach()
3894 device_printf(sc->bge_dev, "attaching PHYs failed\n"); in bge_attach()
3941 "%s taskq", device_get_nameunit(sc->bge_dev)); in bge_attach()
3957 device_printf(sc->bge_dev, "couldn't set up irq\n"); in bge_attach()
4012 dev = sc->bge_dev; in bge_release_resources()
4052 dev = sc->bge_dev; in bge_reset()
5477 device_printf(sc->bge_dev, "initialization failure\n"); in bge_init_locked()
5515 device_printf(sc->bge_dev, "no memory for std Rx buffers.\n"); in bge_init_locked()
5534 device_printf (sc->bge_dev, in bge_init_locked()
5543 device_printf(sc->bge_dev, in bge_init_locked()
6194 bge_miibus_readreg(sc->bge_dev, sc->bge_phy_addr, in bge_link_upd()
6196 bge_miibus_writereg(sc->bge_dev, sc->bge_phy_addr, in bge_link_upd()
6257 bge_miibus_statchg(sc->bge_dev); in bge_link_upd()
6273 ctx = device_get_sysctl_ctx(sc->bge_dev); in bge_add_sysctls()
6274 children = SYSCTL_CHILDREN(device_get_sysctl_tree(sc->bge_dev)); in bge_add_sysctls()
6295 unit = device_get_unit(sc->bge_dev); in bge_add_sysctls()
6731 OF_getetheraddr(sc->bge_dev, ether_addr); in bge_get_eaddr_fw()