Lines Matching refs:stmpconf
535 struct hwtstamp_config stmpconf; in bnxt_hwtstamp_set() local
545 if (copy_from_user(&stmpconf, ifr->ifr_data, sizeof(stmpconf))) in bnxt_hwtstamp_set()
548 if (stmpconf.tx_type != HWTSTAMP_TX_ON && in bnxt_hwtstamp_set()
549 stmpconf.tx_type != HWTSTAMP_TX_OFF) in bnxt_hwtstamp_set()
555 switch (stmpconf.rx_filter) { in bnxt_hwtstamp_set()
588 if (stmpconf.tx_type == HWTSTAMP_TX_ON) in bnxt_hwtstamp_set()
597 stmpconf.rx_filter = ptp->rx_filter; in bnxt_hwtstamp_set()
598 return copy_to_user(ifr->ifr_data, &stmpconf, sizeof(stmpconf)) ? in bnxt_hwtstamp_set()
611 struct hwtstamp_config stmpconf; in bnxt_hwtstamp_get() local
618 stmpconf.flags = 0; in bnxt_hwtstamp_get()
619 stmpconf.tx_type = ptp->tx_tstamp_en ? HWTSTAMP_TX_ON : HWTSTAMP_TX_OFF; in bnxt_hwtstamp_get()
621 stmpconf.rx_filter = ptp->rx_filter; in bnxt_hwtstamp_get()
622 return copy_to_user(ifr->ifr_data, &stmpconf, sizeof(stmpconf)) ? in bnxt_hwtstamp_get()