/openbmc/linux/arch/powerpc/platforms/powernv/ |
H A D | opal-nvram.c | 19 static unsigned int nvram_size; variable 23 return nvram_size; in opal_nvram_size() 31 if (*index >= nvram_size) in opal_nvram_read() 34 if ((off + count) > nvram_size) in opal_nvram_read() 35 count = nvram_size - off; in opal_nvram_read() 52 if (*index >= nvram_size) in opal_nvram_write() 55 if ((off + count) > nvram_size) in opal_nvram_write() 56 count = nvram_size - off; in opal_nvram_write() 104 nvram_size = be32_to_cpup(nbytes_p); in opal_nvram_init() 106 pr_info("OPAL nvram setup, %u bytes\n", nvram_size); in opal_nvram_init() [all …]
|
/openbmc/linux/arch/powerpc/platforms/pseries/ |
H A D | nvram.c | 24 static unsigned int nvram_size; variable 46 if (nvram_size == 0 || nvram_fetch == RTAS_UNKNOWN_SERVICE) in pSeries_nvram_read() 49 if (*index >= nvram_size) in pSeries_nvram_read() 53 if (i + count > nvram_size) in pSeries_nvram_read() 54 count = nvram_size - i; in pSeries_nvram_read() 89 if (nvram_size == 0 || nvram_store == RTAS_UNKNOWN_SERVICE) in pSeries_nvram_write() 92 if (*index >= nvram_size) in pSeries_nvram_write() 96 if (i + count > nvram_size) in pSeries_nvram_write() 97 count = nvram_size - i; in pSeries_nvram_write() 125 return nvram_size ? nvram_size : -ENODEV; in pSeries_nvram_get_size() [all …]
|
/openbmc/linux/arch/powerpc/platforms/chrp/ |
H A D | nvram.c | 18 static unsigned int nvram_size; variable 28 if (addr >= nvram_size) { in chrp_nvram_read_val() 30 current->comm, addr, nvram_size); in chrp_nvram_read_val() 49 if (addr >= nvram_size) { in chrp_nvram_write_val() 51 current->comm, addr, nvram_size); in chrp_nvram_write_val() 64 return nvram_size; in chrp_nvram_size() 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() 90 ppc_md.nvram_size = chrp_nvram_size; in chrp_nvram_init()
|
/openbmc/linux/include/linux/ |
H A D | nvram.h | 49 if (ppc_md.nvram_size) in nvram_get_size() 50 return ppc_md.nvram_size(); in nvram_get_size() 83 ssize_t nvram_size = nvram_get_size(); in nvram_read_bytes() local 87 if (nvram_size < 0) in nvram_read_bytes() 88 return nvram_size; in nvram_read_bytes() 89 for (i = *ppos; count > 0 && i < nvram_size; ++i, ++p, --count) in nvram_read_bytes() 97 ssize_t nvram_size = nvram_get_size(); in nvram_write_bytes() local 101 if (nvram_size < 0) in nvram_write_bytes() 102 return nvram_size; in nvram_write_bytes() 103 for (i = *ppos; count > 0 && i < nvram_size; ++i, ++p, --count) in nvram_write_bytes()
|
/openbmc/linux/drivers/char/ |
H A D | nvram.c | 60 static ssize_t nvram_size; variable 225 nvram_size); in nvram_misc_llseek() 235 if (*ppos >= nvram_size) in nvram_misc_read() 238 count = min_t(size_t, count, nvram_size - *ppos); in nvram_misc_read() 265 if (*ppos >= nvram_size) in nvram_misc_write() 268 count = min_t(size_t, count, nvram_size - *ppos); in nvram_misc_write() 510 nvram_size = nvram_get_size(); in nvram_module_init() 511 if (nvram_size < 0) in nvram_module_init() 512 return nvram_size; in nvram_module_init()
|
/openbmc/linux/drivers/firmware/broadcom/ |
H A D | bcm47xx_nvram.c | 237 char *bcm47xx_nvram_get_contents(size_t *nvram_size) in bcm47xx_nvram_get_contents() argument 248 *nvram_size = nvram_len - sizeof(struct nvram_header); in bcm47xx_nvram_get_contents() 249 nvram = vmalloc(*nvram_size); in bcm47xx_nvram_get_contents() 252 memcpy(nvram, &nvram_buf[sizeof(struct nvram_header)], *nvram_size); in bcm47xx_nvram_get_contents()
|
/openbmc/linux/arch/powerpc/platforms/powermac/ |
H A D | nvram.c | 540 ppc_md.nvram_size = core99_nvram_size; in core99_nvram_setup() 597 ppc_md.nvram_size = ppc32_nvram_size; in pmac_nvram_init() 603 ppc_md.nvram_size = ppc32_nvram_size; in pmac_nvram_init() 609 ppc_md.nvram_size = ppc32_nvram_size; in pmac_nvram_init() 615 ppc_md.nvram_size = ppc32_nvram_size; in pmac_nvram_init()
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-ds1307.c | 185 u16 nvram_size; member 968 .nvram_size = 56, 972 .nvram_size = 56, 981 .nvram_size = 56, 1020 .nvram_size = 4, /* 32bit (4 word x 8 bit) */ 1036 .nvram_size = 56, 1043 .nvram_size = 0x40, 1985 if (chip->nvram_size) { in ds1307_probe() 1990 .size = chip->nvram_size, in ds1307_probe()
|
/openbmc/linux/arch/powerpc/sysdev/ |
H A D | mmio_nvram.c | 140 ppc_md.nvram_size = mmio_nvram_get_size; in mmio_nvram_init()
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | nvram_64.c | 994 if (ppc_md.nvram_size == NULL || ppc_md.nvram_size() <= 0) in nvram_scan_partitions() 996 total_size = ppc_md.nvram_size(); in nvram_scan_partitions()
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | machdep.h | 82 ssize_t (*nvram_size)(void); member
|
/openbmc/linux/drivers/net/ethernet/broadcom/ |
H A D | tg3.c | 12016 return tp->nvram_size; in tg3_get_eeprom_len() 14314 tp->nvram_size = EEPROM_CHIP_SIZE; in tg3_get_eeprom_size() 14331 while (cursize < tp->nvram_size) { in tg3_get_eeprom_size() 14341 tp->nvram_size = cursize; in tg3_get_eeprom_size() 14370 tp->nvram_size = swab16((u16)(val & 0x0000ffff)) * 1024; in tg3_get_nvram_size() 14374 tp->nvram_size = TG3_NVRAM_SIZE_512KB; in tg3_get_nvram_size() 14520 tp->nvram_size = (protect ? 0x3e200 : in tg3_get_5755_nvram_info() 14523 tp->nvram_size = (protect ? 0x1f200 : in tg3_get_5755_nvram_info() 14526 tp->nvram_size = (protect ? 0x1f200 : in tg3_get_5755_nvram_info() 14537 tp->nvram_size = (protect ? in tg3_get_5755_nvram_info() [all …]
|
H A D | tg3.h | 3377 u32 nvram_size; member
|
/openbmc/linux/drivers/scsi/ |
H A D | myrb.h | 258 unsigned int nvram_size; /* Bytes 36-39 */ member
|
/openbmc/linux/drivers/scsi/qla2xxx/ |
H A D | qla_init.c | 5243 ha->nvram_size = sizeof(*nv); in qla2x00_nvram_config() 5250 ha->isp_ops->read_nvram(vha, ptr, ha->nvram_base, ha->nvram_size); in qla2x00_nvram_config() 5251 for (cnt = 0, chksum = 0; cnt < ha->nvram_size; cnt++) in qla2x00_nvram_config() 5257 nv, ha->nvram_size); in qla2x00_nvram_config() 5273 memset(nv, 0, ha->nvram_size); in qla2x00_nvram_config() 7898 ha->nvram_size = sizeof(*nv); in qla24xx_nvram_config() 7908 ha->isp_ops->read_nvram(vha, dptr, ha->nvram_base, ha->nvram_size); in qla24xx_nvram_config() 7909 for (cnt = 0, chksum = 0; cnt < ha->nvram_size >> 2; cnt++, dptr++) in qla24xx_nvram_config() 7915 nv, ha->nvram_size); in qla24xx_nvram_config() 7932 memset(nv, 0, ha->nvram_size); in qla24xx_nvram_config() [all …]
|
H A D | qla_attr.c | 212 ha->isp_ops->read_optrom(vha, ha->nvram, faddr << 2, ha->nvram_size); in qla2x00_sysfs_read_nvram() 218 ha->nvram_size); in qla2x00_sysfs_read_nvram() 231 if (!capable(CAP_SYS_ADMIN) || off != 0 || count != ha->nvram_size || in qla2x00_sysfs_write_nvram()
|
H A D | qla_def.h | 4427 uint16_t nvram_size; member
|
/openbmc/qemu/hw/scsi/ |
H A D | mfi.h | 783 uint16_t nvram_size; member
|
H A D | megasas.c | 820 info.nvram_size = cpu_to_le16(32); in megasas_ctrl_get_info()
|
/openbmc/u-boot/include/ |
H A D | efi_api.h | 1197 u32 nvram_size; member
|
/openbmc/linux/drivers/scsi/megaraid/ |
H A D | megaraid_sas.h | 1051 __le16 nvram_size; member
|
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_hsi.h | 9540 __le32 nvram_size; member
|