Lines Matching refs:ptp_cmd
495 static int ocelot_ptp_tx_type_to_cmd(int tx_type, int *ptp_cmd) in ocelot_ptp_tx_type_to_cmd() argument
499 *ptp_cmd = IFH_REW_OP_TWO_STEP_PTP; in ocelot_ptp_tx_type_to_cmd()
505 *ptp_cmd = IFH_REW_OP_ORIGIN_PTP; in ocelot_ptp_tx_type_to_cmd()
508 *ptp_cmd = 0; in ocelot_ptp_tx_type_to_cmd()
522 switch (ocelot_port->ptp_cmd) { in ocelot_hwstamp_get()
544 int ptp_cmd; in ocelot_hwstamp_set() local
548 err = ocelot_ptp_tx_type_to_cmd(cfg->tx_type, &ptp_cmd); in ocelot_hwstamp_set()
579 ocelot_port->ptp_cmd = ptp_cmd; in ocelot_hwstamp_set()
725 u8 ptp_cmd = ocelot_port->ptp_cmd; in ocelot_port_txtstamp_request() local
730 if (!ptp_cmd) in ocelot_port_txtstamp_request()
740 if (ptp_cmd == IFH_REW_OP_ORIGIN_PTP) { in ocelot_port_txtstamp_request()
742 OCELOT_SKB_CB(skb)->ptp_cmd = ptp_cmd; in ocelot_port_txtstamp_request()
752 ptp_cmd = IFH_REW_OP_TWO_STEP_PTP; in ocelot_port_txtstamp_request()
755 if (ptp_cmd == IFH_REW_OP_TWO_STEP_PTP) { in ocelot_port_txtstamp_request()
770 OCELOT_SKB_CB(skb)->ptp_cmd = ptp_cmd; in ocelot_port_txtstamp_request()