Lines Matching refs:stmpconf
13836 struct hwtstamp_config stmpconf;
13841 if (copy_from_user(&stmpconf, ifr->ifr_data, sizeof(stmpconf)))
13844 if (stmpconf.tx_type != HWTSTAMP_TX_ON &&
13845 stmpconf.tx_type != HWTSTAMP_TX_OFF)
13848 switch (stmpconf.rx_filter) {
13908 if (stmpconf.tx_type == HWTSTAMP_TX_ON)
13913 return copy_to_user(ifr->ifr_data, &stmpconf, sizeof(stmpconf)) ?
13920 struct hwtstamp_config stmpconf;
13925 stmpconf.flags = 0;
13926 stmpconf.tx_type = (tg3_flag(tp, TX_TSTAMP_EN) ?
13931 stmpconf.rx_filter = HWTSTAMP_FILTER_NONE;
13934 stmpconf.rx_filter = HWTSTAMP_FILTER_PTP_V1_L4_EVENT;
13937 stmpconf.rx_filter = HWTSTAMP_FILTER_PTP_V1_L4_SYNC;
13940 stmpconf.rx_filter = HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ;
13943 stmpconf.rx_filter = HWTSTAMP_FILTER_PTP_V2_EVENT;
13946 stmpconf.rx_filter = HWTSTAMP_FILTER_PTP_V2_L2_EVENT;
13949 stmpconf.rx_filter = HWTSTAMP_FILTER_PTP_V2_L4_EVENT;
13952 stmpconf.rx_filter = HWTSTAMP_FILTER_PTP_V2_SYNC;
13955 stmpconf.rx_filter = HWTSTAMP_FILTER_PTP_V2_L2_SYNC;
13958 stmpconf.rx_filter = HWTSTAMP_FILTER_PTP_V2_L4_SYNC;
13961 stmpconf.rx_filter = HWTSTAMP_FILTER_PTP_V2_DELAY_REQ;
13964 stmpconf.rx_filter = HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ;
13967 stmpconf.rx_filter = HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ;
13974 return copy_to_user(ifr->ifr_data, &stmpconf, sizeof(stmpconf)) ?