Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ptp.c525 struct hwtstamp_config stmpconf; in bnxt_hwtstamp_set() local
535 if (copy_from_user(&stmpconf, ifr->ifr_data, sizeof(stmpconf))) in bnxt_hwtstamp_set()
538 if (stmpconf.tx_type != HWTSTAMP_TX_ON && in bnxt_hwtstamp_set()
539 stmpconf.tx_type != HWTSTAMP_TX_OFF) in bnxt_hwtstamp_set()
545 switch (stmpconf.rx_filter) { in bnxt_hwtstamp_set()
578 if (stmpconf.tx_type == HWTSTAMP_TX_ON) in bnxt_hwtstamp_set()
587 stmpconf.rx_filter = ptp->rx_filter; in bnxt_hwtstamp_set()
588 return copy_to_user(ifr->ifr_data, &stmpconf, sizeof(stmpconf)) ? in bnxt_hwtstamp_set()
601 struct hwtstamp_config stmpconf; in bnxt_hwtstamp_get() local
608 stmpconf.flags = 0; in bnxt_hwtstamp_get()
[all …]
/linux-6.1.9/drivers/net/ethernet/broadcom/
Dtg3.c13801 struct hwtstamp_config stmpconf; in tg3_hwtstamp_set() local
13806 if (copy_from_user(&stmpconf, ifr->ifr_data, sizeof(stmpconf))) in tg3_hwtstamp_set()
13809 if (stmpconf.tx_type != HWTSTAMP_TX_ON && in tg3_hwtstamp_set()
13810 stmpconf.tx_type != HWTSTAMP_TX_OFF) in tg3_hwtstamp_set()
13813 switch (stmpconf.rx_filter) { in tg3_hwtstamp_set()
13873 if (stmpconf.tx_type == HWTSTAMP_TX_ON) in tg3_hwtstamp_set()
13878 return copy_to_user(ifr->ifr_data, &stmpconf, sizeof(stmpconf)) ? in tg3_hwtstamp_set()
13885 struct hwtstamp_config stmpconf; in tg3_hwtstamp_get() local
13890 stmpconf.flags = 0; in tg3_hwtstamp_get()
13891 stmpconf.tx_type = (tg3_flag(tp, TX_TSTAMP_EN) ? in tg3_hwtstamp_get()
[all …]