Lines Matching refs:ilo_hw
440 struct ilo_hwinfo *hw = data->ilo_hw; in ilo_read()
490 struct ilo_hwinfo *hw = data->ilo_hw; in ilo_write()
525 else if (ilo_pkt_recv(data->ilo_hw, driver_ccb)) in ilo_poll()
590 data->ilo_hw = hw; in ilo_open()
742 struct ilo_hwinfo *ilo_hw = pci_get_drvdata(pdev); in ilo_remove() local
744 if (!ilo_hw) in ilo_remove()
747 clear_device(ilo_hw); in ilo_remove()
749 minor = MINOR(ilo_hw->cdev.dev); in ilo_remove()
753 cdev_del(&ilo_hw->cdev); in ilo_remove()
754 ilo_disable_interrupts(ilo_hw); in ilo_remove()
755 free_irq(pdev->irq, ilo_hw); in ilo_remove()
756 ilo_unmap_device(pdev, ilo_hw); in ilo_remove()
766 kfree(ilo_hw); in ilo_remove()
774 struct ilo_hwinfo *ilo_hw; in ilo_probe() local
801 ilo_hw = kzalloc(sizeof(*ilo_hw), GFP_KERNEL); in ilo_probe()
802 if (!ilo_hw) in ilo_probe()
805 ilo_hw->ilo_dev = pdev; in ilo_probe()
806 spin_lock_init(&ilo_hw->alloc_lock); in ilo_probe()
807 spin_lock_init(&ilo_hw->fifo_lock); in ilo_probe()
808 spin_lock_init(&ilo_hw->open_lock); in ilo_probe()
820 error = ilo_map_device(pdev, ilo_hw); in ilo_probe()
824 pci_set_drvdata(pdev, ilo_hw); in ilo_probe()
825 clear_device(ilo_hw); in ilo_probe()
827 error = request_irq(pdev->irq, ilo_isr, IRQF_SHARED, "hpilo", ilo_hw); in ilo_probe()
831 ilo_enable_interrupts(ilo_hw); in ilo_probe()
833 cdev_init(&ilo_hw->cdev, &ilo_fops); in ilo_probe()
834 ilo_hw->cdev.owner = THIS_MODULE; in ilo_probe()
836 error = cdev_add(&ilo_hw->cdev, MKDEV(ilo_major, start), max_ccb); in ilo_probe()
853 ilo_disable_interrupts(ilo_hw); in ilo_probe()
854 free_irq(pdev->irq, ilo_hw); in ilo_probe()
856 ilo_unmap_device(pdev, ilo_hw); in ilo_probe()
862 kfree(ilo_hw); in ilo_probe()