Lines Matching +full:0 +full:x000000ff
48 f->val.tos = (ntohl(val) >> 16) & 0x000000FF; in cxgb4_fill_ipv4_tos()
49 f->mask.tos = (ntohl(mask) >> 16) & 0x000000FF; in cxgb4_fill_ipv4_tos()
51 return 0; in cxgb4_fill_ipv4_tos()
60 frag_val = (ntohl(val) >> 13) & 0x00000007; in cxgb4_fill_ipv4_frag()
61 mask_val = ntohl(mask) & 0x0000FFFF; in cxgb4_fill_ipv4_frag()
63 if (frag_val == 0x1 && mask_val != 0x3FFF) { /* MF set */ in cxgb4_fill_ipv4_frag()
66 } else if (frag_val == 0x2 && mask_val != 0x3FFF) { /* DF set */ in cxgb4_fill_ipv4_frag()
67 f->val.frag = 0; in cxgb4_fill_ipv4_frag()
73 return 0; in cxgb4_fill_ipv4_frag()
79 f->val.proto = (ntohl(val) >> 16) & 0x000000FF; in cxgb4_fill_ipv4_proto()
80 f->mask.proto = (ntohl(mask) >> 16) & 0x000000FF; in cxgb4_fill_ipv4_proto()
82 return 0; in cxgb4_fill_ipv4_proto()
88 memcpy(&f->val.fip[0], &val, sizeof(u32)); in cxgb4_fill_ipv4_src_ip()
89 memcpy(&f->mask.fip[0], &mask, sizeof(u32)); in cxgb4_fill_ipv4_src_ip()
91 return 0; in cxgb4_fill_ipv4_src_ip()
97 memcpy(&f->val.lip[0], &val, sizeof(u32)); in cxgb4_fill_ipv4_dst_ip()
98 memcpy(&f->mask.lip[0], &mask, sizeof(u32)); in cxgb4_fill_ipv4_dst_ip()
100 return 0; in cxgb4_fill_ipv4_dst_ip()
104 { .off = 0, .val = cxgb4_fill_ipv4_tos },
116 f->val.tos = (ntohl(val) >> 20) & 0x000000FF; in cxgb4_fill_ipv6_tos()
117 f->mask.tos = (ntohl(mask) >> 20) & 0x000000FF; in cxgb4_fill_ipv6_tos()
119 return 0; in cxgb4_fill_ipv6_tos()
125 f->val.proto = (ntohl(val) >> 8) & 0x000000FF; in cxgb4_fill_ipv6_proto()
126 f->mask.proto = (ntohl(mask) >> 8) & 0x000000FF; in cxgb4_fill_ipv6_proto()
128 return 0; in cxgb4_fill_ipv6_proto()
134 memcpy(&f->val.fip[0], &val, sizeof(u32)); in cxgb4_fill_ipv6_src_ip0()
135 memcpy(&f->mask.fip[0], &mask, sizeof(u32)); in cxgb4_fill_ipv6_src_ip0()
137 return 0; in cxgb4_fill_ipv6_src_ip0()
146 return 0; in cxgb4_fill_ipv6_src_ip1()
155 return 0; in cxgb4_fill_ipv6_src_ip2()
164 return 0; in cxgb4_fill_ipv6_src_ip3()
170 memcpy(&f->val.lip[0], &val, sizeof(u32)); in cxgb4_fill_ipv6_dst_ip0()
171 memcpy(&f->mask.lip[0], &mask, sizeof(u32)); in cxgb4_fill_ipv6_dst_ip0()
173 return 0; in cxgb4_fill_ipv6_dst_ip0()
182 return 0; in cxgb4_fill_ipv6_dst_ip1()
191 return 0; in cxgb4_fill_ipv6_dst_ip2()
200 return 0; in cxgb4_fill_ipv6_dst_ip3()
204 { .off = 0, .val = cxgb4_fill_ipv6_tos },
223 f->val.lport = ntohl(val) & 0x0000FFFF; in cxgb4_fill_l4_ports()
224 f->mask.lport = ntohl(mask) & 0x0000FFFF; in cxgb4_fill_l4_ports()
226 return 0; in cxgb4_fill_l4_ports()
230 { .off = 0, .val = cxgb4_fill_l4_ports },
235 { .off = 0, .val = cxgb4_fill_l4_ports },
258 .off = 0,
259 .offoff = 0,
261 .offmask = cpu_to_be16(0x0f00),
265 .val = cpu_to_be32(0x00060000),
266 .mask = cpu_to_be32(0x00ff0000),
273 .off = 0,
274 .offoff = 0,
276 .offmask = cpu_to_be16(0x0f00),
280 .val = cpu_to_be32(0x00110000),
281 .mask = cpu_to_be32(0x00ff0000),
296 .offoff = 0,
297 .offshift = 0,
298 .offmask = 0,
302 .val = cpu_to_be32(0x00000600),
303 .mask = cpu_to_be32(0x0000ff00),
311 .offoff = 0,
312 .offshift = 0,
313 .offmask = 0,
317 .val = cpu_to_be32(0x00001100),
318 .mask = cpu_to_be32(0x0000ff00),