Lines Matching refs:spec
1203 efx_ptp_find_filter(struct list_head *filter_list, struct efx_filter_spec *spec)
1208 if (rxfilter->ether_type == spec->ether_type &&
1209 rxfilter->loc_port == spec->loc_port &&
1210 !memcmp(rxfilter->loc_host, spec->loc_host, sizeof(spec->loc_host)))
1247 struct efx_filter_spec *spec,
1254 rxfilter = efx_ptp_find_filter(filter_list, spec);
1264 rc = efx_filter_insert_filter(efx, spec, true);
1269 rxfilter->ether_type = spec->ether_type;
1270 rxfilter->loc_port = spec->loc_port;
1271 memcpy(rxfilter->loc_host, spec->loc_host, sizeof(spec->loc_host));
1290 struct efx_filter_spec spec;
1292 efx_ptp_init_filter(efx, &spec);
1293 efx_filter_set_ipv4_local(&spec, IPPROTO_UDP, addr, htons(port));
1294 return efx_ptp_insert_filter(efx, filter_list, &spec, expiry);
1302 struct efx_filter_spec spec;
1304 efx_ptp_init_filter(efx, &spec);
1305 efx_filter_set_ipv6_local(&spec, IPPROTO_UDP, addr, htons(port));
1306 return efx_ptp_insert_filter(efx, filter_list, &spec, expiry);
1313 struct efx_filter_spec spec;
1315 efx_ptp_init_filter(efx, &spec);
1316 efx_filter_set_eth_local(&spec, EFX_FILTER_VID_UNSPEC, addr);
1317 spec.match_flags |= EFX_FILTER_MATCH_ETHER_TYPE;
1318 spec.ether_type = htons(ETH_P_1588);
1319 return efx_ptp_insert_filter(efx, &ptp->rxfilters_mcast, &spec, 0);