Lines Matching refs:ram_len
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()
1059 if (offs & 0x80000000) offs += ctx->ram_len; /* unsigned overflow intended */ in do_apf_run()
1097 const u32 ram_len, const u8* const packet, in apf_runner() argument
1102 if (3 & ram_len) return EXCEPTION; in apf_runner()
1107 if ((program_len | ram_len) >> 31) return EXCEPTION; in apf_runner()
1117 apf_ctx.ram_len = ram_len; in apf_runner()
1122 apf_ctx.mem.named.ram_len = ram_len; in apf_runner()
1133 if (buf_size >= sizeof(apf_ctx) && apf_ctx.program_len + buf_size <= apf_ctx.ram_len) { in apf_runner()
1148 const u32 ram_len, const u8* const packet, in apf_run() argument
1154 return apf_runner(ctx, program, program_len, ram_len, packet, packet_len, filter_age_16384ths); in apf_run()