Searched refs:pdev (Results 1 – 4 of 4) sorted by relevance
| /devicemodel/hw/pci/ |
| A D | pci_util.c | 21 int pci_find_cap(struct pci_device *pdev, const int cap_id) in pci_find_cap() argument 26 pci_device_cfg_read_u16(pdev, &status, PCIR_STATUS); in pci_find_cap() 28 pci_device_cfg_read_u8(pdev, &cap_pos, PCIR_CAP_PTR); in pci_find_cap() 31 pci_device_cfg_read_u8(pdev, &cap_data, in pci_find_cap() 37 pci_device_cfg_read_u8(pdev, &cap_pos, in pci_find_cap() 46 int pci_find_ext_cap(struct pci_device *pdev, int cap_id) in pci_find_ext_cap() argument 55 pci_device_cfg_read_u32(pdev, &data, offset); in pci_find_ext_cap() 87 bool is_root_port(struct pci_device *pdev) in is_root_port() argument 91 pcie_type = pci_get_pcie_type(pdev); in is_root_port() 97 bool is_mfdev(struct pci_device *pdev) in is_mfdev() argument [all …]
|
| A D | ptm.c | 45 get_ptm_reg_value(struct pci_device *pdev, int reg) in get_ptm_reg_value() argument 50 pos = pci_find_ext_cap(pdev, PCIZ_PTM); in get_ptm_reg_value() 56 pci_device_cfg_read_u32(pdev, ®_val, pos + reg); in get_ptm_reg_value() 59 __func__, pdev->bus, pdev->dev, pdev->func, pos, reg_val); in get_ptm_reg_value()
|
| /devicemodel/include/ |
| A D | pci_util.h | 14 int pci_find_cap(struct pci_device *pdev, const int cap_id); 15 int pci_find_ext_cap(struct pci_device *pdev, int cap_id); 17 bool is_root_port(struct pci_device *pdev); 18 bool is_mfdev(struct pci_device *pdev);
|
| A D | ptm.h | 13 int ptm_probe(struct vmctx *ctx, struct passthru_dev *pdev, int *vrp_sec_bus);
|
Completed in 6 milliseconds