Lines Matching refs:pcidev
1078 static int via_sd_probe(struct pci_dev *pcidev, in via_sd_probe() argument
1089 pci_name(pcidev), (int)pcidev->vendor, (int)pcidev->device, in via_sd_probe()
1090 (int)pcidev->revision); in via_sd_probe()
1092 ret = pci_enable_device(pcidev); in via_sd_probe()
1096 ret = pci_request_regions(pcidev, DRV_NAME); in via_sd_probe()
1100 pci_write_config_byte(pcidev, VIA_CRDR_PCI_WORK_MODE, 0); in via_sd_probe()
1101 pci_write_config_byte(pcidev, VIA_CRDR_PCI_DBG_MODE, 0); in via_sd_probe()
1103 mmc = mmc_alloc_host(sizeof(struct via_crdr_mmc_host), &pcidev->dev); in via_sd_probe()
1111 dev_set_drvdata(&pcidev->dev, sdhost); in via_sd_probe()
1113 len = pci_resource_len(pcidev, 0); in via_sd_probe()
1114 base = pci_resource_start(pcidev, 0); in via_sd_probe()
1140 request_irq(pcidev->irq, via_sdc_isr, IRQF_SHARED, DRV_NAME, in via_sd_probe()
1151 if (pcidev->subsystem_vendor == PCI_VENDOR_ID_LENOVO && in via_sd_probe()
1152 pcidev->subsystem_device == 0x3891) in via_sd_probe()
1166 pci_release_regions(pcidev); in via_sd_probe()
1168 pci_disable_device(pcidev); in via_sd_probe()
1173 static void via_sd_remove(struct pci_dev *pcidev) in via_sd_remove() argument
1175 struct via_crdr_mmc_host *sdhost = pci_get_drvdata(pcidev); in via_sd_remove()
1203 free_irq(pcidev->irq, sdhost); in via_sd_remove()
1216 pci_release_regions(pcidev); in via_sd_remove()
1217 pci_disable_device(pcidev); in via_sd_remove()
1221 pci_name(pcidev), (int)pcidev->vendor, (int)pcidev->device); in via_sd_remove()