Home
last modified time | relevance | path

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

/Linux-v5.15/arch/powerpc/platforms/powernv/
Dopal-nvram.c19 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 …]
/Linux-v5.15/arch/powerpc/platforms/pseries/
Dnvram.c24 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 …]
/Linux-v5.15/arch/powerpc/platforms/chrp/
Dnvram.c18 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()
/Linux-v5.15/include/linux/
Dnvram.h49 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()
/Linux-v5.15/drivers/char/
Dnvram.c60 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()
/Linux-v5.15/drivers/firmware/broadcom/
Dbcm47xx_nvram.c219 char *bcm47xx_nvram_get_contents(size_t *nvram_size) in bcm47xx_nvram_get_contents() argument
230 *nvram_size = nvram_len - sizeof(struct nvram_header); in bcm47xx_nvram_get_contents()
231 nvram = vmalloc(*nvram_size); in bcm47xx_nvram_get_contents()
234 memcpy(nvram, &nvram_buf[sizeof(struct nvram_header)], *nvram_size); in bcm47xx_nvram_get_contents()
/Linux-v5.15/arch/powerpc/platforms/powermac/
Dnvram.c540 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()
/Linux-v5.15/drivers/rtc/
Drtc-ds1307.c184 u16 nvram_size; member
967 .nvram_size = 56,
971 .nvram_size = 56,
980 .nvram_size = 56,
1019 .nvram_size = 4, /* 32bit (4 word x 8 bit) */
1035 .nvram_size = 56,
1042 .nvram_size = 0x40,
1985 if (chip->nvram_size) { in ds1307_probe()
1990 .size = chip->nvram_size, in ds1307_probe()
/Linux-v5.15/arch/powerpc/sysdev/
Dmmio_nvram.c140 ppc_md.nvram_size = mmio_nvram_get_size; in mmio_nvram_init()
/Linux-v5.15/arch/powerpc/kernel/
Dnvram_64.c994 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()
/Linux-v5.15/arch/powerpc/include/asm/
Dmachdep.h91 ssize_t (*nvram_size)(void); member
/Linux-v5.15/drivers/net/ethernet/broadcom/
Dtg3.c11986 return tp->nvram_size; in tg3_get_eeprom_len()
14281 tp->nvram_size = EEPROM_CHIP_SIZE; in tg3_get_eeprom_size()
14298 while (cursize < tp->nvram_size) { in tg3_get_eeprom_size()
14308 tp->nvram_size = cursize; in tg3_get_eeprom_size()
14337 tp->nvram_size = swab16((u16)(val & 0x0000ffff)) * 1024; in tg3_get_nvram_size()
14341 tp->nvram_size = TG3_NVRAM_SIZE_512KB; in tg3_get_nvram_size()
14487 tp->nvram_size = (protect ? 0x3e200 : in tg3_get_5755_nvram_info()
14490 tp->nvram_size = (protect ? 0x1f200 : in tg3_get_5755_nvram_info()
14493 tp->nvram_size = (protect ? 0x1f200 : in tg3_get_5755_nvram_info()
14504 tp->nvram_size = (protect ? in tg3_get_5755_nvram_info()
[all …]
Dtg3.h3377 u32 nvram_size; member
/Linux-v5.15/drivers/scsi/
Dmyrb.h258 unsigned int nvram_size; /* Bytes 36-39 */ member
/Linux-v5.15/drivers/scsi/qla2xxx/
Dqla_init.c4810 ha->nvram_size = sizeof(*nv); in qla2x00_nvram_config()
4817 ha->isp_ops->read_nvram(vha, ptr, ha->nvram_base, ha->nvram_size); in qla2x00_nvram_config()
4818 for (cnt = 0, chksum = 0; cnt < ha->nvram_size; cnt++) in qla2x00_nvram_config()
4824 nv, ha->nvram_size); in qla2x00_nvram_config()
4840 memset(nv, 0, ha->nvram_size); in qla2x00_nvram_config()
7506 ha->nvram_size = sizeof(*nv); in qla24xx_nvram_config()
7516 ha->isp_ops->read_nvram(vha, dptr, ha->nvram_base, ha->nvram_size); in qla24xx_nvram_config()
7517 for (cnt = 0, chksum = 0; cnt < ha->nvram_size >> 2; cnt++, dptr++) in qla24xx_nvram_config()
7523 nv, ha->nvram_size); in qla24xx_nvram_config()
7540 memset(nv, 0, ha->nvram_size); in qla24xx_nvram_config()
[all …]
Dqla_attr.c212 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()
Dqla_def.h4299 uint16_t nvram_size; member
/Linux-v5.15/drivers/scsi/megaraid/
Dmegaraid_sas.h1049 __le16 nvram_size; member
/Linux-v5.15/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_hsi.h9135 __le32 nvram_size; member