Lines Matching refs:pci_dev

58 	struct pci_dev *pci_dev = to_pci_dev(fn->dev.parent);
68 dev_err(&pci_dev->dev, "Can't allocate %d actags for AFU: %d\n",
75 ocxl_config_set_afu_actag(pci_dev, afu->config.dvsec_afu_control_pos,
77 dev_dbg(&pci_dev->dev, "actag base=%d enabled=%d\n",
96 struct pci_dev *pci_dev = to_pci_dev(fn->dev.parent);
105 dev_err(&pci_dev->dev, "Can't allocate %d PASIDs for AFU: %d\n",
113 ocxl_config_set_afu_pasid(pci_dev, afu->config.dvsec_afu_control_pos,
116 dev_dbg(&pci_dev->dev, "PASID base=%d, enabled=%d\n",
133 struct pci_dev *dev = to_pci_dev(fn->dev.parent);
150 struct pci_dev *dev = to_pci_dev(fn->dev.parent);
165 struct pci_dev *pci_dev = to_pci_dev(afu->fn->dev.parent);
178 pci_resource_start(pci_dev, afu->config.global_mmio_bar) +
181 pci_resource_start(pci_dev, afu->config.pp_mmio_bar) +
189 dev_err(&pci_dev->dev, "Error mapping global mmio area\n");
213 static int configure_afu(struct ocxl_afu *afu, u8 afu_idx, struct pci_dev *dev)
249 static int activate_afu(struct pci_dev *dev, struct ocxl_afu *afu)
258 struct pci_dev *dev = to_pci_dev(afu->fn->dev.parent);
263 static int init_afu(struct pci_dev *dev, struct ocxl_fn *fn, u8 afu_idx)
328 static int set_function_device(struct ocxl_fn *fn, struct pci_dev *dev)
337 struct pci_dev *dev = to_pci_dev(fn->dev.parent);
358 struct pci_dev *dev = to_pci_dev(fn->dev.parent);
382 static int configure_function(struct ocxl_fn *fn, struct pci_dev *dev)
443 struct pci_dev *dev = to_pci_dev(fn->dev.parent);
449 static struct ocxl_fn *init_function(struct pci_dev *dev)
475 struct ocxl_fn *ocxl_function_open(struct pci_dev *dev)