Searched refs:nvram (Results 1 - 25 of 47) sorted by relevance

12

/drivers/char/
H A Dnvram.c13 * The data are supplied as a (seekable) character device, /dev/nvram. The
41 #include <linux/nvram.h>
52 # error Cannot build nvram driver for this machine configuration.
211 * The are the file operation function for user access to /dev/nvram
419 if (!proc_create("driver/nvram", 0, NULL, &nvram_proc_fops))
438 "nvram",
452 printk(KERN_ERR "nvram: can't misc_register on minor=%d\n",
458 printk(KERN_ERR "nvram: can't create /proc/driver/nvram\n");
472 remove_proc_entry("driver/nvram", NUL
523 pc_proc_infos(unsigned char *nvram, struct seq_file *seq, void *offset) argument
653 atari_proc_infos(unsigned char *nvram, struct seq_file *seq, void *offset) argument
[all...]
H A DMakefile37 obj-$(CONFIG_NVRAM) += nvram.o
H A Dgeneric_nvram.c2 * Generic /dev/nvram driver for architectures providing some
8 * for getting the nvram "partition" informations
24 #include <asm/nvram.h>
98 printk(KERN_WARNING "nvram: Using obsolete PMAC_NVRAM_GET_OFFSET ioctl\n");
145 "nvram",
H A DKconfig265 tristate "/dev/nvram support"
268 If you say Y here and create a character special file /dev/nvram
273 nvram in the system, but is usually 114 (128-14 for the RTC).
276 on Ataris. /dev/nvram may be used to view settings there, or to
284 On Atari machines, /dev/nvram is always configured and does not need
288 module will be called nvram.
/drivers/scsi/sym53c8xx_2/
H A Dsym_nvram.c50 void sym_nvram_setup_host(struct Scsi_Host *shost, struct sym_hcb *np, struct sym_nvram *nvram) argument
56 switch (nvram->type) {
58 if (!(nvram->data.Symbios.flags & SYMBIOS_PARITY_ENABLE))
60 np->myaddr = nvram->data.Symbios.host_id & 0x0f;
61 if (nvram->data.Symbios.flags & SYMBIOS_VERBOSE_MSGS)
63 if (nvram->data.Symbios.flags1 & SYMBIOS_SCAN_HI_LO)
65 if (nvram->data.Symbios.flags2 & SYMBIOS_AVOID_BUS_RESET)
69 np->myaddr = nvram->data.Tekram.host_id & 0x0f;
73 if (nvram->data.parisc.host_id != -1)
74 np->myaddr = nvram
95 sym_Symbios_setup_target(struct sym_tcb *tp, int target, Symbios_nvram *nvram) argument
119 sym_Tekram_setup_target(struct sym_tcb *tp, int target, Tekram_nvram *nvram) argument
156 sym_display_Symbios_nvram(struct sym_device *np, Symbios_nvram *nvram) argument
188 sym_display_Tekram_nvram(struct sym_device *np, Tekram_nvram *nvram) argument
235 sym_display_Symbios_nvram(struct sym_device *np, Symbios_nvram *nvram) argument
236 sym_display_Tekram_nvram(struct sym_device *np, Tekram_nvram *nvram) argument
510 sym_read_Symbios_nvram(struct sym_device *np, Symbios_nvram *nvram) argument
660 sym_read_T93C46_nvram(struct sym_device *np, Tekram_nvram *nvram) argument
692 sym_read_Tekram_nvram(struct sym_device *np, Tekram_nvram *nvram) argument
[all...]
H A Dsym_nvram.h196 void sym_nvram_setup_host(struct Scsi_Host *shost, struct sym_hcb *np, struct sym_nvram *nvram);
201 static inline void sym_nvram_setup_host(struct Scsi_Host *shost, struct sym_hcb *np, struct sym_nvram *nvram) { } argument
202 static inline void sym_nvram_setup_target(struct sym_tcb *tp, struct sym_nvram *nvram) { } argument
H A Dsym_glue.h213 struct sym_nvram *nvram; member in struct:sym_device
H A Dsym_glue.c71 module_param_named(nvram, sym_driver_setup.use_nvram, byte, 0);
85 MODULE_PARM_DESC(nvram, "Option currently not used");
1401 if (sym_hcb_attach(shost, fw, dev->nvram))
1486 devp->nvram = nvp;
1758 struct sym_nvram nvram; local
1764 memset(&nvram, 0, sizeof(nvram));
1793 sym_get_nvram(&sym_dev, &nvram);
H A Dsym_hipd.c654 static void sym_set_bus_mode(struct sym_hcb *np, struct sym_nvram *nvram) argument
667 } else if (nvram->type == SYM_SYMBIOS_NVRAM) {
682 static int sym_prepare_setting(struct Scsi_Host *shost, struct sym_hcb *np, struct sym_nvram *nvram) argument
772 np->maxoffs_dt = nvram->type ? 62 : 31;
865 sym_nvram_setup_host(shost, np, nvram);
881 sym_set_bus_mode(np, nvram);
890 (nvram->type == SYM_SYMBIOS_NVRAM ||
891 (nvram->type == SYM_TEKRAM_NVRAM &&
922 sym_nvram_setup_target(tp, i, nvram);
932 sym_nvram_type(nvram), n
5576 sym_hcb_attach(struct Scsi_Host *shost, struct sym_fw *fw, struct sym_nvram *nvram) argument
[all...]
/drivers/net/ethernet/sfc/
H A Dselftest.h36 int nvram; member in struct:efx_self_tests
/drivers/rtc/
H A Drtc-ds1307.c109 struct bin_attribute *nvram; member in struct:ds1307
568 if (unlikely(off >= ds1307->nvram->size))
570 if ((off + count) > ds1307->nvram->size)
571 count = ds1307->nvram->size - off;
578 dev_err(&client->dev, "%s error %d\n", "nvram read", result);
594 if (unlikely(off >= ds1307->nvram->size))
596 if ((off + count) > ds1307->nvram->size)
597 count = ds1307->nvram->size - off;
604 dev_err(&client->dev, "%s error %d\n", "nvram write", result);
897 ds1307->nvram
[all...]
H A Drtc-cmos.c526 static struct bin_attribute nvram = { variable in typeref:struct:bin_attribute
528 .name = "nvram",
727 nvram.size = address_space - NVRAM_OFFSET;
728 retval = sysfs_create_bin_file(&dev->kobj, &nvram);
730 dev_dbg(dev, "can't create nvram file? %d\n", retval);
734 pr_info("%s: %s%s, %zd bytes nvram%s\n",
741 nvram.size,
771 sysfs_remove_bin_file(&dev->kobj, &nvram);
H A Drtc-ds1305.c555 dev_err(&spi->dev, "nvram %s error %d\n", "read", status);
586 dev_err(&spi->dev, "nvram %s error %d\n", "write", status);
590 static struct bin_attribute nvram = { variable in typeref:struct:bin_attribute
591 .attr.name = "nvram",
773 status = sysfs_create_bin_file(&spi->dev.kobj, &nvram);
775 dev_dbg(&spi->dev, "register nvram --> %d\n", status);
794 sysfs_remove_bin_file(&spi->dev.kobj, &nvram);
/drivers/macintosh/
H A Dnvram.c2 * /dev/nvram driver for Power Macintosh.
14 #include <linux/nvram.h>
17 #include <asm/nvram.h>
112 "nvram",
/drivers/scsi/qla4xxx/
H A Dql4_dbg.c61 printk(KERN_INFO "0x%02X nvram = 0x%08X\n",
62 (uint8_t) offsetof(struct isp_reg, u1.isp4010.nvram),
63 readw(&ha->reg->u1.isp4010.nvram));
68 printk(KERN_INFO "0x%02X nvram = 0x%08X\n",
69 (uint8_t) offsetof(struct isp_reg, u1.isp4022.nvram),
70 readw(&ha->reg->u1.isp4022.nvram));
H A Dql4_bsg.c210 uint8_t *nvram = NULL; local
237 " nvram size, offset=%d len=%d\n",
242 nvram = dma_alloc_coherent(&ha->pdev->dev, len, &nvram_dma,
244 if (!nvram) {
245 ql4_printk(KERN_ERR, ha, "%s: dma alloc failed for nvram "
253 ql4_printk(KERN_ERR, ha, "%s: get nvram failed\n", __func__);
260 nvram, len);
266 dma_free_coherent(&ha->pdev->dev, len, nvram, nvram_dma);
282 uint8_t *nvram = NULL; local
308 " nvram siz
[all...]
H A Dql4_def.h338 /* Offsets for flash/nvram access (set to ~0 if not used). */
526 struct eeprom_data *nvram; member in struct:scsi_qla_host
801 &ha->reg->u1.isp4010.nvram :
808 &ha->reg->u1.isp4010.nvram :
809 &ha->reg->u1.isp4022.nvram);
/drivers/scsi/qla2xxx/
H A Dqla_sup.c29 data = RD_REG_WORD(&reg->nvram);
32 data = RD_REG_WORD(&reg->nvram);
76 WRT_REG_WORD(&reg->nvram, data | NVR_SELECT | NVR_WRT_ENABLE);
77 RD_REG_WORD(&reg->nvram); /* PCI Posting. */
79 WRT_REG_WORD(&reg->nvram, data | NVR_SELECT | NVR_CLOCK |
81 RD_REG_WORD(&reg->nvram); /* PCI Posting. */
83 WRT_REG_WORD(&reg->nvram, data | NVR_SELECT | NVR_WRT_ENABLE);
84 RD_REG_WORD(&reg->nvram); /* PCI Posting. */
101 * Returns the word read from nvram @addr.
123 WRT_REG_WORD(&reg->nvram, NVR_SELEC
[all...]
/drivers/scsi/
H A Dips.c2052 if ((le32_to_cpu(ha->nvram->signature) == IPS_NVRAM_P5_SIG) &&
2053 (le16_to_cpu(ha->nvram->adapter_type) != 0))
2079 if (le32_to_cpu(ha->nvram->signature) == IPS_NVRAM_P5_SIG) {
2080 if (ha->nvram->bios_low[3] == 0) {
2083 ha->nvram->bios_high[0], ha->nvram->bios_high[1],
2084 ha->nvram->bios_high[2], ha->nvram->bios_high[3],
2085 ha->nvram->bios_low[0], ha->nvram
6690 IPS_NVRAM_P5 *nvram; local
[all...]
H A Dqla1280.c100 - Add a number of missing default nvram parameters
618 struct nvram *nv;
627 wptr = (uint16_t *)&ha->nvram;
628 nv = &ha->nvram;
639 dprintk(2, "Invalid nvram ID or version!\n");
642 for (; cnt < sizeof(struct nvram); cnt++) {
1154 struct nvram *nv;
1157 nv = &ha->nvram;
1223 struct nvram *nv;
1227 nv = &ha->nvram;
[all...]
H A Dqla1280.h153 uint16_t nvram; /* NVRAM register. */ member in struct:device_reg
342 struct nvram { struct
1071 struct nvram nvram; member in struct:scsi_qla_host
H A Da100u2w.c88 static struct orc_nvram nvram, *nvramp = &nvram; variable in typeref:struct:orc_nvram
/drivers/message/fusion/
H A Dmptspi.c114 int nvram; local
175 if (pspi_data->nvram && (pspi_data->nvram[id] != MPT_HOST_NVRAM_INVALID)) {
176 nvram = pspi_data->nvram[id];
177 nfactor = (nvram & MPT_NVRAM_SYNC_MASK) >> 8;
180 width = nvram & MPT_NVRAM_WIDE_DISABLE ? 0 : 1;
184 * maximum of: adapter, nvram, inquiry
443 if (ioc->spi_data.nvram &&
444 ioc->spi_data.nvram[starge
445 u32 nvram = ioc->spi_data.nvram[starget->id]; local
[all...]
/drivers/mtd/maps/
H A DMakefile41 obj-$(CONFIG_MTD_AUTCPU12) += autcpu12-nvram.o
/drivers/video/
H A Digafb.c43 #include <linux/nvram.h>

Completed in 432 milliseconds

12