Lines Matching refs:ptpmsg_irq
346 prt->ptpmsg_irq[KSZ_SYNC_MSG].ts_en = false; in ksz_set_hwtstamp_config()
347 prt->ptpmsg_irq[KSZ_XDREQ_MSG].ts_en = false; in ksz_set_hwtstamp_config()
348 prt->ptpmsg_irq[KSZ_PDRES_MSG].ts_en = false; in ksz_set_hwtstamp_config()
352 prt->ptpmsg_irq[KSZ_SYNC_MSG].ts_en = false; in ksz_set_hwtstamp_config()
353 prt->ptpmsg_irq[KSZ_XDREQ_MSG].ts_en = true; in ksz_set_hwtstamp_config()
354 prt->ptpmsg_irq[KSZ_PDRES_MSG].ts_en = false; in ksz_set_hwtstamp_config()
366 prt->ptpmsg_irq[KSZ_SYNC_MSG].ts_en = true; in ksz_set_hwtstamp_config()
367 prt->ptpmsg_irq[KSZ_XDREQ_MSG].ts_en = true; in ksz_set_hwtstamp_config()
368 prt->ptpmsg_irq[KSZ_PDRES_MSG].ts_en = true; in ksz_set_hwtstamp_config()
970 struct ksz_ptp_irq *ptpmsg_irq = dev_id; in ksz_ptp_msg_thread_fn() local
977 port = ptpmsg_irq->port; in ksz_ptp_msg_thread_fn()
980 if (ptpmsg_irq->ts_en) { in ksz_ptp_msg_thread_fn()
981 ret = ksz_read32(dev, ptpmsg_irq->ts_reg, &tstamp_raw); in ksz_ptp_msg_thread_fn()
1087 struct ksz_ptp_irq *ptpmsg_irq; in ksz_ptp_msg_irq_free() local
1089 ptpmsg_irq = &port->ptpmsg_irq[n]; in ksz_ptp_msg_irq_free()
1091 free_irq(ptpmsg_irq->num, ptpmsg_irq); in ksz_ptp_msg_irq_free()
1092 irq_dispose_mapping(ptpmsg_irq->num); in ksz_ptp_msg_irq_free()
1102 struct ksz_ptp_irq *ptpmsg_irq; in ksz_ptp_msg_irq_setup() local
1104 ptpmsg_irq = &port->ptpmsg_irq[n]; in ksz_ptp_msg_irq_setup()
1106 ptpmsg_irq->port = port; in ksz_ptp_msg_irq_setup()
1107 ptpmsg_irq->ts_reg = ops->get_port_addr(port->num, ts_reg[n]); in ksz_ptp_msg_irq_setup()
1109 snprintf(ptpmsg_irq->name, sizeof(ptpmsg_irq->name), name[n]); in ksz_ptp_msg_irq_setup()
1111 ptpmsg_irq->num = irq_find_mapping(port->ptpirq.domain, n); in ksz_ptp_msg_irq_setup()
1112 if (ptpmsg_irq->num < 0) in ksz_ptp_msg_irq_setup()
1113 return ptpmsg_irq->num; in ksz_ptp_msg_irq_setup()
1115 return request_threaded_irq(ptpmsg_irq->num, NULL, in ksz_ptp_msg_irq_setup()
1117 ptpmsg_irq->name, ptpmsg_irq); in ksz_ptp_msg_irq_setup()
1169 free_irq(port->ptpmsg_irq[irq].num, &port->ptpmsg_irq[irq]); in ksz_ptp_irq_setup()
1172 irq_dispose_mapping(port->ptpmsg_irq[irq].num); in ksz_ptp_irq_setup()