Home
last modified time | relevance | path

Searched refs:nvram_size (Results 1 – 17 of 17) sorted by relevance

/Linux-v4.19/arch/powerpc/platforms/powernv/
Dopal-nvram.c23 static unsigned int nvram_size; variable
27 return nvram_size; in opal_nvram_size()
35 if (*index >= nvram_size) in opal_nvram_read()
38 if ((off + count) > nvram_size) in opal_nvram_read()
39 count = nvram_size - off; in opal_nvram_read()
56 if (*index >= nvram_size) in opal_nvram_write()
59 if ((off + count) > nvram_size) in opal_nvram_write()
60 count = nvram_size - off; in opal_nvram_write()
108 nvram_size = be32_to_cpup(nbytes_p); in opal_nvram_init()
110 pr_info("OPAL nvram setup, %u bytes\n", nvram_size); in opal_nvram_init()
[all …]
/Linux-v4.19/arch/powerpc/platforms/pseries/
Dnvram.c30 static unsigned int nvram_size; variable
52 if (nvram_size == 0 || nvram_fetch == RTAS_UNKNOWN_SERVICE) in pSeries_nvram_read()
55 if (*index >= nvram_size) in pSeries_nvram_read()
59 if (i + count > nvram_size) in pSeries_nvram_read()
60 count = nvram_size - i; in pSeries_nvram_read()
95 if (nvram_size == 0 || nvram_store == RTAS_UNKNOWN_SERVICE) in pSeries_nvram_write()
98 if (*index >= nvram_size) in pSeries_nvram_write()
102 if (i + count > nvram_size) in pSeries_nvram_write()
103 count = nvram_size - i; in pSeries_nvram_write()
131 return nvram_size ? nvram_size : -ENODEV; in pSeries_nvram_get_size()
[all …]
/Linux-v4.19/arch/powerpc/platforms/chrp/
Dnvram.c23 static unsigned int nvram_size; variable
33 if (addr >= nvram_size) { in chrp_nvram_read()
35 current->comm, addr, nvram_size); in chrp_nvram_read()
54 if (addr >= nvram_size) { in chrp_nvram_write()
56 current->comm, addr, nvram_size); in chrp_nvram_write()
83 nvram_size = be32_to_cpup(nbytes_p); in chrp_nvram_init()
85 printk(KERN_INFO "CHRP nvram contains %u bytes\n", nvram_size); in chrp_nvram_init()
/Linux-v4.19/drivers/firmware/broadcom/
Dbcm47xx_nvram.c221 char *bcm47xx_nvram_get_contents(size_t *nvram_size) in bcm47xx_nvram_get_contents() argument
232 *nvram_size = nvram_len - sizeof(struct nvram_header); in bcm47xx_nvram_get_contents()
233 nvram = vmalloc(*nvram_size); in bcm47xx_nvram_get_contents()
236 memcpy(nvram, &nvram_buf[sizeof(struct nvram_header)], *nvram_size); in bcm47xx_nvram_get_contents()
/Linux-v4.19/arch/powerpc/kernel/
Dnvram_64.c721 if (ppc_md.nvram_size == NULL) in dev_nvram_llseek()
724 ppc_md.nvram_size()); in dev_nvram_llseek()
735 if (!ppc_md.nvram_size) { in dev_nvram_read()
740 size = ppc_md.nvram_size(); in dev_nvram_read()
781 if (!ppc_md.nvram_size) in dev_nvram_write()
785 size = ppc_md.nvram_size(); in dev_nvram_write()
1134 if (ppc_md.nvram_size == NULL || ppc_md.nvram_size() <= 0) in nvram_scan_partitions()
1136 total_size = ppc_md.nvram_size(); in nvram_scan_partitions()
1203 if (ppc_md.nvram_size == NULL || ppc_md.nvram_size() <= 0) in nvram_init()
Dsetup_32.c172 if (ppc_md.nvram_size) in nvram_get_size()
173 return ppc_md.nvram_size(); in nvram_get_size()
/Linux-v4.19/drivers/rtc/
Drtc-ds1307.c134 u16 nvram_size; member
178 .nvram_size = 56,
182 .nvram_size = 56,
191 .nvram_size = 56,
226 .nvram_size = 4, /* 32bit (4 word x 8 bit) */
234 .nvram_size = 56,
240 .nvram_size = 0x40,
1718 if (chip->nvram_size) { in ds1307_probe()
1723 .size = chip->nvram_size, in ds1307_probe()
/Linux-v4.19/arch/powerpc/sysdev/
Dmmio_nvram.c153 ppc_md.nvram_size = mmio_nvram_get_size; in mmio_nvram_init()
/Linux-v4.19/arch/powerpc/include/asm/
Dmachdep.h101 ssize_t (*nvram_size)(void); member
/Linux-v4.19/drivers/net/ethernet/broadcom/
Dtg3.c11990 return tp->nvram_size; in tg3_get_eeprom_len()
14322 tp->nvram_size = EEPROM_CHIP_SIZE; in tg3_get_eeprom_size()
14339 while (cursize < tp->nvram_size) { in tg3_get_eeprom_size()
14349 tp->nvram_size = cursize; in tg3_get_eeprom_size()
14378 tp->nvram_size = swab16((u16)(val & 0x0000ffff)) * 1024; in tg3_get_nvram_size()
14382 tp->nvram_size = TG3_NVRAM_SIZE_512KB; in tg3_get_nvram_size()
14528 tp->nvram_size = (protect ? 0x3e200 : in tg3_get_5755_nvram_info()
14531 tp->nvram_size = (protect ? 0x1f200 : in tg3_get_5755_nvram_info()
14534 tp->nvram_size = (protect ? 0x1f200 : in tg3_get_5755_nvram_info()
14545 tp->nvram_size = (protect ? in tg3_get_5755_nvram_info()
[all …]
Dtg3.h3377 u32 nvram_size; member
/Linux-v4.19/drivers/scsi/qla2xxx/
Dqla_init.c4374 ha->nvram_size = sizeof(nvram_t); in qla2x00_nvram_config()
4381 ha->isp_ops->read_nvram(vha, ptr, ha->nvram_base, ha->nvram_size); in qla2x00_nvram_config()
4382 for (cnt = 0, chksum = 0; cnt < ha->nvram_size; cnt++) in qla2x00_nvram_config()
4388 (uint8_t *)nv, ha->nvram_size); in qla2x00_nvram_config()
4405 memset(nv, 0, ha->nvram_size); in qla2x00_nvram_config()
6928 ha->nvram_size = sizeof(struct nvram_24xx); in qla24xx_nvram_config()
6939 ha->nvram_size); in qla24xx_nvram_config()
6940 for (cnt = 0, chksum = 0; cnt < ha->nvram_size >> 2; cnt++, dptr++) in qla24xx_nvram_config()
6946 (uint8_t *)nv, ha->nvram_size); in qla24xx_nvram_config()
6963 memset(nv, 0, ha->nvram_size); in qla24xx_nvram_config()
[all …]
Dqla_attr.c163 ha->nvram_size); in qla2x00_sysfs_read_nvram()
165 ha->nvram_size); in qla2x00_sysfs_read_nvram()
178 if (!capable(CAP_SYS_ADMIN) || off != 0 || count != ha->nvram_size || in qla2x00_sysfs_write_nvram()
Dqla_def.h3843 uint16_t nvram_size; member
/Linux-v4.19/arch/powerpc/platforms/powermac/
Dnvram.c536 ppc_md.nvram_size = core99_nvram_size; in core99_nvram_setup()
/Linux-v4.19/drivers/scsi/megaraid/
Dmegaraid_sas.h998 __le16 nvram_size; member
/Linux-v4.19/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_hsi.h6711 __le32 nvram_size; member