Lines Matching refs:config
43 struct hwtstamp_config *config)
51 * enabled when this config function ends successfully
55 switch (config->tx_type) {
62 config->tx_type = HWTSTAMP_TX_ON;
69 switch (config->rx_filter) {
72 config->rx_filter = HWTSTAMP_FILTER_PTP_V2_EVENT;
84 config->rx_filter = HWTSTAMP_FILTER_PTP_V2_EVENT;
90 config->rx_filter = HWTSTAMP_FILTER_PTP_V2_EVENT;
103 /* If this point is reached, then the requested hwtstamp config is
117 struct hwtstamp_config config;
122 if (copy_from_user(&config, ifr->ifr_data, sizeof(config)))
125 err = hellcreek_set_hwtstamp_config(hellcreek, port, &config);
130 memcpy(&ps->tstamp_config, &config, sizeof(config));
132 return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ?
141 struct hwtstamp_config *config;
144 config = &ps->tstamp_config;
146 return copy_to_user(ifr->ifr_data, config, sizeof(*config)) ?