| /Linux-v5.15/drivers/ptp/ |
| D | ptp_clock.c | 27 struct class *ptp_class; variable 277 ptp->dev.class = ptp_class; in ptp_clock_register() 427 class_destroy(ptp_class); in ptp_exit() 436 ptp_class = class_create(THIS_MODULE, "ptp"); in ptp_init() 437 if (IS_ERR(ptp_class)) { in ptp_init() 439 return PTR_ERR(ptp_class); in ptp_init() 448 ptp_class->dev_groups = ptp_groups; in ptp_init() 453 class_destroy(ptp_class); in ptp_init()
|
| D | ptp_vclock.c | 164 dev = class_find_device_by_name(ptp_class, name); in ptp_get_vclocks_index() 199 dev = class_find_device_by_name(ptp_class, name); in ptp_convert_timestamp()
|
| D | ptp_ines.c | 170 static bool ines_match(struct sk_buff *skb, unsigned int ptp_class, 435 static bool ines_match(struct sk_buff *skb, unsigned int ptp_class, in ines_match() argument 443 if (unlikely(ptp_class & PTP_CLASS_V1)) in ines_match() 446 hdr = ptp_parse_header(skb, ptp_class); in ines_match() 450 msgtype = ptp_get_msgtype(hdr, ptp_class); in ines_match()
|
| D | ptp_private.h | 99 extern struct class *ptp_class;
|
| /Linux-v5.15/drivers/net/ethernet/mscc/ |
| D | ocelot.c | 605 unsigned int ptp_class) in ocelot_ptp_is_onestep_sync() argument 610 hdr = ptp_parse_header(skb, ptp_class); in ocelot_ptp_is_onestep_sync() 614 msgtype = ptp_get_msgtype(hdr, ptp_class); in ocelot_ptp_is_onestep_sync() 629 unsigned int ptp_class; in ocelot_port_txtstamp_request() local 636 ptp_class = ptp_classify_raw(skb); in ocelot_port_txtstamp_request() 637 if (ptp_class == PTP_CLASS_NONE) in ocelot_port_txtstamp_request() 642 if (ocelot_ptp_is_onestep_sync(skb, ptp_class)) { in ocelot_port_txtstamp_request() 661 OCELOT_SKB_CB(*clone)->ptp_class = ptp_class; in ocelot_port_txtstamp_request() 699 hdr = ptp_parse_header(clone, OCELOT_SKB_CB(clone)->ptp_class); in ocelot_validate_ptp_skb()
|
| /Linux-v5.15/drivers/net/ethernet/mellanox/mlxsw/ |
| D | spectrum_ptp.c | 317 unsigned int ptp_class; in mlxsw_sp_ptp_parse() local 320 ptp_class = ptp_classify_raw(skb); in mlxsw_sp_ptp_parse() 322 switch (ptp_class & PTP_CLASS_VMASK) { in mlxsw_sp_ptp_parse() 330 hdr = ptp_parse_header(skb, ptp_class); in mlxsw_sp_ptp_parse() 334 *p_message_type = ptp_get_msgtype(hdr, ptp_class); in mlxsw_sp_ptp_parse()
|
| /Linux-v5.15/drivers/net/ethernet/broadcom/bnxt/ |
| D | bnxt_ptp.c | 26 unsigned int ptp_class; in bnxt_ptp_parse() local 29 ptp_class = ptp_classify_raw(skb); in bnxt_ptp_parse() 31 switch (ptp_class & PTP_CLASS_VMASK) { in bnxt_ptp_parse() 34 hdr = ptp_parse_header(skb, ptp_class); in bnxt_ptp_parse()
|
| /Linux-v5.15/drivers/net/ethernet/ti/ |
| D | cpts.c | 448 unsigned int ptp_class = ptp_classify_raw(skb); in cpts_skb_get_mtype_seqid() local 453 if (ptp_class == PTP_CLASS_NONE) in cpts_skb_get_mtype_seqid() 456 hdr = ptp_parse_header(skb, ptp_class); in cpts_skb_get_mtype_seqid() 460 msgtype = ptp_get_msgtype(hdr, ptp_class); in cpts_skb_get_mtype_seqid()
|
| D | am65-cpts.c | 752 unsigned int ptp_class = ptp_classify_raw(skb); in am65_skb_get_mtype_seqid() local 757 if (ptp_class == PTP_CLASS_NONE) in am65_skb_get_mtype_seqid() 760 hdr = ptp_parse_header(skb, ptp_class); in am65_skb_get_mtype_seqid() 764 msgtype = ptp_get_msgtype(hdr, ptp_class); in am65_skb_get_mtype_seqid()
|
| /Linux-v5.15/include/linux/dsa/ |
| D | ocelot.h | 14 unsigned int ptp_class; /* valid only for clones */ member
|
| /Linux-v5.15/drivers/net/ethernet/freescale/enetc/ |
| D | enetc.c | 95 unsigned int ptp_class; in enetc_ptp_parse() local 100 ptp_class = ptp_classify_raw(skb); in enetc_ptp_parse() 101 if (ptp_class == PTP_CLASS_NONE) in enetc_ptp_parse() 104 hdr = ptp_parse_header(skb, ptp_class); in enetc_ptp_parse() 108 type = ptp_class & PTP_CLASS_PMASK; in enetc_ptp_parse() 114 *msgtype = ptp_get_msgtype(hdr, ptp_class); in enetc_ptp_parse()
|
| /Linux-v5.15/drivers/net/ethernet/freescale/dpaa2/ |
| D | dpaa2-eth.c | 659 unsigned int ptp_class; in dpaa2_eth_ptp_parse() local 664 ptp_class = ptp_classify_raw(skb); in dpaa2_eth_ptp_parse() 665 if (ptp_class == PTP_CLASS_NONE) in dpaa2_eth_ptp_parse() 668 hdr = ptp_parse_header(skb, ptp_class); in dpaa2_eth_ptp_parse() 672 *msgtype = ptp_get_msgtype(hdr, ptp_class); in dpaa2_eth_ptp_parse() 675 type = ptp_class & PTP_CLASS_PMASK; in dpaa2_eth_ptp_parse()
|