Lines Matching +full:cache +full:- +full:size

1 /* SPDX-License-Identifier: GPL-2.0+ */
18 u32 data_size; /* Size of the 'data' field */
21 u8 data[0]; /* Variable size, platform/run time dependent */
33 * mrccache_find_current() - find the latest MRC cache record
35 * This searches the MRC cache region looking for the latest record to use
38 * @entry: Position and size of MRC cache in SPI flash
44 * mrccache_update() - update the MRC cache with a new record
46 * This writes a new record to the end of the MRC cache region. If the new
50 * @entry: Position and size of MRC cache in SPI flash
52 * @return 0 if updated, -EEXIST if the record is the same as the latest
53 * record, -EINVAL if the record is not valid, other error if SPI write failed
59 * mrccache_reserve() - reserve MRC data on the stack
61 * This copies MRC data pointed by gd->arch.mrc_output to a new place on the
62 * stack with length gd->arch.mrc_output_len, and updates gd->arch.mrc_output
65 * This routine should be called by reserve_arch() before U-Boot is relocated
66 * when MRC cache is enabled.
73 * mrccache_get_region() - get MRC region on the SPI flash
75 * This gets MRC region whose offset and size are described in the device tree
76 * as a subnode to the SPI flash. If a non-NULL device pointer is supplied,
80 * Be careful when calling this routine with a non-NULL device pointer:
81 * - driver model initialization must be complete
82 * - calling in the pre-relocation phase may bring some side effects during
88 * @entry: Position and size of MRC cache in SPI flash
89 * @return 0 if success, -ENOENT if SPI flash node does not exist in the
90 * device tree, -EPERM if MRC region subnode does not exist in the device
91 * tree, -EINVAL if MRC region properties format is incorrect, other error
97 * mrccache_save() - save MRC data to the SPI flash
99 * This saves MRC data stored previously by gd->arch.mrc_output to a proper