Lines Matching refs:offsetof
180 if (offsetof(struct sk_buff, len) <= 127) in bpf_jit_compile()
182 EMIT4(0x44, 0x8b, 0x4f, offsetof(struct sk_buff, len)); in bpf_jit_compile()
186 EMIT(offsetof(struct sk_buff, len), 4); in bpf_jit_compile()
188 if (is_imm8(offsetof(struct sk_buff, data_len))) in bpf_jit_compile()
190 EMIT4(0x44, 0x2b, 0x4f, offsetof(struct sk_buff, data_len)); in bpf_jit_compile()
193 EMIT(offsetof(struct sk_buff, data_len), 4); in bpf_jit_compile()
196 if (is_imm8(offsetof(struct sk_buff, data))) in bpf_jit_compile()
198 EMIT4(0x4c, 0x8b, 0x47, offsetof(struct sk_buff, data)); in bpf_jit_compile()
202 EMIT(offsetof(struct sk_buff, data), 4); in bpf_jit_compile()
399 if (is_imm8(offsetof(struct sk_buff, len))) in bpf_jit_compile()
401 EMIT3(0x8b, 0x47, offsetof(struct sk_buff, len)); in bpf_jit_compile()
404 EMIT(offsetof(struct sk_buff, len), 4); in bpf_jit_compile()
409 if (is_imm8(offsetof(struct sk_buff, len))) in bpf_jit_compile()
411 EMIT3(0x8b, 0x5f, offsetof(struct sk_buff, len)); in bpf_jit_compile()
414 EMIT(offsetof(struct sk_buff, len), 4); in bpf_jit_compile()
419 if (is_imm8(offsetof(struct sk_buff, protocol))) { in bpf_jit_compile()
421 EMIT4(0x0f, 0xb7, 0x47, offsetof(struct sk_buff, protocol)); in bpf_jit_compile()
424 EMIT(offsetof(struct sk_buff, protocol), 4); in bpf_jit_compile()
429 if (is_imm8(offsetof(struct sk_buff, dev))) { in bpf_jit_compile()
431 EMIT4(0x48, 0x8b, 0x47, offsetof(struct sk_buff, dev)); in bpf_jit_compile()
434 EMIT(offsetof(struct sk_buff, dev), 4); in bpf_jit_compile()
440 EMIT(offsetof(struct net_device, ifindex), 4); in bpf_jit_compile()
444 if (is_imm8(offsetof(struct sk_buff, mark))) { in bpf_jit_compile()
446 EMIT3(0x8b, 0x47, offsetof(struct sk_buff, mark)); in bpf_jit_compile()
449 EMIT(offsetof(struct sk_buff, mark), 4); in bpf_jit_compile()
454 if (is_imm8(offsetof(struct sk_buff, rxhash))) { in bpf_jit_compile()
456 EMIT3(0x8b, 0x47, offsetof(struct sk_buff, rxhash)); in bpf_jit_compile()
459 EMIT(offsetof(struct sk_buff, rxhash), 4); in bpf_jit_compile()
464 if (is_imm8(offsetof(struct sk_buff, queue_mapping))) { in bpf_jit_compile()
466 EMIT4(0x0f, 0xb7, 0x47, offsetof(struct sk_buff, queue_mapping)); in bpf_jit_compile()
469 EMIT(offsetof(struct sk_buff, queue_mapping), 4); in bpf_jit_compile()