Lines Matching refs:ctx_buffer
81 assert(log_context_cursor(ctx) <= (ctx->ctx_buffer + ctx->ctx_buffer_sz)); in log_context_cursor_advance()
255 const size_t hdr_size = (uint8_t *)ctx->ctx_hdr - ctx->ctx_buffer; in log_expand()
258 (void) memcpy(buf, ctx->ctx_buffer, copy_size); in log_expand()
261 logmem_free_locked(ctx->ctx_logmem, ctx->ctx_buffer, ctx->ctx_buffer_sz); in log_expand()
264 ctx->ctx_buffer = buf; in log_expand()
267 ctx->ctx_hdr = (os_log_fmt_hdr_t)&ctx->ctx_buffer[hdr_size]; in log_expand()
525 const size_t hdr_size = write_address_location(ctx->ctx_buffer, dso, addr, ft_flags, driverKit); in os_log_encode_location()
526 ctx->ctx_hdr = (os_log_fmt_hdr_t)&ctx->ctx_buffer[hdr_size]; in os_log_encode_location()
577 size_t space_needed = log_context_cursor(ctx) + ctx->ctx_pubdata_sz - ctx->ctx_buffer; in os_log_context_encode()
588 ctx->ctx_content_sz = (uint16_t)(log_context_cursor(ctx) - ctx->ctx_buffer); in os_log_context_encode()
602 ctx->ctx_buffer = buffer; in os_log_context_init()
610 logmem_free_locked(ctx->ctx_logmem, ctx->ctx_buffer, ctx->ctx_buffer_sz); in os_log_context_free()