/hardware/google/apf/ |
D | apf_run.c | 171 uint32_t program_len, uint32_t ram_len, const char* pkt, uint32_t filter_age) { in packet_handler() argument 179 ret = apf_run(NULL, (uint32_t*)program, program_len, ram_len, packet, packet_len, in packet_handler() 182 ret = accept_packet(program, program_len, ram_len, packet, packet_len, in packet_handler() 202 uint32_t program_len, uint32_t ram_len, const char* filename, in file_handler() argument 234 result = apf_run(NULL, (uint32_t*)program, program_len, ram_len, apf_packet, in file_handler() 237 result = accept_packet(program, program_len, ram_len, apf_packet, in file_handler() 368 uint32_t ram_len = program_len + data_len; in main() local 370 ram_len += 3; in main() 371 ram_len &= ~3; in main() 372 if (data_len < 20) ram_len += 20; in main() [all …]
|
D | apf_interpreter.c | 27 const uint32_t* memory, uint32_t ram_len); 45 int accept_packet(uint8_t* program, uint32_t program_len, uint32_t ram_len, in accept_packet() argument 55 (p) + (size) <= ram_len && \ in accept_packet() 73 memory[MEMORY_OFFSET_DATA_SIZE] = ram_len; in accept_packet() 90 APF_TRACE_HOOK(pc, registers, program, program_len, packet, packet_len, memory, ram_len); in accept_packet() 290 offs = ram_len + offs; // unsigned overflow intended in accept_packet() 306 offs = ram_len + offs; // unsigned overflow intended in accept_packet()
|
D | apf_interpreter.h | 58 int accept_packet(uint8_t* program, uint32_t program_len, uint32_t ram_len,
|
/hardware/google/apf/v7/ |
D | apf_interpreter_source.c | 45 const u32* memory, u32 ram_len); 84 u32 ram_len; // Length of the entire apf program/data region member 127 #define IN_RAM_BOUNDS(p) (ENFORCE_UNSIGNED(p) && (p) < ctx->ram_len) in do_apf_run() 133 (p) + (size) <= ctx->ram_len && \ in do_apf_run() 143 u32 *counter = (u32*)(ctx->program + ctx->ram_len); in do_apf_run() 153 if (ctx->program_len + 20 > ctx->ram_len) return EXCEPTION; in do_apf_run() 172 ctx->packet, ctx->packet_len, ctx->mem.slot, ctx->ram_len); in do_apf_run() 208 if (4 * imm > ctx->ram_len) return EXCEPTION; in do_apf_run() 501 if (imm * 4 > ctx->ram_len) return EXCEPTION; in do_apf_run() 513 if (offs & 0x80000000) offs += ctx->ram_len; // unsigned overflow intended in do_apf_run() [all …]
|
D | apf_interpreter.c | 203 u32 ram_len; /* 12: Total size of program + data, ie. ram_len */ member 591 const u32* memory, u32 ram_len); 630 u32 ram_len; /* Length of the entire apf program/data region */ member 673 #define IN_RAM_BOUNDS(p) (ENFORCE_UNSIGNED(p) && (p) < ctx->ram_len) in do_apf_run() 679 (p) + (size) <= ctx->ram_len && \ in do_apf_run() 689 u32 *counter = (u32*)(ctx->program + ctx->ram_len); in do_apf_run() 699 if (ctx->program_len + 20 > ctx->ram_len) return EXCEPTION; in do_apf_run() 718 ctx->packet, ctx->packet_len, ctx->mem.slot, ctx->ram_len); in do_apf_run() 754 if (4 * imm > ctx->ram_len) return EXCEPTION; in do_apf_run() 1047 if (imm * 4 > ctx->ram_len) return EXCEPTION; in do_apf_run() [all …]
|
D | apf_interpreter.h | 168 const uint32_t ram_len, const uint8_t* const packet,
|
D | apf.h | 147 u32 ram_len; // 12: Total size of program + data, ie. ram_len member
|
/hardware/google/apf/v6/ |
D | apf_interpreter.c | 203 u32 ram_len; /* 12: Total size of program + data, ie. ram_len */ member 589 const u32* memory, u32 ram_len); 628 u32 ram_len; /* Length of the entire apf program/data region */ member 666 #define IN_RAM_BOUNDS(p) (ENFORCE_UNSIGNED(p) && (p) < ctx->ram_len) in do_apf_run() 672 (p) + (size) <= ctx->ram_len && \ in do_apf_run() 682 u32 *counter = (u32*)(ctx->program + ctx->ram_len); in do_apf_run() 692 if (ctx->program_len + 20 > ctx->ram_len) return EXCEPTION; in do_apf_run() 710 ctx->packet, ctx->packet_len, ctx->mem.slot, ctx->ram_len); in do_apf_run() 746 if (4 * imm > ctx->ram_len) return EXCEPTION; in do_apf_run() 1037 if (imm * 4 > ctx->ram_len) return EXCEPTION; in do_apf_run() [all …]
|
D | apf_interpreter.h | 168 const uint32_t ram_len, const uint8_t* const packet,
|
/hardware/google/apf/devtools/ |
D | apf_interpreter.c | 203 u32 ram_len; /* 12: Total size of program + data, ie. ram_len */ member 591 const u32* memory, u32 ram_len); 630 u32 ram_len; /* Length of the entire apf program/data region */ member 673 #define IN_RAM_BOUNDS(p) (ENFORCE_UNSIGNED(p) && (p) < ctx->ram_len) in do_apf_run() 679 (p) + (size) <= ctx->ram_len && \ in do_apf_run() 689 u32 *counter = (u32*)(ctx->program + ctx->ram_len); in do_apf_run() 699 if (ctx->program_len + 20 > ctx->ram_len) return EXCEPTION; in do_apf_run() 718 ctx->packet, ctx->packet_len, ctx->mem.slot, ctx->ram_len); in do_apf_run() 754 if (4 * imm > ctx->ram_len) return EXCEPTION; in do_apf_run() 1047 if (imm * 4 > ctx->ram_len) return EXCEPTION; in do_apf_run() [all …]
|
D | apf_interpreter.h | 168 const uint32_t ram_len, const uint8_t* const packet,
|
/hardware/google/apf/v4/ |
D | apf_interpreter.c | 27 const uint32_t* memory, uint32_t ram_len); 45 int accept_packet(uint8_t* program, uint32_t program_len, uint32_t ram_len, in accept_packet() argument 55 (p) + (size) <= ram_len && \ in accept_packet() 73 memory[MEMORY_OFFSET_DATA_SIZE] = ram_len; in accept_packet() 90 APF_TRACE_HOOK(pc, registers, program, program_len, packet, packet_len, memory, ram_len); in accept_packet() 290 offs = ram_len + offs; // unsigned overflow intended in accept_packet() 306 offs = ram_len + offs; // unsigned overflow intended in accept_packet()
|
D | apf_interpreter.h | 58 int accept_packet(uint8_t* program, uint32_t program_len, uint32_t ram_len,
|