Searched refs:VALIDATE_BUF_SIZE (Results 1 – 2 of 2) sorted by relevance
/arch/powerpc/platforms/powernv/ |
D | opal-flash.c | 74 #define VALIDATE_BUF_SIZE 4096 macro 170 if (args_buf->buf_size > (VALIDATE_BUF_SIZE - len)) { in validate_show() 171 memcpy(buf + len, args_buf->buf, VALIDATE_BUF_SIZE - len); in validate_show() 172 len = VALIDATE_BUF_SIZE; in validate_show() 202 image_data.size < VALIDATE_BUF_SIZE) { in validate_store() 209 memcpy(args_buf->buf, image_data.data, VALIDATE_BUF_SIZE); in validate_store() 212 args_buf->buf_size = VALIDATE_BUF_SIZE; in validate_store() 404 if (image_data.size < VALIDATE_BUF_SIZE) { in alloc_image_buf() 524 validate_flash_data.buf = kzalloc(VALIDATE_BUF_SIZE, GFP_KERNEL); in opal_flash_update_init()
|
/arch/powerpc/kernel/ |
D | rtas_flash.c | 87 #define VALIDATE_BUF_SIZE 4096 macro 454 memcpy(rtas_data_buf, args_buf->buf, VALIDATE_BUF_SIZE); in validate_flash() 457 memcpy(args_buf->buf, rtas_data_buf, VALIDATE_BUF_SIZE); in validate_flash() 508 if ((*off >= VALIDATE_BUF_SIZE) || in validate_flash_write() 515 if (*off + count >= VALIDATE_BUF_SIZE) { in validate_flash_write() 516 count = VALIDATE_BUF_SIZE - *off; in validate_flash_write() 546 args_buf->buf_size = VALIDATE_BUF_SIZE; in validate_flash_release() 709 rtas_validate_flash_data.buf = kzalloc(VALIDATE_BUF_SIZE, GFP_KERNEL); in rtas_flash_init()
|