Home
last modified time | relevance | path

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

123

/f-stack/dpdk/drivers/event/dlb/pf/
H A Ddlb_main.c79 ret = rte_pci_read_config(pdev, &hdr, 2, pos); in dlb_pci_find_capability()
128 dlb_probe(struct rte_pci_device *pdev) in dlb_probe() argument
148 if (pdev->mem_resource[0].addr == NULL) { in dlb_probe()
159 pdev->mem_resource[0].len); in dlb_probe()
162 if (pdev->mem_resource[2].addr == NULL) { in dlb_probe()
173 pdev->mem_resource[2].len); in dlb_probe()
175 dlb_dev->pdev = pdev; in dlb_probe()
184 ret = dlb_mask_ur_err(pdev); in dlb_probe()
220 struct rte_pci_device *pdev = dlb_dev->pdev; in dlb_pf_reset() local
271 pri_cap_offset = rte_pci_find_ext_capability(pdev, in dlb_pf_reset()
[all …]
H A Ddlb_main.h24 struct rte_pci_device *pdev; member
38 struct dlb_dev *dlb_probe(struct rte_pci_device *pdev);
/f-stack/dpdk/drivers/event/dlb2/pf/
H A Ddlb2_main.c80 ret = rte_pci_read_config(pdev, &hdr, 2, pos); in dlb2_pci_find_capability()
140 dlb2_probe(struct rte_pci_device *pdev) in dlb2_probe() argument
160 if (pdev->mem_resource[0].addr == NULL) { in dlb2_probe()
171 (void *)(pdev->mem_resource[0].len)); in dlb2_probe()
174 if (pdev->mem_resource[2].addr == NULL) { in dlb2_probe()
185 (void *)(pdev->mem_resource[2].len)); in dlb2_probe()
187 dlb2_dev->pdev = pdev; in dlb2_probe()
253 struct rte_pci_device *pdev = dlb2_dev->pdev; in dlb2_pf_reset() local
451 ret = rte_pci_write_config(pdev, &tmp, 4, off); in dlb2_pf_reset()
462 ret = rte_pci_write_config(pdev, &tmp, 4, off); in dlb2_pf_reset()
[all …]
H A Ddlb2_main.h32 struct rte_pci_device *pdev; member
45 struct dlb2_dev *dlb2_probe(struct rte_pci_device *pdev);
/f-stack/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
/f-stack/dpdk/kernel/linux/igb_uio/
H A Dcompat.h78 pci_block_user_cfg_access(pdev); in pci_intx_mask_supported()
79 pci_read_config_word(pdev, PCI_COMMAND, &orig); in pci_intx_mask_supported()
80 pci_write_config_word(pdev, PCI_COMMAND, in pci_intx_mask_supported()
82 pci_read_config_word(pdev, PCI_COMMAND, &new); in pci_intx_mask_supported()
85 dev_err(&pdev->dev, "Command register changed from " in pci_intx_mask_supported()
89 pci_write_config_word(pdev, PCI_COMMAND, orig); in pci_intx_mask_supported()
91 pci_unblock_user_cfg_access(pdev); in pci_intx_mask_supported()
101 pci_block_user_cfg_access(pdev); in pci_check_and_mask_intx()
102 pci_read_config_dword(pdev, PCI_COMMAND, &status); in pci_check_and_mask_intx()
116 pci_write_config_word(pdev, PCI_COMMAND, new); in pci_check_and_mask_intx()
[all …]
H A Digb_uio.c41 struct pci_dev *pdev; member
69 pci_disable_sriov(pdev); in store_max_vfs()
70 else if (0 == pci_num_vf(pdev)) in store_max_vfs()
143 msi_list = &pdev->dev.msi_list; in igbuio_mask_irq()
145 msi_list = &pdev->msi_list; in igbuio_mask_irq()
175 struct pci_dev *pdev = udev->pdev; in igbuio_pci_irqcontrol() local
181 pci_cfg_access_lock(pdev); in igbuio_pci_irqcontrol()
195 pci_intx(pdev, !!irq_state); in igbuio_pci_irqcontrol()
197 pci_cfg_access_unlock(pdev); in igbuio_pci_irqcontrol()
317 pci_disable_msi(udev->pdev); in igbuio_pci_disable_interrupts()
[all …]
/f-stack/dpdk/drivers/bus/pci/
H A Dpci_common.c460 pdev = TAILQ_NEXT(pdev, next); in pci_find_device()
488 return pdev; in pci_find_device_by_addr()
502 if (!pdev) in pci_hot_unplug_handler()
505 switch (pdev->kdrv) { in pci_hot_unplug_handler()
541 if (!pdev) { in pci_sigbus_handler()
550 pdev->name); in pci_sigbus_handler()
574 free(pdev); in pci_unplug()
584 if (!pdev || !pdev->driver) { in pci_dma_map()
589 return pdev->driver->dma_map(pdev, addr, iova, len); in pci_dma_map()
607 if (!pdev || !pdev->driver) { in pci_dma_unmap()
[all …]
H A Dpci_params.c43 const struct rte_pci_device *pdev; in pci_dev_match() local
48 pdev = RTE_DEV_TO_PCI_CONST(dev); in pci_dev_match()
52 (void *)(intptr_t)&pdev->addr)) in pci_dev_match()
/f-stack/dpdk/lib/librte_vhost/
H A Dvhost_user.c247 struct virtio_net *dev = *pdev; in vhost_user_reset_owner()
266 struct virtio_net *dev = *pdev; in vhost_user_get_features()
288 struct virtio_net *dev = *pdev; in vhost_user_get_queue_num()
310 struct virtio_net *dev = *pdev; in vhost_user_set_features()
403 struct virtio_net *dev = *pdev; in vhost_user_set_vring_num()
796 struct virtio_net *dev = *pdev; in vhost_user_set_vring_addr()
827 *pdev = dev; in vhost_user_set_vring_addr()
841 struct virtio_net *dev = *pdev; in vhost_user_set_vring_base()
1262 dev = *pdev; in vhost_user_set_mem_table()
1266 *pdev = dev; in vhost_user_set_mem_table()
[all …]
/f-stack/dpdk/drivers/compress/octeontx/
H A Dotx_zip.c142 struct rte_pci_device *pdev = RTE_DEV_TO_PCI(compressdev->device); in zipvf_create() local
148 if (pdev->mem_resource[0].phys_addr == 0ULL) in zipvf_create()
151 vbar0 = pdev->mem_resource[0].addr; in zipvf_create()
166 zipvf->pdev = pdev; in zipvf_create()
/f-stack/freebsd/contrib/openzfs/contrib/intel_qat/patch/
H A D0001-pci_aer.diff13 @@ -304,7 +304,7 @@ static pci_ers_result_t adf_slot_reset(struct pci_dev *pdev)
17 - pci_cleanup_aer_uncorrect_error_status(pdev);
18 + pci_aer_clear_nonfatal_status(pdev);
/f-stack/dpdk/drivers/net/mlx5/
H A Dmlx5_mr.c303 pci_dev_to_eth_dev(struct rte_pci_device *pdev) in pci_dev_to_eth_dev() argument
307 port_id = rte_eth_find_next_of(0, &pdev->device); in pci_dev_to_eth_dev()
329 mlx5_dma_map(struct rte_pci_device *pdev, void *addr, in mlx5_dma_map() argument
337 dev = pci_dev_to_eth_dev(pdev); in mlx5_dma_map()
340 "to PCI device %p", (void *)pdev); in mlx5_dma_map()
378 mlx5_dma_unmap(struct rte_pci_device *pdev, void *addr, in mlx5_dma_unmap() argument
387 dev = pci_dev_to_eth_dev(pdev); in mlx5_dma_unmap()
390 "to PCI device %p", (void *)pdev); in mlx5_dma_unmap()
402 (void *)pdev); in mlx5_dma_unmap()
/f-stack/dpdk/drivers/net/bnxt/
H A Dbnxt_vnic.c120 struct rte_pci_device *pdev = bp->pdev; in bnxt_alloc_vnic_attributes() local
142 "bnxt_" PCI_PRI_FMT "_vnicattr", pdev->addr.domain, in bnxt_alloc_vnic_attributes()
143 pdev->addr.bus, pdev->addr.devid, pdev->addr.function); in bnxt_alloc_vnic_attributes()
H A Dbnxt_irq.c66 struct rte_intr_handle *intr_handle = &bp->pdev->intr_handle; in bnxt_free_int()
169 struct rte_intr_handle *intr_handle = &bp->pdev->intr_handle; in bnxt_request_int()
H A Dbnxt_ethdev.c588 struct rte_pci_device *pdev = bp->pdev; in bnxt_init_fc_ctx_mem() local
596 pdev->addr.bus, pdev->addr.devid, pdev->addr.function); in bnxt_init_fc_ctx_mem()
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()
3372 bp->pdev->addr.domain, bp->pdev->addr.bus, in bnxt_get_eeprom_length_op()
3373 bp->pdev->addr.devid, bp->pdev->addr.function); in bnxt_get_eeprom_length_op()
3396 bp->pdev->addr.domain, bp->pdev->addr.bus, in bnxt_get_eeprom_op()
3397 bp->pdev->addr.devid, bp->pdev->addr.function, in bnxt_get_eeprom_op()
3472 bp->pdev->addr.domain, bp->pdev->addr.bus, in bnxt_set_eeprom_op()
[all …]
/f-stack/freebsd/arm/nvidia/tegra124/
H A Dtegra124_coretemp.c200 device_t pdev; in tegra124_coretemp_attach() local
209 pdev = device_get_parent(dev); in tegra124_coretemp_attach()
218 SYSCTL_CHILDREN(device_get_sysctl_tree(pdev)), OID_AUTO, in tegra124_coretemp_attach()
225 SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(device_get_sysctl_tree(pdev)), in tegra124_coretemp_attach()
/f-stack/freebsd/arm64/nvidia/tegra210/
H A Dtegra210_coretemp.c205 device_t pdev; in tegra210_coretemp_attach() local
214 pdev = device_get_parent(dev); in tegra210_coretemp_attach()
223 SYSCTL_CHILDREN(device_get_sysctl_tree(pdev)), OID_AUTO, in tegra210_coretemp_attach()
229 SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(device_get_sysctl_tree(pdev)), in tegra210_coretemp_attach()
/f-stack/freebsd/kern/
H A Dkern_conf.c945 dev_dependsl(struct cdev *pdev, struct cdev *cdev) in dev_dependsl() argument
948 cdev->si_parent = pdev; in dev_dependsl()
950 LIST_INSERT_HEAD(&pdev->si_children, cdev, si_siblings); in dev_dependsl()
954 dev_depends(struct cdev *pdev, struct cdev *cdev) in dev_depends() argument
958 dev_dependsl(pdev, cdev); in dev_depends()
993 dev_dependsl(pdev, dev); in make_dev_alias_v()
1004 make_dev_alias(struct cdev *pdev, const char *fmt, ...) in make_dev_alias() argument
1027 res = make_dev_alias_v(flags, cdev, pdev, fmt, ap); in make_dev_alias_p()
1059 parentpath_len = strlen(pdev->si_name); in make_dev_physpath_alias()
1064 pdev->si_name, physpath, pdev->si_name); in make_dev_physpath_alias()
[all …]
/f-stack/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()
/f-stack/dpdk/drivers/net/fm10k/
H A Dfm10k_ethdev.c707 FM10K_WRITE_REG(hw, FM10K_RXINT(i), Q2V(pdev, i)); in fm10k_dev_rx_init()
709 FM10K_WRITE_REG(hw, FM10K_ITR(Q2V(pdev, i)), in fm10k_dev_rx_init()
713 FM10K_WRITE_REG(hw, FM10K_VFITR(Q2V(pdev, i)), in fm10k_dev_rx_init()
1181 FM10K_WRITE_REG(hw, FM10K_ITR(Q2V(pdev, i)), in fm10k_dev_stop()
1184 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()
2371 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 …]
/f-stack/dpdk/drivers/net/cxgbe/base/
H A Dadapter.h322 struct rte_pci_device *pdev; /* associated rte pci device */ member
562 if (rte_pci_write_config(adapter->pdev, &val32, sizeof(val32), in t4_os_pci_write_cfg4()
578 if (rte_pci_read_config(adapter->pdev, val, sizeof(*val), in t4_os_pci_read_cfg4()
596 if (rte_pci_write_config(adapter->pdev, &val16, sizeof(val16), in t4_os_pci_write_cfg2()
612 if (rte_pci_read_config(adapter->pdev, val, sizeof(*val), in t4_os_pci_read_cfg2()
628 if (rte_pci_read_config(adapter->pdev, val, sizeof(*val), in t4_os_pci_read_cfg()
/f-stack/dpdk/drivers/vdpa/ifc/
H A Difcvf_vdpa.c50 struct rte_pci_device *pdev; member
111 find_internal_resource_by_dev(struct rte_pci_device *pdev) in find_internal_resource_by_dev() argument
119 if (!rte_pci_addr_cmp(&pdev->addr, in find_internal_resource_by_dev()
120 &list->internal->pdev->addr)) { in find_internal_resource_by_dev()
137 struct rte_pci_device *dev = internal->pdev; in ifcvf_vfio_setup()
171 internal->pdev->mem_resource[i].addr; in ifcvf_vfio_setup()
173 internal->pdev->mem_resource[i].phys_addr; in ifcvf_vfio_setup()
175 internal->pdev->mem_resource[i].len; in ifcvf_vfio_setup()
1211 internal->pdev = pci_dev; in ifcvf_pci_probe()
1219 if (ifcvf_init_hw(&internal->hw, internal->pdev) < 0) { in ifcvf_pci_probe()
[all …]
/f-stack/freebsd/arm/ti/
H A Dti_scm_syscon.c94 sc = device_get_softc(syscon->pdev); in ti_scm_syscon_write_4()
108 sc = device_get_softc(syscon->pdev); in ti_scm_syscon_read_4()
122 sc = device_get_softc(syscon->pdev); in ti_scm_syscon_modify_4()

123