Lines Matching refs:ts_info
15 struct ethtool_ts_info ts_info; member
37 ret = __ethtool_get_ts_info(dev, &data->ts_info); in tsinfo_prepare_data()
48 const struct ethtool_ts_info *ts_info = &data->ts_info; in tsinfo_reply_size() local
56 if (ts_info->so_timestamping) { in tsinfo_reply_size()
57 ret = ethnl_bitset32_size(&ts_info->so_timestamping, NULL, in tsinfo_reply_size()
64 if (ts_info->tx_types) { in tsinfo_reply_size()
65 ret = ethnl_bitset32_size(&ts_info->tx_types, NULL, in tsinfo_reply_size()
72 if (ts_info->rx_filters) { in tsinfo_reply_size()
73 ret = ethnl_bitset32_size(&ts_info->rx_filters, NULL, in tsinfo_reply_size()
80 if (ts_info->phc_index >= 0) in tsinfo_reply_size()
92 const struct ethtool_ts_info *ts_info = &data->ts_info; in tsinfo_fill_reply() local
95 if (ts_info->so_timestamping) { in tsinfo_fill_reply()
97 &ts_info->so_timestamping, NULL, in tsinfo_fill_reply()
103 if (ts_info->tx_types) { in tsinfo_fill_reply()
105 &ts_info->tx_types, NULL, in tsinfo_fill_reply()
111 if (ts_info->rx_filters) { in tsinfo_fill_reply()
113 &ts_info->rx_filters, NULL, in tsinfo_fill_reply()
119 if (ts_info->phc_index >= 0 && in tsinfo_fill_reply()
120 nla_put_u32(skb, ETHTOOL_A_TSINFO_PHC_INDEX, ts_info->phc_index)) in tsinfo_fill_reply()