Home
last modified time | relevance | path

Searched refs:pdev (Results 1 – 25 of 53) sorted by relevance

123

/dpdk/drivers/event/dlb2/pf/
H A Ddlb2_main.c81 ret = rte_pci_read_config(pdev, &hdr, 2, pos); in dlb2_pci_find_capability()
150 dlb2_probe(struct rte_pci_device *pdev) in dlb2_probe() argument
166 dlb_version = DLB2_HW_DEVICE_FROM_PCI_ID(pdev); in dlb2_probe()
173 if (pdev->mem_resource[0].addr == NULL) { in dlb2_probe()
184 (void *)(pdev->mem_resource[0].len)); in dlb2_probe()
187 if (pdev->mem_resource[2].addr == NULL) { in dlb2_probe()
198 (void *)(pdev->mem_resource[2].len)); in dlb2_probe()
200 dlb2_dev->pdev = pdev; in dlb2_probe()
266 struct rte_pci_device *pdev = dlb2_dev->pdev; in dlb2_pf_reset() local
464 ret = rte_pci_write_config(pdev, &tmp, 4, off); in dlb2_pf_reset()
[all …]
H A Ddlb2_main.h29 struct rte_pci_device *pdev; member
42 struct dlb2_dev *dlb2_probe(struct rte_pci_device *pdev);
/dpdk/drivers/crypto/nitrox/
H A Dnitrox_device.c18 ndev_allocate(struct rte_pci_device *pdev) in ndev_allocate() argument
24 pdev->device.numa_node); in ndev_allocate()
37 ndev->pdev = pdev; in ndev_init()
38 ndev->bar_addr = pdev->mem_resource[0].addr; in ndev_init()
44 find_ndev(struct rte_pci_device *pdev) in find_ndev() argument
49 if (ndev->pdev == pdev) in find_ndev()
67 struct rte_pci_device *pdev) in nitrox_pci_probe() argument
73 if (!pdev->mem_resource[0].addr) in nitrox_pci_probe()
76 ndev = ndev_allocate(pdev); in nitrox_pci_probe()
80 ndev_init(ndev, pdev); in nitrox_pci_probe()
[all …]
H A Dnitrox_device.h15 struct rte_pci_device *pdev; member
/dpdk/drivers/bus/pci/
H A Dpci_common.c495 pdev = TAILQ_NEXT(pdev, next); in pci_find_device()
523 return pdev; in pci_find_device_by_addr()
537 if (!pdev) in pci_hot_unplug_handler()
540 switch (pdev->kdrv) { in pci_hot_unplug_handler()
576 if (!pdev) { in pci_sigbus_handler()
585 pdev->name); in pci_sigbus_handler()
609 free(pdev); in pci_unplug()
619 if (!pdev || !pdev->driver) { in pci_dma_map()
624 return pdev->driver->dma_map(pdev, addr, iova, len); in pci_dma_map()
642 if (!pdev || !pdev->driver) { in pci_dma_unmap()
[all …]
H A Dpci_params.c47 const struct rte_pci_device *pdev; in pci_dev_match() local
52 pdev = RTE_DEV_TO_PCI_CONST(dev); in pci_dev_match()
56 (void *)(intptr_t)&pdev->addr)) in pci_dev_match()
/dpdk/drivers/vdpa/sfc/
H A Dsfc_vdpa.c28 sfc_vdpa_get_adapter_by_dev(struct rte_pci_device *pdev) in sfc_vdpa_get_adapter_by_dev() argument
36 if (pdev == sva->pdev) { in sfc_vdpa_get_adapter_by_dev()
70 struct rte_pci_device *dev = sva->pdev; in sfc_vdpa_vfio_setup()
132 rte_pci_unmap_device(sva->pdev); in sfc_vdpa_vfio_teardown()
151 struct rte_pci_device *pci_dev = sva->pdev; in sfc_vdpa_set_log_prefix()
205 struct rte_pci_device *pci_dev = sva->pdev; in sfc_vdpa_kvargs_parse()
262 sva->pdev = pci_dev; in sfc_vdpa_pci_probe()
H A Dsfc_vdpa_hw.c30 int numa_node = sva->pdev->device.numa_node; in sfc_vdpa_dma_alloc()
35 sva->pdev->name, name); in sfc_vdpa_dma_alloc()
38 sva->pdev->name, name); in sfc_vdpa_dma_alloc()
192 struct rte_pci_device *pci_dev = sva->pdev; in sfc_vdpa_mem_bar_init()
309 rc = sfc_efx_family(sva->pdev, &mem_ebr, &sva->family); in sfc_vdpa_hw_init()
H A Dsfc_vdpa.h53 struct rte_pci_device *pdev; member
86 sfc_vdpa_get_adapter_by_dev(struct rte_pci_device *pdev);
/dpdk/lib/vhost/
H A Dvhost_user.c278 struct virtio_net *dev = *pdev; in vhost_user_reset_owner()
295 struct virtio_net *dev = *pdev; in vhost_user_get_features()
315 struct virtio_net *dev = *pdev; in vhost_user_get_queue_num()
335 struct virtio_net *dev = *pdev; in vhost_user_set_features()
422 struct virtio_net *dev = *pdev; in vhost_user_set_vring_num()
861 struct virtio_net *dev = *pdev; in vhost_user_set_vring_addr()
889 *pdev = dev; in vhost_user_set_vring_addr()
903 struct virtio_net *dev = *pdev; in vhost_user_set_vring_base()
1391 dev = *pdev; in vhost_user_set_mem_table()
1395 *pdev = dev; in vhost_user_set_mem_table()
[all …]
/dpdk/drivers/compress/octeontx/
H A Dotx_zip.c61 if (vf->pdev->id.device_id == PCI_DEVICE_ID_OCTEONTX2_ZIPVF) in zipvf_q_init()
146 struct rte_pci_device *pdev = RTE_DEV_TO_PCI(compressdev->device); in zipvf_create() local
152 if (pdev->mem_resource[0].phys_addr == 0ULL) in zipvf_create()
155 vbar0 = pdev->mem_resource[0].addr; in zipvf_create()
170 zipvf->pdev = pdev; in zipvf_create()
/dpdk/drivers/net/octeontx_ep/
H A Dotx_ep_ethdev.c95 struct rte_pci_device *pdev = otx_epvf->pdev; in otx_ep_chip_specific_setup() local
96 uint32_t dev_id = pdev->id.device_id; in otx_ep_chip_specific_setup()
402 struct rte_pci_device *pdev = RTE_ETH_DEV_TO_PCI(eth_dev); in otx_ep_eth_dev_init() local
421 otx_epvf->hw_addr = pdev->mem_resource[0].addr; in otx_ep_eth_dev_init()
422 otx_epvf->pdev = pdev; in otx_ep_eth_dev_init()
425 if (pdev->id.device_id == PCI_DEVID_CN9K_EP_NET_VF) in otx_ep_eth_dev_init()
/dpdk/drivers/net/bnxt/
H A Dbnxt_vnic.c113 struct rte_pci_device *pdev = bp->pdev; in bnxt_alloc_vnic_attributes() local
135 "bnxt_" PCI_PRI_FMT "_vnicattr_%d", pdev->addr.domain, in bnxt_alloc_vnic_attributes()
136 pdev->addr.bus, pdev->addr.devid, pdev->addr.function, i); in bnxt_alloc_vnic_attributes()
H A Dbnxt_ethdev.c597 struct rte_pci_device *pdev = bp->pdev; in bnxt_init_fc_ctx_mem() local
605 pdev->addr.bus, pdev->addr.devid, pdev->addr.function); in bnxt_init_fc_ctx_mem()
614 pdev->addr.bus, pdev->addr.devid, pdev->addr.function); in bnxt_init_fc_ctx_mem()
623 pdev->addr.bus, pdev->addr.devid, pdev->addr.function); in bnxt_init_fc_ctx_mem()
632 pdev->addr.bus, pdev->addr.devid, pdev->addr.function); in bnxt_init_fc_ctx_mem()
3753 bp->pdev->addr.domain, bp->pdev->addr.bus, in bnxt_get_eeprom_length_op()
3754 bp->pdev->addr.devid, bp->pdev->addr.function); in bnxt_get_eeprom_length_op()
3777 bp->pdev->addr.domain, bp->pdev->addr.bus, in bnxt_get_eeprom_op()
3778 bp->pdev->addr.devid, bp->pdev->addr.function, in bnxt_get_eeprom_op()
3853 bp->pdev->addr.domain, bp->pdev->addr.bus, in bnxt_set_eeprom_op()
[all …]
H A Dbnxt_irq.c70 struct rte_intr_handle *intr_handle = bp->pdev->intr_handle; in bnxt_free_int()
173 struct rte_intr_handle *intr_handle = bp->pdev->intr_handle; in bnxt_request_int()
/dpdk/drivers/net/cxgbe/
H A Dcxgbevf_main.c187 adapter->bar2 = (void *)adapter->pdev->mem_resource[2].addr; in cxgbevf_probe()
215 adapter->pdev->device.name, i); in cxgbevf_probe()
249 pi->eth_dev->device = &adapter->pdev->device; in cxgbevf_probe()
254 rte_eth_copy_pci_info(pi->eth_dev, adapter->pdev); in cxgbevf_probe()
H A Dcxgbe_main.c710 struct rte_pci_addr *loc = &adap->pdev->addr; in cxgbe_print_port_info()
800 struct rte_pci_device *pdev = adap->pdev; in cxgbe_get_devargs_int() local
805 if (!pdev) in cxgbe_get_devargs_int()
808 ret = cxgbe_get_devargs(pdev->device.devargs, key, &devarg_value); in cxgbe_get_devargs_int()
818 struct rte_pci_device *pdev = adap->pdev; in cxgbe_get_devargs_u32() local
823 if (!pdev) in cxgbe_get_devargs_u32()
2080 CHELSIO_PCI_ID_VER(adapter->pdev->id.device_id)); in cxgbe_probe()
2127 adapter->bar2 = (void *)adapter->pdev->mem_resource[2].addr; in cxgbe_probe()
2143 adapter->pdev->device.name, i); in cxgbe_probe()
2176 pi->eth_dev->device = &adapter->pdev->device; in cxgbe_probe()
[all …]
/dpdk/drivers/net/fm10k/
H A Dfm10k_ethdev.c708 FM10K_WRITE_REG(hw, FM10K_RXINT(i), Q2V(pdev, i)); in fm10k_dev_rx_init()
710 FM10K_WRITE_REG(hw, FM10K_ITR(Q2V(pdev, i)), in fm10k_dev_rx_init()
714 FM10K_WRITE_REG(hw, FM10K_VFITR(Q2V(pdev, i)), in fm10k_dev_rx_init()
1182 FM10K_WRITE_REG(hw, FM10K_ITR(Q2V(pdev, i)), in fm10k_dev_stop()
1185 FM10K_WRITE_REG(hw, FM10K_VFITR(Q2V(pdev, i)), in fm10k_dev_stop()
1378 dev_info->max_vfs = pdev->max_vfs; in fm10k_dev_infos_get()
2370 rte_intr_ack(pdev->intr_handle); in fm10k_dev_rx_queue_intr_enable()
3082 rte_eth_copy_pci_info(dev, pdev); in eth_fm10k_dev_init()
3089 hw->device_id = pdev->id.device_id; in eth_fm10k_dev_init()
3090 hw->vendor_id = pdev->id.vendor_id; in eth_fm10k_dev_init()
[all …]
/dpdk/drivers/vdpa/ifc/
H A Difcvf_vdpa.c49 struct rte_pci_device *pdev; member
110 find_internal_resource_by_dev(struct rte_pci_device *pdev) in find_internal_resource_by_dev() argument
118 if (!rte_pci_addr_cmp(&pdev->addr, in find_internal_resource_by_dev()
119 &list->internal->pdev->addr)) { in find_internal_resource_by_dev()
136 struct rte_pci_device *dev = internal->pdev; in ifcvf_vfio_setup()
170 internal->pdev->mem_resource[i].addr; in ifcvf_vfio_setup()
172 internal->pdev->mem_resource[i].phys_addr; in ifcvf_vfio_setup()
174 internal->pdev->mem_resource[i].len; in ifcvf_vfio_setup()
367 rte_intr_fd_get(internal->pdev->intr_handle); in vdpa_enable_vfio_intr()
1214 internal->pdev = pci_dev; in ifcvf_pci_probe()
[all …]
/dpdk/drivers/net/cxgbe/base/
H A Dadapter.h312 struct rte_pci_device *pdev; /* associated rte pci device */ member
552 if (rte_pci_write_config(adapter->pdev, &val32, sizeof(val32), in t4_os_pci_write_cfg4()
568 if (rte_pci_read_config(adapter->pdev, val, sizeof(*val), in t4_os_pci_read_cfg4()
586 if (rte_pci_write_config(adapter->pdev, &val16, sizeof(val16), in t4_os_pci_write_cfg2()
602 if (rte_pci_read_config(adapter->pdev, val, sizeof(*val), in t4_os_pci_read_cfg2()
618 if (rte_pci_read_config(adapter->pdev, val, sizeof(*val), in t4_os_pci_read_cfg()
/dpdk/drivers/net/liquidio/
H A Dlio_ethdev.c1940 struct rte_pci_device *pdev = lio_dev->pci_dev; in lio_chip_specific_setup() local
1941 uint32_t dev_id = pdev->id.device_id; in lio_chip_specific_setup()
1964 struct rte_pci_device *pdev) in lio_first_time_init() argument
1971 lio_dev->pci_dev = pdev; in lio_first_time_init()
2003 if (pdev->kdrv == RTE_PCI_KDRV_IGB_UIO) { in lio_first_time_init()
2071 rte_eth_copy_pci_info(eth_dev, pdev); in lio_eth_dev_init()
2073 if (pdev->mem_resource[0].addr) { in lio_eth_dev_init()
2074 lio_dev->hw_addr = pdev->mem_resource[0].addr; in lio_eth_dev_init()
2083 "%s[%02x:%02x.%x]", pdev->driver->driver.name, in lio_eth_dev_init()
2084 pdev->addr.bus, pdev->addr.devid, pdev->addr.function); in lio_eth_dev_init()
[all …]
/dpdk/drivers/net/enic/
H A Denic_ethdev.c427 struct rte_pci_device *pdev; in speed_capa_from_pci_id() local
430 pdev = RTE_ETH_DEV_TO_PCI(eth_dev); in speed_capa_from_pci_id()
431 id = pdev->id.subsystem_device_id; in speed_capa_from_pci_id()
442 if (pdev->id.device_id == PCI_DEVICE_ID_CISCO_VIC_ENET_SN) in speed_capa_from_pci_id()
1245 struct rte_pci_device *pdev; in eth_enic_dev_init() local
1266 pdev = RTE_ETH_DEV_TO_PCI(eth_dev); in eth_enic_dev_init()
1267 rte_eth_copy_pci_info(eth_dev, pdev); in eth_enic_dev_init()
1268 enic->pdev = pdev; in eth_enic_dev_init()
1269 addr = &pdev->addr; in eth_enic_dev_init()
H A Denic_main.c36 return enic->pdev->id.device_id == PCI_DEVICE_ID_CISCO_VIC_ENET_VF; in enic_is_sriov_vf()
451 rte_intr_ack(enic->pdev->intr_handle); in enic_intr_handler()
670 rte_intr_callback_register(enic->pdev->intr_handle, in enic_enable()
673 rte_intr_enable(enic->pdev->intr_handle); in enic_enable()
1114 rte_intr_disable(enic->pdev->intr_handle); in enic_disable()
1115 rte_intr_callback_unregister(enic->pdev->intr_handle, in enic_disable()
1908 struct rte_pci_device *pdev = enic->pdev; in enic_probe() local
1917 enic->bar0.vaddr = (void *)pdev->mem_resource[0].addr; in enic_probe()
1918 enic->bar0.len = pdev->mem_resource[0].len; in enic_probe()
1921 enic->vdev = vnic_dev_register(NULL, enic, enic->pdev, &enic->bar0, 1); in enic_probe()
/dpdk/drivers/net/bonding/
H A Drte_eth_bond_args.c28 const struct rte_pci_device *pdev = RTE_DEV_TO_PCI_CONST(dev); in bond_pci_addr_cmp() local
31 return rte_pci_addr_cmp(&pdev->addr, paddr); in bond_pci_addr_cmp()
/dpdk/drivers/net/i40e/
H A Di40e_vf_representor.c362 struct rte_eth_dev *pdev; in i40e_vf_representor_vlan_offload_set() local
368 pdev = &rte_eth_devices[representor->adapter->pf.dev_data->port_id]; in i40e_vf_representor_vlan_offload_set()
371 if (!is_i40e_supported(pdev)) { in i40e_vf_representor_vlan_offload_set()
376 pf = I40E_DEV_PRIVATE_TO_PF(pdev->data->dev_private); in i40e_vf_representor_vlan_offload_set()

123