Searched refs:ptp_class (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.4/drivers/ptp/ |
D | ptp_clock.c | 30 static struct class *ptp_class; variable 240 ptp->dev = device_create_with_groups(ptp_class, parent, ptp->devid, in ptp_clock_register() 276 device_destroy(ptp_class, ptp->devid); in ptp_clock_register() 307 device_destroy(ptp_class, ptp->devid); in ptp_clock_unregister() 378 class_destroy(ptp_class); in ptp_exit() 387 ptp_class = class_create(THIS_MODULE, "ptp"); in ptp_init() 388 if (IS_ERR(ptp_class)) { in ptp_init() 390 return PTR_ERR(ptp_class); in ptp_init() 399 ptp_class->dev_groups = ptp_groups; in ptp_init() 404 class_destroy(ptp_class); in ptp_init()
|
/Linux-v5.4/drivers/net/ethernet/ti/ |
D | cpts.c | 32 static int cpts_match(struct sk_buff *skb, unsigned int ptp_class, 330 static int cpts_match(struct sk_buff *skb, unsigned int ptp_class, in cpts_match() argument 337 if (ptp_class & PTP_CLASS_VLAN) in cpts_match() 340 switch (ptp_class & PTP_CLASS_PMASK) { in cpts_match() 357 if (unlikely(ptp_class & PTP_CLASS_V1)) in cpts_match()
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_ptp.c | 318 unsigned int ptp_class; in mlxsw_sp_ptp_parse() local 322 ptp_class = ptp_classify_raw(skb); in mlxsw_sp_ptp_parse() 324 switch (ptp_class & PTP_CLASS_VMASK) { in mlxsw_sp_ptp_parse() 332 if (ptp_class & PTP_CLASS_VLAN) in mlxsw_sp_ptp_parse() 335 switch (ptp_class & PTP_CLASS_PMASK) { in mlxsw_sp_ptp_parse()
|