Lines Matching refs:pcidev
73 io_handle->start = pci_resource_start(asd_ha->pcidev, i); in asd_map_memio()
74 io_handle->len = pci_resource_len(asd_ha->pcidev, i); in asd_map_memio()
75 io_handle->flags = pci_resource_flags(asd_ha->pcidev, i); in asd_map_memio()
79 i==0?0:1, pci_name(asd_ha->pcidev)); in asd_map_memio()
82 err = pci_request_region(asd_ha->pcidev, i, ASD_DRIVER_NAME); in asd_map_memio()
85 pci_name(asd_ha->pcidev)); in asd_map_memio()
91 pci_name(asd_ha->pcidev)); in asd_map_memio()
99 pci_release_region(asd_ha->pcidev, i); in asd_map_memio()
104 pci_release_region(asd_ha->pcidev, 0); in asd_map_memio()
115 pci_release_region(asd_ha->pcidev, 2); in asd_unmap_memio()
119 pci_release_region(asd_ha->pcidev, 0); in asd_unmap_memio()
128 io_handle->start = pci_resource_start(asd_ha->pcidev, i); in asd_map_ioport()
129 io_handle->len = pci_resource_len(asd_ha->pcidev, i); in asd_map_ioport()
130 io_handle->flags = pci_resource_flags(asd_ha->pcidev, i); in asd_map_ioport()
134 pci_name(asd_ha->pcidev)); in asd_map_ioport()
137 err = pci_request_region(asd_ha->pcidev, i, ASD_DRIVER_NAME); in asd_map_ioport()
140 pci_name(asd_ha->pcidev)); in asd_map_ioport()
148 pci_release_region(asd_ha->pcidev, PCI_IOBAR_OFFSET); in asd_unmap_ioport()
156 err = pci_read_config_word(asd_ha->pcidev, PCI_COMMAND, &cmd_reg); in asd_map_ha()
159 pci_name(asd_ha->pcidev)); in asd_map_ha()
171 pci_name(asd_ha->pcidev)); in asd_map_ha()
174 pci_name(asd_ha->pcidev)); in asd_map_ha()
201 asd_ha->revision_id = asd_ha->pcidev->revision; in asd_common_setup()
206 pci_name(asd_ha->pcidev), in asd_common_setup()
371 &asd_ha->pcidev->dev); in asd_store_update_bios()
381 if ((hdr_ptr->contrl_id.vendor != asd_ha->pcidev->vendor || in asd_store_update_bios()
382 hdr_ptr->contrl_id.device != asd_ha->pcidev->device) && in asd_store_update_bios()
383 (hdr_ptr->contrl_id.sub_vendor != asd_ha->pcidev->vendor || in asd_store_update_bios()
384 hdr_ptr->contrl_id.sub_device != asd_ha->pcidev->device)) { in asd_store_update_bios()
393 asd_ha->pcidev->vendor, in asd_store_update_bios()
394 asd_ha->pcidev->device); in asd_store_update_bios()
467 err = device_create_file(&asd_ha->pcidev->dev, &dev_attr_aic_revision); in asd_create_dev_attrs()
471 err = device_create_file(&asd_ha->pcidev->dev, &dev_attr_bios_build); in asd_create_dev_attrs()
475 err = device_create_file(&asd_ha->pcidev->dev, &dev_attr_pcba_sn); in asd_create_dev_attrs()
478 err = device_create_file(&asd_ha->pcidev->dev, &dev_attr_update_bios); in asd_create_dev_attrs()
485 device_remove_file(&asd_ha->pcidev->dev, &dev_attr_pcba_sn); in asd_create_dev_attrs()
487 device_remove_file(&asd_ha->pcidev->dev, &dev_attr_bios_build); in asd_create_dev_attrs()
489 device_remove_file(&asd_ha->pcidev->dev, &dev_attr_aic_revision); in asd_create_dev_attrs()
495 device_remove_file(&asd_ha->pcidev->dev, &dev_attr_aic_revision); in asd_remove_dev_attrs()
496 device_remove_file(&asd_ha->pcidev->dev, &dev_attr_bios_build); in asd_remove_dev_attrs()
497 device_remove_file(&asd_ha->pcidev->dev, &dev_attr_pcba_sn); in asd_remove_dev_attrs()
498 device_remove_file(&asd_ha->pcidev->dev, &dev_attr_update_bios); in asd_remove_dev_attrs()
523 &asd_ha->pcidev->dev, in asd_create_ha_caches()
733 asd_ha->pcidev = dev; in asd_pci_probe()
734 asd_ha->sas_ha.dev = &asd_ha->pcidev->dev; in asd_pci_probe()
791 pci_enable_msi(asd_ha->pcidev); in asd_pci_probe()
793 err = request_irq(asd_ha->pcidev->irq, asd_hw_isr, IRQF_SHARED, in asd_pci_probe()
797 asd_ha->pcidev->irq, pci_name(asd_ha->pcidev)); in asd_pci_probe()
805 pci_name(asd_ha->pcidev)); in asd_pci_probe()
906 pci_disable_msi(asd_ha->pcidev); in asd_pci_remove()