Lines Matching defs:ptp
455 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg;
457 if (ptp && ptp->tx_tstamp_en && !skb_is_gso(skb) &&
458 atomic_dec_if_positive(&ptp->tx_avail) >= 0) {
459 if (!bnxt_ptp_parse(skb, &ptp->tx_seqid,
460 &ptp->tx_hdr_off)) {
462 ptp->tx_hdr_off += VLAN_HLEN;
2031 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg;
2033 spin_lock_bh(&ptp->ptp_lock);
2034 ns = timecounter_cyc2time(&ptp->tc, ts);
2035 spin_unlock_bh(&ptp->ptp_lock);
2375 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg;
2378 if (!ptp)
2381 spin_lock_bh(&ptp->ptp_lock);
2384 BNXT_PHC_BITS) | ptp->current_time);
2385 bnxt_ptp_rtc_timecounter_init(ptp, ns);
2386 spin_unlock_bh(&ptp->ptp_lock);
7608 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg;
7633 if (!ptp) {
7634 ptp = kzalloc(sizeof(*ptp), GFP_KERNEL);
7635 if (!ptp) {
7639 ptp->bp = bp;
7640 bp->ptp_cfg = ptp;
7643 ptp->refclk_regs[0] = le32_to_cpu(resp->ts_ref_clock_reg_lower);
7644 ptp->refclk_regs[1] = le32_to_cpu(resp->ts_ref_clock_reg_upper);
7646 ptp->refclk_regs[0] = BNXT_TS_REG_TIMESYNC_TS0_LOWER;
7647 ptp->refclk_regs[1] = BNXT_TS_REG_TIMESYNC_TS0_UPPER;
7663 kfree(ptp);
11863 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg;
11870 if (ptp) {
11871 spin_lock_bh(&ptp->ptp_lock);
11873 spin_unlock_bh(&ptp->ptp_lock);
11932 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg;
11935 if (ptp) {
11936 spin_lock_bh(&ptp->ptp_lock);
11938 spin_unlock_bh(&ptp->ptp_lock);