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

/linux-master/arch/powerpc/platforms/powernv/
H A Dopal-nvram.c19 static unsigned int nvram_size; variable
23 return nvram_size;
31 if (*index >= nvram_size)
34 if ((off + count) > nvram_size)
35 count = nvram_size - off;
52 if (*index >= nvram_size)
55 if ((off + count) > nvram_size)
56 count = nvram_size - off;
104 nvram_size = be32_to_cpup(nbytes_p);
106 pr_info("OPAL nvram setup, %u bytes\n", nvram_size);
[all...]
/linux-master/arch/powerpc/platforms/chrp/
H A Dnvram.c18 static unsigned int nvram_size; variable
28 if (addr >= nvram_size) {
29 printk(KERN_DEBUG "%s: read addr %d > nvram_size %u\n",
30 current->comm, addr, nvram_size);
49 if (addr >= nvram_size) {
50 printk(KERN_DEBUG "%s: write addr %d > nvram_size %u\n",
51 current->comm, addr, nvram_size);
64 return nvram_size;
83 nvram_size = be32_to_cpup(nbytes_p);
85 printk(KERN_INFO "CHRP nvram contains %u bytes\n", nvram_size);
[all...]
/linux-master/include/linux/
H A Dnvram.h49 if (ppc_md.nvram_size)
50 return ppc_md.nvram_size();
83 ssize_t nvram_size = nvram_get_size(); local
87 if (nvram_size < 0)
88 return nvram_size;
89 for (i = *ppos; count > 0 && i < nvram_size; ++i, ++p, --count)
97 ssize_t nvram_size = nvram_get_size(); local
101 if (nvram_size < 0)
102 return nvram_size;
103 for (i = *ppos; count > 0 && i < nvram_size;
[all...]
/linux-master/arch/powerpc/platforms/pseries/
H A Dnvram.c24 static unsigned int nvram_size; variable
46 if (nvram_size == 0 || nvram_fetch == RTAS_UNKNOWN_SERVICE)
49 if (*index >= nvram_size)
53 if (i + count > nvram_size)
54 count = nvram_size - i;
89 if (nvram_size == 0 || nvram_store == RTAS_UNKNOWN_SERVICE)
92 if (*index >= nvram_size)
96 if (i + count > nvram_size)
97 count = nvram_size - i;
125 return nvram_size
[all...]
/linux-master/drivers/char/
H A Dnvram.c60 static ssize_t nvram_size; variable
225 nvram_size);
235 if (*ppos >= nvram_size)
238 count = min_t(size_t, count, nvram_size - *ppos);
265 if (*ppos >= nvram_size)
268 count = min_t(size_t, count, nvram_size - *ppos);
510 nvram_size = nvram_get_size();
511 if (nvram_size < 0)
512 return nvram_size;
/linux-master/drivers/firmware/broadcom/
H A Dbcm47xx_nvram.c237 char *bcm47xx_nvram_get_contents(size_t *nvram_size) argument
248 *nvram_size = nvram_len - sizeof(struct nvram_header);
249 nvram = vmalloc(*nvram_size);
252 memcpy(nvram, &nvram_buf[sizeof(struct nvram_header)], *nvram_size);
/linux-master/arch/powerpc/sysdev/
H A Dmmio_nvram.c140 ppc_md.nvram_size = mmio_nvram_get_size;
/linux-master/arch/powerpc/platforms/powermac/
H A Dnvram.c540 ppc_md.nvram_size = core99_nvram_size;
597 ppc_md.nvram_size = ppc32_nvram_size;
603 ppc_md.nvram_size = ppc32_nvram_size;
609 ppc_md.nvram_size = ppc32_nvram_size;
615 ppc_md.nvram_size = ppc32_nvram_size;
/linux-master/drivers/rtc/
H A Drtc-ds1307.c185 u16 nvram_size; member in struct:chip_desc
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) {
1990 .size = chip->nvram_size,
/linux-master/arch/powerpc/include/asm/
H A Dmachdep.h83 ssize_t (*nvram_size)(void); member in struct:machdep_calls
/linux-master/arch/powerpc/kernel/
H A Dnvram_64.c994 if (ppc_md.nvram_size == NULL || ppc_md.nvram_size() <= 0)
996 total_size = ppc_md.nvram_size();
/linux-master/drivers/net/ethernet/broadcom/
H A Dtg3.c12084 return tp->nvram_size;
14384 tp->nvram_size = EEPROM_CHIP_SIZE;
14401 while (cursize < tp->nvram_size) {
14411 tp->nvram_size = cursize;
14440 tp->nvram_size = swab16((u16)(val & 0x0000ffff)) * 1024;
14444 tp->nvram_size = TG3_NVRAM_SIZE_512KB;
14590 tp->nvram_size = (protect ? 0x3e200 :
14593 tp->nvram_size = (protect ? 0x1f200 :
14596 tp->nvram_size = (protect ? 0x1f200 :
14607 tp->nvram_size
[all...]
H A Dtg3.h3380 u32 nvram_size; member in struct:tg3
/linux-master/drivers/scsi/
H A Dmyrb.h258 unsigned int nvram_size; /* Bytes 36-39 */ member in struct:myrb_enquiry2
/linux-master/drivers/scsi/qla2xxx/
H A Dqla_init.c5221 ha->nvram_size = sizeof(*nv);
5228 ha->isp_ops->read_nvram(vha, ptr, ha->nvram_base, ha->nvram_size);
5229 for (cnt = 0, chksum = 0; cnt < ha->nvram_size; cnt++)
5235 nv, ha->nvram_size);
5251 memset(nv, 0, ha->nvram_size);
7877 ha->nvram_size = sizeof(*nv);
7887 ha->isp_ops->read_nvram(vha, dptr, ha->nvram_base, ha->nvram_size);
7888 for (cnt = 0, chksum = 0; cnt < ha->nvram_size >> 2; cnt++, dptr++)
7894 nv, ha->nvram_size);
7911 memset(nv, 0, ha->nvram_size);
[all...]
H A Dqla_attr.c212 ha->isp_ops->read_optrom(vha, ha->nvram, faddr << 2, ha->nvram_size);
218 ha->nvram_size);
231 if (!capable(CAP_SYS_ADMIN) || off != 0 || count != ha->nvram_size ||
H A Dqla_def.h4415 uint16_t nvram_size; member in struct:qla_hw_data
/linux-master/drivers/scsi/megaraid/
H A Dmegaraid_sas.h1051 __le16 nvram_size; member in struct:megasas_ctrl_info
/linux-master/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_hsi.h9978 __le32 nvram_size; member in struct:hwrm_nvm_get_dev_info_output

Completed in 514 milliseconds