/linux-master/arch/powerpc/platforms/powernv/ |
H A D | opal-nvram.c | 19 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 D | nvram.c | 18 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 D | nvram.h | 49 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 D | nvram.c | 24 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 D | nvram.c | 60 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 D | bcm47xx_nvram.c | 237 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 D | mmio_nvram.c | 140 ppc_md.nvram_size = mmio_nvram_get_size;
|
/linux-master/arch/powerpc/platforms/powermac/ |
H A D | nvram.c | 540 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 D | rtc-ds1307.c | 185 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 D | machdep.h | 83 ssize_t (*nvram_size)(void); member in struct:machdep_calls
|
/linux-master/arch/powerpc/kernel/ |
H A D | nvram_64.c | 994 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 D | tg3.c | 12084 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 D | tg3.h | 3380 u32 nvram_size; member in struct:tg3
|
/linux-master/drivers/scsi/ |
H A D | myrb.h | 258 unsigned int nvram_size; /* Bytes 36-39 */ member in struct:myrb_enquiry2
|
/linux-master/drivers/scsi/qla2xxx/ |
H A D | qla_init.c | 5221 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 D | qla_attr.c | 212 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 D | qla_def.h | 4415 uint16_t nvram_size; member in struct:qla_hw_data
|
/linux-master/drivers/scsi/megaraid/ |
H A D | megaraid_sas.h | 1051 __le16 nvram_size; member in struct:megasas_ctrl_info
|
/linux-master/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_hsi.h | 9978 __le32 nvram_size; member in struct:hwrm_nvm_get_dev_info_output
|