Lines Matching refs:mask
41 int (*val)(struct ch_filter_specification *f, __be32 val, __be32 mask);
46 __be32 val, __be32 mask) in cxgb4_fill_ipv4_tos() argument
49 f->mask.tos = (ntohl(mask) >> 16) & 0x000000FF; in cxgb4_fill_ipv4_tos()
55 __be32 val, __be32 mask) in cxgb4_fill_ipv4_frag() argument
61 mask_val = ntohl(mask) & 0x0000FFFF; in cxgb4_fill_ipv4_frag()
65 f->mask.frag = 1; in cxgb4_fill_ipv4_frag()
68 f->mask.frag = 1; in cxgb4_fill_ipv4_frag()
77 __be32 val, __be32 mask) in cxgb4_fill_ipv4_proto() argument
80 f->mask.proto = (ntohl(mask) >> 16) & 0x000000FF; in cxgb4_fill_ipv4_proto()
86 __be32 val, __be32 mask) in cxgb4_fill_ipv4_src_ip() argument
89 memcpy(&f->mask.fip[0], &mask, sizeof(u32)); in cxgb4_fill_ipv4_src_ip()
95 __be32 val, __be32 mask) in cxgb4_fill_ipv4_dst_ip() argument
98 memcpy(&f->mask.lip[0], &mask, sizeof(u32)); in cxgb4_fill_ipv4_dst_ip()
114 __be32 val, __be32 mask) in cxgb4_fill_ipv6_tos() argument
117 f->mask.tos = (ntohl(mask) >> 20) & 0x000000FF; in cxgb4_fill_ipv6_tos()
123 __be32 val, __be32 mask) in cxgb4_fill_ipv6_proto() argument
126 f->mask.proto = (ntohl(mask) >> 8) & 0x000000FF; in cxgb4_fill_ipv6_proto()
132 __be32 val, __be32 mask) in cxgb4_fill_ipv6_src_ip0() argument
135 memcpy(&f->mask.fip[0], &mask, sizeof(u32)); in cxgb4_fill_ipv6_src_ip0()
141 __be32 val, __be32 mask) in cxgb4_fill_ipv6_src_ip1() argument
144 memcpy(&f->mask.fip[4], &mask, sizeof(u32)); in cxgb4_fill_ipv6_src_ip1()
150 __be32 val, __be32 mask) in cxgb4_fill_ipv6_src_ip2() argument
153 memcpy(&f->mask.fip[8], &mask, sizeof(u32)); in cxgb4_fill_ipv6_src_ip2()
159 __be32 val, __be32 mask) in cxgb4_fill_ipv6_src_ip3() argument
162 memcpy(&f->mask.fip[12], &mask, sizeof(u32)); in cxgb4_fill_ipv6_src_ip3()
168 __be32 val, __be32 mask) in cxgb4_fill_ipv6_dst_ip0() argument
171 memcpy(&f->mask.lip[0], &mask, sizeof(u32)); in cxgb4_fill_ipv6_dst_ip0()
177 __be32 val, __be32 mask) in cxgb4_fill_ipv6_dst_ip1() argument
180 memcpy(&f->mask.lip[4], &mask, sizeof(u32)); in cxgb4_fill_ipv6_dst_ip1()
186 __be32 val, __be32 mask) in cxgb4_fill_ipv6_dst_ip2() argument
189 memcpy(&f->mask.lip[8], &mask, sizeof(u32)); in cxgb4_fill_ipv6_dst_ip2()
195 __be32 val, __be32 mask) in cxgb4_fill_ipv6_dst_ip3() argument
198 memcpy(&f->mask.lip[12], &mask, sizeof(u32)); in cxgb4_fill_ipv6_dst_ip3()
219 __be32 val, __be32 mask) in cxgb4_fill_l4_ports() argument
222 f->mask.fport = ntohl(mask) >> 16; in cxgb4_fill_l4_ports()
224 f->mask.lport = ntohl(mask) & 0x0000FFFF; in cxgb4_fill_l4_ports()
266 .mask = cpu_to_be32(0x00ff0000),
281 .mask = cpu_to_be32(0x00ff0000),
303 .mask = cpu_to_be32(0x0000ff00),
318 .mask = cpu_to_be32(0x0000ff00),