Lines Matching refs:args_buf

153 	struct validate_flash_t *args_buf = &validate_flash_data;  in validate_show()  local
157 if (args_buf->status < VALIDATE_TMP_UPDATE) { in validate_show()
158 len = sprintf(buf, "%d\n", args_buf->status); in validate_show()
163 len = sprintf(buf, "%d\n", args_buf->result); in validate_show()
166 if ((args_buf->result != VALIDATE_TMP_UPDATE) && in validate_show()
167 (args_buf->result < VALIDATE_CUR_UNKNOWN)) in validate_show()
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()
174 memcpy(buf + len, args_buf->buf, args_buf->buf_size); in validate_show()
175 len += args_buf->buf_size; in validate_show()
179 args_buf->status = FLASH_NO_OP; in validate_show()
194 struct validate_flash_t *args_buf = &validate_flash_data; in validate_store() local
203 args_buf->result = VALIDATE_INVALID_IMG; in validate_store()
204 args_buf->status = VALIDATE_IMG_INCOMPLETE; in validate_store()
209 memcpy(args_buf->buf, image_data.data, VALIDATE_BUF_SIZE); in validate_store()
211 args_buf->status = VALIDATE_IMG_READY; in validate_store()
212 args_buf->buf_size = VALIDATE_BUF_SIZE; in validate_store()
227 struct manage_flash_t *const args_buf = &manage_flash_data; in opal_flash_manage() local
229 args_buf->status = opal_manage_flash(op); in opal_flash_manage()
238 struct manage_flash_t *const args_buf = &manage_flash_data; in manage_show() local
241 rc = sprintf(buf, "%d\n", args_buf->status); in manage_show()
243 args_buf->status = FLASH_NO_OP; in manage_show()
323 struct update_flash_t *const args_buf = &update_flash_data; in update_show() local
324 return sprintf(buf, "%d\n", args_buf->status); in update_show()
336 struct update_flash_t *const args_buf = &update_flash_data; in update_store() local
343 if (args_buf->status == FLASH_IMG_READY) in update_store()
345 args_buf->status = FLASH_NO_OP; in update_store()
350 args_buf->status = in update_store()
353 args_buf->status = FLASH_INVALID_IMG; in update_store()