Home
last modified time | relevance | path

Searched refs:ptp_class (Results 1 - 19 of 19) sorted by relevance

/kernel/linux/linux-5.10/drivers/ptp/
H A Dptp_clock.c30 static struct class *ptp_class; variable
267 ptp->dev.class = ptp_class; in ptp_clock_register()
404 class_destroy(ptp_class); in ptp_exit()
413 ptp_class = class_create(THIS_MODULE, "ptp"); in ptp_init()
414 if (IS_ERR(ptp_class)) { in ptp_init()
416 return PTR_ERR(ptp_class); in ptp_init()
425 ptp_class->dev_groups = ptp_groups; in ptp_init()
430 class_destroy(ptp_class); in ptp_init()
H A 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-6.6/drivers/ptp/
H A Dptp_clock.c27 struct class *ptp_class; variable
302 ptp->dev.class = ptp_class; in ptp_clock_register()
459 class_destroy(ptp_class); in ptp_exit()
468 ptp_class = class_create("ptp"); in ptp_init()
469 if (IS_ERR(ptp_class)) { in ptp_init()
471 return PTR_ERR(ptp_class); in ptp_init()
480 ptp_class->dev_groups = ptp_groups; in ptp_init()
485 class_destroy(ptp_class); in ptp_init()
H A Dptp_ines.c170 static bool ines_match(struct sk_buff *skb, unsigned int ptp_class,
431 static bool ines_match(struct sk_buff *skb, unsigned int ptp_class, in ines_match() argument
439 if (unlikely(ptp_class & PTP_CLASS_V1)) in ines_match()
442 hdr = ptp_parse_header(skb, ptp_class); in ines_match()
446 msgtype = ptp_get_msgtype(hdr, ptp_class); in ines_match()
H A Dptp_private.h114 extern struct class *ptp_class;
H A Dptp_vclock.c244 dev = class_find_device_by_name(ptp_class, name); in ptp_get_vclocks_index()
/kernel/linux/linux-6.6/drivers/net/ethernet/mscc/
H A Docelot_ptp.c643 unsigned int ptp_class) in ocelot_ptp_is_onestep_sync()
648 hdr = ptp_parse_header(skb, ptp_class); in ocelot_ptp_is_onestep_sync()
652 msgtype = ptp_get_msgtype(hdr, ptp_class); in ocelot_ptp_is_onestep_sync()
667 unsigned int ptp_class; in ocelot_port_txtstamp_request() local
674 ptp_class = ptp_classify_raw(skb); in ocelot_port_txtstamp_request()
675 if (ptp_class == PTP_CLASS_NONE) in ocelot_port_txtstamp_request()
680 if (ocelot_ptp_is_onestep_sync(skb, ptp_class)) { in ocelot_port_txtstamp_request()
699 OCELOT_SKB_CB(*clone)->ptp_class = ptp_class; in ocelot_port_txtstamp_request()
737 hdr = ptp_parse_header(clone, OCELOT_SKB_CB(clone)->ptp_class); in ocelot_validate_ptp_skb()
642 ocelot_ptp_is_onestep_sync(struct sk_buff *skb, unsigned int ptp_class) ocelot_ptp_is_onestep_sync() argument
[all...]
/kernel/linux/linux-6.6/include/linux/dsa/
H A Docelot.h15 unsigned int ptp_class; /* valid only for clones */ member
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/
H A 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()
H A 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-6.6/drivers/net/ethernet/ti/
H A Dcpts.c436 unsigned int ptp_class = ptp_classify_raw(skb); in cpts_skb_get_mtype_seqid() local
441 if (ptp_class == PTP_CLASS_NONE) in cpts_skb_get_mtype_seqid()
444 hdr = ptp_parse_header(skb, ptp_class); in cpts_skb_get_mtype_seqid()
448 msgtype = ptp_get_msgtype(hdr, ptp_class); in cpts_skb_get_mtype_seqid()
H A Dam65-cpts.c887 unsigned int ptp_class = ptp_classify_raw(skb); in am65_skb_get_mtype_seqid() local
892 if (ptp_class == PTP_CLASS_NONE) in am65_skb_get_mtype_seqid()
895 hdr = ptp_parse_header(skb, ptp_class); in am65_skb_get_mtype_seqid()
899 msgtype = ptp_get_msgtype(hdr, ptp_class); in am65_skb_get_mtype_seqid()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
H A 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-6.6/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ptp.c39 unsigned int ptp_class; in bnxt_ptp_parse() local
42 ptp_class = ptp_classify_raw(skb); in bnxt_ptp_parse()
44 switch (ptp_class & PTP_CLASS_VMASK) { in bnxt_ptp_parse()
47 hdr = ptp_parse_header(skb, ptp_class); in bnxt_ptp_parse()
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_ptp.c488 unsigned int ptp_class; in mlxsw_sp_ptp_parse() local
491 ptp_class = ptp_classify_raw(skb); in mlxsw_sp_ptp_parse()
493 switch (ptp_class & PTP_CLASS_VMASK) { in mlxsw_sp_ptp_parse()
501 hdr = ptp_parse_header(skb, ptp_class); in mlxsw_sp_ptp_parse()
505 *p_message_type = ptp_get_msgtype(hdr, ptp_class); in mlxsw_sp_ptp_parse()
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/
H A 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()
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/enetc/
H A Denetc.c116 unsigned int ptp_class; in enetc_ptp_parse() local
121 ptp_class = ptp_classify_raw(skb); in enetc_ptp_parse()
122 if (ptp_class == PTP_CLASS_NONE) in enetc_ptp_parse()
125 hdr = ptp_parse_header(skb, ptp_class); in enetc_ptp_parse()
129 type = ptp_class & PTP_CLASS_PMASK; in enetc_ptp_parse()
135 *msgtype = ptp_get_msgtype(hdr, ptp_class); in enetc_ptp_parse()
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-eth.c765 unsigned int ptp_class; in dpaa2_eth_ptp_parse() local
770 ptp_class = ptp_classify_raw(skb); in dpaa2_eth_ptp_parse()
771 if (ptp_class == PTP_CLASS_NONE) in dpaa2_eth_ptp_parse()
774 hdr = ptp_parse_header(skb, ptp_class); in dpaa2_eth_ptp_parse()
778 *msgtype = ptp_get_msgtype(hdr, ptp_class); in dpaa2_eth_ptp_parse()
781 type = ptp_class & PTP_CLASS_PMASK; in dpaa2_eth_ptp_parse()
/kernel/linux/linux-6.6/drivers/net/ethernet/cadence/
H A Dmacb_main.c1205 unsigned int ptp_class; in ptp_one_step_sync() local
1213 ptp_class = ptp_classify_raw(skb); in ptp_one_step_sync()
1214 if (ptp_class == PTP_CLASS_NONE) in ptp_one_step_sync()
1217 hdr = ptp_parse_header(skb, ptp_class); in ptp_one_step_sync()
1224 msgtype = ptp_get_msgtype(hdr, ptp_class); in ptp_one_step_sync()

Completed in 38 milliseconds