Lines Matching refs:buf
24 bootcount_ext_t *buf; in bootcount_store() local
38 buf = map_sysmem(CONFIG_SYS_BOOTCOUNT_ADDR, sizeof(bootcount_ext_t)); in bootcount_store()
39 buf->magic = BC_MAGIC; in bootcount_store()
40 buf->version = BC_VERSION; in bootcount_store()
41 buf->bootcount = (a & 0xff); in bootcount_store()
42 buf->upgrade_available = upgrade_available; in bootcount_store()
43 unmap_sysmem(buf); in bootcount_store()
54 bootcount_ext_t *buf; in bootcount_load() local
71 buf = map_sysmem(CONFIG_SYS_BOOTCOUNT_ADDR, sizeof(bootcount_ext_t)); in bootcount_load()
72 if (buf->magic == BC_MAGIC && buf->version == BC_VERSION) { in bootcount_load()
73 upgrade_available = buf->upgrade_available; in bootcount_load()
75 ret = buf->bootcount; in bootcount_load()
80 unmap_sysmem(buf); in bootcount_load()