Home
last modified time | relevance | path

Searched refs:nvmem_cfg (Results 1 – 21 of 21) sorted by relevance

/linux-6.6.21/drivers/nvmem/
Dsunxi_sid.c127 struct nvmem_config *nvmem_cfg; in sunxi_sid_probe() local
149 nvmem_cfg = devm_kzalloc(dev, sizeof(*nvmem_cfg), GFP_KERNEL); in sunxi_sid_probe()
150 if (!nvmem_cfg) in sunxi_sid_probe()
153 nvmem_cfg->dev = dev; in sunxi_sid_probe()
154 nvmem_cfg->name = "sunxi-sid"; in sunxi_sid_probe()
155 nvmem_cfg->type = NVMEM_TYPE_OTP; in sunxi_sid_probe()
156 nvmem_cfg->read_only = true; in sunxi_sid_probe()
157 nvmem_cfg->size = cfg->size; in sunxi_sid_probe()
158 nvmem_cfg->word_size = 1; in sunxi_sid_probe()
159 nvmem_cfg->stride = 4; in sunxi_sid_probe()
[all …]
/linux-6.6.21/drivers/rtc/
Drtc-twl.c507 struct nvmem_config nvmem_cfg; in twl_rtc_probe() local
591 memset(&nvmem_cfg, 0, sizeof(nvmem_cfg)); in twl_rtc_probe()
592 nvmem_cfg.name = "twl-secured-"; in twl_rtc_probe()
593 nvmem_cfg.type = NVMEM_TYPE_BATTERY_BACKED; in twl_rtc_probe()
594 nvmem_cfg.reg_read = twl_nvram_read, in twl_rtc_probe()
595 nvmem_cfg.reg_write = twl_nvram_write, in twl_rtc_probe()
596 nvmem_cfg.word_size = 1; in twl_rtc_probe()
597 nvmem_cfg.stride = 1; in twl_rtc_probe()
600 nvmem_cfg.size = 20; in twl_rtc_probe()
601 nvmem_cfg.priv = (void *)TWL_MODULE_SECURED_REG; in twl_rtc_probe()
[all …]
Drtc-ds1742.c149 struct nvmem_config nvmem_cfg = { in ds1742_rtc_probe() local
167 nvmem_cfg.size = resource_size(res) - RTC_SIZE; in ds1742_rtc_probe()
168 nvmem_cfg.priv = pdata; in ds1742_rtc_probe()
196 devm_rtc_nvmem_register(rtc, &nvmem_cfg); in ds1742_rtc_probe()
Drtc-rp5c01.c224 struct nvmem_config nvmem_cfg = { in rp5c01_rtc_probe() local
257 nvmem_cfg.priv = priv; in rp5c01_rtc_probe()
258 error = devm_rtc_nvmem_register(rtc, &nvmem_cfg); in rp5c01_rtc_probe()
Drtc-rx8581.c255 static struct nvmem_config nvmem_cfg[] = { in rx8581_probe() local
302 nvmem_cfg[i].priv = rx8581; in rx8581_probe()
303 devm_rtc_nvmem_register(rx8581->rtc, &nvmem_cfg[i]); in rx8581_probe()
Drtc-stk17ta8.c264 struct nvmem_config nvmem_cfg = { in stk17ta8_rtc_probe() local
315 nvmem_cfg.priv = pdata; in stk17ta8_rtc_probe()
316 ret = devm_rtc_nvmem_register(pdata->rtc, &nvmem_cfg); in stk17ta8_rtc_probe()
Drtc-pcf85363.c387 static struct nvmem_config nvmem_cfg[] = { in pcf85363_probe() local
470 nvmem_cfg[i].priv = pcf85363; in pcf85363_probe()
471 devm_rtc_nvmem_register(pcf85363->rtc, &nvmem_cfg[i]); in pcf85363_probe()
Drtc-ds1343.c351 struct nvmem_config nvmem_cfg = { in ds1343_probe() local
415 nvmem_cfg.priv = priv; in ds1343_probe()
416 devm_rtc_nvmem_register(priv->rtc, &nvmem_cfg); in ds1343_probe()
Drtc-m48t59.c364 struct nvmem_config nvmem_cfg = { in m48t59_rtc_probe() local
462 nvmem_cfg.size = pdata->offset; in m48t59_rtc_probe()
463 ret = devm_rtc_nvmem_register(m48t59->rtc, &nvmem_cfg); in m48t59_rtc_probe()
Drtc-pcf85063.c558 struct nvmem_config nvmem_cfg = { in pcf85063_probe() local
629 nvmem_cfg.priv = pcf85063->regmap; in pcf85063_probe()
630 devm_rtc_nvmem_register(pcf85063->rtc, &nvmem_cfg); in pcf85063_probe()
Drtc-ds1553.c256 struct nvmem_config nvmem_cfg = { in ds1553_rtc_probe() local
312 devm_rtc_nvmem_register(pdata->rtc, &nvmem_cfg); in ds1553_rtc_probe()
Drtc-rv3029c2.c710 struct nvmem_config nvmem_cfg = { in rv3029_probe() local
763 nvmem_cfg.priv = rv3029->regmap; in rv3029_probe()
764 devm_rtc_nvmem_register(rv3029->rtc, &nvmem_cfg); in rv3029_probe()
Drtc-cmos.c934 struct nvmem_config nvmem_cfg = { in cmos_do_probe() local
1115 nvmem_cfg.size = address_space - NVRAM_OFFSET; in cmos_do_probe()
1116 devm_rtc_nvmem_register(cmos_rtc.rtc, &nvmem_cfg); in cmos_do_probe()
1131 nvmem_cfg.size, in cmos_do_probe()
Drtc-rv3028.c920 struct nvmem_config nvmem_cfg = { in rv3028_probe() local
1014 nvmem_cfg.priv = rv3028->regmap; in rv3028_probe()
1015 devm_rtc_nvmem_register(rv3028->rtc, &nvmem_cfg); in rv3028_probe()
Drtc-rv3032.c894 struct nvmem_config nvmem_cfg = { in rv3032_probe() local
967 nvmem_cfg.priv = rv3032->regmap; in rv3032_probe()
968 devm_rtc_nvmem_register(rv3032->rtc, &nvmem_cfg); in rv3032_probe()
Drtc-ds3232.c486 struct nvmem_config nvmem_cfg = { in ds3232_probe() local
520 ret = devm_rtc_nvmem_register(ds3232->rtc, &nvmem_cfg); in ds3232_probe()
Drtc-ds1685.c1076 struct nvmem_config nvmem_cfg = { in ds1685_rtc_probe() local
1313 nvmem_cfg.priv = rtc; in ds1685_rtc_probe()
1314 ret = devm_rtc_nvmem_register(rtc_dev, &nvmem_cfg); in ds1685_rtc_probe()
Drtc-rv8803.c624 struct nvmem_config nvmem_cfg = { in rv8803_probe() local
708 devm_rtc_nvmem_register(rv8803->rtc, &nvmem_cfg); in rv8803_probe()
Drtc-pcf2127.c1172 struct nvmem_config nvmem_cfg = { in pcf2127_probe() local
1179 ret = devm_rtc_nvmem_register(pcf2127->rtc, &nvmem_cfg); in pcf2127_probe()
Drtc-ds1307.c1986 struct nvmem_config nvmem_cfg = { in ds1307_probe() local
1996 devm_rtc_nvmem_register(ds1307->rtc, &nvmem_cfg); in ds1307_probe()
/linux-6.6.21/drivers/w1/slaves/
Dw1_ds250x.c169 struct nvmem_config nvmem_cfg = { in w1_eprom_add_slave() local
211 nvmem_cfg.name = data->nvmem_name; in w1_eprom_add_slave()
212 nvmem_cfg.size = data->size; in w1_eprom_add_slave()
214 nvmem = devm_nvmem_register(&sl->dev, &nvmem_cfg); in w1_eprom_add_slave()