Lines Matching defs:ilo_hw
440 struct ilo_hwinfo *hw = data->ilo_hw;
490 struct ilo_hwinfo *hw = data->ilo_hw;
525 else if (ilo_pkt_recv(data->ilo_hw, driver_ccb))
590 data->ilo_hw = hw;
724 struct ilo_hwinfo *ilo_hw = pci_get_drvdata(pdev);
726 clear_device(ilo_hw);
728 minor = MINOR(ilo_hw->cdev.dev);
732 cdev_del(&ilo_hw->cdev);
733 ilo_disable_interrupts(ilo_hw);
734 free_irq(pdev->irq, ilo_hw);
735 ilo_unmap_device(pdev, ilo_hw);
738 kfree(ilo_hw);
746 struct ilo_hwinfo *ilo_hw;
763 ilo_hw = kzalloc(sizeof(*ilo_hw), GFP_KERNEL);
764 if (!ilo_hw)
767 ilo_hw->ilo_dev = pdev;
768 spin_lock_init(&ilo_hw->alloc_lock);
769 spin_lock_init(&ilo_hw->fifo_lock);
770 spin_lock_init(&ilo_hw->open_lock);
782 error = ilo_map_device(pdev, ilo_hw);
786 pci_set_drvdata(pdev, ilo_hw);
787 clear_device(ilo_hw);
789 error = request_irq(pdev->irq, ilo_isr, IRQF_SHARED, "hpilo", ilo_hw);
793 ilo_enable_interrupts(ilo_hw);
795 cdev_init(&ilo_hw->cdev, &ilo_fops);
796 ilo_hw->cdev.owner = THIS_MODULE;
798 error = cdev_add(&ilo_hw->cdev, MKDEV(ilo_major, start), MAX_CCB);
815 ilo_disable_interrupts(ilo_hw);
816 free_irq(pdev->irq, ilo_hw);
818 ilo_unmap_device(pdev, ilo_hw);
824 kfree(ilo_hw);