Lines Matching refs:pci_dev
41 struct pci_dev *pci_dev = to_pci_dev(rt2x00dev->dev); in rt2x00pci_alloc_reg() local
43 rt2x00dev->csr.base = pci_ioremap_bar(pci_dev, 0); in rt2x00pci_alloc_reg()
65 int rt2x00pci_probe(struct pci_dev *pci_dev, const struct rt2x00_ops *ops) in rt2x00pci_probe() argument
72 retval = pci_enable_device(pci_dev); in rt2x00pci_probe()
78 retval = pci_request_regions(pci_dev, pci_name(pci_dev)); in rt2x00pci_probe()
84 pci_set_master(pci_dev); in rt2x00pci_probe()
86 if (pci_set_mwi(pci_dev)) in rt2x00pci_probe()
89 if (dma_set_mask(&pci_dev->dev, DMA_BIT_MASK(32))) { in rt2x00pci_probe()
102 pci_set_drvdata(pci_dev, hw); in rt2x00pci_probe()
105 rt2x00dev->dev = &pci_dev->dev; in rt2x00pci_probe()
108 rt2x00dev->irq = pci_dev->irq; in rt2x00pci_probe()
111 if (pci_is_pcie(pci_dev)) in rt2x00pci_probe()
125 pci_read_config_word(pci_dev, PCI_DEVICE_ID, &chip); in rt2x00pci_probe()
141 pci_clear_mwi(pci_dev); in rt2x00pci_probe()
142 pci_release_regions(pci_dev); in rt2x00pci_probe()
145 pci_disable_device(pci_dev); in rt2x00pci_probe()
151 void rt2x00pci_remove(struct pci_dev *pci_dev) in rt2x00pci_remove() argument
153 struct ieee80211_hw *hw = pci_get_drvdata(pci_dev); in rt2x00pci_remove()
166 pci_clear_mwi(pci_dev); in rt2x00pci_remove()
167 pci_disable_device(pci_dev); in rt2x00pci_remove()
168 pci_release_regions(pci_dev); in rt2x00pci_remove()