Home
last modified time | relevance | path

Searched refs:nvram_buf (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.10/drivers/firmware/broadcom/
Dbcm47xx_nvram.c33 static char nvram_buf[NVRAM_SPACE]; variable
92 __ioread32_copy(nvram_buf, header, sizeof(*header) / 4); in nvram_find_and_copy()
93 nvram_len = ((struct nvram_header *)(nvram_buf))->len; in nvram_find_and_copy()
104 __ioread32_copy(nvram_buf + sizeof(*header), header + 1, in nvram_find_and_copy()
106 nvram_buf[NVRAM_SPACE - 1] = '\0'; in nvram_find_and_copy()
157 (u8 *)nvram_buf); in nvram_init()
180 var = &nvram_buf[sizeof(struct nvram_header)]; in bcm47xx_nvram_getenv()
181 end = nvram_buf + sizeof(nvram_buf); in bcm47xx_nvram_getenv()
232 memcpy(nvram, &nvram_buf[sizeof(struct nvram_header)], *nvram_size); in bcm47xx_nvram_get_contents()
/Linux-v5.10/arch/powerpc/platforms/chrp/
Dnvram.c19 static unsigned char nvram_buf[4]; variable
35 __pa(nvram_buf), 1) != 0) || 1 != done) in chrp_nvram_read_val()
38 ret = nvram_buf[0]; in chrp_nvram_read_val()
55 nvram_buf[0] = val; in chrp_nvram_write_val()
57 __pa(nvram_buf), 1) != 0) || 1 != done) in chrp_nvram_write_val()
/Linux-v5.10/arch/powerpc/platforms/pseries/
Dnvram.c26 static char nvram_buf[NVRW_CNT]; /* assume this is in the first 4GB */ variable
63 if ((rtas_call(nvram_fetch, 3, 2, &done, i, __pa(nvram_buf), in pSeries_nvram_read()
69 memcpy(p, nvram_buf, len); in pSeries_nvram_read()
106 memcpy(nvram_buf, p, len); in pSeries_nvram_write()
108 if ((rtas_call(nvram_store, 3, 2, &done, i, __pa(nvram_buf), in pSeries_nvram_write()