Lines Matching refs:bge_dev
566 dev = sc->bge_dev; in bge_has_eaddr()
606 dev = sc->bge_dev; in bge_readmem_ind()
623 dev = sc->bge_dev; in bge_writemem_ind()
636 dev = sc->bge_dev; in bge_readreg_ind()
648 dev = sc->bge_dev; in bge_writereg_ind()
718 device_printf(sc->bge_dev, in bge_ape_lock_init()
742 device_printf(sc->bge_dev, "APE signature found " in bge_ape_read_fw_ver()
762 device_printf(sc->bge_dev, "APE FW version: %s v%d.%d.%d.%d\n", in bge_ape_read_fw_ver()
838 device_printf(sc->bge_dev, "APE lock %d request failed! " in bge_ape_lock()
929 device_printf(sc->bge_dev, "APE event 0x%08x send timed out\n", in bge_ape_send_event()
1107 device_printf(sc->bge_dev, "EEPROM read timed out\n"); in bge_eeprom_getbyte()
1172 device_printf(sc->bge_dev, in bge_miibus_readreg()
1235 device_printf(sc->bge_dev, in bge_miibus_writereg()
1786 pci_write_config(sc->bge_dev, BGE_PCI_MISC_CTL, misc_ctl, 4); in bge_chipinit()
1806 val = pci_read_config(sc->bge_dev, BGE_PCI_MSI_DATA + 2, 2); in bge_chipinit()
1808 pci_write_config(sc->bge_dev, BGE_PCI_MSI_DATA + 2, val, 2); in bge_chipinit()
1905 pci_write_config(sc->bge_dev, BGE_PCI_DMA_RW_CTL, dma_rw_ctl, 4); in bge_chipinit()
1944 PCI_CLRBIT(sc->bge_dev, BGE_PCI_CMD, PCIM_CMD_MWIEN, 4); in bge_chipinit()
2043 device_printf(sc->bge_dev, "buffer manager failed to start\n"); in bge_blockinit()
2059 device_printf(sc->bge_dev, "flow-through queue init failed\n"); in bge_blockinit()
2355 device_printf(sc->bge_dev, in bge_blockinit()
2755 sc->bge_dev = dev; in bge_probe()
2921 device_printf(sc->bge_dev, in bge_dma_ring_alloc()
2929 device_printf(sc->bge_dev, in bge_dma_ring_alloc()
2938 device_printf(sc->bge_dev, in bge_dma_ring_alloc()
2959 error = bus_dma_tag_create(bus_get_dma_tag(sc->bge_dev), in bge_dma_alloc()
2964 device_printf(sc->bge_dev, in bge_dma_alloc()
3048 error = bus_dma_tag_create(bus_get_dma_tag(sc->bge_dev), 1, 0, lowaddr, in bge_dma_alloc()
3053 device_printf(sc->bge_dev, in bge_dma_alloc()
3071 device_printf(sc->bge_dev, "could not allocate TX dma tag\n"); in bge_dma_alloc()
3085 device_printf(sc->bge_dev, "could not allocate RX dma tag\n"); in bge_dma_alloc()
3093 device_printf(sc->bge_dev, in bge_dma_alloc()
3101 device_printf(sc->bge_dev, in bge_dma_alloc()
3112 device_printf(sc->bge_dev, in bge_dma_alloc()
3125 device_printf(sc->bge_dev, in bge_dma_alloc()
3133 device_printf(sc->bge_dev, in bge_dma_alloc()
3141 device_printf(sc->bge_dev, in bge_dma_alloc()
3157 device_t dev = sc->bge_dev; in bge_has_multiple_ports()
3224 dev = sc->bge_dev; in bge_mbox_reorder()
3236 device_printf(sc->bge_dev, in bge_mbox_reorder()
3253 device_printf(sc->bge_dev, in bge_devinfo()
3289 cfg = pci_read_config(sc->bge_dev, BGE_PCI_PCISTATE, 4); in bge_devinfo()
3311 sc->bge_dev = dev; in bge_attach()
3327 device_printf (sc->bge_dev, "couldn't map BAR0 memory\n"); in bge_attach()
3457 device_printf (sc->bge_dev, in bge_attach()
3629 if (pci_find_cap(sc->bge_dev, PCIY_MSI, ®) == 0) { in bge_attach()
3652 device_printf(sc->bge_dev, "couldn't map interrupt\n"); in bge_attach()
3677 device_printf(sc->bge_dev, "chip reset failed\n"); in bge_attach()
3686 device_printf(sc->bge_dev, "chip initialization failed\n"); in bge_attach()
3693 device_printf(sc->bge_dev, in bge_attach()
3708 device_printf(sc->bge_dev, in bge_attach()
3729 device_printf(sc->bge_dev, "failed to if_alloc()\n"); in bge_attach()
3782 device_printf(sc->bge_dev, "failed to read EEPROM\n"); in bge_attach()
3865 device_printf(sc->bge_dev, "Try again\n"); in bge_attach()
3866 bge_miibus_writereg(sc->bge_dev, in bge_attach()
3870 device_printf(sc->bge_dev, "attaching PHYs failed\n"); in bge_attach()
3917 "%s taskq", device_get_nameunit(sc->bge_dev)); in bge_attach()
3933 device_printf(sc->bge_dev, "couldn't set up irq\n"); in bge_attach()
3984 dev = sc->bge_dev; in bge_release_resources()
4024 dev = sc->bge_dev; in bge_reset()
5453 device_printf(sc->bge_dev, "initialization failure\n"); in bge_init_locked()
5491 device_printf(sc->bge_dev, "no memory for std Rx buffers.\n"); in bge_init_locked()
5510 device_printf (sc->bge_dev, in bge_init_locked()
5519 device_printf(sc->bge_dev, in bge_init_locked()
6168 bge_miibus_readreg(sc->bge_dev, sc->bge_phy_addr, in bge_link_upd()
6170 bge_miibus_writereg(sc->bge_dev, sc->bge_phy_addr, in bge_link_upd()
6231 bge_miibus_statchg(sc->bge_dev); in bge_link_upd()
6248 ctx = device_get_sysctl_ctx(sc->bge_dev); in bge_add_sysctls()
6249 children = SYSCTL_CHILDREN(device_get_sysctl_tree(sc->bge_dev)); in bge_add_sysctls()
6270 unit = device_get_unit(sc->bge_dev); in bge_add_sysctls()
6713 OF_getetheraddr(sc->bge_dev, ether_addr); in bge_get_eaddr_fw()