Lines Matching refs:ptp_qoriq
32 struct ptp_qoriq *ptp_qoriq; in enetc_ptp_probe() local
64 ptp_qoriq = kzalloc(sizeof(*ptp_qoriq), GFP_KERNEL); in enetc_ptp_probe()
65 if (!ptp_qoriq) { in enetc_ptp_probe()
86 ptp_qoriq->irq = pci_irq_vector(pdev, 0); in enetc_ptp_probe()
88 err = request_irq(ptp_qoriq->irq, ptp_qoriq_isr, 0, DRIVER, ptp_qoriq); in enetc_ptp_probe()
94 ptp_qoriq->dev = &pdev->dev; in enetc_ptp_probe()
96 err = ptp_qoriq_init(ptp_qoriq, base, &enetc_ptp_caps); in enetc_ptp_probe()
100 enetc_phc_index = ptp_qoriq->phc_index; in enetc_ptp_probe()
101 pci_set_drvdata(pdev, ptp_qoriq); in enetc_ptp_probe()
106 free_irq(ptp_qoriq->irq, ptp_qoriq); in enetc_ptp_probe()
112 kfree(ptp_qoriq); in enetc_ptp_probe()
124 struct ptp_qoriq *ptp_qoriq = pci_get_drvdata(pdev); in enetc_ptp_remove() local
127 ptp_qoriq_free(ptp_qoriq); in enetc_ptp_remove()
129 kfree(ptp_qoriq); in enetc_ptp_remove()