Home
last modified time | relevance | path

Searched refs:stmpconf (Results 1 – 2 of 2) sorted by relevance

/linux-6.15/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ptp.c566 struct hwtstamp_config stmpconf; in bnxt_hwtstamp_set() local
576 if (copy_from_user(&stmpconf, ifr->ifr_data, sizeof(stmpconf))) in bnxt_hwtstamp_set()
580 stmpconf.tx_type != HWTSTAMP_TX_OFF) in bnxt_hwtstamp_set()
586 switch (stmpconf.rx_filter) { in bnxt_hwtstamp_set()
619 if (stmpconf.tx_type == HWTSTAMP_TX_ON) in bnxt_hwtstamp_set()
628 stmpconf.rx_filter = ptp->rx_filter; in bnxt_hwtstamp_set()
629 return copy_to_user(ifr->ifr_data, &stmpconf, sizeof(stmpconf)) ? in bnxt_hwtstamp_set()
642 struct hwtstamp_config stmpconf; in bnxt_hwtstamp_get() local
649 stmpconf.flags = 0; in bnxt_hwtstamp_get()
652 stmpconf.rx_filter = ptp->rx_filter; in bnxt_hwtstamp_get()
[all …]
/linux-6.15/drivers/net/ethernet/broadcom/
H A Dtg3.c13954 struct hwtstamp_config stmpconf; in tg3_hwtstamp_set() local
13959 if (copy_from_user(&stmpconf, ifr->ifr_data, sizeof(stmpconf))) in tg3_hwtstamp_set()
13962 if (stmpconf.tx_type != HWTSTAMP_TX_ON && in tg3_hwtstamp_set()
13963 stmpconf.tx_type != HWTSTAMP_TX_OFF) in tg3_hwtstamp_set()
13966 switch (stmpconf.rx_filter) { in tg3_hwtstamp_set()
14026 if (stmpconf.tx_type == HWTSTAMP_TX_ON) in tg3_hwtstamp_set()
14031 return copy_to_user(ifr->ifr_data, &stmpconf, sizeof(stmpconf)) ? in tg3_hwtstamp_set()
14038 struct hwtstamp_config stmpconf; in tg3_hwtstamp_get() local
14043 stmpconf.flags = 0; in tg3_hwtstamp_get()
14049 stmpconf.rx_filter = HWTSTAMP_FILTER_NONE; in tg3_hwtstamp_get()
[all …]