Lines Matching refs:apf_ctx
564 apf_context apf_ctx = { 0 }; in apf_runner() local
567 apf_ctx.ptr_size = sizeof(void*); in apf_runner()
568 apf_ctx.caller_ctx = ctx; in apf_runner()
569 apf_ctx.program = (u8*)program; in apf_runner()
570 apf_ctx.program_len = program_len; in apf_runner()
571 apf_ctx.ram_len = ram_len; in apf_runner()
572 apf_ctx.packet = packet; in apf_runner()
573 apf_ctx.packet_len = packet_len; in apf_runner()
575 apf_ctx.mem.named.program_size = program_len; in apf_runner()
576 apf_ctx.mem.named.ram_len = ram_len; in apf_runner()
577 apf_ctx.mem.named.packet_size = packet_len; in apf_runner()
578 apf_ctx.mem.named.apf_version = apf_version(); in apf_runner()
579 apf_ctx.mem.named.filter_age = filter_age_16384ths >> 14; in apf_runner()
580 apf_ctx.mem.named.filter_age_16384ths = filter_age_16384ths; in apf_runner()
582 ret = do_apf_run(&apf_ctx); in apf_runner()
583 if (apf_ctx.tx_buf) do_discard_buffer(&apf_ctx); in apf_runner()
586 u16 buf_size = apf_ctx.except_buf_sz; in apf_runner()
587 if (buf_size >= sizeof(apf_ctx) && apf_ctx.program_len + buf_size <= apf_ctx.ram_len) { in apf_runner()
588 u8* buf = apf_ctx.program + apf_ctx.program_len; in apf_runner()
589 memcpy(buf, &apf_ctx, sizeof(apf_ctx)); in apf_runner()
590 buf_size -= sizeof(apf_ctx); in apf_runner()
591 buf += sizeof(apf_ctx); in apf_runner()
592 if (buf_size > apf_ctx.packet_len) buf_size = apf_ctx.packet_len; in apf_runner()
593 memcpy(buf, apf_ctx.packet, buf_size); in apf_runner()