/linux/drivers/scsi/sym53c8xx_2/ |
A D | sym_nvram.c | 43 switch (nvram->type) { in sym_nvram_setup_host() 64 if (nvram->data.parisc.width != -1) in sym_nvram_setup_host() 66 switch (nvram->data.parisc.mode) { in sym_nvram_setup_host() 181 tags = 2 << nvram->max_tags_index; in sym_display_Tekram_nvram() 183 if (nvram->boot_delay_index < 6) in sym_display_Tekram_nvram() 500 u_char *data = (u_char *) nvram; in sym_read_Symbios_nvram() 501 int len = sizeof(*nvram); in sym_read_Symbios_nvram() 510 if (nvram->type != 0 || in sym_read_Symbios_nvram() 518 if (csum != nvram->checksum) in sym_read_Symbios_nvram() 681 u_char *data = (u_char *) nvram; in sym_read_Tekram_nvram() [all …]
|
A D | sym_nvram.h | 183 void sym_nvram_setup_host(struct Scsi_Host *shost, struct sym_hcb *np, struct sym_nvram *nvram); 188 …void sym_nvram_setup_host(struct Scsi_Host *shost, struct sym_hcb *np, struct sym_nvram *nvram) { } in sym_nvram_setup_host() argument 189 static inline void sym_nvram_setup_target(struct sym_tcb *tp, struct sym_nvram *nvram) { } in sym_nvram_setup_target() argument
|
/linux/arch/m68k/atari/ |
A D | nvram.c | 193 if (nvram[1] == boot_prefs[i].val) { in atari_nvram_proc_read() 201 (nvram[16] & 0x80) ? "on" : "off"); in atari_nvram_proc_read() 203 if (nvram[16] & 0x80) in atari_nvram_proc_read() 204 seq_printf(seq, "%d\n", nvram[16] & 7); in atari_nvram_proc_read() 212 if (nvram[6] < ARRAY_SIZE(languages)) in atari_nvram_proc_read() 217 if (nvram[7] < ARRAY_SIZE(languages)) in atari_nvram_proc_read() 222 seq_printf(seq, dateformat[nvram[8] & 7], in atari_nvram_proc_read() 223 nvram[9] ? nvram[9] : '/', nvram[9] ? nvram[9] : '/'); in atari_nvram_proc_read() 226 if (nvram[10] == 0) in atari_nvram_proc_read() 229 seq_printf(seq, "%ds%s\n", nvram[10], in atari_nvram_proc_read() [all …]
|
/linux/drivers/char/ |
A D | nvram.c | 424 (nvram[6] & 1) ? (nvram[6] >> 6) + 1 : 0); in pc_nvram_proc_read() 426 type = nvram[2] >> 4; in pc_nvram_proc_read() 439 type = nvram[4] >> 4; in pc_nvram_proc_read() 453 nvram[18] | (nvram[19] << 8), in pc_nvram_proc_read() 454 nvram[20], nvram[25], in pc_nvram_proc_read() 455 nvram[21] | (nvram[22] << 8), nvram[23] | (nvram[24] << 8)); in pc_nvram_proc_read() 457 nvram[39] | (nvram[40] << 8), in pc_nvram_proc_read() 458 nvram[41], nvram[46], in pc_nvram_proc_read() 459 nvram[42] | (nvram[43] << 8), nvram[44] | (nvram[45] << 8)); in pc_nvram_proc_read() 461 seq_printf(seq, "DOS base memory: %d kB\n", nvram[7] | (nvram[8] << 8)); in pc_nvram_proc_read() [all …]
|
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
A D | firmware.c | 51 u8 *nvram; member 237 u8 *nvram; in brcmf_fw_strip_multi_v1() local 241 if (!nvram) in brcmf_fw_strip_multi_v1() 286 nvram[j] = nvp->nvram[i]; in brcmf_fw_strip_multi_v1() 298 nvp->nvram = nvram; in brcmf_fw_strip_multi_v1() 303 kfree(nvram); in brcmf_fw_strip_multi_v1() 319 u8 *nvram; in brcmf_fw_strip_multi_v2() local 322 if (!nvram) { in brcmf_fw_strip_multi_v2() 341 nvram[j] = nvp->nvram[i]; in brcmf_fw_strip_multi_v2() 353 nvp->nvram = nvram; in brcmf_fw_strip_multi_v2() [all …]
|
/linux/include/linux/ |
A D | bcm963xx_nvram.h | 51 #define BCM963XX_NVRAM_NAND_PART_OFFSET(nvram, part) \ argument 55 const struct bcm963xx_nvram *nvram, in bcm963xx_nvram_nand_part_offset() argument 58 return nvram->nand_part_offset[part] * SZ_1K; in bcm963xx_nvram_nand_part_offset() 61 #define BCM963XX_NVRAM_NAND_PART_SIZE(nvram, part) \ argument 65 const struct bcm963xx_nvram *nvram, in bcm963xx_nvram_nand_part_size() argument 68 return nvram->nand_part_size[part] * SZ_1K; in bcm963xx_nvram_nand_part_size() 81 const struct bcm963xx_nvram *nvram, in bcm963xx_nvram_checksum() argument 87 if (nvram->version <= 4) { in bcm963xx_nvram_checksum() 88 expected = nvram->checksum_v4; in bcm963xx_nvram_checksum() 91 expected = nvram->checksum_v5; in bcm963xx_nvram_checksum() [all …]
|
A D | bcm47xx_nvram.h | 18 static inline void bcm47xx_nvram_release_contents(char *nvram) in bcm47xx_nvram_release_contents() argument 20 vfree(nvram); in bcm47xx_nvram_release_contents() 42 static inline void bcm47xx_nvram_release_contents(char *nvram) in bcm47xx_nvram_release_contents() argument
|
/linux/drivers/mtd/parsers/ |
A D | bcm63xxpart.c | 52 struct bcm963xx_nvram *nvram) in bcm63xx_read_nvram() argument 60 &retlen, (void *)nvram); in bcm63xx_read_nvram() 64 ret = bcm963xx_nvram_checksum(nvram, &expected_crc, &actual_crc); in bcm63xx_read_nvram() 69 if (!nvram->psi_size) in bcm63xx_read_nvram() 70 nvram->psi_size = BCM963XX_DEFAULT_PSI_SIZE; in bcm63xx_read_nvram() 93 nvramlen = nvram->psi_size * SZ_1K; in bcm63xx_parse_cfe_nor_partitions() 130 struct bcm963xx_nvram *nvram = NULL; in bcm63xx_parse_cfe_partitions() local 136 nvram = vzalloc(sizeof(*nvram)); in bcm63xx_parse_cfe_partitions() 137 if (!nvram) in bcm63xx_parse_cfe_partitions() 140 ret = bcm63xx_read_nvram(master, nvram); in bcm63xx_parse_cfe_partitions() [all …]
|
/linux/arch/mips/bcm63xx/ |
A D | nvram.c | 24 static struct bcm963xx_nvram nvram; variable 33 memcpy(&nvram, addr, BCM963XX_NVRAM_V5_SIZE); in bcm63xx_nvram_init() 36 if (bcm963xx_nvram_checksum(&nvram, &expected_crc, &crc)) in bcm63xx_nvram_init() 45 memcpy(nvram.mac_addr_base, hcs_mac_addr, ETH_ALEN); in bcm63xx_nvram_init() 46 nvram.mac_addr_count = 2; in bcm63xx_nvram_init() 52 return nvram.name; in bcm63xx_nvram_get_name() 61 if (mac_addr_used >= nvram.mac_addr_count) { in bcm63xx_nvram_get_mac_address() 66 memcpy(mac, nvram.mac_addr_base, ETH_ALEN); in bcm63xx_nvram_get_mac_address() 93 if (nvram.psi_size > 0) in bcm63xx_nvram_get_psi_size() 94 return nvram.psi_size; in bcm63xx_nvram_get_psi_size()
|
/linux/arch/powerpc/platforms/chrp/ |
A D | nvram.c | 69 struct device_node *nvram; in chrp_nvram_init() local 73 nvram = of_find_node_by_type(NULL, "nvram"); in chrp_nvram_init() 74 if (nvram == NULL) in chrp_nvram_init() 77 nbytes_p = of_get_property(nvram, "#bytes", &proplen); in chrp_nvram_init() 79 of_node_put(nvram); in chrp_nvram_init() 86 of_node_put(nvram); in chrp_nvram_init()
|
/linux/drivers/firmware/broadcom/ |
A D | bcm47xx_nvram.c | 40 static bool bcm47xx_nvram_is_valid(void __iomem *nvram) in bcm47xx_nvram_is_valid() argument 42 return ((struct nvram_header *)nvram)->magic == NVRAM_MAGIC; in bcm47xx_nvram_is_valid() 222 char *nvram; in bcm47xx_nvram_get_contents() local 231 nvram = vmalloc(*nvram_size); in bcm47xx_nvram_get_contents() 232 if (!nvram) in bcm47xx_nvram_get_contents() 234 memcpy(nvram, &nvram_buf[sizeof(struct nvram_header)], *nvram_size); in bcm47xx_nvram_get_contents() 236 return nvram; in bcm47xx_nvram_get_contents()
|
/linux/arch/powerpc/platforms/pseries/ |
A D | nvram.c | 214 struct device_node *nvram; in pSeries_nvram_init() local 218 nvram = of_find_node_by_type(NULL, "nvram"); in pSeries_nvram_init() 219 if (nvram == NULL) in pSeries_nvram_init() 222 nbytes_p = of_get_property(nvram, "#bytes", &proplen); in pSeries_nvram_init() 224 of_node_put(nvram); in pSeries_nvram_init() 233 of_node_put(nvram); in pSeries_nvram_init()
|
/linux/Documentation/devicetree/bindings/nvmem/ |
A D | brcm,nvram.yaml | 4 $id: http://devicetree.org/schemas/nvmem/brcm,nvram.yaml# 25 const: brcm,nvram 31 nvram@1eff0000 { 32 compatible = "brcm,nvram";
|
/linux/drivers/scsi/ |
A D | ips.c | 2065 ha->nvram->bios_high[0], ha->nvram->bios_high[1], in ips_host_info() 2066 ha->nvram->bios_high[2], ha->nvram->bios_high[3], in ips_host_info() 2067 ha->nvram->bios_low[0], ha->nvram->bios_low[1], in ips_host_info() 2073 ha->nvram->bios_high[0], ha->nvram->bios_high[1], in ips_host_info() 2074 ha->nvram->bios_high[2], ha->nvram->bios_high[3], in ips_host_info() 2075 ha->nvram->bios_low[0], ha->nvram->bios_low[1], in ips_host_info() 2076 ha->nvram->bios_low[2], ha->nvram->bios_low[3]); in ips_host_info() 5618 ha->nvram->adapter_slot, ha->nvram->bios_high[0], in ips_write_driver_status() 5620 ha->nvram->bios_high[3], ha->nvram->bios_low[0], in ips_write_driver_status() 5621 ha->nvram->bios_low[1], ha->nvram->bios_low[2], in ips_write_driver_status() [all …]
|
A D | qla1280.c | 582 struct nvram *nv; in qla1280_read_nvram() 592 nv = &ha->nvram; in qla1280_read_nvram() 1116 struct nvram *nv; in qla1280_set_target_parameters() 1119 nv = &ha->nvram; in qla1280_set_target_parameters() 1185 struct nvram *nv; in qla1280_slave_configure() 1189 nv = &ha->nvram; in qla1280_slave_configure() 1984 struct nvram *nv = &ha->nvram; in qla1280_set_target_defaults() 2015 struct nvram *nv = &ha->nvram; in qla1280_set_defaults() 2069 struct nvram *nv = &ha->nvram; in qla1280_config_target() 2127 struct nvram *nv = &ha->nvram; in qla1280_config_bus() [all …]
|
/linux/drivers/scsi/qla2xxx/ |
A D | qla_sup.c | 28 data = rd_reg_word(®->nvram); in qla2x00_lock_nvram_access() 31 data = rd_reg_word(®->nvram); in qla2x00_lock_nvram_access() 228 word = rd_reg_word(®->nvram); in qla2x00_write_nvram_word() 281 word = rd_reg_word(®->nvram); in qla2x00_write_nvram_word_tmo() 359 word = rd_reg_word(®->nvram); in qla2x00_clear_nvram_protection() 419 word = rd_reg_word(®->nvram); in qla2x00_set_nvram_protection() 2293 wrt_reg_word(®->nvram, 0); in qla2x00_read_flash_data() 2294 rd_reg_word(®->nvram); in qla2x00_read_flash_data() 2298 rd_reg_word(®->nvram); in qla2x00_read_flash_data() 2366 wrt_reg_word(®->nvram, 0); in qla2x00_read_optrom_data() [all …]
|
/linux/drivers/scsi/qla4xxx/ |
A D | ql4_dbg.c | 61 (uint8_t) offsetof(struct isp_reg, u1.isp4010.nvram), in qla4xxx_dump_registers() 62 readw(&ha->reg->u1.isp4010.nvram)); in qla4xxx_dump_registers() 68 (uint8_t) offsetof(struct isp_reg, u1.isp4022.nvram), in qla4xxx_dump_registers() 69 readw(&ha->reg->u1.isp4022.nvram)); in qla4xxx_dump_registers()
|
A D | ql4_bsg.c | 209 uint8_t *nvram = NULL; in qla4xxx_read_nvram() local 241 nvram = dma_alloc_coherent(&ha->pdev->dev, len, &nvram_dma, in qla4xxx_read_nvram() 243 if (!nvram) { in qla4xxx_read_nvram() 259 nvram, len); in qla4xxx_read_nvram() 265 dma_free_coherent(&ha->pdev->dev, len, nvram, nvram_dma); in qla4xxx_read_nvram() 281 uint8_t *nvram = NULL; in qla4xxx_update_nvram() local 312 nvram = dma_alloc_coherent(&ha->pdev->dev, len, &nvram_dma, in qla4xxx_update_nvram() 314 if (!nvram) { in qla4xxx_update_nvram() 322 bsg_job->request_payload.sg_cnt, nvram, len); in qla4xxx_update_nvram() 334 dma_free_coherent(&ha->pdev->dev, len, nvram, nvram_dma); in qla4xxx_update_nvram()
|
/linux/arch/arm/boot/dts/ |
A D | bcm4708-linksys-ea6300-v1.dts | 24 nvram@1c080000 { 25 compatible = "brcm,nvram";
|
A D | bcm4709-linksys-ea9200.dts | 25 nvram@1c080000 { 26 compatible = "brcm,nvram";
|
A D | bcm47094-asus-rt-ac88u.dts | 25 nvram@1c080000 { 26 compatible = "brcm,nvram"; 190 label = "nvram";
|
A D | bcm47094-luxul-abr-4500.dts | 25 nvram@1eff0000 { 26 compatible = "brcm,nvram";
|
A D | bcm47094-luxul-xbr-4500.dts | 25 nvram@1eff0000 { 26 compatible = "brcm,nvram";
|
/linux/drivers/scsi/esas2r/ |
A D | esas2r_flash.c | 1259 struct esas2r_sas_nvram *nvram) in esas2r_nvram_write() argument 1261 struct esas2r_sas_nvram *n = nvram; in esas2r_nvram_write() 1273 n = a->nvram; in esas2r_nvram_write() 1297 memcpy(a->nvram, n, sizeof(struct esas2r_sas_nvram)); in esas2r_nvram_write() 1300 n = a->nvram; in esas2r_nvram_write() 1332 struct esas2r_sas_nvram *n = a->nvram; in esas2r_nvram_validate() 1364 struct esas2r_sas_nvram *n = a->nvram; in esas2r_nvram_set_defaults() 1377 struct esas2r_sas_nvram *nvram) in esas2r_nvram_get_defaults() argument 1385 memcpy(&sas_addr[0], a->nvram->sas_addr, 8); in esas2r_nvram_get_defaults() 1386 *nvram = default_sas_nvram; in esas2r_nvram_get_defaults() [all …]
|
/linux/drivers/message/fusion/ |
A D | mptspi.c | 114 int nvram; in mptspi_setTargetNegoParms() local 175 if (pspi_data->nvram && (pspi_data->nvram[id] != MPT_HOST_NVRAM_INVALID)) { in mptspi_setTargetNegoParms() 176 nvram = pspi_data->nvram[id]; in mptspi_setTargetNegoParms() 177 nfactor = (nvram & MPT_NVRAM_SYNC_MASK) >> 8; in mptspi_setTargetNegoParms() 180 width = nvram & MPT_NVRAM_WIDE_DISABLE ? 0 : 1; in mptspi_setTargetNegoParms() 438 if (ioc->spi_data.nvram && in mptspi_target_alloc() 439 ioc->spi_data.nvram[starget->id] != MPT_HOST_NVRAM_INVALID) { in mptspi_target_alloc() 440 u32 nvram = ioc->spi_data.nvram[starget->id]; in mptspi_target_alloc() local 441 spi_min_period(starget) = (nvram & MPT_NVRAM_SYNC_MASK) >> MPT_NVRAM_SYNC_SHIFT; in mptspi_target_alloc() 442 spi_max_width(starget) = nvram & MPT_NVRAM_WIDE_DISABLE ? 0 : 1; in mptspi_target_alloc()
|