Lines Matching refs:pci_dev
157 struct pci_dev *pci_dev = to_pci_dev(ab->dev); in ath11k_pci_get_msi_irq() local
159 return pci_irq_vector(pci_dev, vector); in ath11k_pci_get_msi_irq()
420 struct pci_dev *dev = ab_pci->pdev; in ath11k_pci_msi_config()
447 struct pci_dev *pci_dev = ab_pci->pdev; in ath11k_pci_alloc_msi() local
452 num_vectors = pci_alloc_irq_vectors(pci_dev, in ath11k_pci_alloc_msi()
484 pci_read_config_dword(pci_dev, pci_dev->msi_cap + PCI_MSI_ADDRESS_LO, in ath11k_pci_alloc_msi()
488 pci_read_config_dword(pci_dev, pci_dev->msi_cap + PCI_MSI_ADDRESS_HI, in ath11k_pci_alloc_msi()
529 static int ath11k_pci_claim(struct ath11k_pci *ab_pci, struct pci_dev *pdev) in ath11k_pci_claim()
595 struct pci_dev *pci_dev = ab_pci->pdev; in ath11k_pci_free_region() local
597 pci_iounmap(pci_dev, ab->mem); in ath11k_pci_free_region()
599 pci_release_region(pci_dev, ATH11K_PCI_BAR_NUM); in ath11k_pci_free_region()
600 if (pci_is_enabled(pci_dev)) in ath11k_pci_free_region()
601 pci_disable_device(pci_dev); in ath11k_pci_free_region()
762 static int ath11k_pci_probe(struct pci_dev *pdev, in ath11k_pci_probe()
763 const struct pci_device_id *pci_dev) in ath11k_pci_probe() argument
785 ab_pci->dev_id = pci_dev->device; in ath11k_pci_probe()
818 switch (pci_dev->device) { in ath11k_pci_probe()
870 pci_dev->device); in ath11k_pci_probe()
973 static void ath11k_pci_remove(struct pci_dev *pdev) in ath11k_pci_remove()
1003 static void ath11k_pci_shutdown(struct pci_dev *pdev) in ath11k_pci_shutdown()