Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_ptp.c117 struct otx2_ptp *ptp_ptr; in otx2_ptp_init() local
139 ptp_ptr = kzalloc(sizeof(*ptp_ptr), GFP_KERNEL); in otx2_ptp_init()
140 if (!ptp_ptr) { in otx2_ptp_init()
145 ptp_ptr->nic = pfvf; in otx2_ptp_init()
147 cc = &ptp_ptr->cycle_counter; in otx2_ptp_init()
153 timecounter_init(&ptp_ptr->time_counter, &ptp_ptr->cycle_counter, in otx2_ptp_init()
156 ptp_ptr->ptp_info = (struct ptp_clock_info) { in otx2_ptp_init()
170 ptp_ptr->ptp_clock = ptp_clock_register(&ptp_ptr->ptp_info, pfvf->dev); in otx2_ptp_init()
171 if (IS_ERR_OR_NULL(ptp_ptr->ptp_clock)) { in otx2_ptp_init()
172 err = ptp_ptr->ptp_clock ? in otx2_ptp_init()
[all …]