/drivers/scsi/sym53c8xx_2/ |
D | sym_nvram.c | 37 void sym_nvram_setup_host(struct Scsi_Host *shost, struct sym_hcb *np, struct sym_nvram *nvram) in sym_nvram_setup_host() argument 43 switch (nvram->type) { in sym_nvram_setup_host() 45 if (!(nvram->data.Symbios.flags & SYMBIOS_PARITY_ENABLE)) in sym_nvram_setup_host() 47 np->myaddr = nvram->data.Symbios.host_id & 0x0f; in sym_nvram_setup_host() 48 if (nvram->data.Symbios.flags & SYMBIOS_VERBOSE_MSGS) in sym_nvram_setup_host() 50 if (nvram->data.Symbios.flags1 & SYMBIOS_SCAN_HI_LO) in sym_nvram_setup_host() 52 if (nvram->data.Symbios.flags2 & SYMBIOS_AVOID_BUS_RESET) in sym_nvram_setup_host() 56 np->myaddr = nvram->data.Tekram.host_id & 0x0f; in sym_nvram_setup_host() 60 if (nvram->data.parisc.host_id != -1) in sym_nvram_setup_host() 61 np->myaddr = nvram->data.parisc.host_id; in sym_nvram_setup_host() [all …]
|
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
|
D | sym_glue.c | 58 module_param_named(nvram, sym_driver_setup.use_nvram, byte, 0); 72 MODULE_PARM_DESC(nvram, "Option currently not used"); 1303 if (sym_hcb_attach(shost, fw, dev->nvram)) in sym_attach() 1386 devp->nvram = nvp; in sym_get_nvram() 1659 struct sym_nvram nvram; in sym2_probe() local 1665 memset(&nvram, 0, sizeof(nvram)); in sym2_probe() 1694 sym_get_nvram(&sym_dev, &nvram); in sym2_probe()
|
D | sym_glue.h | 200 struct sym_nvram *nvram; member
|
/drivers/char/ |
D | nvram.c | 411 static void pc_nvram_proc_read(unsigned char *nvram, struct seq_file *seq, in pc_nvram_proc_read() argument 424 (nvram[6] & 1) ? (nvram[6] >> 6) + 1 : 0); in pc_nvram_proc_read() 426 type = nvram[2] >> 4; in pc_nvram_proc_read() 432 type = nvram[2] & 0x0f; in pc_nvram_proc_read() 439 type = nvram[4] >> 4; in pc_nvram_proc_read() 441 seq_printf(seq, "%02x\n", type == 0x0f ? nvram[11] : type); in pc_nvram_proc_read() 446 type = nvram[4] & 0x0f; in pc_nvram_proc_read() 448 seq_printf(seq, "%02x\n", type == 0x0f ? nvram[12] : type); 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() [all …]
|
D | Makefile | 24 obj-$(CONFIG_NVRAM) += nvram.o
|
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | firmware.c | 51 u8 *nvram; member 152 memcpy(&nvp->nvram[nvp->nvram_len], skv, cplen); in brcmf_nvram_handle_value() 154 nvp->nvram[nvp->nvram_len] = '\0'; in brcmf_nvram_handle_value() 214 nvp->nvram = kzalloc(size, GFP_KERNEL); in brcmf_init_nvram_parser() 215 if (!nvp->nvram) in brcmf_init_nvram_parser() 239 u8 *nvram; in brcmf_fw_strip_multi_v1() local 242 nvram = kzalloc(nvp->nvram_len + 1 + 3 + sizeof(u32), GFP_KERNEL); in brcmf_fw_strip_multi_v1() 243 if (!nvram) in brcmf_fw_strip_multi_v1() 265 if (strncmp(&nvp->nvram[i], "devpath", 7) == 0 && in brcmf_fw_strip_multi_v1() 266 (!strncmp(&nvp->nvram[i + 8], pci_path, pci_len) || in brcmf_fw_strip_multi_v1() [all …]
|
D | firmware.h | 45 void brcmf_fw_nvram_free(void *nvram);
|
D | pcie.c | 1533 const struct firmware *fw, void *nvram, in brcmf_pcie_download_fw_nvram() argument 1561 if (nvram) { in brcmf_pcie_download_fw_nvram() 1565 memcpy_toio(devinfo->tcm + address, nvram, nvram_len); in brcmf_pcie_download_fw_nvram() 1566 brcmf_fw_nvram_free(nvram); in brcmf_pcie_download_fw_nvram() 1740 void *nvram; in brcmf_pcie_setup() local 1757 nvram = fwreq->items[BRCMF_PCIE_FW_NVRAM].nv_data.data; in brcmf_pcie_setup() 1765 brcmf_fw_nvram_free(nvram); in brcmf_pcie_setup() 1776 ret = brcmf_pcie_download_fw_nvram(devinfo, fw, nvram, nvram_len); in brcmf_pcie_setup()
|
/drivers/mtd/parsers/ |
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() 81 const struct mtd_partition **pparts, struct bcm963xx_nvram *nvram) in bcm63xx_parse_cfe_nor_partitions() argument 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() [all …]
|
/drivers/firmware/broadcom/ |
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()
|
D | Kconfig | 6 Broadcom home routers contain flash partition called "nvram" with all
|
/drivers/scsi/ |
D | ips.c | 2036 if ((le32_to_cpu(ha->nvram->signature) == IPS_NVRAM_P5_SIG) && in ips_host_info() 2037 (le16_to_cpu(ha->nvram->adapter_type) != 0)) in ips_host_info() 2062 if (le32_to_cpu(ha->nvram->signature) == IPS_NVRAM_P5_SIG) { in ips_host_info() 2063 if (ha->nvram->bios_low[3] == 0) { in ips_host_info() 2066 ha->nvram->bios_high[0], ha->nvram->bios_high[1], in ips_host_info() 2067 ha->nvram->bios_high[2], ha->nvram->bios_high[3], in ips_host_info() 2068 ha->nvram->bios_low[0], ha->nvram->bios_low[1], in ips_host_info() 2069 ha->nvram->bios_low[2]); in ips_host_info() 2074 ha->nvram->bios_high[0], ha->nvram->bios_high[1], in ips_host_info() 2075 ha->nvram->bios_high[2], ha->nvram->bios_high[3], in ips_host_info() [all …]
|
D | qla1280.c | 582 struct nvram *nv; in qla1280_read_nvram() 591 wptr = (uint16_t *)&ha->nvram; in qla1280_read_nvram() 592 nv = &ha->nvram; in qla1280_read_nvram() 606 for (; cnt < sizeof(struct nvram); cnt++) { in qla1280_read_nvram() 1118 struct nvram *nv; in qla1280_set_target_parameters() 1121 nv = &ha->nvram; in qla1280_set_target_parameters() 1187 struct nvram *nv; in qla1280_slave_configure() 1191 nv = &ha->nvram; in qla1280_slave_configure() 1934 qla1280_print_settings(struct nvram *nv) in qla1280_print_settings() 1986 struct nvram *nv = &ha->nvram; in qla1280_set_target_defaults() [all …]
|
D | qla1280.h | 144 uint16_t nvram; /* NVRAM register. */ member 335 struct nvram { struct 1062 struct nvram nvram; member
|
/drivers/scsi/qla2xxx/ |
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() 75 wrt_reg_word(®->nvram, data | NVR_SELECT | NVR_WRT_ENABLE); in qla2x00_nv_write() 76 rd_reg_word(®->nvram); /* PCI Posting. */ in qla2x00_nv_write() 78 wrt_reg_word(®->nvram, data | NVR_SELECT | NVR_CLOCK | in qla2x00_nv_write() 80 rd_reg_word(®->nvram); /* PCI Posting. */ in qla2x00_nv_write() 82 wrt_reg_word(®->nvram, data | NVR_SELECT | NVR_WRT_ENABLE); in qla2x00_nv_write() 83 rd_reg_word(®->nvram); /* PCI Posting. */ in qla2x00_nv_write() 122 wrt_reg_word(®->nvram, NVR_SELECT | NVR_CLOCK); in qla2x00_nvram_request() 123 rd_reg_word(®->nvram); /* PCI Posting. */ in qla2x00_nvram_request() [all …]
|
/drivers/scsi/qla4xxx/ |
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()
|
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()
|
D | ql4_def.h | 616 struct eeprom_data *nvram; member 920 &ha->reg->u1.isp4010.nvram : in isp_semaphore() 927 &ha->reg->u1.isp4010.nvram : in isp_nvram() 928 &ha->reg->u1.isp4022.nvram); in isp_nvram()
|
/drivers/scsi/esas2r/ |
D | esas2r_flash.c | 1197 if (!esas2r_read_flash_block(a, a->nvram, FLS_OFFSET_NVR, in esas2r_nvram_read_direct() 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() [all …]
|
D | esas2r_main.c | 136 memcpy(buf, a->nvram, length); in read_live_nvram() 679 a->nvram->sas_addr[0], in esas2r_show_info() 680 a->nvram->sas_addr[1], in esas2r_show_info() 681 a->nvram->sas_addr[2], in esas2r_show_info() 682 a->nvram->sas_addr[3], in esas2r_show_info() 683 a->nvram->sas_addr[4], in esas2r_show_info() 684 a->nvram->sas_addr[5], in esas2r_show_info() 685 a->nvram->sas_addr[6], in esas2r_show_info() 686 a->nvram->sas_addr[7]); in esas2r_show_info()
|
D | esas2r.h | 868 struct esas2r_sas_nvram *nvram; member 1005 struct esas2r_sas_nvram *nvram); 1007 struct esas2r_sas_nvram *nvram); 1341 (a->nvram->options2 & SASNVR2_HEARTBEAT)) in esas2r_enable_heartbeat()
|
/drivers/message/fusion/ |
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()
|
/drivers/net/ethernet/sfc/ |
D | selftest.h | 33 int nvram; member
|
/drivers/net/ethernet/sfc/falcon/ |
D | selftest.h | 33 int nvram; member
|