Lines Matching refs:stmpconf
13887 struct hwtstamp_config stmpconf;
13892 if (copy_from_user(&stmpconf, ifr->ifr_data, sizeof(stmpconf)))
13895 if (stmpconf.flags)
13898 if (stmpconf.tx_type != HWTSTAMP_TX_ON &&
13899 stmpconf.tx_type != HWTSTAMP_TX_OFF)
13902 switch (stmpconf.rx_filter) {
13962 if (stmpconf.tx_type == HWTSTAMP_TX_ON)
13967 return copy_to_user(ifr->ifr_data, &stmpconf, sizeof(stmpconf)) ?
13974 struct hwtstamp_config stmpconf;
13979 stmpconf.flags = 0;
13980 stmpconf.tx_type = (tg3_flag(tp, TX_TSTAMP_EN) ?
13985 stmpconf.rx_filter = HWTSTAMP_FILTER_NONE;
13988 stmpconf.rx_filter = HWTSTAMP_FILTER_PTP_V1_L4_EVENT;
13991 stmpconf.rx_filter = HWTSTAMP_FILTER_PTP_V1_L4_SYNC;
13994 stmpconf.rx_filter = HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ;
13997 stmpconf.rx_filter = HWTSTAMP_FILTER_PTP_V2_EVENT;
14000 stmpconf.rx_filter = HWTSTAMP_FILTER_PTP_V2_L2_EVENT;
14003 stmpconf.rx_filter = HWTSTAMP_FILTER_PTP_V2_L4_EVENT;
14006 stmpconf.rx_filter = HWTSTAMP_FILTER_PTP_V2_SYNC;
14009 stmpconf.rx_filter = HWTSTAMP_FILTER_PTP_V2_L2_SYNC;
14012 stmpconf.rx_filter = HWTSTAMP_FILTER_PTP_V2_L4_SYNC;
14015 stmpconf.rx_filter = HWTSTAMP_FILTER_PTP_V2_DELAY_REQ;
14018 stmpconf.rx_filter = HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ;
14021 stmpconf.rx_filter = HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ;
14028 return copy_to_user(ifr->ifr_data, &stmpconf, sizeof(stmpconf)) ?