Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/ptp/
Dptp_clock.c30 static struct class *ptp_class; variable
266 ptp->dev.class = ptp_class; in ptp_clock_register()
403 class_destroy(ptp_class); in ptp_exit()
412 ptp_class = class_create(THIS_MODULE, "ptp"); in ptp_init()
413 if (IS_ERR(ptp_class)) { in ptp_init()
415 return PTR_ERR(ptp_class); in ptp_init()
424 ptp_class->dev_groups = ptp_groups; in ptp_init()
429 class_destroy(ptp_class); in ptp_init()
Dptp_ines.c175 static bool ines_match(struct sk_buff *skb, unsigned int ptp_class,
440 static bool ines_match(struct sk_buff *skb, unsigned int ptp_class, in ines_match() argument
448 if (unlikely(ptp_class & PTP_CLASS_V1)) in ines_match()
451 hdr = ptp_parse_header(skb, ptp_class); in ines_match()
455 msgtype = ptp_get_msgtype(hdr, ptp_class); in ines_match()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_ptp.c317 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()
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/
Dcpts.c448 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()
Dam65-cpts.c752 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()
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-eth.c634 unsigned int ptp_class; in dpaa2_eth_ptp_parse() local
639 ptp_class = ptp_classify_raw(skb); in dpaa2_eth_ptp_parse()
640 if (ptp_class == PTP_CLASS_NONE) in dpaa2_eth_ptp_parse()
643 hdr = ptp_parse_header(skb, ptp_class); in dpaa2_eth_ptp_parse()
647 *msgtype = ptp_get_msgtype(hdr, ptp_class); in dpaa2_eth_ptp_parse()
650 type = ptp_class & PTP_CLASS_PMASK; in dpaa2_eth_ptp_parse()