Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ptp.c546 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()
[all …]
/linux/drivers/net/ethernet/broadcom/
H A Dtg3.c13901 struct hwtstamp_config stmpconf; in tg3_hwtstamp_set() local
13906 if (copy_from_user(&stmpconf, ifr->ifr_data, sizeof(stmpconf))) in tg3_hwtstamp_set()
13909 if (stmpconf.tx_type != HWTSTAMP_TX_ON && in tg3_hwtstamp_set()
13910 stmpconf.tx_type != HWTSTAMP_TX_OFF) in tg3_hwtstamp_set()
13913 switch (stmpconf.rx_filter) { in tg3_hwtstamp_set()
13973 if (stmpconf.tx_type == HWTSTAMP_TX_ON) in tg3_hwtstamp_set()
13978 return copy_to_user(ifr->ifr_data, &stmpconf, sizeof(stmpconf)) ? in tg3_hwtstamp_set()
13985 struct hwtstamp_config stmpconf; in tg3_hwtstamp_get() local
13990 stmpconf.flags = 0; in tg3_hwtstamp_get()
13991 stmpconf.tx_type = (tg3_flag(tp, TX_TSTAMP_EN) ? in tg3_hwtstamp_get()
[all …]