| /dpdk/lib/eal/common/ |
| H A D | eal_common_bus.c | 22 RTE_VERIFY(bus); in rte_bus_register() 23 RTE_VERIFY(bus->name && strlen(bus->name)); in rte_bus_register() 29 RTE_VERIFY(!bus->plug || bus->unplug); in rte_bus_register() 53 bus->name); in rte_bus_scan() 68 vbus = bus; in rte_bus_probe() 75 bus->name); in rte_bus_probe() 133 bus = TAILQ_NEXT(bus, next); in rte_bus_find() 135 return bus; in rte_bus_find() 180 return !(bus->parse && bus->parse(name, NULL) == 0); in bus_can_parse() 216 bus->name, in rte_bus_get_iommu_class() [all …]
|
| H A D | eal_common_devargs.c | 156 if (devargs->bus != NULL && devargs->bus->devargs_parse != NULL) in rte_devargs_layers_parse() 179 return strncmp(bus->name, name, strlen(bus->name)); in bus_name_cmp() 206 bus = rte_bus_find(bus, bus_name_cmp, dev); in rte_devargs_parse() 207 if (bus == NULL) in rte_devargs_parse() 226 if (bus == NULL) { in rte_devargs_parse() 228 if (bus == NULL) { in rte_devargs_parse() 234 da->bus = bus; in rte_devargs_parse() 304 if (strcmp(listed_da->bus->name, (*da)->bus->name) == 0 && in rte_devargs_insert() 337 bus = devargs->bus; in rte_devargs_add() 368 if (strcmp(d->bus->name, devargs->bus->name) == 0 && in rte_devargs_remove() [all …]
|
| H A D | eal_common_dev.c | 143 da->bus->name); in local_dev_probe() 287 struct rte_bus *bus; in rte_eal_hotplug_remove() local 290 if (bus == NULL) { in rte_eal_hotplug_remove() 312 dev->bus->name); in local_dev_remove() 589 bus = devargs.bus; in rte_dev_iterator_init() 600 if (bus != NULL && bus->dev_iterate == NULL) { in rte_dev_iterator_init() 613 it->bus = bus; in rte_dev_iterator_init() 691 if (it->bus_str != NULL && bus != it->bus) in bus_next_dev_cmp() 737 bus = TAILQ_PREV(it->bus, rte_bus_list, next); in rte_dev_iterator_next() 748 while ((bus = rte_bus_find(bus, bus_next_dev_cmp, in rte_dev_iterator_next() [all …]
|
| H A D | hotplug_mp.c | 93 struct rte_bus *bus; in __handle_secondary_request() local 129 bus = rte_bus_find_by_name(da.bus->name); in __handle_secondary_request() 130 if (bus == NULL) { in __handle_secondary_request() 131 RTE_LOG(ERR, EAL, "Cannot find bus (%s)\n", da.bus->name); in __handle_secondary_request() 136 dev = bus->find_device(NULL, cmp_dev_name, da.name); in __handle_secondary_request() 234 struct rte_bus *bus; in __handle_primary_request() local 256 bus = rte_bus_find_by_name(da->bus->name); in __handle_primary_request() 257 if (bus == NULL) { in __handle_primary_request() 258 RTE_LOG(ERR, EAL, "Cannot find bus (%s)\n", da->bus->name); in __handle_primary_request() 263 dev = bus->find_device(NULL, cmp_dev_name, da->name); in __handle_primary_request()
|
| /dpdk/app/test/ |
| H A D | test_devargs.c | 58 const char *bus; member 75 if (pci_bus == NULL && list[i].bus != NULL && in test_valid_devargs_cases() 76 strcmp(list[i].bus, "pci") == 0) in test_valid_devargs_cases() 78 if (vdev_bus == NULL && list[i].bus != NULL && in test_valid_devargs_cases() 79 strcmp(list[i].bus, "vdev") == 0) in test_valid_devargs_cases() 91 if ((list[i].bus_kv > 0 || list[i].bus != NULL) && in test_valid_devargs_cases() 92 da.bus == NULL) { in test_valid_devargs_cases() 100 if (list[i].bus != NULL && in test_valid_devargs_cases() 101 strcmp(da.bus->name, list[i].bus) != 0) { in test_valid_devargs_cases() 103 list[i].devargs, da.bus->name, list[i].bus); in test_valid_devargs_cases()
|
| H A D | test_kni.c | 430 const struct rte_bus *bus = NULL; in test_kni_processing() local 447 bus = rte_bus_find_by_device(info.device); in test_kni_processing() 448 if (bus && !strcmp(bus->name, "pci")) { in test_kni_processing() 549 const struct rte_bus *bus; in test_kni() local 649 bus = rte_bus_find_by_device(info.device); in test_kni() 651 bus = NULL; in test_kni() 652 if (bus && !strcmp(bus->name, "pci")) { in test_kni() 693 bus = rte_bus_find_by_device(info.device); in test_kni() 695 bus = NULL; in test_kni() 696 if (bus && !strcmp(bus->name, "pci")) { in test_kni()
|
| /dpdk/drivers/ |
| H A D | meson.build | 7 'bus', 8 'common/cnxk', # depends on bus. 9 'common/mlx5', # depends on bus. 10 'common/qat', # depends on bus. 11 'common/sfc_efx', # depends on bus. 12 'mempool', # depends on common and bus. 13 'dma', # depends on common and bus. 14 'net', # depends on common, bus, mempool 21 'baseband', # depends on common and bus. 22 'gpu', # depends on common and bus. [all …]
|
| /dpdk/lib/eal/include/ |
| H A D | rte_bus.h | 290 void rte_bus_register(struct rte_bus *bus); 299 void rte_bus_unregister(struct rte_bus *bus); 343 typedef int (*rte_bus_cmp_t)(const struct rte_bus *bus, const void *data); 394 #define RTE_REGISTER_BUS(nm, bus) \ argument 397 (bus).name = RTE_STR(nm);\ 398 rte_bus_register(&bus); \
|
| /dpdk/drivers/net/fm10k/base/ |
| H A D | fm10k_common.c | 79 hw->bus.width = fm10k_bus_width_pcie_x1; in fm10k_get_bus_info_generic() 82 hw->bus.width = fm10k_bus_width_pcie_x2; in fm10k_get_bus_info_generic() 85 hw->bus.width = fm10k_bus_width_pcie_x4; in fm10k_get_bus_info_generic() 88 hw->bus.width = fm10k_bus_width_pcie_x8; in fm10k_get_bus_info_generic() 91 hw->bus.width = fm10k_bus_width_unknown; in fm10k_get_bus_info_generic() 97 hw->bus.speed = fm10k_bus_speed_2500; in fm10k_get_bus_info_generic() 100 hw->bus.speed = fm10k_bus_speed_5000; in fm10k_get_bus_info_generic() 103 hw->bus.speed = fm10k_bus_speed_8000; in fm10k_get_bus_info_generic() 106 hw->bus.speed = fm10k_bus_speed_unknown; in fm10k_get_bus_info_generic() 115 hw->bus.payload = fm10k_bus_payload_128; in fm10k_get_bus_info_generic() [all …]
|
| /dpdk/drivers/net/igc/base/ |
| H A D | igc_mac.c | 150 struct igc_bus_info *bus = &hw->bus; in igc_get_bus_info_pci_generic() local 169 bus->speed = igc_bus_speed_66; in igc_get_bus_info_pci_generic() 205 struct igc_bus_info *bus = &hw->bus; in igc_get_bus_info_pcie_generic() local 250 struct igc_bus_info *bus = &hw->bus; in igc_set_lan_id_multi_port_pcie() local 268 struct igc_bus_info *bus = &hw->bus; in igc_set_lan_id_multi_port_pci() local 278 bus->func = 0; in igc_set_lan_id_multi_port_pci() 290 struct igc_bus_info *bus = &hw->bus; in igc_set_lan_id_single_port() local 292 bus->func = 0; in igc_set_lan_id_single_port() 405 if (hw->bus.func == IGC_FUNC_1) in igc_check_alt_mac_addr_generic() 407 if (hw->bus.func == IGC_FUNC_2) in igc_check_alt_mac_addr_generic() [all …]
|
| H A D | igc_base.c | 23 if (hw->bus.func == IGC_FUNC_1) in igc_acquire_phy_base() 25 else if (hw->bus.func == IGC_FUNC_2) in igc_acquire_phy_base() 27 else if (hw->bus.func == IGC_FUNC_3) in igc_acquire_phy_base() 45 if (hw->bus.func == IGC_FUNC_1) in igc_release_phy_base() 47 else if (hw->bus.func == IGC_FUNC_2) in igc_release_phy_base() 49 else if (hw->bus.func == IGC_FUNC_3) in igc_release_phy_base()
|
| /dpdk/drivers/net/e1000/base/ |
| H A D | e1000_mac.c | 152 struct e1000_bus_info *bus = &hw->bus; in e1000_get_bus_info_pci_generic() local 171 bus->speed = e1000_bus_speed_66; in e1000_get_bus_info_pci_generic() 207 struct e1000_bus_info *bus = &hw->bus; in e1000_get_bus_info_pcie_generic() local 252 struct e1000_bus_info *bus = &hw->bus; in e1000_set_lan_id_multi_port_pcie() local 270 struct e1000_bus_info *bus = &hw->bus; in e1000_set_lan_id_multi_port_pci() local 280 bus->func = 0; in e1000_set_lan_id_multi_port_pci() 292 struct e1000_bus_info *bus = &hw->bus; in e1000_set_lan_id_single_port() local 294 bus->func = 0; in e1000_set_lan_id_single_port() 407 if (hw->bus.func == E1000_FUNC_1) in e1000_check_alt_mac_addr_generic() 409 if (hw->bus.func == E1000_FUNC_2) in e1000_check_alt_mac_addr_generic() [all …]
|
| H A D | e1000_base.c | 23 if (hw->bus.func == E1000_FUNC_1) in e1000_acquire_phy_base() 25 else if (hw->bus.func == E1000_FUNC_2) in e1000_acquire_phy_base() 27 else if (hw->bus.func == E1000_FUNC_3) in e1000_acquire_phy_base() 45 if (hw->bus.func == E1000_FUNC_1) in e1000_release_phy_base() 47 else if (hw->bus.func == E1000_FUNC_2) in e1000_release_phy_base() 49 else if (hw->bus.func == E1000_FUNC_3) in e1000_release_phy_base()
|
| H A D | e1000_82542.c | 149 hw->bus.type = e1000_bus_type_pci; in e1000_get_bus_info_82542() 150 hw->bus.speed = e1000_bus_speed_unknown; in e1000_get_bus_info_82542() 151 hw->bus.width = e1000_bus_width_unknown; in e1000_get_bus_info_82542() 164 struct e1000_bus_info *bus = &hw->bus; in e1000_reset_hw_82542() local 200 if (bus->pci_cmd_word & CMD_MEM_WRT_INVALIDATE) in e1000_reset_hw_82542() 244 if (hw->bus.pci_cmd_word & CMD_MEM_WRT_INVALIDATE) in e1000_init_hw_82542()
|
| /dpdk/lib/pci/ |
| H A D | rte_pci.c | 47 in = get_u8_pciaddr_field(in, &dev_addr->bus, ':'); in pci_bdf_parse() 82 in = get_u8_pciaddr_field(in, &dev_addr->bus, ':'); in pci_dbdf_parse() 100 addr->domain, addr->bus, in rte_pci_device_name() 114 (addr->bus << 16) | (addr->devid << 8) | addr->function; in rte_pci_addr_cmp() 116 (addr2->bus << 16) | (addr2->devid << 8) | addr2->function; in rte_pci_addr_cmp()
|
| /dpdk/drivers/dma/idxd/ |
| H A D | idxd_bus.c | 57 struct rte_bus bus; /**< Inherit the generic class */ member 63 .bus = { 230 idxd.u.bus.dsa_id = dev->addr.device_id; in idxd_probe_dsa() 251 RTE_EAL_DEVARGS_FOREACH(dsa_bus.bus.name, devargs) { in search_devargs() 271 if (retval && dsa_bus.bus.conf.scan_mode != RTE_BUS_SCAN_UNDEFINED) { in is_for_this_process_use() 272 if (dsa_bus.bus.conf.scan_mode == RTE_BUS_SCAN_ALLOWLIST) in is_for_this_process_use() 341 dev->device.bus = &dsa_bus.bus; in dsa_scan() 400 RTE_REGISTER_BUS(dsa, dsa_bus.bus);
|
| /dpdk/drivers/net/ixgbe/base/ |
| H A D | ixgbe_x550.c | 301 if (hw->bus.lan_id) { in ixgbe_setup_mux_ctl() 354 if (hw->bus.lan_id) in ixgbe_identify_phy_x550em() 387 hic.cmd.port_number = hw->bus.lan_id; in ixgbe_fw_phy_activity() 467 if (hw->bus.lan_id) in ixgbe_identify_phy_fw() 1307 hic.cmd.port_number = hw->bus.lan_id; in ixgbe_read_iosf_sb_reg_x550a() 2274 if (hw->bus.lan_id) in ixgbe_init_phy_ops_X550em() 2284 if (hw->bus.lan_id) in ixgbe_init_phy_ops_X550em() 2626 (hw->bus.lan_id << 12); in ixgbe_setup_mac_link_sfp_x550em() 2759 slice_offset = (hw->bus.lan_id + in ixgbe_setup_mac_link_sfp_x550a() 4217 if (!hw->bus.lan_id) in ixgbe_set_mux() [all …]
|
| /dpdk/kernel/freebsd/nic_uio/ |
| H A D | nic_uio.c | 76 uint32_t bus; member 151 unsigned int bus = pci_get_bus(dev); in nic_uio_probe() local 160 if (bus == pci_get_bus(detached_devices[i]) && in nic_uio_probe() 177 bus = strtol(token, NULL, 10); in nic_uio_probe() 187 if (bus == pci_get_bus(dev) && in nic_uio_probe() 258 uint32_t bus, device, function; in nic_uio_load() local 284 bus = strtol(token, NULL, 10); in nic_uio_load() 294 dev = pci_find_bsf(bus, device, function); in nic_uio_load()
|
| /dpdk/drivers/bus/pci/ |
| H A D | pci_common.c | 54 devargs->bus->parse(devargs->name, &addr); in pci_devargs_lookup() 183 loc->domain, loc->bus, loc->devid, loc->function, in rte_pci_probe_one_driver() 266 loc->domain, loc->bus, loc->devid, loc->function, in rte_pci_probe_one_driver() 310 loc->domain, loc->bus, loc->devid, in rte_pci_detach_dev() 385 dev->addr.domain, dev->addr.bus, in pci_probe() 446 driver->bus = &rte_pci_bus; in rte_pci_register() 454 driver->bus = NULL; in rte_pci_unregister() 665 switch (rte_pci_bus.bus.conf.scan_mode) { in rte_pci_ignore_device() 711 dev->addr.domain, dev->addr.bus, in rte_pci_get_iommu_class() 813 .bus = { [all …]
|
| /dpdk/examples/ip_pipeline/ |
| H A D | kni.c | 111 const struct rte_bus *bus = NULL; in kni_create() local 138 bus = rte_bus_find_by_device(dev_info.device); in kni_create() 139 if (bus && !strcmp(bus->name, "pci")) { in kni_create()
|
| /dpdk/doc/guides/howto/ |
| H A D | lm_virtio_vhost_user.rst | 266 cat /sys/bus/pci/devices/0000\:02\:00.0/max_vfs 267 echo 0 > /sys/bus/pci/devices/0000\:02\:00.0/max_vfs 268 cat /sys/bus/pci/devices/0000\:02\:00.0/max_vfs 271 cat /sys/bus/pci/devices/0000\:09\:00.0/max_vfs 272 echo 0 > /sys/bus/pci/devices/0000\:09\:00.0/max_vfs 273 cat /sys/bus/pci/devices/0000\:09\:00.0/max_vfs 342 cat /sys/bus/pci/devices/0000\:06\:00.0/max_vfs 343 echo 0 > /sys/bus/pci/devices/0000\:06\:00.0/max_vfs 344 cat /sys/bus/pci/devices/0000\:06\:00.0/max_vfs 347 cat /sys/bus/pci/devices/0000\:03\:00.0/max_vfs [all …]
|
| /dpdk/drivers/crypto/ccp/ |
| H A D | ccp_pci.c | 53 uint8_t *bus, uint8_t *devid, uint8_t *function) in ccp_parse_pci_addr_format() argument 59 char *bus; in ccp_parse_pci_addr_format() member 84 *bus = (uint8_t)strtoul(splitaddr.bus, NULL, 16); in ccp_parse_pci_addr_format()
|
| /dpdk/drivers/bus/pci/bsd/ |
| H A D | pci.c | 115 dev->addr.bus, dev->addr.devid, dev->addr.function); in pci_uio_alloc_resource() 119 "skipping\n", loc->domain, loc->bus, loc->devid, loc->function); in pci_uio_alloc_resource() 224 dev->device.bus = &rte_pci_bus.bus; in pci_scan_one() 227 dev->addr.bus = conf->pc_sel.pc_bus; in pci_scan_one() 362 pci_addr.bus = matches[i].pc_sel.pc_bus; in rte_pci_scan() 414 .pc_bus = dev->addr.bus, in rte_pci_read_config() 458 .pc_bus = dev->addr.bus, in rte_pci_write_config()
|
| /dpdk/drivers/bus/vmbus/ |
| H A D | vmbus_common.c | 238 driver->bus = &rte_vmbus_bus; in rte_vmbus_register() 246 driver->bus = NULL; in rte_vmbus_unregister() 292 .bus = { 302 RTE_REGISTER_BUS(vmbus, rte_vmbus_bus.bus);
|
| /dpdk/drivers/bus/auxiliary/ |
| H A D | auxiliary_common.c | 262 driver->bus = &auxiliary_bus; in rte_auxiliary_register() 270 driver->bus = NULL; in rte_auxiliary_unregister() 379 switch (auxiliary_bus.bus.conf.scan_mode) { in auxiliary_is_ignored_device() 407 .bus = { 423 RTE_REGISTER_BUS(auxiliary, auxiliary_bus.bus);
|