Lines Matching refs:pcidev
59 io_handle->start = pci_resource_start(asd_ha->pcidev, i); in asd_map_memio()
60 io_handle->len = pci_resource_len(asd_ha->pcidev, i); in asd_map_memio()
61 io_handle->flags = pci_resource_flags(asd_ha->pcidev, i); in asd_map_memio()
65 i==0?0:1, pci_name(asd_ha->pcidev)); in asd_map_memio()
68 err = pci_request_region(asd_ha->pcidev, i, ASD_DRIVER_NAME); in asd_map_memio()
71 pci_name(asd_ha->pcidev)); in asd_map_memio()
77 pci_name(asd_ha->pcidev)); in asd_map_memio()
85 pci_release_region(asd_ha->pcidev, i); in asd_map_memio()
90 pci_release_region(asd_ha->pcidev, 0); in asd_map_memio()
101 pci_release_region(asd_ha->pcidev, 2); in asd_unmap_memio()
105 pci_release_region(asd_ha->pcidev, 0); in asd_unmap_memio()
114 io_handle->start = pci_resource_start(asd_ha->pcidev, i); in asd_map_ioport()
115 io_handle->len = pci_resource_len(asd_ha->pcidev, i); in asd_map_ioport()
116 io_handle->flags = pci_resource_flags(asd_ha->pcidev, i); in asd_map_ioport()
120 pci_name(asd_ha->pcidev)); in asd_map_ioport()
123 err = pci_request_region(asd_ha->pcidev, i, ASD_DRIVER_NAME); in asd_map_ioport()
126 pci_name(asd_ha->pcidev)); in asd_map_ioport()
134 pci_release_region(asd_ha->pcidev, PCI_IOBAR_OFFSET); in asd_unmap_ioport()
142 err = pci_read_config_word(asd_ha->pcidev, PCI_COMMAND, &cmd_reg); in asd_map_ha()
145 pci_name(asd_ha->pcidev)); in asd_map_ha()
157 pci_name(asd_ha->pcidev)); in asd_map_ha()
160 pci_name(asd_ha->pcidev)); in asd_map_ha()
187 asd_ha->revision_id = asd_ha->pcidev->revision; in asd_common_setup()
192 pci_name(asd_ha->pcidev), in asd_common_setup()
357 &asd_ha->pcidev->dev); in asd_store_update_bios()
367 if ((hdr_ptr->contrl_id.vendor != asd_ha->pcidev->vendor || in asd_store_update_bios()
368 hdr_ptr->contrl_id.device != asd_ha->pcidev->device) && in asd_store_update_bios()
369 (hdr_ptr->contrl_id.sub_vendor != asd_ha->pcidev->vendor || in asd_store_update_bios()
370 hdr_ptr->contrl_id.sub_device != asd_ha->pcidev->device)) { in asd_store_update_bios()
379 asd_ha->pcidev->vendor, in asd_store_update_bios()
380 asd_ha->pcidev->device); in asd_store_update_bios()
453 err = device_create_file(&asd_ha->pcidev->dev, &dev_attr_aic_revision); in asd_create_dev_attrs()
457 err = device_create_file(&asd_ha->pcidev->dev, &dev_attr_bios_build); in asd_create_dev_attrs()
461 err = device_create_file(&asd_ha->pcidev->dev, &dev_attr_pcba_sn); in asd_create_dev_attrs()
464 err = device_create_file(&asd_ha->pcidev->dev, &dev_attr_update_bios); in asd_create_dev_attrs()
471 device_remove_file(&asd_ha->pcidev->dev, &dev_attr_pcba_sn); in asd_create_dev_attrs()
473 device_remove_file(&asd_ha->pcidev->dev, &dev_attr_bios_build); in asd_create_dev_attrs()
475 device_remove_file(&asd_ha->pcidev->dev, &dev_attr_aic_revision); in asd_create_dev_attrs()
481 device_remove_file(&asd_ha->pcidev->dev, &dev_attr_aic_revision); in asd_remove_dev_attrs()
482 device_remove_file(&asd_ha->pcidev->dev, &dev_attr_bios_build); in asd_remove_dev_attrs()
483 device_remove_file(&asd_ha->pcidev->dev, &dev_attr_pcba_sn); in asd_remove_dev_attrs()
484 device_remove_file(&asd_ha->pcidev->dev, &dev_attr_update_bios); in asd_remove_dev_attrs()
509 &asd_ha->pcidev->dev, in asd_create_ha_caches()
718 asd_ha->pcidev = dev; in asd_pci_probe()
719 asd_ha->sas_ha.dev = &asd_ha->pcidev->dev; in asd_pci_probe()
776 pci_enable_msi(asd_ha->pcidev); in asd_pci_probe()
778 err = request_irq(asd_ha->pcidev->irq, asd_hw_isr, IRQF_SHARED, in asd_pci_probe()
782 asd_ha->pcidev->irq, pci_name(asd_ha->pcidev)); in asd_pci_probe()
790 pci_name(asd_ha->pcidev)); in asd_pci_probe()
891 pci_disable_msi(asd_ha->pcidev); in asd_pci_remove()