Searched refs:ip_ofs (Results 1 – 7 of 7) sorted by relevance
/hardware/google/apf/v7/ |
D | apf_checksum.h | 48 FUNC(int csum_and_return_dscp(u8* const pkt, const s32 len, const u8 ip_ofs, in FUNC() argument 56 if (ip_ofs < 255) { in FUNC() 57 u8 ip = pkt[ip_ofs] >> 4; in FUNC() 59 store_be16(pkt + ip_ofs + 10, calc_csum(0, pkt + ip_ofs, IPV4_HLEN)); in FUNC() 60 return pkt[ip_ofs + 1] >> 2; /* DSCP */ in FUNC() 62 return (read_be16(pkt + ip_ofs) >> 6) & 0x3F; /* DSCP */ in FUNC()
|
D | apf_interpreter.c | 566 FUNC(int apf_internal_csum_and_return_dscp(u8* const pkt, const s32 len, const u8 ip_ofs, in FUNC() argument 574 if (ip_ofs < 255) { in FUNC() 575 u8 ip = pkt[ip_ofs] >> 4; in FUNC() 577 store_be16(pkt + ip_ofs + 10, apf_internal_calc_csum(0, pkt + ip_ofs, IPV4_HLEN)); in FUNC() 578 return pkt[ip_ofs + 1] >> 2; /* DSCP */ in FUNC() 580 return (read_be16(pkt + ip_ofs) >> 6) & 0x3F; /* DSCP */ in FUNC() 923 u8 ip_ofs = DECODE_U8(); /* 2nd imm, at worst 5 B past prog_len */ in do_apf_run() local 940 int dscp = apf_internal_csum_and_return_dscp(ctx->tx_buf, (s32)pkt_len, ip_ofs, in do_apf_run()
|
D | apf_interpreter_source.c | 377 u8 ip_ofs = DECODE_U8(); // 2nd imm, at worst 5 B past prog_len in do_apf_run() local 394 int dscp = csum_and_return_dscp(ctx->tx_buf, (s32)pkt_len, ip_ofs, in do_apf_run()
|
/hardware/google/apf/ |
D | apf_checksum.h | 48 FUNC(int csum_and_return_dscp(u8* const pkt, const s32 len, const u8 ip_ofs, in FUNC() argument 56 if (ip_ofs < 255) { in FUNC() 57 u8 ip = pkt[ip_ofs] >> 4; in FUNC() 59 store_be16(pkt + ip_ofs + 10, calc_csum(0, pkt + ip_ofs, IPV4_HLEN)); in FUNC() 60 return pkt[ip_ofs + 1] >> 2; /* DSCP */ in FUNC() 62 return (read_be16(pkt + ip_ofs) >> 6) & 0x3F; /* DSCP */ in FUNC()
|
D | disassembler.c | 292 u8 ip_ofs = DECODE_IMM(1); in apf_disassemble() local 298 ip_ofs, csum_ofs, csum_start, partial_csum); in apf_disassemble() 300 bprintf("ip_ofs=%d", ip_ofs); in apf_disassemble()
|
/hardware/google/apf/v6/ |
D | apf_interpreter.c | 564 FUNC(int apf_internal_csum_and_return_dscp(u8* const pkt, const s32 len, const u8 ip_ofs, in FUNC() argument 572 if (ip_ofs < 255) { in FUNC() 573 u8 ip = pkt[ip_ofs] >> 4; in FUNC() 575 store_be16(pkt + ip_ofs + 10, apf_internal_calc_csum(0, pkt + ip_ofs, IPV4_HLEN)); in FUNC() 576 return pkt[ip_ofs + 1] >> 2; /* DSCP */ in FUNC() 578 return (read_be16(pkt + ip_ofs) >> 6) & 0x3F; /* DSCP */ in FUNC() 913 u8 ip_ofs = DECODE_U8(); /* 2nd imm, at worst 5 B past prog_len */ in do_apf_run() local 930 int dscp = apf_internal_csum_and_return_dscp(ctx->tx_buf, (s32)pkt_len, ip_ofs, in do_apf_run()
|
/hardware/google/apf/devtools/ |
D | apf_interpreter.c | 566 FUNC(int apf_internal_csum_and_return_dscp(u8* const pkt, const s32 len, const u8 ip_ofs, in FUNC() argument 574 if (ip_ofs < 255) { in FUNC() 575 u8 ip = pkt[ip_ofs] >> 4; in FUNC() 577 store_be16(pkt + ip_ofs + 10, apf_internal_calc_csum(0, pkt + ip_ofs, IPV4_HLEN)); in FUNC() 578 return pkt[ip_ofs + 1] >> 2; /* DSCP */ in FUNC() 580 return (read_be16(pkt + ip_ofs) >> 6) & 0x3F; /* DSCP */ in FUNC() 923 u8 ip_ofs = DECODE_U8(); /* 2nd imm, at worst 5 B past prog_len */ in do_apf_run() local 940 int dscp = apf_internal_csum_and_return_dscp(ctx->tx_buf, (s32)pkt_len, ip_ofs, in do_apf_run()
|