ptp_qoriq         504 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c 	struct ptp_qoriq *ptp = NULL;
ptp_qoriq          19 drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c 	struct ptp_qoriq *ptp_qoriq = container_of(ptp, struct ptp_qoriq, caps);
ptp_qoriq          26 drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c 	dev = ptp_qoriq->dev;
ptp_qoriq          77 drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c 	struct ptp_qoriq *ptp_qoriq = priv;
ptp_qoriq          84 drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c 	dev = ptp_qoriq->dev;
ptp_qoriq          96 drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c 		ptp_clock_event(ptp_qoriq->clock, &event);
ptp_qoriq         113 drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c 	struct ptp_qoriq *ptp_qoriq;
ptp_qoriq         118 drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c 	ptp_qoriq = devm_kzalloc(dev, sizeof(*ptp_qoriq), GFP_KERNEL);
ptp_qoriq         119 drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c 	if (!ptp_qoriq)
ptp_qoriq         138 drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c 	ptp_qoriq->dev = dev;
ptp_qoriq         161 drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c 	ptp_qoriq->irq = irq->msi_desc->irq;
ptp_qoriq         163 drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c 	err = request_threaded_irq(ptp_qoriq->irq, NULL,
ptp_qoriq         166 drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c 				   dev_name(dev), ptp_qoriq);
ptp_qoriq         179 drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c 	err = ptp_qoriq_init(ptp_qoriq, base, &dpaa2_ptp_caps);
ptp_qoriq         183 drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c 	dpaa2_phc_index = ptp_qoriq->phc_index;
ptp_qoriq         184 drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c 	dev_set_drvdata(dev, ptp_qoriq);
ptp_qoriq         189 drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c 	free_irq(ptp_qoriq->irq, ptp_qoriq);
ptp_qoriq         205 drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c 	struct ptp_qoriq *ptp_qoriq;
ptp_qoriq         207 drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c 	ptp_qoriq = dev_get_drvdata(dev);
ptp_qoriq         210 drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c 	ptp_qoriq_free(ptp_qoriq);
ptp_qoriq          32 drivers/net/ethernet/freescale/enetc/enetc_ptp.c 	struct ptp_qoriq *ptp_qoriq;
ptp_qoriq          66 drivers/net/ethernet/freescale/enetc/enetc_ptp.c 	ptp_qoriq = kzalloc(sizeof(*ptp_qoriq), GFP_KERNEL);
ptp_qoriq          67 drivers/net/ethernet/freescale/enetc/enetc_ptp.c 	if (!ptp_qoriq) {
ptp_qoriq          88 drivers/net/ethernet/freescale/enetc/enetc_ptp.c 	ptp_qoriq->irq = pci_irq_vector(pdev, 0);
ptp_qoriq          90 drivers/net/ethernet/freescale/enetc/enetc_ptp.c 	err = request_irq(ptp_qoriq->irq, ptp_qoriq_isr, 0, DRIVER, ptp_qoriq);
ptp_qoriq          96 drivers/net/ethernet/freescale/enetc/enetc_ptp.c 	ptp_qoriq->dev = &pdev->dev;
ptp_qoriq          98 drivers/net/ethernet/freescale/enetc/enetc_ptp.c 	err = ptp_qoriq_init(ptp_qoriq, base, &enetc_ptp_caps);
ptp_qoriq         102 drivers/net/ethernet/freescale/enetc/enetc_ptp.c 	enetc_phc_index = ptp_qoriq->phc_index;
ptp_qoriq         103 drivers/net/ethernet/freescale/enetc/enetc_ptp.c 	pci_set_drvdata(pdev, ptp_qoriq);
ptp_qoriq         108 drivers/net/ethernet/freescale/enetc/enetc_ptp.c 	free_irq(ptp_qoriq->irq, ptp_qoriq);
ptp_qoriq         114 drivers/net/ethernet/freescale/enetc/enetc_ptp.c 	kfree(ptp_qoriq);
ptp_qoriq         126 drivers/net/ethernet/freescale/enetc/enetc_ptp.c 	struct ptp_qoriq *ptp_qoriq = pci_get_drvdata(pdev);
ptp_qoriq         129 drivers/net/ethernet/freescale/enetc/enetc_ptp.c 	ptp_qoriq_free(ptp_qoriq);
ptp_qoriq         131 drivers/net/ethernet/freescale/enetc/enetc_ptp.c 	kfree(ptp_qoriq);
ptp_qoriq        1479 drivers/net/ethernet/freescale/gianfar_ethtool.c 	struct ptp_qoriq *ptp = NULL;
ptp_qoriq          27 drivers/ptp/ptp_qoriq.c static u64 tmr_cnt_read(struct ptp_qoriq *ptp_qoriq)
ptp_qoriq          29 drivers/ptp/ptp_qoriq.c 	struct ptp_qoriq_registers *regs = &ptp_qoriq->regs;
ptp_qoriq          33 drivers/ptp/ptp_qoriq.c 	lo = ptp_qoriq->read(&regs->ctrl_regs->tmr_cnt_l);
ptp_qoriq          34 drivers/ptp/ptp_qoriq.c 	hi = ptp_qoriq->read(&regs->ctrl_regs->tmr_cnt_h);
ptp_qoriq          41 drivers/ptp/ptp_qoriq.c static void tmr_cnt_write(struct ptp_qoriq *ptp_qoriq, u64 ns)
ptp_qoriq          43 drivers/ptp/ptp_qoriq.c 	struct ptp_qoriq_registers *regs = &ptp_qoriq->regs;
ptp_qoriq          47 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->write(&regs->ctrl_regs->tmr_cnt_l, lo);
ptp_qoriq          48 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->write(&regs->ctrl_regs->tmr_cnt_h, hi);
ptp_qoriq          52 drivers/ptp/ptp_qoriq.c static void set_alarm(struct ptp_qoriq *ptp_qoriq)
ptp_qoriq          54 drivers/ptp/ptp_qoriq.c 	struct ptp_qoriq_registers *regs = &ptp_qoriq->regs;
ptp_qoriq          58 drivers/ptp/ptp_qoriq.c 	ns = tmr_cnt_read(ptp_qoriq) + 1500000000ULL;
ptp_qoriq          60 drivers/ptp/ptp_qoriq.c 	ns -= ptp_qoriq->tclk_period;
ptp_qoriq          63 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->write(&regs->alarm_regs->tmr_alarm1_l, lo);
ptp_qoriq          64 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->write(&regs->alarm_regs->tmr_alarm1_h, hi);
ptp_qoriq          68 drivers/ptp/ptp_qoriq.c static void set_fipers(struct ptp_qoriq *ptp_qoriq)
ptp_qoriq          70 drivers/ptp/ptp_qoriq.c 	struct ptp_qoriq_registers *regs = &ptp_qoriq->regs;
ptp_qoriq          72 drivers/ptp/ptp_qoriq.c 	set_alarm(ptp_qoriq);
ptp_qoriq          73 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->write(&regs->fiper_regs->tmr_fiper1, ptp_qoriq->tmr_fiper1);
ptp_qoriq          74 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->write(&regs->fiper_regs->tmr_fiper2, ptp_qoriq->tmr_fiper2);
ptp_qoriq          77 drivers/ptp/ptp_qoriq.c static int extts_clean_up(struct ptp_qoriq *ptp_qoriq, int index,
ptp_qoriq          80 drivers/ptp/ptp_qoriq.c 	struct ptp_qoriq_registers *regs = &ptp_qoriq->regs;
ptp_qoriq         105 drivers/ptp/ptp_qoriq.c 		lo = ptp_qoriq->read(reg_etts_l);
ptp_qoriq         106 drivers/ptp/ptp_qoriq.c 		hi = ptp_qoriq->read(reg_etts_h);
ptp_qoriq         111 drivers/ptp/ptp_qoriq.c 			ptp_clock_event(ptp_qoriq->clock, &event);
ptp_qoriq         114 drivers/ptp/ptp_qoriq.c 		stat = ptp_qoriq->read(&regs->ctrl_regs->tmr_stat);
ptp_qoriq         115 drivers/ptp/ptp_qoriq.c 	} while (ptp_qoriq->extts_fifo_support && (stat & valid));
ptp_qoriq         126 drivers/ptp/ptp_qoriq.c 	struct ptp_qoriq *ptp_qoriq = priv;
ptp_qoriq         127 drivers/ptp/ptp_qoriq.c 	struct ptp_qoriq_registers *regs = &ptp_qoriq->regs;
ptp_qoriq         132 drivers/ptp/ptp_qoriq.c 	spin_lock(&ptp_qoriq->lock);
ptp_qoriq         134 drivers/ptp/ptp_qoriq.c 	val = ptp_qoriq->read(&regs->ctrl_regs->tmr_tevent);
ptp_qoriq         135 drivers/ptp/ptp_qoriq.c 	mask = ptp_qoriq->read(&regs->ctrl_regs->tmr_temask);
ptp_qoriq         137 drivers/ptp/ptp_qoriq.c 	spin_unlock(&ptp_qoriq->lock);
ptp_qoriq         143 drivers/ptp/ptp_qoriq.c 		extts_clean_up(ptp_qoriq, 0, true);
ptp_qoriq         148 drivers/ptp/ptp_qoriq.c 		extts_clean_up(ptp_qoriq, 1, true);
ptp_qoriq         153 drivers/ptp/ptp_qoriq.c 		if (ptp_qoriq->alarm_value) {
ptp_qoriq         156 drivers/ptp/ptp_qoriq.c 			event.timestamp = ptp_qoriq->alarm_value;
ptp_qoriq         157 drivers/ptp/ptp_qoriq.c 			ptp_clock_event(ptp_qoriq->clock, &event);
ptp_qoriq         159 drivers/ptp/ptp_qoriq.c 		if (ptp_qoriq->alarm_interval) {
ptp_qoriq         160 drivers/ptp/ptp_qoriq.c 			ns = ptp_qoriq->alarm_value + ptp_qoriq->alarm_interval;
ptp_qoriq         163 drivers/ptp/ptp_qoriq.c 			ptp_qoriq->write(&regs->alarm_regs->tmr_alarm2_l, lo);
ptp_qoriq         164 drivers/ptp/ptp_qoriq.c 			ptp_qoriq->write(&regs->alarm_regs->tmr_alarm2_h, hi);
ptp_qoriq         165 drivers/ptp/ptp_qoriq.c 			ptp_qoriq->alarm_value = ns;
ptp_qoriq         167 drivers/ptp/ptp_qoriq.c 			spin_lock(&ptp_qoriq->lock);
ptp_qoriq         168 drivers/ptp/ptp_qoriq.c 			mask = ptp_qoriq->read(&regs->ctrl_regs->tmr_temask);
ptp_qoriq         170 drivers/ptp/ptp_qoriq.c 			ptp_qoriq->write(&regs->ctrl_regs->tmr_temask, mask);
ptp_qoriq         171 drivers/ptp/ptp_qoriq.c 			spin_unlock(&ptp_qoriq->lock);
ptp_qoriq         172 drivers/ptp/ptp_qoriq.c 			ptp_qoriq->alarm_value = 0;
ptp_qoriq         173 drivers/ptp/ptp_qoriq.c 			ptp_qoriq->alarm_interval = 0;
ptp_qoriq         180 drivers/ptp/ptp_qoriq.c 		ptp_clock_event(ptp_qoriq->clock, &event);
ptp_qoriq         184 drivers/ptp/ptp_qoriq.c 		ptp_qoriq->write(&regs->ctrl_regs->tmr_tevent, ack);
ptp_qoriq         200 drivers/ptp/ptp_qoriq.c 	struct ptp_qoriq *ptp_qoriq = container_of(ptp, struct ptp_qoriq, caps);
ptp_qoriq         201 drivers/ptp/ptp_qoriq.c 	struct ptp_qoriq_registers *regs = &ptp_qoriq->regs;
ptp_qoriq         207 drivers/ptp/ptp_qoriq.c 	tmr_add = ptp_qoriq->tmr_add;
ptp_qoriq         219 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->write(&regs->ctrl_regs->tmr_add, tmr_add);
ptp_qoriq         229 drivers/ptp/ptp_qoriq.c 	struct ptp_qoriq *ptp_qoriq = container_of(ptp, struct ptp_qoriq, caps);
ptp_qoriq         231 drivers/ptp/ptp_qoriq.c 	spin_lock_irqsave(&ptp_qoriq->lock, flags);
ptp_qoriq         233 drivers/ptp/ptp_qoriq.c 	now = tmr_cnt_read(ptp_qoriq);
ptp_qoriq         235 drivers/ptp/ptp_qoriq.c 	tmr_cnt_write(ptp_qoriq, now);
ptp_qoriq         236 drivers/ptp/ptp_qoriq.c 	set_fipers(ptp_qoriq);
ptp_qoriq         238 drivers/ptp/ptp_qoriq.c 	spin_unlock_irqrestore(&ptp_qoriq->lock, flags);
ptp_qoriq         248 drivers/ptp/ptp_qoriq.c 	struct ptp_qoriq *ptp_qoriq = container_of(ptp, struct ptp_qoriq, caps);
ptp_qoriq         250 drivers/ptp/ptp_qoriq.c 	spin_lock_irqsave(&ptp_qoriq->lock, flags);
ptp_qoriq         252 drivers/ptp/ptp_qoriq.c 	ns = tmr_cnt_read(ptp_qoriq);
ptp_qoriq         254 drivers/ptp/ptp_qoriq.c 	spin_unlock_irqrestore(&ptp_qoriq->lock, flags);
ptp_qoriq         267 drivers/ptp/ptp_qoriq.c 	struct ptp_qoriq *ptp_qoriq = container_of(ptp, struct ptp_qoriq, caps);
ptp_qoriq         271 drivers/ptp/ptp_qoriq.c 	spin_lock_irqsave(&ptp_qoriq->lock, flags);
ptp_qoriq         273 drivers/ptp/ptp_qoriq.c 	tmr_cnt_write(ptp_qoriq, ns);
ptp_qoriq         274 drivers/ptp/ptp_qoriq.c 	set_fipers(ptp_qoriq);
ptp_qoriq         276 drivers/ptp/ptp_qoriq.c 	spin_unlock_irqrestore(&ptp_qoriq->lock, flags);
ptp_qoriq         285 drivers/ptp/ptp_qoriq.c 	struct ptp_qoriq *ptp_qoriq = container_of(ptp, struct ptp_qoriq, caps);
ptp_qoriq         286 drivers/ptp/ptp_qoriq.c 	struct ptp_qoriq_registers *regs = &ptp_qoriq->regs;
ptp_qoriq         304 drivers/ptp/ptp_qoriq.c 			extts_clean_up(ptp_qoriq, rq->extts.index, false);
ptp_qoriq         314 drivers/ptp/ptp_qoriq.c 	spin_lock_irqsave(&ptp_qoriq->lock, flags);
ptp_qoriq         316 drivers/ptp/ptp_qoriq.c 	mask = ptp_qoriq->read(&regs->ctrl_regs->tmr_temask);
ptp_qoriq         319 drivers/ptp/ptp_qoriq.c 		ptp_qoriq->write(&regs->ctrl_regs->tmr_tevent, bit);
ptp_qoriq         324 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->write(&regs->ctrl_regs->tmr_temask, mask);
ptp_qoriq         326 drivers/ptp/ptp_qoriq.c 	spin_unlock_irqrestore(&ptp_qoriq->lock, flags);
ptp_qoriq         395 drivers/ptp/ptp_qoriq.c static int ptp_qoriq_auto_config(struct ptp_qoriq *ptp_qoriq,
ptp_qoriq         405 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->cksel = DEFAULT_CKSEL;
ptp_qoriq         422 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->tclk_period = 1000000000UL / nominal_freq;
ptp_qoriq         423 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->tmr_prsc = DEFAULT_TMR_PRSC;
ptp_qoriq         434 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->tmr_add = freq_comp;
ptp_qoriq         435 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->tmr_fiper1 = DEFAULT_FIPER1_PERIOD - ptp_qoriq->tclk_period;
ptp_qoriq         436 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->tmr_fiper2 = DEFAULT_FIPER2_PERIOD - ptp_qoriq->tclk_period;
ptp_qoriq         443 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->caps.max_adj = max_adj;
ptp_qoriq         448 drivers/ptp/ptp_qoriq.c int ptp_qoriq_init(struct ptp_qoriq *ptp_qoriq, void __iomem *base,
ptp_qoriq         451 drivers/ptp/ptp_qoriq.c 	struct device_node *node = ptp_qoriq->dev->of_node;
ptp_qoriq         460 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->base = base;
ptp_qoriq         461 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->caps = *caps;
ptp_qoriq         463 drivers/ptp/ptp_qoriq.c 	if (of_property_read_u32(node, "fsl,cksel", &ptp_qoriq->cksel))
ptp_qoriq         464 drivers/ptp/ptp_qoriq.c 		ptp_qoriq->cksel = DEFAULT_CKSEL;
ptp_qoriq         467 drivers/ptp/ptp_qoriq.c 		ptp_qoriq->extts_fifo_support = true;
ptp_qoriq         469 drivers/ptp/ptp_qoriq.c 		ptp_qoriq->extts_fifo_support = false;
ptp_qoriq         472 drivers/ptp/ptp_qoriq.c 				 "fsl,tclk-period", &ptp_qoriq->tclk_period) ||
ptp_qoriq         474 drivers/ptp/ptp_qoriq.c 				 "fsl,tmr-prsc", &ptp_qoriq->tmr_prsc) ||
ptp_qoriq         476 drivers/ptp/ptp_qoriq.c 				 "fsl,tmr-add", &ptp_qoriq->tmr_add) ||
ptp_qoriq         478 drivers/ptp/ptp_qoriq.c 				 "fsl,tmr-fiper1", &ptp_qoriq->tmr_fiper1) ||
ptp_qoriq         480 drivers/ptp/ptp_qoriq.c 				 "fsl,tmr-fiper2", &ptp_qoriq->tmr_fiper2) ||
ptp_qoriq         482 drivers/ptp/ptp_qoriq.c 				 "fsl,max-adj", &ptp_qoriq->caps.max_adj)) {
ptp_qoriq         485 drivers/ptp/ptp_qoriq.c 		if (ptp_qoriq_auto_config(ptp_qoriq, node))
ptp_qoriq         490 drivers/ptp/ptp_qoriq.c 		ptp_qoriq->read = qoriq_read_le;
ptp_qoriq         491 drivers/ptp/ptp_qoriq.c 		ptp_qoriq->write = qoriq_write_le;
ptp_qoriq         493 drivers/ptp/ptp_qoriq.c 		ptp_qoriq->read = qoriq_read_be;
ptp_qoriq         494 drivers/ptp/ptp_qoriq.c 		ptp_qoriq->write = qoriq_write_be;
ptp_qoriq         499 drivers/ptp/ptp_qoriq.c 		ptp_qoriq->regs.ctrl_regs = base + ETSEC_CTRL_REGS_OFFSET;
ptp_qoriq         500 drivers/ptp/ptp_qoriq.c 		ptp_qoriq->regs.alarm_regs = base + ETSEC_ALARM_REGS_OFFSET;
ptp_qoriq         501 drivers/ptp/ptp_qoriq.c 		ptp_qoriq->regs.fiper_regs = base + ETSEC_FIPER_REGS_OFFSET;
ptp_qoriq         502 drivers/ptp/ptp_qoriq.c 		ptp_qoriq->regs.etts_regs = base + ETSEC_ETTS_REGS_OFFSET;
ptp_qoriq         504 drivers/ptp/ptp_qoriq.c 		ptp_qoriq->regs.ctrl_regs = base + CTRL_REGS_OFFSET;
ptp_qoriq         505 drivers/ptp/ptp_qoriq.c 		ptp_qoriq->regs.alarm_regs = base + ALARM_REGS_OFFSET;
ptp_qoriq         506 drivers/ptp/ptp_qoriq.c 		ptp_qoriq->regs.fiper_regs = base + FIPER_REGS_OFFSET;
ptp_qoriq         507 drivers/ptp/ptp_qoriq.c 		ptp_qoriq->regs.etts_regs = base + ETTS_REGS_OFFSET;
ptp_qoriq         510 drivers/ptp/ptp_qoriq.c 	spin_lock_init(&ptp_qoriq->lock);
ptp_qoriq         513 drivers/ptp/ptp_qoriq.c 	ptp_qoriq_settime(&ptp_qoriq->caps, &now);
ptp_qoriq         516 drivers/ptp/ptp_qoriq.c 	  (ptp_qoriq->tclk_period & TCLK_PERIOD_MASK) << TCLK_PERIOD_SHIFT |
ptp_qoriq         517 drivers/ptp/ptp_qoriq.c 	  (ptp_qoriq->cksel & CKSEL_MASK) << CKSEL_SHIFT;
ptp_qoriq         519 drivers/ptp/ptp_qoriq.c 	spin_lock_irqsave(&ptp_qoriq->lock, flags);
ptp_qoriq         521 drivers/ptp/ptp_qoriq.c 	regs = &ptp_qoriq->regs;
ptp_qoriq         522 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->write(&regs->ctrl_regs->tmr_ctrl, tmr_ctrl);
ptp_qoriq         523 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->write(&regs->ctrl_regs->tmr_add, ptp_qoriq->tmr_add);
ptp_qoriq         524 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->write(&regs->ctrl_regs->tmr_prsc, ptp_qoriq->tmr_prsc);
ptp_qoriq         525 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->write(&regs->fiper_regs->tmr_fiper1, ptp_qoriq->tmr_fiper1);
ptp_qoriq         526 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->write(&regs->fiper_regs->tmr_fiper2, ptp_qoriq->tmr_fiper2);
ptp_qoriq         527 drivers/ptp/ptp_qoriq.c 	set_alarm(ptp_qoriq);
ptp_qoriq         528 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->write(&regs->ctrl_regs->tmr_ctrl,
ptp_qoriq         531 drivers/ptp/ptp_qoriq.c 	spin_unlock_irqrestore(&ptp_qoriq->lock, flags);
ptp_qoriq         533 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->clock = ptp_clock_register(&ptp_qoriq->caps, ptp_qoriq->dev);
ptp_qoriq         534 drivers/ptp/ptp_qoriq.c 	if (IS_ERR(ptp_qoriq->clock))
ptp_qoriq         535 drivers/ptp/ptp_qoriq.c 		return PTR_ERR(ptp_qoriq->clock);
ptp_qoriq         537 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->phc_index = ptp_clock_index(ptp_qoriq->clock);
ptp_qoriq         538 drivers/ptp/ptp_qoriq.c 	ptp_qoriq_create_debugfs(ptp_qoriq);
ptp_qoriq         543 drivers/ptp/ptp_qoriq.c void ptp_qoriq_free(struct ptp_qoriq *ptp_qoriq)
ptp_qoriq         545 drivers/ptp/ptp_qoriq.c 	struct ptp_qoriq_registers *regs = &ptp_qoriq->regs;
ptp_qoriq         547 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->write(&regs->ctrl_regs->tmr_temask, 0);
ptp_qoriq         548 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->write(&regs->ctrl_regs->tmr_ctrl,   0);
ptp_qoriq         550 drivers/ptp/ptp_qoriq.c 	ptp_qoriq_remove_debugfs(ptp_qoriq);
ptp_qoriq         551 drivers/ptp/ptp_qoriq.c 	ptp_clock_unregister(ptp_qoriq->clock);
ptp_qoriq         552 drivers/ptp/ptp_qoriq.c 	iounmap(ptp_qoriq->base);
ptp_qoriq         553 drivers/ptp/ptp_qoriq.c 	free_irq(ptp_qoriq->irq, ptp_qoriq);
ptp_qoriq         559 drivers/ptp/ptp_qoriq.c 	struct ptp_qoriq *ptp_qoriq;
ptp_qoriq         563 drivers/ptp/ptp_qoriq.c 	ptp_qoriq = kzalloc(sizeof(*ptp_qoriq), GFP_KERNEL);
ptp_qoriq         564 drivers/ptp/ptp_qoriq.c 	if (!ptp_qoriq)
ptp_qoriq         567 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->dev = &dev->dev;
ptp_qoriq         571 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->irq = platform_get_irq(dev, 0);
ptp_qoriq         572 drivers/ptp/ptp_qoriq.c 	if (ptp_qoriq->irq < 0) {
ptp_qoriq         576 drivers/ptp/ptp_qoriq.c 	if (request_irq(ptp_qoriq->irq, ptp_qoriq_isr, IRQF_SHARED,
ptp_qoriq         577 drivers/ptp/ptp_qoriq.c 			DRIVER, ptp_qoriq)) {
ptp_qoriq         582 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->rsrc = platform_get_resource(dev, IORESOURCE_MEM, 0);
ptp_qoriq         583 drivers/ptp/ptp_qoriq.c 	if (!ptp_qoriq->rsrc) {
ptp_qoriq         587 drivers/ptp/ptp_qoriq.c 	if (request_resource(&iomem_resource, ptp_qoriq->rsrc)) {
ptp_qoriq         592 drivers/ptp/ptp_qoriq.c 	base = ioremap(ptp_qoriq->rsrc->start,
ptp_qoriq         593 drivers/ptp/ptp_qoriq.c 		       resource_size(ptp_qoriq->rsrc));
ptp_qoriq         599 drivers/ptp/ptp_qoriq.c 	err = ptp_qoriq_init(ptp_qoriq, base, &ptp_qoriq_caps);
ptp_qoriq         603 drivers/ptp/ptp_qoriq.c 	platform_set_drvdata(dev, ptp_qoriq);
ptp_qoriq         607 drivers/ptp/ptp_qoriq.c 	iounmap(ptp_qoriq->base);
ptp_qoriq         609 drivers/ptp/ptp_qoriq.c 	release_resource(ptp_qoriq->rsrc);
ptp_qoriq         611 drivers/ptp/ptp_qoriq.c 	free_irq(ptp_qoriq->irq, ptp_qoriq);
ptp_qoriq         613 drivers/ptp/ptp_qoriq.c 	kfree(ptp_qoriq);
ptp_qoriq         620 drivers/ptp/ptp_qoriq.c 	struct ptp_qoriq *ptp_qoriq = platform_get_drvdata(dev);
ptp_qoriq         622 drivers/ptp/ptp_qoriq.c 	ptp_qoriq_free(ptp_qoriq);
ptp_qoriq         623 drivers/ptp/ptp_qoriq.c 	release_resource(ptp_qoriq->rsrc);
ptp_qoriq         624 drivers/ptp/ptp_qoriq.c 	kfree(ptp_qoriq);
ptp_qoriq          10 drivers/ptp/ptp_qoriq_debugfs.c 	struct ptp_qoriq *ptp_qoriq = data;
ptp_qoriq          11 drivers/ptp/ptp_qoriq_debugfs.c 	struct ptp_qoriq_registers *regs = &ptp_qoriq->regs;
ptp_qoriq          14 drivers/ptp/ptp_qoriq_debugfs.c 	ctrl = ptp_qoriq->read(&regs->ctrl_regs->tmr_ctrl);
ptp_qoriq          22 drivers/ptp/ptp_qoriq_debugfs.c 	struct ptp_qoriq *ptp_qoriq = data;
ptp_qoriq          23 drivers/ptp/ptp_qoriq_debugfs.c 	struct ptp_qoriq_registers *regs = &ptp_qoriq->regs;
ptp_qoriq          26 drivers/ptp/ptp_qoriq_debugfs.c 	ctrl = ptp_qoriq->read(&regs->ctrl_regs->tmr_ctrl);
ptp_qoriq          32 drivers/ptp/ptp_qoriq_debugfs.c 	ptp_qoriq->write(&regs->ctrl_regs->tmr_ctrl, ctrl);
ptp_qoriq          41 drivers/ptp/ptp_qoriq_debugfs.c 	struct ptp_qoriq *ptp_qoriq = data;
ptp_qoriq          42 drivers/ptp/ptp_qoriq_debugfs.c 	struct ptp_qoriq_registers *regs = &ptp_qoriq->regs;
ptp_qoriq          45 drivers/ptp/ptp_qoriq_debugfs.c 	ctrl = ptp_qoriq->read(&regs->ctrl_regs->tmr_ctrl);
ptp_qoriq          53 drivers/ptp/ptp_qoriq_debugfs.c 	struct ptp_qoriq *ptp_qoriq = data;
ptp_qoriq          54 drivers/ptp/ptp_qoriq_debugfs.c 	struct ptp_qoriq_registers *regs = &ptp_qoriq->regs;
ptp_qoriq          57 drivers/ptp/ptp_qoriq_debugfs.c 	ctrl = ptp_qoriq->read(&regs->ctrl_regs->tmr_ctrl);
ptp_qoriq          63 drivers/ptp/ptp_qoriq_debugfs.c 	ptp_qoriq->write(&regs->ctrl_regs->tmr_ctrl, ctrl);
ptp_qoriq          70 drivers/ptp/ptp_qoriq_debugfs.c void ptp_qoriq_create_debugfs(struct ptp_qoriq *ptp_qoriq)
ptp_qoriq          74 drivers/ptp/ptp_qoriq_debugfs.c 	root = debugfs_create_dir(dev_name(ptp_qoriq->dev), NULL);
ptp_qoriq          80 drivers/ptp/ptp_qoriq_debugfs.c 	ptp_qoriq->debugfs_root = root;
ptp_qoriq          83 drivers/ptp/ptp_qoriq_debugfs.c 					ptp_qoriq, &ptp_qoriq_fiper1_fops))
ptp_qoriq          86 drivers/ptp/ptp_qoriq_debugfs.c 					ptp_qoriq, &ptp_qoriq_fiper2_fops))
ptp_qoriq          92 drivers/ptp/ptp_qoriq_debugfs.c 	ptp_qoriq->debugfs_root = NULL;
ptp_qoriq          94 drivers/ptp/ptp_qoriq_debugfs.c 	dev_err(ptp_qoriq->dev, "failed to initialize debugfs\n");
ptp_qoriq          97 drivers/ptp/ptp_qoriq_debugfs.c void ptp_qoriq_remove_debugfs(struct ptp_qoriq *ptp_qoriq)
ptp_qoriq          99 drivers/ptp/ptp_qoriq_debugfs.c 	debugfs_remove_recursive(ptp_qoriq->debugfs_root);
ptp_qoriq         100 drivers/ptp/ptp_qoriq_debugfs.c 	ptp_qoriq->debugfs_root = NULL;
ptp_qoriq         185 include/linux/fsl/ptp_qoriq.h int ptp_qoriq_init(struct ptp_qoriq *ptp_qoriq, void __iomem *base,
ptp_qoriq         187 include/linux/fsl/ptp_qoriq.h void ptp_qoriq_free(struct ptp_qoriq *ptp_qoriq);
ptp_qoriq         196 include/linux/fsl/ptp_qoriq.h void ptp_qoriq_create_debugfs(struct ptp_qoriq *ptp_qoriq);
ptp_qoriq         197 include/linux/fsl/ptp_qoriq.h void ptp_qoriq_remove_debugfs(struct ptp_qoriq *ptp_qoriq);
ptp_qoriq         199 include/linux/fsl/ptp_qoriq.h static inline void ptp_qoriq_create_debugfs(struct ptp_qoriq *ptp_qoriq)
ptp_qoriq         201 include/linux/fsl/ptp_qoriq.h static inline void ptp_qoriq_remove_debugfs(struct ptp_qoriq *ptp_qoriq)