Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/ptp/
Dptp_clock.c43 static struct class *ptp_class; variable
253 ptp->dev = device_create_with_groups(ptp_class, parent, ptp->devid, in ptp_clock_register()
286 device_destroy(ptp_class, ptp->devid); in ptp_clock_register()
317 device_destroy(ptp_class, ptp->devid); in ptp_clock_unregister()
388 class_destroy(ptp_class); in ptp_exit()
397 ptp_class = class_create(THIS_MODULE, "ptp"); in ptp_init()
398 if (IS_ERR(ptp_class)) { in ptp_init()
400 return PTR_ERR(ptp_class); in ptp_init()
409 ptp_class->dev_groups = ptp_groups; in ptp_init()
414 class_destroy(ptp_class); in ptp_init()
/Linux-v4.19/drivers/net/ethernet/ti/
Dcpts.c43 static int cpts_match(struct sk_buff *skb, unsigned int ptp_class,
321 static int cpts_match(struct sk_buff *skb, unsigned int ptp_class, in cpts_match() argument
328 if (ptp_class & PTP_CLASS_VLAN) in cpts_match()
331 switch (ptp_class & PTP_CLASS_PMASK) { in cpts_match()
348 if (unlikely(ptp_class & PTP_CLASS_V1)) in cpts_match()