Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/ptp/
Dptp_clock.c42 static struct class *ptp_class; variable
222 ptp->dev = device_create(ptp_class, parent, ptp->devid, ptp, in ptp_clock_register()
262 device_destroy(ptp_class, ptp->devid); in ptp_clock_register()
282 device_destroy(ptp_class, ptp->devid); in ptp_clock_unregister()
346 class_destroy(ptp_class); in ptp_exit()
355 ptp_class = class_create(THIS_MODULE, "ptp"); in ptp_init()
356 if (IS_ERR(ptp_class)) { in ptp_init()
358 return PTR_ERR(ptp_class); in ptp_init()
367 ptp_class->dev_groups = ptp_groups; in ptp_init()
372 class_destroy(ptp_class); in ptp_init()
/linux-4.1.27/drivers/net/ethernet/ti/
Dcpts.c249 static int cpts_match(struct sk_buff *skb, unsigned int ptp_class, in cpts_match() argument
256 if (ptp_class & PTP_CLASS_VLAN) in cpts_match()
259 switch (ptp_class & PTP_CLASS_PMASK) { in cpts_match()
276 if (unlikely(ptp_class & PTP_CLASS_V1)) in cpts_match()