Lines Matching refs:qp
2139 struct quattro *qp = (struct quattro *) cookie; in quattro_sbus_interrupt() local
2143 struct net_device *dev = qp->happy_meals[i]; in quattro_sbus_interrupt()
2558 struct quattro *qp; in quattro_sbus_find() local
2561 qp = platform_get_drvdata(op); in quattro_sbus_find()
2562 if (qp) in quattro_sbus_find()
2563 return qp; in quattro_sbus_find()
2565 qp = kmalloc(sizeof(struct quattro), GFP_KERNEL); in quattro_sbus_find()
2566 if (qp != NULL) { in quattro_sbus_find()
2570 qp->happy_meals[i] = NULL; in quattro_sbus_find()
2572 qp->quattro_dev = child; in quattro_sbus_find()
2573 qp->next = qfe_sbus_list; in quattro_sbus_find()
2574 qfe_sbus_list = qp; in quattro_sbus_find()
2576 platform_set_drvdata(op, qp); in quattro_sbus_find()
2578 return qp; in quattro_sbus_find()
2587 struct quattro *qp; in quattro_sbus_register_irqs() local
2589 for (qp = qfe_sbus_list; qp != NULL; qp = qp->next) { in quattro_sbus_register_irqs()
2590 struct platform_device *op = qp->quattro_dev; in quattro_sbus_register_irqs()
2594 if (!qp->happy_meals[qfe_slot]) in quattro_sbus_register_irqs()
2603 qp); in quattro_sbus_register_irqs()
2616 struct quattro *qp; in quattro_sbus_free_irqs() local
2618 for (qp = qfe_sbus_list; qp != NULL; qp = qp->next) { in quattro_sbus_free_irqs()
2619 struct platform_device *op = qp->quattro_dev; in quattro_sbus_free_irqs()
2623 if (!qp->happy_meals[qfe_slot]) in quattro_sbus_free_irqs()
2629 free_irq(op->archdata.irqs[0], qp); in quattro_sbus_free_irqs()
2638 struct quattro *qp; in quattro_pci_find() local
2641 for (qp = qfe_pci_list; qp != NULL; qp = qp->next) { in quattro_pci_find()
2642 struct pci_dev *qpdev = qp->quattro_dev; in quattro_pci_find()
2645 return qp; in quattro_pci_find()
2647 qp = kmalloc(sizeof(struct quattro), GFP_KERNEL); in quattro_pci_find()
2648 if (qp != NULL) { in quattro_pci_find()
2652 qp->happy_meals[i] = NULL; in quattro_pci_find()
2654 qp->quattro_dev = bdev; in quattro_pci_find()
2655 qp->next = qfe_pci_list; in quattro_pci_find()
2656 qfe_pci_list = qp; in quattro_pci_find()
2659 qp->nranges = 0; in quattro_pci_find()
2661 return qp; in quattro_pci_find()
2681 struct quattro *qp = NULL; in happy_meal_sbus_probe_one() local
2694 qp = quattro_sbus_find(op); in happy_meal_sbus_probe_one()
2695 if (qp == NULL) in happy_meal_sbus_probe_one()
2698 if (qp->happy_meals[qfe_slot] == NULL) in happy_meal_sbus_probe_one()
2744 if (qp != NULL) { in happy_meal_sbus_probe_one()
2745 hp->qfe_parent = qp; in happy_meal_sbus_probe_one()
2747 qp->happy_meals[qfe_slot] = dev; in happy_meal_sbus_probe_one()
2795 if (qp != NULL) in happy_meal_sbus_probe_one()
2884 if (qp) in happy_meal_sbus_probe_one()
2885 qp->happy_meals[qfe_slot] = NULL; in happy_meal_sbus_probe_one()
2983 struct quattro *qp = NULL; in happy_meal_pci_probe() local
3013 qp = quattro_pci_find(pdev); in happy_meal_pci_probe()
3014 if (qp == NULL) in happy_meal_pci_probe()
3017 if (qp->happy_meals[qfe_slot] == NULL) in happy_meal_pci_probe()
3039 if (qp != NULL) { in happy_meal_pci_probe()
3040 hp->qfe_parent = qp; in happy_meal_pci_probe()
3042 qp->happy_meals[qfe_slot] = dev; in happy_meal_pci_probe()
3110 if (qp != NULL) in happy_meal_pci_probe()
3169 struct pci_dev *qpdev = qp->quattro_dev; in happy_meal_pci_probe()
3203 if (qp != NULL) in happy_meal_pci_probe()
3204 qp->happy_meals[qfe_slot] = NULL; in happy_meal_pci_probe()