Home
last modified time | relevance | path

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

/drivers/char/
Dnvram.c60 static ssize_t nvram_size; variable
225 nvram_size); in nvram_misc_llseek()
237 if (*ppos >= nvram_size) in nvram_misc_read()
240 count = min_t(size_t, count, nvram_size - *ppos); in nvram_misc_read()
269 if (*ppos >= nvram_size) in nvram_misc_write()
272 count = min_t(size_t, count, nvram_size - *ppos); in nvram_misc_write()
514 nvram_size = nvram_get_size(); in nvram_module_init()
515 if (nvram_size < 0) in nvram_module_init()
516 return nvram_size; in nvram_module_init()
/drivers/firmware/broadcom/
Dbcm47xx_nvram.c217 char *bcm47xx_nvram_get_contents(size_t *nvram_size) in bcm47xx_nvram_get_contents() argument
228 *nvram_size = nvram_len - sizeof(struct nvram_header); in bcm47xx_nvram_get_contents()
229 nvram = vmalloc(*nvram_size); in bcm47xx_nvram_get_contents()
232 memcpy(nvram, &nvram_buf[sizeof(struct nvram_header)], *nvram_size); in bcm47xx_nvram_get_contents()
/drivers/rtc/
Drtc-ds1307.c172 u16 nvram_size; member
877 .nvram_size = 56,
881 .nvram_size = 56,
890 .nvram_size = 56,
925 .nvram_size = 4, /* 32bit (4 word x 8 bit) */
939 .nvram_size = 56,
946 .nvram_size = 0x40,
1842 if (chip->nvram_size) { in ds1307_probe()
1847 .size = chip->nvram_size, in ds1307_probe()
/drivers/net/ethernet/broadcom/
Dtg3.c11996 return tp->nvram_size; in tg3_get_eeprom_len()
14318 tp->nvram_size = EEPROM_CHIP_SIZE; in tg3_get_eeprom_size()
14335 while (cursize < tp->nvram_size) { in tg3_get_eeprom_size()
14345 tp->nvram_size = cursize; in tg3_get_eeprom_size()
14374 tp->nvram_size = swab16((u16)(val & 0x0000ffff)) * 1024; in tg3_get_nvram_size()
14378 tp->nvram_size = TG3_NVRAM_SIZE_512KB; in tg3_get_nvram_size()
14524 tp->nvram_size = (protect ? 0x3e200 : in tg3_get_5755_nvram_info()
14527 tp->nvram_size = (protect ? 0x1f200 : in tg3_get_5755_nvram_info()
14530 tp->nvram_size = (protect ? 0x1f200 : in tg3_get_5755_nvram_info()
14541 tp->nvram_size = (protect ? in tg3_get_5755_nvram_info()
[all …]
Dtg3.h3377 u32 nvram_size; member
/drivers/scsi/qla2xxx/
Dqla_init.c4482 ha->nvram_size = sizeof(*nv); in qla2x00_nvram_config()
4489 ha->isp_ops->read_nvram(vha, ptr, ha->nvram_base, ha->nvram_size); in qla2x00_nvram_config()
4490 for (cnt = 0, chksum = 0; cnt < ha->nvram_size; cnt++) in qla2x00_nvram_config()
4496 nv, ha->nvram_size); in qla2x00_nvram_config()
4512 memset(nv, 0, ha->nvram_size); in qla2x00_nvram_config()
7083 ha->nvram_size = sizeof(*nv); in qla24xx_nvram_config()
7093 ha->isp_ops->read_nvram(vha, dptr, ha->nvram_base, ha->nvram_size); in qla24xx_nvram_config()
7094 for (cnt = 0, chksum = 0; cnt < ha->nvram_size >> 2; cnt++, dptr++) in qla24xx_nvram_config()
7100 nv, ha->nvram_size); in qla24xx_nvram_config()
7117 memset(nv, 0, ha->nvram_size); in qla24xx_nvram_config()
[all …]
Dqla_attr.c183 ha->isp_ops->read_optrom(vha, ha->nvram, faddr << 2, ha->nvram_size); in qla2x00_sysfs_read_nvram()
189 ha->nvram_size); in qla2x00_sysfs_read_nvram()
202 if (!capable(CAP_SYS_ADMIN) || off != 0 || count != ha->nvram_size || in qla2x00_sysfs_write_nvram()
Dqla_def.h3917 uint16_t nvram_size; member
/drivers/scsi/
Dmyrb.h258 unsigned int nvram_size; /* Bytes 36-39 */ member
/drivers/scsi/megaraid/
Dmegaraid_sas.h1047 __le16 nvram_size; member
/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_hsi.h7681 __le32 nvram_size; member