Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/char/
Dnvram.c52 # error Cannot build nvram driver for this machine configuration.
498 static void pc_proc_infos(unsigned char *nvram, struct seq_file *seq, in pc_proc_infos() argument
511 (nvram[6] & 1) ? (nvram[6] >> 6) + 1 : 0); in pc_proc_infos()
513 type = nvram[2] >> 4; in pc_proc_infos()
519 type = nvram[2] & 0x0f; in pc_proc_infos()
526 type = nvram[4] >> 4; in pc_proc_infos()
528 seq_printf(seq, "%02x\n", type == 0x0f ? nvram[11] : type); in pc_proc_infos()
533 type = nvram[4] & 0x0f; in pc_proc_infos()
535 seq_printf(seq, "%02x\n", type == 0x0f ? nvram[12] : type); in pc_proc_infos()
540 nvram[18] | (nvram[19] << 8), in pc_proc_infos()
[all …]
DMakefile32 obj-$(CONFIG_NVRAM) += nvram.o
DKconfig238 tristate "/dev/nvram support"
241 If you say Y here and create a character special file /dev/nvram
246 nvram in the system, but is usually 114 (128-14 for the RTC).
249 on Ataris. /dev/nvram may be used to view settings there, or to
257 On Atari machines, /dev/nvram is always configured and does not need
261 module will be called nvram.
/linux-4.19.296/include/linux/
Dbcm963xx_nvram.h51 #define BCM963XX_NVRAM_NAND_PART_OFFSET(nvram, part) \ argument
52 bcm963xx_nvram_nand_part_offset(nvram, BCM963XX_NVRAM_NAND_PART_ ##part)
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
62 bcm963xx_nvram_nand_part_size(nvram, BCM963XX_NVRAM_NAND_PART_ ##part)
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()
[all …]
Dbcm47xx_nvram.h21 static inline void bcm47xx_nvram_release_contents(char *nvram) in bcm47xx_nvram_release_contents() argument
23 vfree(nvram); in bcm47xx_nvram_release_contents()
45 static inline void bcm47xx_nvram_release_contents(char *nvram) in bcm47xx_nvram_release_contents() argument
Drtc.h144 struct bin_attribute *nvram; member
/linux-4.19.296/drivers/rtc/
Dnvmem.c51 rtc->nvram = devm_kzalloc(rtc->dev.parent, in rtc_nvram_register()
54 if (!rtc->nvram) in rtc_nvram_register()
57 rtc->nvram->attr.name = "nvram"; in rtc_nvram_register()
58 rtc->nvram->attr.mode = 0644; in rtc_nvram_register()
59 rtc->nvram->private = rtc; in rtc_nvram_register()
61 sysfs_bin_attr_init(rtc->nvram); in rtc_nvram_register()
63 rtc->nvram->read = rtc_nvram_read; in rtc_nvram_register()
64 rtc->nvram->write = rtc_nvram_write; in rtc_nvram_register()
65 rtc->nvram->size = size; in rtc_nvram_register()
68 rtc->nvram); in rtc_nvram_register()
[all …]
/linux-4.19.296/drivers/message/fusion/
Dmptspi.c114 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()
443 if (ioc->spi_data.nvram && in mptspi_target_alloc()
444 ioc->spi_data.nvram[starget->id] != MPT_HOST_NVRAM_INVALID) { in mptspi_target_alloc()
445 u32 nvram = ioc->spi_data.nvram[starget->id]; in mptspi_target_alloc() local
446 spi_min_period(starget) = (nvram & MPT_NVRAM_SYNC_MASK) >> MPT_NVRAM_SYNC_SHIFT; in mptspi_target_alloc()
447 spi_max_width(starget) = nvram & MPT_NVRAM_WIDE_DISABLE ? 0 : 1; in mptspi_target_alloc()
Dmptbase.h484 int *nvram; /* table of device NVRAM values */ member
Dmptbase.c2769 kfree(ioc->spi_data.nvram); in mpt_adapter_disable()
2773 ioc->spi_data.nvram = NULL; in mpt_adapter_disable()
5373 if (!ioc->spi_data.nvram) { in mpt_GetScsiPortSettings()
5381 ioc->spi_data.nvram = (int *) mem; in mpt_GetScsiPortSettings()
5384 ioc->name, ioc->spi_data.nvram, sz)); in mpt_GetScsiPortSettings()
5390 ioc->spi_data.nvram[ii] = MPT_HOST_NVRAM_INVALID; in mpt_GetScsiPortSettings()
5525 ioc->spi_data.nvram[ii] = data; in mpt_GetScsiPortSettings()
5548 ioc->spi_data.nvram[ii] = data; in mpt_GetScsiPortSettings()