Lines Matching refs:dev
230 static void *em_register(device_t dev);
231 static void *igb_register(device_t dev);
659 em_register(device_t dev) in em_register() argument
665 igb_register(device_t dev) in igb_register() argument
726 device_t dev; in em_if_attach_pre() local
731 dev = iflib_get_dev(ctx); in em_if_attach_pre()
734 if (resource_disabled("em", device_get_unit(dev))) { in em_if_attach_pre()
735 device_printf(dev, "Disabled by device hint\n"); in em_if_attach_pre()
740 adapter->dev = adapter->osdep.dev = dev; in em_if_attach_pre()
748 SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev), in em_if_attach_pre()
749 SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), in em_if_attach_pre()
753 SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev), in em_if_attach_pre()
754 SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), in em_if_attach_pre()
758 SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev), in em_if_attach_pre()
759 SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), in em_if_attach_pre()
763 SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev), in em_if_attach_pre()
764 SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), in em_if_attach_pre()
768 SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev), in em_if_attach_pre()
769 SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), in em_if_attach_pre()
783 device_printf(dev, "attach_pre capping queues at %d\n", scctx->isc_ntxqsets_max); in em_if_attach_pre()
807 try_second_bar = pci_read_config(dev, scctx->isc_msix_bar, 4); in em_if_attach_pre()
835 device_printf(dev, "Allocation of PCI resources failed\n"); in em_if_attach_pre()
853 adapter->flash = bus_alloc_resource_any(dev, in em_if_attach_pre()
856 device_printf(dev, "Mapping of Flash failed\n"); in em_if_attach_pre()
884 device_printf(dev, "Setup of Shared code failed, error %d\n", in em_if_attach_pre()
948 device_printf(dev, "Can not allocate multicast setup array\n"); in em_if_attach_pre()
955 device_printf(dev, "PHY reset is blocked" in em_if_attach_pre()
960 SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev), in em_if_attach_pre()
961 SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), in em_if_attach_pre()
981 device_printf(dev, in em_if_attach_pre()
990 device_printf(dev, "EEPROM read error while reading MAC" in em_if_attach_pre()
997 device_printf(dev, "Invalid MAC address\n"); in em_if_attach_pre()
1562 device_printf(adapter->dev, "Unsupported media type\n"); in em_if_media_change()
1704 device_t dev = iflib_get_dev(ctx); in em_if_update_admin_status() local
1761 device_printf(dev, "Link is up %d Mbps %s\n", in em_if_update_admin_status()
1770 device_printf(dev, "Link: thermal downshift\n"); in em_if_update_admin_status()
1790 device_printf(dev, "Link is Down\n"); in em_if_update_admin_status()
1841 device_t dev = iflib_get_dev(ctx); in em_identify_hardware() local
1845 adapter->hw.bus.pci_cmd_word = pci_read_config(dev, PCIR_COMMAND, 2); in em_identify_hardware()
1848 adapter->hw.vendor_id = pci_get_vendor(dev); in em_identify_hardware()
1849 adapter->hw.device_id = pci_get_device(dev); in em_identify_hardware()
1850 adapter->hw.revision_id = pci_read_config(dev, PCIR_REVID, 1); in em_identify_hardware()
1852 pci_read_config(dev, PCIR_SUBVEND_0, 2); in em_identify_hardware()
1854 pci_read_config(dev, PCIR_SUBDEV_0, 2); in em_identify_hardware()
1858 device_printf(dev, "Setup init failure\n"); in em_identify_hardware()
1867 device_t dev = iflib_get_dev(ctx); in em_allocate_pci_resources() local
1871 adapter->memory = bus_alloc_resource_any(dev, SYS_RES_MEMORY, in em_allocate_pci_resources()
1874 device_printf(dev, "Unable to allocate bus resource: memory\n"); in em_allocate_pci_resources()
1887 val = pci_read_config(dev, rid, 4); in em_allocate_pci_resources()
1898 device_printf(dev, "Unable to locate IO BAR\n"); in em_allocate_pci_resources()
1901 adapter->ioport = bus_alloc_resource_any(dev, in em_allocate_pci_resources()
1904 device_printf(dev, "Unable to allocate bus resource: " in em_allocate_pci_resources()
2160 device_t dev = iflib_get_dev(ctx); in em_free_pci_resources() local
2172 bus_release_resource(dev, SYS_RES_MEMORY, in em_free_pci_resources()
2178 bus_release_resource(dev, SYS_RES_MEMORY, in em_free_pci_resources()
2183 bus_release_resource(dev, SYS_RES_IOPORT, in em_free_pci_resources()
2269 device_t dev = adapter->dev; in igb_init_dmac() local
2285 device_printf(dev, "DMA Coalescing enabled\n"); in igb_init_dmac()
2373 device_t dev = iflib_get_dev(ctx); in em_reset() local
2593 device_printf(dev, "Hardware Initialization Failed\n"); in em_reset()
3546 device_t dev = iflib_get_dev(ctx); in em_get_wakeup() local
3618 device_id = pci_get_device(dev); in em_get_wakeup()
3668 device_t dev = iflib_get_dev(ctx); in em_enable_wakeup() local
3674 if (pci_find_cap(dev, PCIY_PMG, &pmc) != 0) in em_enable_wakeup()
3731 status = pci_read_config(dev, pmc + PCIR_POWER_STATUS, 2); in em_enable_wakeup()
3735 pci_write_config(dev, pmc + PCIR_POWER_STATUS, status, 2); in em_enable_wakeup()
3836 device_t dev = adapter->dev; in em_disable_aspm() local
3846 if (pci_find_cap(dev, PCIY_EXPRESS, &base) != 0) in em_disable_aspm()
3849 link_cap = pci_read_config(dev, reg, 2); in em_disable_aspm()
3853 link_ctrl = pci_read_config(dev, reg, 2); in em_disable_aspm()
3855 pci_write_config(dev, reg, link_ctrl, 2); in em_disable_aspm()
4000 device_t dev = iflib_get_dev(adapter->ctx); in em_add_hw_stats() local
4004 struct sysctl_ctx_list *ctx = device_get_sysctl_ctx(dev); in em_add_hw_stats()
4005 struct sysctl_oid *tree = device_get_sysctl_tree(dev); in em_add_hw_stats()
4387 SYSCTL_ADD_PROC(device_get_sysctl_ctx(adapter->dev), in em_add_int_delay_sysctl()
4388 SYSCTL_CHILDREN(device_get_sysctl_tree(adapter->dev)), in em_add_int_delay_sysctl()
4506 device_t dev = iflib_get_dev(adapter->ctx); in em_print_debug_info() local
4522 device_printf(dev, "TX Queue %d ------\n", i); in em_print_debug_info()
4523 device_printf(dev, "hw tdh = %d, hw tdt = %d\n", in em_print_debug_info()
4529 device_printf(dev, "RX Queue %d ------\n", j); in em_print_debug_info()
4530 device_printf(dev, "hw rdh = %d, hw rdt = %d\n", in em_print_debug_info()
4546 device_t dev = iflib_get_dev(ctx); in em_enable_vectors_82574() local
4552 device_printf(dev, "Writing to eeprom: increasing " in em_enable_vectors_82574()
4558 device_printf(dev, "Writing to eeprom: done\n"); in em_enable_vectors_82574()