Lines Matching refs:dev

76 static void	*igc_register(device_t dev);
423 igc_register(device_t dev)
457 device_t dev;
462 dev = iflib_get_dev(ctx);
466 adapter->dev = adapter->osdep.dev = dev;
474 SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev),
475 SYSCTL_CHILDREN(device_get_sysctl_tree(dev)),
479 SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev),
480 SYSCTL_CHILDREN(device_get_sysctl_tree(dev)),
484 SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev),
485 SYSCTL_CHILDREN(device_get_sysctl_tree(dev)),
489 SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev),
490 SYSCTL_CHILDREN(device_get_sysctl_tree(dev)),
495 SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev),
496 SYSCTL_CHILDREN(device_get_sysctl_tree(dev)),
507 device_printf(dev, "attach_pre capping queues at %d\n",
528 if (pci_read_config(dev, scctx->isc_msix_bar, 4) == 0)
533 device_printf(dev, "Allocation of PCI resources failed\n");
541 device_printf(dev, "Setup of Shared code failed, error %d\n",
593 device_printf(dev, "Can not allocate multicast setup array\n");
600 device_printf(dev, "PHY reset is blocked"
605 SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev),
606 SYSCTL_CHILDREN(device_get_sysctl_tree(dev)),
627 device_printf(dev,
636 device_printf(dev, "EEPROM read error while reading MAC"
643 device_printf(dev, "Invalid MAC address\n");
1070 device_printf(adapter->dev, "Unsupported media type\n");
1191 device_t dev = iflib_get_dev(ctx);
1218 device_printf(dev, "Link is up %d Mbps %s\n",
1271 device_t dev = iflib_get_dev(ctx);
1275 adapter->hw.bus.pci_cmd_word = pci_read_config(dev, PCIR_COMMAND, 2);
1278 adapter->hw.vendor_id = pci_get_vendor(dev);
1279 adapter->hw.device_id = pci_get_device(dev);
1280 adapter->hw.revision_id = pci_read_config(dev, PCIR_REVID, 1);
1282 pci_read_config(dev, PCIR_SUBVEND_0, 2);
1284 pci_read_config(dev, PCIR_SUBDEV_0, 2);
1288 device_printf(dev, "Setup init failure\n");
1297 device_t dev = iflib_get_dev(ctx);
1301 adapter->memory = bus_alloc_resource_any(dev, SYS_RES_MEMORY,
1304 device_printf(dev, "Unable to allocate bus resource: memory\n");
1459 device_t dev = iflib_get_dev(ctx);
1470 bus_release_resource(dev, SYS_RES_MEMORY,
1476 bus_release_resource(dev, SYS_RES_MEMORY,
1482 bus_release_resource(dev, SYS_RES_IOPORT,
1503 device_t dev = adapter->dev;
1516 device_printf(dev, "DMA Coalescing enabled\n");
1594 device_t dev = iflib_get_dev(ctx);
1648 device_printf(dev, "Hardware Initialization Failed\n");
2253 device_t dev = iflib_get_dev(ctx);
2259 if (pci_find_cap(dev, PCIY_PMG, &pmc) != 0)
2293 status = pci_read_config(dev, pmc + PCIR_POWER_STATUS, 2);
2297 pci_write_config(dev, pmc + PCIR_POWER_STATUS, status, 2);
2447 device_t dev = iflib_get_dev(adapter->ctx);
2451 struct sysctl_ctx_list *ctx = device_get_sysctl_ctx(dev);
2452 struct sysctl_oid *tree = device_get_sysctl_tree(dev);
2793 SYSCTL_ADD_PROC(device_get_sysctl_ctx(adapter->dev),
2794 SYSCTL_CHILDREN(device_get_sysctl_tree(adapter->dev)),
2913 device_t dev = iflib_get_dev(adapter->ctx);
2929 device_printf(dev, "TX Queue %d ------\n", i);
2930 device_printf(dev, "hw tdh = %d, hw tdt = %d\n",
2936 device_printf(dev, "RX Queue %d ------\n", j);
2937 device_printf(dev, "hw rdh = %d, hw rdt = %d\n",