Home
last modified time | relevance | path

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

/dpdk/drivers/common/nitrox/
H A Dnitrox_device.c19 ndev_allocate(struct rte_pci_device *pdev) in ndev_allocate() argument
25 pdev->device.numa_node); in ndev_allocate()
34 ndev_init(struct nitrox_device *ndev, struct rte_pci_device *pdev) in ndev_init() argument
38 ndev->pdev = pdev; in ndev_init()
39 ndev->bar_addr = pdev->mem_resource[0].addr; in ndev_init()
45 find_ndev(struct rte_pci_device *pdev) in find_ndev() argument
50 if (ndev->pdev == pdev) in find_ndev()
68 struct rte_pci_device *pdev) in nitrox_pci_probe() argument
74 if (!pdev->mem_resource[0].addr) in nitrox_pci_probe()
77 ndev = ndev_allocate(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.c124 pci_free(struct rte_pci_device_internal *pdev) in pci_free() argument
126 if (pdev == NULL) in pci_free()
128 free(pdev->device.bus_info); in pci_free()
129 free(pdev); in pci_free()
553 struct rte_pci_device *pdev; in pci_find_device() local
557 pdev = TAILQ_NEXT(pstart, next); in pci_find_device()
559 pdev = TAILQ_FIRST(&rte_pci_bus.device_list); in pci_find_device()
561 while (pdev != NULL) { in pci_find_device()
562 if (cmp(&pdev->device, data) == 0) in pci_find_device()
563 return &pdev->device; in pci_find_device()
[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()
H A Dprivate.h83 pci_free(struct rte_pci_device_internal *pdev);
/dpdk/drivers/bus/pci/linux/
H A Dpci.c209 struct rte_pci_device_internal *pdev; in pci_scan_one() local
214 pdev = malloc(sizeof(*pdev)); in pci_scan_one()
215 if (pdev == NULL) { in pci_scan_one()
220 memset(pdev, 0, sizeof(*pdev)); in pci_scan_one()
221 dev = &pdev->device; in pci_scan_one()
228 pci_free(pdev); in pci_scan_one()
236 pci_free(pdev); in pci_scan_one()
245 pci_free(pdev); in pci_scan_one()
254 pci_free(pdev); in pci_scan_one()
263 pci_free(pdev); in pci_scan_one()
[all …]
/dpdk/drivers/bus/pci/windows/
H A Dpci.c117 const struct rte_pci_device *pdev __rte_unused) in pci_device_iova_mode()
360 struct rte_pci_device_internal *pdev = NULL; in pci_scan_one() local
395 pdev = malloc(sizeof(*pdev)); in pci_scan_one()
396 if (pdev == NULL) { in pci_scan_one()
401 memset(pdev, 0, sizeof(*pdev)); in pci_scan_one()
402 dev = &pdev->device; in pci_scan_one()
437 pci_free(pdev); in pci_scan_one()
446 pci_free(pdev); in pci_scan_one()
/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/lib/vhost/
H A Dvhost_user.c62 int (*callback)(struct virtio_net **pdev, struct vhu_msg_context *ctx,
326 vhost_user_set_owner(struct virtio_net **pdev __rte_unused, in vhost_user_set_owner()
334 vhost_user_reset_owner(struct virtio_net **pdev, in vhost_user_reset_owner() argument
338 struct virtio_net *dev = *pdev; in vhost_user_reset_owner()
351 vhost_user_get_features(struct virtio_net **pdev, in vhost_user_get_features() argument
355 struct virtio_net *dev = *pdev; in vhost_user_get_features()
371 vhost_user_get_queue_num(struct virtio_net **pdev, in vhost_user_get_queue_num() argument
375 struct virtio_net *dev = *pdev; in vhost_user_get_queue_num()
391 vhost_user_set_features(struct virtio_net **pdev, in vhost_user_set_features() argument
395 struct virtio_net *dev = *pdev; in vhost_user_set_features()
481 vhost_user_set_vring_num(struct virtio_net ** pdev,struct vhu_msg_context * ctx,int main_fd __rte_unused) vhost_user_set_vring_num() argument
560 numa_realloc(struct virtio_net ** pdev,struct vhost_virtqueue ** pvq) numa_realloc() argument
733 numa_realloc(struct virtio_net ** pdev,struct vhost_virtqueue ** pvq) numa_realloc() argument
841 translate_ring_addresses(struct virtio_net ** pdev,struct vhost_virtqueue ** pvq) translate_ring_addresses() argument
974 vhost_user_set_vring_addr(struct virtio_net ** pdev,struct vhu_msg_context * ctx,int main_fd __rte_unused) vhost_user_set_vring_addr() argument
1020 vhost_user_set_vring_base(struct virtio_net ** pdev,struct vhu_msg_context * ctx,int main_fd __rte_unused) vhost_user_set_vring_base() argument
1385 vhost_user_set_mem_table(struct virtio_net ** pdev,struct vhu_msg_context * ctx,int main_fd) vhost_user_set_mem_table() argument
1678 vhost_user_get_inflight_fd(struct virtio_net ** pdev,struct vhu_msg_context * ctx,int main_fd __rte_unused) vhost_user_get_inflight_fd() argument
1779 vhost_user_set_inflight_fd(struct virtio_net ** pdev,struct vhu_msg_context * ctx,int main_fd __rte_unused) vhost_user_set_inflight_fd() argument
1889 vhost_user_set_vring_call(struct virtio_net ** pdev,struct vhu_msg_context * ctx,int main_fd __rte_unused) vhost_user_set_vring_call() argument
1926 vhost_user_set_vring_err(struct virtio_net ** pdev,struct vhu_msg_context * ctx,int main_fd __rte_unused) vhost_user_set_vring_err() argument
2140 vhost_user_set_vring_kick(struct virtio_net ** pdev,struct vhu_msg_context * ctx,int main_fd __rte_unused) vhost_user_set_vring_kick() argument
2208 vhost_user_get_vring_base(struct virtio_net ** pdev,struct vhu_msg_context * ctx,int main_fd __rte_unused) vhost_user_get_vring_base() argument
2286 vhost_user_set_vring_enable(struct virtio_net ** pdev,struct vhu_msg_context * ctx,int main_fd __rte_unused) vhost_user_set_vring_enable() argument
2316 vhost_user_get_protocol_features(struct virtio_net ** pdev,struct vhu_msg_context * ctx,int main_fd __rte_unused) vhost_user_get_protocol_features() argument
2333 vhost_user_set_protocol_features(struct virtio_net ** pdev,struct vhu_msg_context * ctx,int main_fd __rte_unused) vhost_user_set_protocol_features() argument
2357 vhost_user_set_log_base(struct virtio_net ** pdev,struct vhu_msg_context * ctx,int main_fd __rte_unused) vhost_user_set_log_base() argument
2454 vhost_user_set_log_fd(struct virtio_net ** pdev,struct vhu_msg_context * ctx,int main_fd __rte_unused) vhost_user_set_log_fd() argument
2478 vhost_user_send_rarp(struct virtio_net ** pdev,struct vhu_msg_context * ctx,int main_fd __rte_unused) vhost_user_send_rarp() argument
2507 vhost_user_net_set_mtu(struct virtio_net ** pdev,struct vhu_msg_context * ctx,int main_fd __rte_unused) vhost_user_net_set_mtu() argument
2528 vhost_user_set_req_fd(struct virtio_net ** pdev,struct vhu_msg_context * ctx,int main_fd __rte_unused) vhost_user_set_req_fd() argument
2628 vhost_user_get_config(struct virtio_net ** pdev,struct vhu_msg_context * ctx,int main_fd __rte_unused) vhost_user_get_config() argument
2660 vhost_user_set_config(struct virtio_net ** pdev,struct vhu_msg_context * ctx,int main_fd __rte_unused) vhost_user_set_config() argument
2702 vhost_user_iotlb_msg(struct virtio_net ** pdev,struct vhu_msg_context * ctx,int main_fd __rte_unused) vhost_user_iotlb_msg() argument
2762 vhost_user_set_postcopy_advise(struct virtio_net ** pdev,struct vhu_msg_context * ctx,int main_fd __rte_unused) vhost_user_set_postcopy_advise() argument
2801 vhost_user_set_postcopy_listen(struct virtio_net ** pdev,struct vhu_msg_context * ctx __rte_unused,int main_fd __rte_unused) vhost_user_set_postcopy_listen() argument
2818 vhost_user_postcopy_end(struct virtio_net ** pdev,struct vhu_msg_context * ctx,int main_fd __rte_unused) vhost_user_postcopy_end() argument
2838 vhost_user_get_status(struct virtio_net ** pdev,struct vhu_msg_context * ctx,int main_fd __rte_unused) vhost_user_get_status() argument
2852 vhost_user_set_status(struct virtio_net ** pdev,struct vhu_msg_context * ctx,int main_fd __rte_unused) vhost_user_set_status() argument
[all...]
/dpdk/drivers/vdpa/sfc/
H A Dsfc_vdpa.c29 sfc_vdpa_get_adapter_by_dev(struct rte_pci_device *pdev) in sfc_vdpa_get_adapter_by_dev() argument
37 if (pdev == sva->pdev) { in sfc_vdpa_get_adapter_by_dev()
71 struct rte_pci_device *dev = sva->pdev; in sfc_vdpa_vfio_setup()
133 rte_pci_unmap_device(sva->pdev); in sfc_vdpa_vfio_teardown()
152 struct rte_pci_device *pci_dev = sva->pdev; in sfc_vdpa_set_log_prefix()
206 struct rte_pci_device *pci_dev = sva->pdev; in sfc_vdpa_kvargs_parse()
263 sva->pdev = pci_dev; in sfc_vdpa_pci_probe()
H A Dsfc_vdpa.h53 struct rte_pci_device *pdev; member
86 sfc_vdpa_get_adapter_by_dev(struct rte_pci_device *pdev);
H A Dsfc_vdpa_hw.c28 int numa_node = sva->pdev->device.numa_node; in sfc_vdpa_dma_alloc()
33 sva->pdev->name, name); in sfc_vdpa_dma_alloc()
36 sva->pdev->name, name); in sfc_vdpa_dma_alloc()
190 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_mcdi.c59 logtype = sfc_vdpa_register_logtype(&(sva->pdev->addr), in sfc_vdpa_mcdi_init()
H A Dsfc_vdpa_ops.c115 pci_dev = sfc_vdpa_adapter_by_dev_handle(dev)->pdev; in sfc_vdpa_enable_vfio_intr()
862 pci_dev = sfc_vdpa_adapter_by_dev_handle(dev)->pdev; in sfc_vdpa_get_notify_area()
904 pci_dev = sfc_vdpa_adapter_by_dev_handle(dev_handle)->pdev; in sfc_vdpa_device_init()
/dpdk/drivers/bus/pci/bsd/
H A Dpci.c205 struct rte_pci_device_internal *pdev; in pci_scan_one() local
210 pdev = malloc(sizeof(*pdev)); in pci_scan_one()
211 if (pdev == NULL) { in pci_scan_one()
216 memset(pdev, 0, sizeof(*pdev)); in pci_scan_one()
217 dev = &pdev->device; in pci_scan_one()
303 pci_free(pdev); in pci_scan_one()
313 pci_free(pdev); in pci_scan_one()
389 const struct rte_pci_device *pdev) in pci_device_iova_mode() argument
391 if (pdev->kdrv != RTE_PCI_KDRV_NIC_UIO) in pci_device_iova_mode()
/dpdk/drivers/net/cxgbe/base/
H A Dadapter.h312 struct rte_pci_device *pdev; /* associated rte pci device */ member
537 if (rte_pci_write_config(adapter->pdev, &val32, sizeof(val32), in t4_os_pci_write_cfg4()
553 if (rte_pci_read_config(adapter->pdev, val, sizeof(*val), in t4_os_pci_read_cfg4()
571 if (rte_pci_write_config(adapter->pdev, &val16, sizeof(val16), in t4_os_pci_write_cfg2()
587 if (rte_pci_read_config(adapter->pdev, val, sizeof(*val), in t4_os_pci_read_cfg2()
603 if (rte_pci_read_config(adapter->pdev, val, sizeof(*val), in t4_os_pci_read_cfg()
617 if (!rte_pci_has_capability_list(adapter->pdev)) { in t4_os_find_pci_capability()
622 return rte_pci_find_capability(adapter->pdev, cap); in t4_os_find_pci_capability()
/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.c712 struct rte_pci_addr *loc = &adap->pdev->addr; in cxgbe_print_port_info()
802 struct rte_pci_device *pdev = adap->pdev; in cxgbe_get_devargs_int() local
807 if (!pdev) in cxgbe_get_devargs_int()
810 ret = cxgbe_get_devargs(pdev->device.devargs, key, &devarg_value); in cxgbe_get_devargs_int()
820 struct rte_pci_device *pdev = adap->pdev; in cxgbe_get_devargs_u32() local
825 if (!pdev) in cxgbe_get_devargs_u32()
828 ret = cxgbe_get_devargs(pdev->device.devargs, key, &devarg_value); in cxgbe_get_devargs_u32()
2184 CHELSIO_PCI_ID_VER(adapter->pdev->id.device_id)); in cxgbe_probe()
2231 adapter->bar2 = (void *)adapter->pdev->mem_resource[2].addr; in cxgbe_probe()
2247 adapter->pdev->device.name, i); in cxgbe_probe()
[all …]
H A Dcxgbevf_ethdev.c157 adapter->pdev = pci_dev; in eth_cxgbevf_dev_init()
H A Dcxgbe_ethdev.c1747 adapter->pdev = pci_dev; in eth_cxgbe_dev_init()
/dpdk/drivers/event/dlb2/pf/
H A Ddlb2_main.h33 struct rte_pci_device *pdev; member
59 struct dlb2_dev *dlb2_probe(struct rte_pci_device *pdev, const void *probe_args);
/dpdk/drivers/net/bonding/
H A Drte_eth_bond_args.c29 const struct rte_pci_device *pdev = RTE_DEV_TO_PCI_CONST(dev); in bond_pci_addr_cmp() local
32 return rte_pci_addr_cmp(&pdev->addr, paddr); in bond_pci_addr_cmp()
/dpdk/drivers/crypto/octeontx/
H A Dotx_cryptodev_hw_access.c369 otx_cpt_hw_init(struct cpt_vf *cptvf, void *pdev, void *reg_base, char *name) in otx_cpt_hw_init() argument
379 cptvf->pdev = pdev; in otx_cpt_hw_init()
/dpdk/drivers/net/hinic/base/
H A Dhinic_pmd_nicio.c756 struct rte_pci_device *pdev = hwdev->pcidev_hdl; in hinic_alloc_nicio() local
777 pdev->device.numa_node); in hinic_alloc_nicio()
/dpdk/doc/guides/rel_notes/
H A Drelease_16_04.rst228 * **Changed szedata2 driver type from vdev to pdev.**