Lines Matching refs:ctx_buffer
80 assert(log_context_cursor(ctx) <= (ctx->ctx_buffer + ctx->ctx_buffer_sz)); in log_context_cursor_advance()
254 const size_t hdr_size = (uint8_t *)ctx->ctx_hdr - ctx->ctx_buffer; in log_expand()
257 (void) memcpy(buf, ctx->ctx_buffer, copy_size); in log_expand()
260 logmem_free_locked(ctx->ctx_logmem, ctx->ctx_buffer, ctx->ctx_buffer_sz); in log_expand()
263 ctx->ctx_buffer = buf; in log_expand()
266 ctx->ctx_hdr = (os_log_fmt_hdr_t)&ctx->ctx_buffer[hdr_size]; in log_expand()
519 ctx->ctx_hdr = (os_log_fmt_hdr_t)&ctx->ctx_buffer[hdr_size]; in os_log_context_prepare_header()
535 .tp_buf = ctx->ctx_buffer, in os_log_context_encode()
581 size_t space_needed = log_context_cursor(ctx) + ctx->ctx_pubdata_sz - ctx->ctx_buffer; in os_log_context_encode()
592 ctx->ctx_content_sz = (uint16_t)(log_context_cursor(ctx) - ctx->ctx_buffer); in os_log_context_encode()
606 ctx->ctx_buffer = buffer; in os_log_context_init()
614 logmem_free_locked(ctx->ctx_logmem, ctx->ctx_buffer, ctx->ctx_buffer_sz); in os_log_context_free()