Home
last modified time | relevance | path

Searched refs:nvram (Results 1 – 25 of 34) sorted by relevance

12

/drivers/char/
Dnvram.c53 # error Cannot build nvram driver for this machine configuration.
516 static void pc_proc_infos(unsigned char *nvram, struct seq_file *seq, in pc_proc_infos() argument
529 (nvram[6] & 1) ? (nvram[6] >> 6) + 1 : 0); in pc_proc_infos()
531 type = nvram[2] >> 4; in pc_proc_infos()
537 type = nvram[2] & 0x0f; in pc_proc_infos()
544 type = nvram[4] >> 4; in pc_proc_infos()
546 seq_printf(seq, "%02x\n", type == 0x0f ? nvram[11] : type); in pc_proc_infos()
551 type = nvram[4] & 0x0f; in pc_proc_infos()
553 seq_printf(seq, "%02x\n", type == 0x0f ? nvram[12] : type); in pc_proc_infos()
558 nvram[18] | (nvram[19] << 8), in pc_proc_infos()
[all …]
DMakefile84 obj-$(CONFIG_NVRAM) += nvram.o
DKconfig776 tristate "/dev/nvram support"
779 If you say Y here and create a character special file /dev/nvram
784 nvram in the system, but is usually 114 (128-14 for the RTC).
787 on Ataris. /dev/nvram may be used to view settings there, or to
795 On Atari machines, /dev/nvram is always configured and does not need
799 module will be called nvram.
/drivers/scsi/sym53c8xx_2/
Dsym_nvram.c50 void sym_nvram_setup_host(struct Scsi_Host *shost, struct sym_hcb *np, struct sym_nvram *nvram) in sym_nvram_setup_host() argument
56 switch (nvram->type) { in sym_nvram_setup_host()
58 if (!(nvram->data.Symbios.flags & SYMBIOS_PARITY_ENABLE)) in sym_nvram_setup_host()
60 np->myaddr = nvram->data.Symbios.host_id & 0x0f; in sym_nvram_setup_host()
61 if (nvram->data.Symbios.flags & SYMBIOS_VERBOSE_MSGS) in sym_nvram_setup_host()
63 if (nvram->data.Symbios.flags1 & SYMBIOS_SCAN_HI_LO) in sym_nvram_setup_host()
65 if (nvram->data.Symbios.flags2 & SYMBIOS_AVOID_BUS_RESET) in sym_nvram_setup_host()
69 np->myaddr = nvram->data.Tekram.host_id & 0x0f; in sym_nvram_setup_host()
73 if (nvram->data.parisc.host_id != -1) in sym_nvram_setup_host()
74 np->myaddr = nvram->data.parisc.host_id; in sym_nvram_setup_host()
[all …]
Dsym_nvram.h196 void sym_nvram_setup_host(struct Scsi_Host *shost, struct sym_hcb *np, struct sym_nvram *nvram);
201 …void sym_nvram_setup_host(struct Scsi_Host *shost, struct sym_hcb *np, struct sym_nvram *nvram) { } in sym_nvram_setup_host() argument
202 static inline void sym_nvram_setup_target(struct sym_tcb *tp, struct sym_nvram *nvram) { } in sym_nvram_setup_target() argument
Dsym_glue.c71 module_param_named(nvram, sym_driver_setup.use_nvram, byte, 0);
85 MODULE_PARM_DESC(nvram, "Option currently not used");
1353 if (sym_hcb_attach(shost, fw, dev->nvram)) in sym_attach()
1436 devp->nvram = nvp; in sym_get_nvram()
1697 struct sym_nvram nvram; in sym2_probe() local
1701 memset(&nvram, 0, sizeof(nvram)); in sym2_probe()
1723 sym_get_nvram(&sym_dev, &nvram); in sym2_probe()
Dsym_glue.h213 struct sym_nvram *nvram; member
Dsym_hipd.c657 static void sym_set_bus_mode(struct sym_hcb *np, struct sym_nvram *nvram) argument
670 } else if (nvram->type == SYM_SYMBIOS_NVRAM) {
685 static int sym_prepare_setting(struct Scsi_Host *shost, struct sym_hcb *np, struct sym_nvram *nvram) argument
775 np->maxoffs_dt = nvram->type ? 62 : 31;
868 sym_nvram_setup_host(shost, np, nvram);
884 sym_set_bus_mode(np, nvram);
893 (nvram->type == SYM_SYMBIOS_NVRAM ||
894 (nvram->type == SYM_TEKRAM_NVRAM &&
925 sym_nvram_setup_target(tp, i, nvram);
935 sym_nvram_type(nvram), np->myaddr,
[all …]
/drivers/scsi/qla2xxx/
Dqla_sup.c28 data = RD_REG_WORD(&reg->nvram); in qla2x00_lock_nvram_access()
31 data = RD_REG_WORD(&reg->nvram); in qla2x00_lock_nvram_access()
75 WRT_REG_WORD(&reg->nvram, data | NVR_SELECT | NVR_WRT_ENABLE); in qla2x00_nv_write()
76 RD_REG_WORD(&reg->nvram); /* PCI Posting. */ in qla2x00_nv_write()
78 WRT_REG_WORD(&reg->nvram, data | NVR_SELECT | NVR_CLOCK | in qla2x00_nv_write()
80 RD_REG_WORD(&reg->nvram); /* PCI Posting. */ in qla2x00_nv_write()
82 WRT_REG_WORD(&reg->nvram, data | NVR_SELECT | NVR_WRT_ENABLE); in qla2x00_nv_write()
83 RD_REG_WORD(&reg->nvram); /* PCI Posting. */ in qla2x00_nv_write()
122 WRT_REG_WORD(&reg->nvram, NVR_SELECT | NVR_CLOCK); in qla2x00_nvram_request()
123 RD_REG_WORD(&reg->nvram); /* PCI Posting. */ in qla2x00_nvram_request()
[all …]
Dqla_os.c2240 ha->nvram = kzalloc(MAX_NVRAM_SIZE, GFP_KERNEL); in qla2x00_mem_alloc()
2241 if (!ha->nvram) in qla2x00_mem_alloc()
2346 kfree(ha->nvram); in qla2x00_mem_alloc()
2347 ha->nvram = NULL; in qla2x00_mem_alloc()
2417 kfree(ha->nvram); in qla2x00_mem_free()
Dqla_attr.c100 return memory_read_from_buffer(buf, count, &off, ha->nvram, in qla2x00_sysfs_read_nvram()
142 ha->isp_ops->read_nvram(vha, (uint8_t *)ha->nvram, ha->nvram_base, in qla2x00_sysfs_write_nvram()
/drivers/scsi/
Dips.c2051 if ((le32_to_cpu(ha->nvram->signature) == IPS_NVRAM_P5_SIG) && in ips_host_info()
2052 (le16_to_cpu(ha->nvram->adapter_type) != 0)) in ips_host_info()
2078 if (le32_to_cpu(ha->nvram->signature) == IPS_NVRAM_P5_SIG) { in ips_host_info()
2079 if (ha->nvram->bios_low[3] == 0) { in ips_host_info()
2082 ha->nvram->bios_high[0], ha->nvram->bios_high[1], in ips_host_info()
2083 ha->nvram->bios_high[2], ha->nvram->bios_high[3], in ips_host_info()
2084 ha->nvram->bios_low[0], ha->nvram->bios_low[1], in ips_host_info()
2085 ha->nvram->bios_low[2]); in ips_host_info()
2090 ha->nvram->bios_high[0], ha->nvram->bios_high[1], in ips_host_info()
2091 ha->nvram->bios_high[2], ha->nvram->bios_high[3], in ips_host_info()
[all …]
Dqla1280.c613 struct nvram *nv; in qla1280_read_nvram()
622 wptr = (uint16_t *)&ha->nvram; in qla1280_read_nvram()
623 nv = &ha->nvram; in qla1280_read_nvram()
637 for (; cnt < sizeof(struct nvram); cnt++) { in qla1280_read_nvram()
1149 struct nvram *nv; in qla1280_set_target_parameters()
1152 nv = &ha->nvram; in qla1280_set_target_parameters()
1218 struct nvram *nv; in qla1280_slave_configure()
1222 nv = &ha->nvram; in qla1280_slave_configure()
1892 qla1280_print_settings(struct nvram *nv) in qla1280_print_settings()
1944 struct nvram *nv = &ha->nvram; in qla1280_set_target_defaults()
[all …]
Dqla1280.h152 uint16_t nvram; /* NVRAM register. */ member
341 struct nvram { struct
1070 struct nvram nvram; member
Dips.h611 IPS_NVRAM_CMD nvram; member
1056 IPS_NVRAM_P5 *nvram; /* NVRAM page 5 data */ member
Da100u2w.c89 static struct orc_nvram nvram, *nvramp = &nvram; variable
/drivers/message/fusion/
Dmptspi.c113 int nvram; in mptspi_setTargetNegoParms() local
174 if (pspi_data->nvram && (pspi_data->nvram[id] != MPT_HOST_NVRAM_INVALID)) { in mptspi_setTargetNegoParms()
175 nvram = pspi_data->nvram[id]; in mptspi_setTargetNegoParms()
176 nfactor = (nvram & MPT_NVRAM_SYNC_MASK) >> 8; in mptspi_setTargetNegoParms()
179 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()
Dmptbase.c2512 kfree(ioc->spi_data.nvram); in mpt_adapter_disable()
2516 ioc->spi_data.nvram = NULL; in mpt_adapter_disable()
5038 if (!ioc->spi_data.nvram) { in mpt_GetScsiPortSettings()
5046 ioc->spi_data.nvram = (int *) mem; in mpt_GetScsiPortSettings()
5049 ioc->name, ioc->spi_data.nvram, sz)); in mpt_GetScsiPortSettings()
5055 ioc->spi_data.nvram[ii] = MPT_HOST_NVRAM_INVALID; in mpt_GetScsiPortSettings()
5190 ioc->spi_data.nvram[ii] = data; in mpt_GetScsiPortSettings()
5213 ioc->spi_data.nvram[ii] = data; in mpt_GetScsiPortSettings()
/drivers/scsi/qla4xxx/
Dql4_def.h326 struct eeprom_data *nvram; member
470 &ha->reg->u1.isp4010.nvram : in isp_semaphore()
477 &ha->reg->u1.isp4010.nvram : in isp_nvram()
478 &ha->reg->u1.isp4022.nvram); in isp_nvram()
Dql4_fw.h51 __le32 nvram; member
56 __le32 nvram; /* 0x30 */ member
/drivers/rtc/
Drtc-cmos.c594 static struct bin_attribute nvram = { variable
793 nvram.size = address_space - NVRAM_OFFSET; in cmos_do_probe()
794 retval = sysfs_create_bin_file(&dev->kobj, &nvram); in cmos_do_probe()
809 nvram.size, in cmos_do_probe()
839 sysfs_remove_bin_file(&dev->kobj, &nvram); in cmos_do_remove()
Drtc-ds1307.c512 static struct bin_attribute nvram = { variable
704 err = sysfs_create_bin_file(&client->dev.kobj, &nvram); in ds1307_probe()
731 sysfs_remove_bin_file(&client->dev.kobj, &nvram); in ds1307_remove()
Drtc-ds1305.c606 static struct bin_attribute nvram = { variable
789 status = sysfs_create_bin_file(&spi->dev.kobj, &nvram); in ds1305_probe()
810 sysfs_remove_bin_file(&spi->dev.kobj, &nvram); in ds1305_remove()
/drivers/net/sfc/
Dselftest.h36 int nvram; member
/drivers/mtd/maps/
DMakefile45 obj-$(CONFIG_MTD_AUTCPU12) += autcpu12-nvram.o

12