Lines Matching defs:dev

33 /*$FreeBSD: stable/11/sys/dev/ixl/ixl_pf_main.c 369202 2021-02-02 14:27:33Z donner $*/
48 #include <dev/netmap/if_ixl_netmap.h>
127 device_print_prettyname(pf->dev);
159 device_t dev = pf->dev;
165 device_printf(dev, "%s\n", sbuf_data(sbuf));
239 device_t dev = pf->dev;
246 device_printf(dev, "Running in recovery mode, only firmware update available\n");
258 device_printf(dev, "Admin Queue is down; resetting...\n");
265 device_printf(dev, "LLA address change failed!\n");
285 device_printf(dev, "i40e_set_filter_control() failed\n");
289 device_printf(dev, "initialize vsi failed!!\n");
328 device_printf(dev,
346 device_t dev = pf->dev;
360 device_printf(dev, "Unable to allocate cap memory\n");
375 device_printf(dev, "capability discovery failed: %d\n",
381 device_printf(dev, "pf_id=%d, num_vfs=%d, msix_pf=%d, "
428 device_printf(dev, "Error setting I2C access functions\n");
433 device_printf(dev, "PF-ID[%d]: VFs %d, MSIX %d, VF MSIX %d, QPs %d, %s\n",
447 device_t dev = vsi->dev;
463 device_printf(dev,
477 device_printf(dev,
495 device_printf(dev,
509 device_printf(dev,
520 device_t dev = pf->dev;
530 device_printf(dev, "%s: ixl_set_advertised_speeds() error %d\n",
544 device_t dev = pf->dev;
550 device_printf(dev,
560 device_printf(dev,
571 device_t dev = pf->dev;
579 device_printf(dev, "init: PF reset failure\n");
586 device_printf(dev, "init: Admin queue init failure;"
596 device_printf(dev, "init: Error retrieving HW capabilities;"
604 device_printf(dev, "init: LAN HMC init failed; status code %d\n",
612 device_printf(dev, "init: LAN HMC config failed; status code %d\n",
621 device_printf(dev, "init: ixl_switch_config() failed: %d\n",
629 device_printf(dev, "init: i40e_aq_set_phy_mask() failed: err %d,"
637 device_printf(dev, "init: setting link flow control failed; retcode %d,"
650 device_printf(dev, "init: link restart failed, aq_err %d\n",
819 device_t dev = pf->dev;
840 device_printf(dev, "Reset Requested!\n");
844 device_printf(dev, "Reset type: ");
866 device_printf(dev, "ECC Error detected!\n");
872 device_printf(dev, "HMC Error detected!\n");
873 device_printf(dev, "INFO 0x%08x\n", reg);
875 device_printf(dev, "DATA 0x%08x\n", reg);
881 device_printf(dev, "PCI Exception detected!\n");
1042 device_printf(pf->dev, "Firmware recovery mode detected. Limiting functionality. Refer to Intel(R) Ethernet Adapters and Devices User Guide for details on firmware recovery mode.\n");
1110 device_t dev = pf->dev;
1129 device_printf(dev, "Link is Down\n");
1185 device_t dev = pf->dev;
1190 pf->res = bus_alloc_resource_any(dev, SYS_RES_IRQ,
1193 device_printf(dev, "bus_alloc_resource_any() for"
1199 error = bus_setup_intr(dev, pf->res,
1204 device_printf(dev, "bus_setup_intr() for legacy/msi"
1208 error = bus_describe_intr(dev, pf->res, pf->tag, "irq");
1211 device_printf(dev, "bus_describe_intr() for Admin Queue"
1221 device_t dev = pf->dev;
1234 device_printf(dev, "taskqueue_create_fast (for AQ) returned NULL!\n");
1238 device_get_nameunit(dev));
1240 device_printf(dev, "taskqueue_start_threads (for AQ) error: %d\n",
1252 device_t dev = vsi->dev;
1268 device_get_nameunit(dev), cpu_id);
1271 "%s (que %d)", device_get_nameunit(dev), que->me);
1303 device_t dev = pf->dev;
1309 pf->res = bus_alloc_resource_any(dev,
1312 device_printf(dev, "bus_alloc_resource_any() for Admin Queue"
1317 error = bus_setup_intr(dev, pf->res,
1322 device_printf(dev, "bus_setup_intr() for Admin Queue"
1326 error = bus_describe_intr(dev, pf->res, pf->tag, "aq");
1329 device_printf(dev, "bus_describe_intr() for Admin Queue"
1344 device_t dev = vsi->dev;
1354 que->res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid,
1357 device_printf(dev, "bus_alloc_resource_any() for"
1363 error = bus_setup_intr(dev, que->res,
1367 device_printf(dev, "bus_setup_intr() for Queue %d"
1370 bus_release_resource(dev, SYS_RES_IRQ, rid, que->res);
1373 error = bus_describe_intr(dev, que->res, que->tag, "q%d", i);
1375 device_printf(dev, "bus_describe_intr() for Queue %d"
1383 error = bus_bind_intr(dev, que->res, cpu_id);
1385 device_printf(dev, "bus_bind_intr() for Queue %d"
1402 device_t dev = pf->dev;
1423 pf->msix_mem = bus_alloc_resource_any(dev,
1427 device_printf(pf->dev,
1432 available = pci_msix_count(dev);
1435 device_printf(pf->dev, "Less than two MSI-X vectors available\n");
1436 bus_release_resource(dev, SYS_RES_MEMORY,
1458 device_printf(dev, "ixl_max_queues (%d) is too large, using "
1481 device_printf(pf->dev,
1492 if(bus_get_cpus(dev, INTR_CPUS, sizeof(cpu_set), &cpu_set) == 0)
1514 ixl_set_msix_enable(dev);
1515 if (pci_alloc_msix(dev, &vectors) == 0) {
1516 device_printf(pf->dev,
1523 device_printf(pf->dev,
1543 device_printf(dev,
1552 vectors = pci_msi_count(dev);
1555 if (vectors == 1 && pci_alloc_msi(dev, &vectors) == 0)
1556 device_printf(pf->dev, "Using an MSI interrupt\n");
1559 device_printf(pf->dev, "Using a Legacy interrupt\n");
1695 device_t dev = pf->dev;
1699 pf->pci_mem = bus_alloc_resource_any(dev, SYS_RES_MEMORY,
1703 device_printf(dev, "Unable to allocate bus resource: PCI memory\n");
1707 ixl_set_busmaster(dev);
1710 hw->vendor_id = pci_get_vendor(dev);
1711 hw->device_id = pci_get_device(dev);
1712 hw->revision_id = pci_read_config(dev, PCIR_REVID, 1);
1714 pci_read_config(dev, PCIR_SUBVEND_0, 2);
1716 pci_read_config(dev, PCIR_SUBDEV_0, 2);
1718 hw->bus.device = pci_get_slot(dev);
1719 hw->bus.func = pci_get_function(dev);
1742 device_t dev = pf->dev;
1751 bus_teardown_intr(dev, pf->res, pf->tag);
1753 device_printf(dev, "bus_teardown_intr() for"
1760 bus_release_resource(dev, SYS_RES_IRQ, rid, pf->res);
1762 device_printf(dev, "bus_release_resource() for"
1777 device_t dev = vsi->dev;
1788 error = bus_teardown_intr(dev, que->res, que->tag);
1790 device_printf(dev, "bus_teardown_intr() for"
1798 error = bus_release_resource(dev, SYS_RES_IRQ, rid, que->res);
1800 device_printf(dev, "bus_release_resource() for"
1815 device_t dev = pf->dev;
1822 pci_release_msi(dev);
1827 bus_release_resource(dev, SYS_RES_MEMORY,
1831 bus_release_resource(dev, SYS_RES_MEMORY,
1923 ixl_setup_interface(device_t dev, struct ixl_vsi *vsi)
1936 device_printf(dev, "can not allocate ifnet structure\n");
1939 if_initname(ifp, device_get_name(dev), device_get_unit(dev));
2011 device_printf(dev, "Unknown PHY type detected!\n");
2013 device_printf(dev,
2044 device_t dev = pf->dev;
2057 device_printf(dev, "Link failed because "
2076 device_t dev = vsi->dev;
2087 device_printf(dev, "aq_get_switch_config() failed, error %d,"
2092 device_printf(dev,
2096 device_printf(dev,
2123 device_t dev = vsi->dev;
2136 device_printf(dev, "i40e_aq_get_vsi_params() failed, error %d"
2195 device_printf(dev, "i40e_aq_update_vsi_params() failed, error %d,"
2233 device_printf(dev, "Unable to clear TX context\n");
2238 device_printf(dev, "Unable to set TX context\n");
2284 device_printf(dev,
2290 device_printf(dev, "Unable to set RX context %d\n", i);
2295 device_printf(dev, "Fail in init_rx_ring %d\n", i);
2388 device_t dev = pf->dev;
2405 device_get_nameunit(dev), que->me);
2424 device_printf(dev,
2433 device_printf(dev,
2442 device_printf(dev,
2455 device_get_nameunit(dev), que->me);
2460 device_printf(dev,
2469 device_printf(dev,
2522 device_t dev = pf->dev;
2540 device_printf(dev, "Unable to allocate queue memory\n");
2706 tree = device_get_sysctl_tree(vsi->dev);
2726 device_t dev = pf->dev;
2735 device_printf(dev,
2740 device_printf(dev,
2760 device_t dev = pf->dev;
2769 device_printf(dev,
2774 device_printf(dev,
2789 device_t dev = pf->dev;
2792 struct sysctl_ctx_list *ctx = device_get_sysctl_ctx(dev);
2793 struct sysctl_oid *tree = device_get_sysctl_tree(dev);
2873 device_t dev = pf->dev;
2889 device_printf(dev,
2944 device_t dev = pf->dev;
2974 device_printf(dev, "i40e_aq_set_rss_lut status %s, error %s\n",
3172 device_t dev;
3177 dev = pf->dev;
3198 device_printf(dev, "WARNING: no filter available!!\n");
3270 device_t dev;
3274 dev = pf->dev;
3281 device_printf(dev, "add_hw_filters failed to get memory\n");
3311 device_printf(dev, "aq_add_macvlan err %d, "
3331 device_t dev;
3339 dev = pf->dev;
3374 device_printf(dev,
3414 device_printf(pf->dev, "TX queue %d still disabled!\n",
3448 device_printf(pf->dev, "RX queue %d still disabled!\n",
3512 device_printf(pf->dev, "TX queue %d still enabled!\n",
3544 device_printf(pf->dev, "RX queue %d still enabled!\n",
3591 device_t dev = pf->dev;
3605 device_printf(dev,
3620 device_printf(dev,
3632 device_printf(dev,
3639 device_printf(dev,
3909 device_t dev = pf->dev;
3921 device_printf(dev,
3932 device_printf(dev,
3948 device_t dev = pf->dev;
3952 device_printf(dev, "Rebuilding driver state...\n");
3966 device_printf(dev, "Unable to initialize Admin Queue, error %d\n",
3975 device_printf(dev, "ixl_get_hw_capabilities failed: %d\n", error);
3986 device_printf(dev, "init_lan_hmc failed: %d\n", error);
3992 device_printf(dev, "configure_lan_hmc failed: %d\n", error);
4000 device_printf(dev, "Failed to init queue manager for PF queues, error %d\n",
4008 device_printf(dev, "Failed to reserve queues for PF LAN VSI, error %d\n",
4012 device_printf(dev, "Allocating %d queues for PF LAN VSI; %d queues active\n",
4017 device_printf(dev, "ixl_rebuild_hw_structs_after_reset: ixl_switch_config() failed: %d\n",
4027 device_printf(dev, "setup queues failed!\n");
4037 device_printf(dev, "ixl_setup_adminq_msix() error: %d\n",
4047 device_printf(dev, "ixl_setup_queue_msix() error: %d\n",
4053 device_printf(dev, "ixl_setup_queue_tqs() error: %d\n",
4060 device_printf(dev, "ixl_setup_legacy() error: %d\n",
4092 device_printf(dev, "Rebuilding driver state done.\n");
4099 device_printf(dev, "Reload the driver to recover\n");
4120 device_printf(pf->dev, "PF reset failure %s\n",
4140 device_t dev = pf->dev;
4155 device_printf(dev, "%s: Unable to allocate memory for Admin"
4375 device_t dev = pf->dev;
4378 struct sysctl_ctx_list *ctx = device_get_sysctl_ctx(dev);
4380 SYSCTL_CHILDREN(device_get_sysctl_tree(dev));
4607 device_t dev = pf->dev;
4618 device_printf(dev, "Interface is currently in FW recovery mode. "
4623 device_printf(dev,
4632 device_printf(dev,
4749 device_t dev = pf->dev;
4758 device_printf(dev,
4784 device_printf(dev,
4833 device_t dev = pf->dev;
4844 device_printf(dev, "Interface is currently in FW recovery mode. "
4851 device_printf(dev, "Input advertised speed out of range; "
4860 device_printf(dev, "Invalid advertised speed; "
4910 device_t dev = pf->dev;
4920 pci_find_cap(dev, PCIY_EXPRESS, &offset);
4921 link = pci_read_config(dev, offset + PCIER_LINK_STA, 2);
4927 device_printf(dev,"PCI Express Bus: Speed %s %s\n",
4949 device_printf(dev, "PCI-Express bandwidth available"
4952 device_printf(dev, "Please move the device to a different"
4974 ixl_print_nvm_cmd(device_t dev, struct i40e_nvm_access *nvma)
4981 // device_printf(dev, "- Get Driver Status Command\n");
4989 device_printf(dev, "- command: I40E_NVM_READ\n");
4992 device_printf(dev, "- command: I40E_NVM_WRITE\n");
4995 device_printf(dev, "- command: unknown 0x%08x\n", nvma->command);
4999 device_printf(dev, "- config (ptr) : 0x%02x\n", nvma->config & 0xFF);
5000 device_printf(dev, "- config (flags): 0x%01x\n", (nvma->config & 0xF00) >> 8);
5001 device_printf(dev, "- offset : 0x%08x\n", nvma->offset);
5002 device_printf(dev, "- data_s : 0x%08x\n", nvma->data_size);
5011 device_t dev = pf->dev;
5024 device_printf(dev, "%s: incorrect ifdrv length or data pointer\n",
5026 device_printf(dev, "%s: ifdrv length: %zu, sizeof(struct i40e_nvm_access): %zu\n",
5028 device_printf(dev, "%s: data pointer: %p\n", __func__,
5036 device_printf(dev, "%s: Cannot get request from user space\n",
5043 ixl_print_nvm_cmd(dev, nvma);
5060 device_printf(dev, "%s: invalid request, data size not in supported range\n",
5079 device_printf(dev, "%s: Cannot get request from user space\n",
5093 device_printf(dev, "%s: Cannot return data to user space\n",
5100 device_printf(dev, "i40e_nvmupd_command status %s, perrno %d\n",
5628 device_t dev = pf->dev;
5640 device_printf(dev,
5655 device_t dev = pf->dev;
5661 device_printf(dev, "Could not allocate sbuf for sysctl output.\n");
5695 device_printf(dev, "Error finishing sbuf: %d\n", error);
5706 device_t dev = pf->dev;
5714 device_printf(dev, "Could not allocate sbuf for sysctl output.\n");
5721 device_printf(dev,
5787 device_printf(dev, "Error finishing sbuf: %d\n", error);
5890 device_t dev = pf->dev;
5900 device_printf(dev, "Could not allocate sbuf for output.\n");
5910 device_printf(dev,
5942 device_printf(dev, "Error finishing sbuf: %d\n", error);
6003 device_t dev = pf->dev;
6016 device_printf(dev, "Could not allocate sbuf for sysctl output.\n");
6023 device_printf(dev,
6031 device_printf(dev, "%s: TODO: get more config with SEID %d\n",
6036 device_printf(dev, "Could not allocate sbuf for name output.\n");
6070 device_printf(dev, "Error finishing sbuf: %d\n", error);
6082 device_t dev = pf->dev;
6092 device_printf(dev, "Flags disallow setting of vlans\n");
6097 device_printf(dev,
6102 device_printf(dev,
6116 device_t dev = pf->dev;
6126 device_printf(dev, "Could not allocate sbuf for output.\n");
6136 device_printf(dev, "i40e_aq_get_rss_key status %s, error %s\n",
6149 device_printf(dev, "Error finishing sbuf: %d\n", error);
6206 device_t dev = pf->dev;
6215 device_printf(dev, "Could not allocate sbuf for output.\n");
6224 device_printf(dev, "i40e_aq_get_rss_lut status %s, error %s\n",
6236 device_printf(dev, "Error finishing sbuf: %d\n", error);
6268 device_t dev = pf->dev;
6279 device_printf(dev, "Valid modes are 0 or 1\n");
6286 device_printf(dev,
6309 device_t dev = pf->dev;
6321 device_printf(dev, "Error reading from i2c\n");
6334 device_printf(dev, "Module doesn't support diagnostics: %02X\n", output);
6373 device_printf(dev, "Module is not SFP/SFP+/SFP28/QSFP+ (%02X)\n", output);
6396 device_t dev = pf->dev;
6416 device_printf(dev, "%02X\n", output);
6434 device_t dev = pf->dev;
6455 device_printf(dev, "%02X written\n", value);
6463 device_t dev = pf->dev;
6470 device_printf(dev,
6485 device_t dev = pf->dev;
6506 device_printf(dev,
6612 device_t dev = pf->dev;
6619 device_printf(dev, "Could not allocate sbuf for output.\n");
6647 device_printf(dev, "i40e_aq_debug_dump status %s, error %s\n",
6687 device_printf(dev, "Error finishing sbuf: %d\n", error);
6703 device_printf(pf->dev,
6707 device_printf(pf->dev,
6713 device_printf(pf->dev,
6729 device_t dev = pf->dev;
6733 device_printf(dev,
6739 device_printf(dev,
6747 device_printf(dev,
6754 device_printf(dev, "FW LLDP agent is already stopped\n");
6826 device_t dev = pf->dev;
6834 device_printf(dev, "link restart failed, aq_err=%d\n",