Lines Matching defs:ndev

48 vxge_probe(device_t ndev)
58 pci_vendor_id = pci_get_vendor(ndev);
62 pci_device_id = pci_get_device(ndev);
66 pci_bd_no = (pci_get_bus(ndev) | pci_get_slot(ndev));
69 VXGE_ADAPTER_NAME, pci_get_revid(ndev));
70 device_set_desc_copy(ndev, adapter_name);
73 device_printf(ndev, VXGE_COPYRIGHT);
94 * Connects driver to the system if probe was success @ndev handle
97 vxge_attach(device_t ndev)
107 /* Get per-ndev buffer */
108 vdev = (vxge_dev_t *) device_get_softc(ndev);
114 vdev->ndev = ndev;
124 device_printf(vdev->ndev, "Failed to initialize driver\n");
128 pci_enable_busmaster(ndev);
133 device_printf(vdev->ndev, "resource allocation failed\n");
153 device_printf(vdev->ndev, "isr resource allocation failed\n");
173 device_printf(vdev->ndev, "hal device initialization failed\n");
195 device_printf(vdev->ndev, "vpath memory allocation failed\n");
214 err = vxge_ifp_setup(ndev);
217 device_printf(vdev->ndev, "setting up interface failed\n");
224 device_printf(vdev->ndev,
233 vxge_free_resources(ndev, error_level);
245 vxge_detach(device_t ndev)
249 vdev = (vxge_dev_t *) device_get_softc(ndev);
253 vxge_free_resources(ndev, VXGE_FREE_ALL);
264 vxge_shutdown(device_t ndev)
266 vxge_dev_t *vdev = (vxge_dev_t *) device_get_softc(ndev);
324 device_printf(vdev->ndev,
331 device_printf(vdev->ndev,
340 device_printf(vdev->ndev, "failed to enable device\n");
366 device_printf(vdev->ndev,
432 device_printf(vdev->ndev,
463 device_printf(vdev->ndev,
590 device_printf(vdev->ndev,
904 device_printf(vdev->ndev, "tx transfer code %d\n",
1199 device_printf(vdev->ndev, "out of memory to allocate mbuf\n");
1267 device_printf(vdev->ndev,
1345 vxge_ifp_setup(device_t ndev)
1350 vxge_dev_t *vdev = (vxge_dev_t *) device_get_softc(ndev);
1373 device_printf(vdev->ndev,
1381 if_initname(ifp, device_get_name(ndev), device_get_unit(ndev));
1412 strlcpy(vdev->ndev_name, device_get_nameunit(ndev),
1437 err = bus_setup_intr(vdev->ndev,
1459 err = bus_setup_intr(vdev->ndev,
1471 bus_teardown_intr(vdev->ndev,
1561 device_printf(vdev->ndev,
1606 device_printf(vdev->ndev,
1683 device_t ndev = vdev->ndev;
1692 device_printf(vdev->ndev,
1702 device_printf(vdev->ndev,
1706 pci_info->ndev = ndev;
1727 vxge_free_resources(ndev, error_level);
1746 bus_alloc_resource_any(vdev->ndev,
1750 device_printf(vdev->ndev,
1760 device_printf(vdev->ndev,
1795 intr_count = pci_msix_count(vdev->ndev);
1802 err = pci_alloc_msix(vdev->ndev, &intr_count);
1808 device_printf(vdev->ndev, "Unable to allocate "
1822 bus_alloc_resource_any(vdev->ndev, SYS_RES_IRQ,
1827 device_printf(vdev->ndev,
1842 bus_alloc_resource_any(vdev->ndev, SYS_RES_IRQ,
1847 device_printf(vdev->ndev,
1855 err = bus_bind_intr(vdev->ndev,
1866 bus_alloc_resource_any(vdev->ndev, SYS_RES_IRQ,
1871 device_printf(vdev->ndev,
1879 err = bus_bind_intr(vdev->ndev,
1896 vxge_free_resources(device_t ndev, vxge_free_resources_e vxge_free_resource)
1901 vdev = (vxge_dev_t *) device_get_softc(ndev);
1906 bus_teardown_intr(ndev,
1914 bus_generic_detach(ndev);
1964 pci_disable_busmaster(ndev);
1990 bus_release_resource(vdev->ndev, SYS_RES_IRQ,
2001 bus_release_resource(vdev->ndev, SYS_RES_IRQ,
2010 pci_release_msi(vdev->ndev);
2025 bus_release_resource(vdev->ndev, SYS_RES_MEMORY,
2103 device_printf(vdev->ndev, "rth configuration failed\n");
2115 device_printf(vdev->ndev,
2292 device_printf(vdev->ndev,
2308 device_printf(vdev->ndev,
2336 device_printf(vdev->ndev,
2473 device_printf(vdev->ndev,
2606 device_printf(vdev->ndev, "PLEASE POWER CYCLE THE SYSTEM\n");
2624 device_printf(vdev->ndev, "Current firmware version : %s (%s)\n",
2627 device_printf(vdev->ndev, "Upgrading firmware to %d.%d.%d\n",
2637 device_printf(vdev->ndev, "firmware upgrade %s\n",
2651 device_printf(vdev->ndev,
2686 device_printf(vdev->ndev,
2701 device_printf(vdev->ndev, "dual port map change %s\n",
2718 device_printf(vdev->ndev,
2822 device_printf(vdev->ndev,
2857 device_printf(vdev->ndev, "L2 switch %s\n",
2911 device_printf(vdev->ndev, "MTU changed to %ld\n", (vdev->ifp)->if_mtu);
2950 bus_get_dma_tag(vdev->ndev),
2969 bus_get_dma_tag(vdev->ndev),
3051 device_printf(vdev->ndev, "No vpaths available in device\n");
3089 device_printf(vdev->ndev,
3112 device_t ndev;
3122 ndev = vdev->ndev;
3124 ctx = device_get_sysctl_ctx(ndev);
3125 children = SYSCTL_CHILDREN(device_get_sysctl_tree(ndev));
3140 device_printf(ndev, "For optimal performance a x8 "
3289 device_printf(ndev, "Driver version\t: %s\n",
3292 device_printf(ndev, "Serial number\t: %s\n",
3295 device_printf(ndev, "Part number\t: %s\n",
3298 device_printf(ndev, "Firmware version\t: %s\n",
3301 device_printf(ndev, "Firmware date\t: %s\n",
3304 device_printf(ndev, "Link width\t: %s\n",
3308 device_printf(ndev, "Function mode\t: %s\n",
3312 device_printf(ndev, "Interrupt type\t: %s\n",
3315 device_printf(ndev, "VPath(s) opened\t: %s\n",
3318 device_printf(ndev, "Adapter Type\t: %s\n",
3321 device_printf(ndev, "PMD Port 0\t: %s\n",
3325 device_printf(ndev, "PMD Port 1\t: %s\n",
3329 device_printf(ndev, "Port Mode\t: %s\n",
3333 device_printf(ndev, "Port Failure\t: %s\n",
3336 device_printf(vdev->ndev, "Active Port\t: %s\n",
3342 device_printf(vdev->ndev, "L2 Switch\t: %s\n",
3346 device_printf(ndev, "MTU is %s\n",
3349 device_printf(ndev, "LRO %s\n",
3352 device_printf(ndev, "RTH %s\n",
3355 device_printf(ndev, "TSO %s\n",
3837 device_printf(vdev->ndev,
3856 device_printf(vdev->ndev,
3872 device_printf(vdev->ndev,
3896 device_printf(vdev->ndev,
3923 device_printf(vdev->ndev,
3962 device_printf(vdev->ndev,