RTAS_ERROR_LOG_MAX
static char rtas_err_buf[RTAS_ERROR_LOG_MAX];
buf = kmalloc(RTAS_ERROR_LOG_MAX, GFP_ATOMIC);
memmove(buf, rtas_err_buf, RTAS_ERROR_LOG_MAX);
#define get_errorlog_buffer() kmalloc(RTAS_ERROR_LOG_MAX, GFP_KERNEL)
static u32 rtas_error_log_max __ro_after_init = RTAS_ERROR_LOG_MAX;
propname, RTAS_ERROR_LOG_MAX);
max = RTAS_ERROR_LOG_MAX;
if (max > RTAS_ERROR_LOG_MAX) {
propname, max, RTAS_ERROR_LOG_MAX);
max = RTAS_ERROR_LOG_MAX;
static unsigned char logdata[RTAS_ERROR_LOG_MAX];
static unsigned char slot_errbuf[RTAS_ERROR_LOG_MAX];
static unsigned char hvpipe_ras_buf[RTAS_ERROR_LOG_MAX];
static unsigned char ras_log_buf[RTAS_ERROR_LOG_MAX];
memset(local_paca->mce_data_buf, 0, RTAS_ERROR_LOG_MAX);
len = min_t(int, error_log_length, RTAS_ERROR_LOG_MAX);
mce_data_buf = memblock_alloc_try_nid_raw(RTAS_ERROR_LOG_MAX * nr_cpus,
RTAS_ERROR_LOG_MAX, MEMBLOCK_LOW_LIMIT,
RTAS_ERROR_LOG_MAX * nr_cpus, &ppc64_rma_size);
(RTAS_ERROR_LOG_MAX * i);