Lines Matching refs:filt

38 	const struct iwl_sap_eth_filter *filt;  in iwl_mei_rx_filter_eth()  local
45 for (filt = &filters->eth_filters[0]; in iwl_mei_rx_filter_eth()
46 filt < &filters->eth_filters[0] + ARRAY_SIZE(filters->eth_filters); in iwl_mei_rx_filter_eth()
47 filt++) { in iwl_mei_rx_filter_eth()
49 if (!(filt->flags & SAP_ETH_FILTER_ENABLED)) in iwl_mei_rx_filter_eth()
52 if (compare_ether_header(filt->mac_address, ethhdr->h_dest)) in iwl_mei_rx_filter_eth()
56 if (filt->flags & SAP_ETH_FILTER_COPY) in iwl_mei_rx_filter_eth()
62 if (filt->flags & SAP_ETH_FILTER_STOP) { in iwl_mei_rx_filter_eth()
84 const struct iwl_sap_ipv4_filter *filt = &filters->ipv4_filter; in iwl_mei_rx_filter_arp() local
87 u32 flags = le32_to_cpu(filt->flags); in iwl_mei_rx_filter_arp()
113 (filt->flags & cpu_to_le32(SAP_IPV4_FILTER_ARP_REQ_PASS)) && in iwl_mei_rx_filter_arp()
114 (filt->ipv4_addr == 0 || filt->ipv4_addr == *target_ip)) { in iwl_mei_rx_filter_arp()
142 const struct iwl_sap_flex_filter *filt; in iwl_mei_rx_filter_tcp_udp() local
144 for (filt = &filters->flex_filters[0]; in iwl_mei_rx_filter_tcp_udp()
145 filt < &filters->flex_filters[0] + ARRAY_SIZE(filters->flex_filters); in iwl_mei_rx_filter_tcp_udp()
146 filt++) { in iwl_mei_rx_filter_tcp_udp()
147 if (!(filt->flags & SAP_FLEX_FILTER_ENABLED)) in iwl_mei_rx_filter_tcp_udp()
154 if ((filt->flags & in iwl_mei_rx_filter_tcp_udp()
159 if ((filt->flags & SAP_FLEX_FILTER_UDP) && in iwl_mei_rx_filter_tcp_udp()
163 if ((filt->flags & SAP_FLEX_FILTER_TCP) && in iwl_mei_rx_filter_tcp_udp()
173 if ((filt->src_port && filt->src_port != udp_hdr(skb)->source) || in iwl_mei_rx_filter_tcp_udp()
174 (filt->dst_port && filt->dst_port != udp_hdr(skb)->dest)) in iwl_mei_rx_filter_tcp_udp()
177 if (filt->flags & SAP_FLEX_FILTER_COPY) in iwl_mei_rx_filter_tcp_udp()
192 const struct iwl_sap_ipv4_filter *filt = &filters->ipv4_filter; in iwl_mei_rx_filter_ipv4() local
235 if ((filt->flags & cpu_to_le32(SAP_IPV4_FILTER_ICMP_PASS)) && in iwl_mei_rx_filter_ipv4()
237 if (filt->flags & cpu_to_le32(SAP_IPV4_FILTER_ICMP_COPY)) in iwl_mei_rx_filter_ipv4()