Lines Matching refs:pdev

59 	struct pci_dev *pdev;
63 pdev = kmem_zalloc(sizeof(struct pci_dev), KM_NOSLEEP);
64 if (!pdev)
68 ret = pci_config_setup(dip, &pdev->pci_cfg_acc_handle);
75 pdev->domain = 0;
84 pdev->bus = (int)PCI_BUS(regs[0]);
85 pdev->slot = (int)PCI_SLOT(regs[0]);
86 pdev->func = (int)PCI_FUNC(regs[0]);
97 pdev->irq = pci_config_get8(pdev->pci_cfg_acc_handle, PCI_CONF_ILINE);
105 &pdev->intr_block) != DDI_SUCCESS) {
118 pdev->regions[i].start =
120 pdev->regions[i].size =
126 pdev->vendor = ddi_prop_get_int(DDI_DEV_T_ANY,
128 pdev->device = ddi_prop_get_int(DDI_DEV_T_ANY,
131 pdev->dev = dev;
132 return pdev;
137 pci_config_teardown(&pdev->pci_cfg_acc_handle);
139 kmem_free(pdev, sizeof(struct pci_dev));
143 void pci_dev_destroy(struct pci_dev *pdev)
145 pci_config_teardown(&pdev->pci_cfg_acc_handle);
146 kmem_free(pdev, sizeof(struct pci_dev));
149 void pci_read_config_byte(struct pci_dev *pdev, int where, u8 *val)
151 *val = pci_config_get8(pdev->pci_cfg_acc_handle, where);
154 void pci_read_config_word(struct pci_dev *pdev, int where, u16 *val)
156 *val = pci_config_get16(pdev->pci_cfg_acc_handle, where);
159 void pci_read_config_dword(struct pci_dev *pdev, int where, u32 *val)
161 *val = pci_config_get32(pdev->pci_cfg_acc_handle, where);
164 void pci_write_config_byte(struct pci_dev *pdev, int where, u8 val)
166 pci_config_put8(pdev->pci_cfg_acc_handle, where, val);
169 void pci_write_config_word(struct pci_dev *pdev, int where, u16 val)
171 pci_config_put16(pdev->pci_cfg_acc_handle, where, val);
174 void pci_write_config_dword(struct pci_dev *pdev, int where, u32 val)
176 pci_config_put32(pdev->pci_cfg_acc_handle, where, val);
180 u8* pci_map_rom(struct pci_dev *pdev, size_t *size)
191 void pci_unmap_rom(struct pci_dev *pdev, u8 *base)
196 int pci_find_capability(struct pci_dev *pdev, int capid)
202 if ((pci_config_get16(pdev->pci_cfg_acc_handle,
207 pdev->pci_cfg_acc_handle, PCI_CONF_CAP_PTR);
210 pdev->pci_cfg_acc_handle, caps_ptr);
214 pdev->pci_cfg_acc_handle,