Home
last modified time | relevance | path

Searched refs:ptp_ptr (Results 1 – 1 of 1) sorted by relevance

/Linux-v5.15/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_ptp.c113 struct otx2_ptp *ptp_ptr; in otx2_ptp_init() local
135 ptp_ptr = kzalloc(sizeof(*ptp_ptr), GFP_KERNEL); in otx2_ptp_init()
136 if (!ptp_ptr) { in otx2_ptp_init()
141 ptp_ptr->nic = pfvf; in otx2_ptp_init()
143 cc = &ptp_ptr->cycle_counter; in otx2_ptp_init()
149 timecounter_init(&ptp_ptr->time_counter, &ptp_ptr->cycle_counter, in otx2_ptp_init()
152 ptp_ptr->ptp_info = (struct ptp_clock_info) { in otx2_ptp_init()
166 ptp_ptr->ptp_clock = ptp_clock_register(&ptp_ptr->ptp_info, pfvf->dev); in otx2_ptp_init()
167 if (IS_ERR_OR_NULL(ptp_ptr->ptp_clock)) { in otx2_ptp_init()
168 err = ptp_ptr->ptp_clock ? in otx2_ptp_init()
[all …]