Lines Matching refs:stmpconf
546 struct hwtstamp_config stmpconf; in bnxt_hwtstamp_set() local
556 if (copy_from_user(&stmpconf, ifr->ifr_data, sizeof(stmpconf))) in bnxt_hwtstamp_set()
559 if (stmpconf.tx_type != HWTSTAMP_TX_ON && in bnxt_hwtstamp_set()
560 stmpconf.tx_type != HWTSTAMP_TX_OFF) in bnxt_hwtstamp_set()
566 switch (stmpconf.rx_filter) { in bnxt_hwtstamp_set()
599 if (stmpconf.tx_type == HWTSTAMP_TX_ON) in bnxt_hwtstamp_set()
608 stmpconf.rx_filter = ptp->rx_filter; in bnxt_hwtstamp_set()
609 return copy_to_user(ifr->ifr_data, &stmpconf, sizeof(stmpconf)) ? in bnxt_hwtstamp_set()
622 struct hwtstamp_config stmpconf; in bnxt_hwtstamp_get() local
629 stmpconf.flags = 0; in bnxt_hwtstamp_get()
630 stmpconf.tx_type = ptp->tx_tstamp_en ? HWTSTAMP_TX_ON : HWTSTAMP_TX_OFF; in bnxt_hwtstamp_get()
632 stmpconf.rx_filter = ptp->rx_filter; in bnxt_hwtstamp_get()
633 return copy_to_user(ifr->ifr_data, &stmpconf, sizeof(stmpconf)) ? in bnxt_hwtstamp_get()