Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/firmware/broadcom/
Dbcm47xx_nvram.c37 static char nvram_buf[NVRAM_SPACE]; variable
96 __ioread32_copy(nvram_buf, header, sizeof(*header) / 4); in nvram_find_and_copy()
97 nvram_len = ((struct nvram_header *)(nvram_buf))->len; in nvram_find_and_copy()
108 __ioread32_copy(nvram_buf + sizeof(*header), header + 1, in nvram_find_and_copy()
110 nvram_buf[NVRAM_SPACE - 1] = '\0'; in nvram_find_and_copy()
161 (u8 *)nvram_buf); in nvram_init()
184 var = &nvram_buf[sizeof(struct nvram_header)]; in bcm47xx_nvram_getenv()
185 end = nvram_buf + sizeof(nvram_buf); in bcm47xx_nvram_getenv()
236 memcpy(nvram, &nvram_buf[sizeof(struct nvram_header)], *nvram_size); in bcm47xx_nvram_get_contents()
/Linux-v4.19/arch/powerpc/platforms/chrp/
Dnvram.c24 static unsigned char nvram_buf[4]; variable
40 __pa(nvram_buf), 1) != 0) || 1 != done) in chrp_nvram_read()
43 ret = nvram_buf[0]; in chrp_nvram_read()
60 nvram_buf[0] = val; in chrp_nvram_write()
62 __pa(nvram_buf), 1) != 0) || 1 != done) in chrp_nvram_write()
/Linux-v4.19/arch/powerpc/platforms/pseries/
Dnvram.c32 static char nvram_buf[NVRW_CNT]; /* assume this is in the first 4GB */ variable
69 if ((rtas_call(nvram_fetch, 3, 2, &done, i, __pa(nvram_buf), in pSeries_nvram_read()
75 memcpy(p, nvram_buf, len); in pSeries_nvram_read()
112 memcpy(nvram_buf, p, len); in pSeries_nvram_write()
114 if ((rtas_call(nvram_store, 3, 2, &done, i, __pa(nvram_buf), in pSeries_nvram_write()