Home
last modified time | relevance | path

Searched refs:nvmem_config (Results 1 – 25 of 68) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/misc/eeprom/
Dat25.c32 struct nvmem_config nvmem_config; member
351 at25->nvmem_config.type = NVMEM_TYPE_EEPROM; in at25_probe()
352 at25->nvmem_config.name = dev_name(&spi->dev); in at25_probe()
353 at25->nvmem_config.dev = &spi->dev; in at25_probe()
354 at25->nvmem_config.read_only = chip.flags & EE_READONLY; in at25_probe()
355 at25->nvmem_config.root_only = true; in at25_probe()
356 at25->nvmem_config.owner = THIS_MODULE; in at25_probe()
357 at25->nvmem_config.compat = true; in at25_probe()
358 at25->nvmem_config.base_dev = &spi->dev; in at25_probe()
359 at25->nvmem_config.reg_read = at25_ee_read; in at25_probe()
[all …]
Deeprom_93xx46.c46 struct nvmem_config nvmem_config; member
473 edev->nvmem_config.type = NVMEM_TYPE_EEPROM; in eeprom_93xx46_probe()
474 edev->nvmem_config.name = dev_name(&spi->dev); in eeprom_93xx46_probe()
475 edev->nvmem_config.dev = &spi->dev; in eeprom_93xx46_probe()
476 edev->nvmem_config.read_only = pd->flags & EE_READONLY; in eeprom_93xx46_probe()
477 edev->nvmem_config.root_only = true; in eeprom_93xx46_probe()
478 edev->nvmem_config.owner = THIS_MODULE; in eeprom_93xx46_probe()
479 edev->nvmem_config.compat = true; in eeprom_93xx46_probe()
480 edev->nvmem_config.base_dev = &spi->dev; in eeprom_93xx46_probe()
481 edev->nvmem_config.reg_read = eeprom_93xx46_read; in eeprom_93xx46_probe()
[all …]
Dat24.c591 struct nvmem_config nvmem_config = { }; in at24_probe() local
723 nvmem_config.id = NVMEM_DEVID_AUTO; in at24_probe()
727 &nvmem_config.name); in at24_probe()
731 nvmem_config.name = dev_name(dev); in at24_probe()
734 nvmem_config.type = NVMEM_TYPE_EEPROM; in at24_probe()
735 nvmem_config.dev = dev; in at24_probe()
736 nvmem_config.read_only = !writable; in at24_probe()
737 nvmem_config.root_only = !(flags & AT24_FLAG_IRUGO); in at24_probe()
738 nvmem_config.owner = THIS_MODULE; in at24_probe()
739 nvmem_config.compat = true; in at24_probe()
[all …]
/kernel/linux/linux-5.10/drivers/rtc/
Dnvmem.c81 struct nvmem_config *nvmem_config) in rtc_nvmem_register() argument
85 if (!nvmem_config) in rtc_nvmem_register()
88 nvmem_config->dev = rtc->dev.parent; in rtc_nvmem_register()
89 nvmem_config->owner = rtc->owner; in rtc_nvmem_register()
90 nvmem = devm_nvmem_register(rtc->dev.parent, nvmem_config); in rtc_nvmem_register()
96 rtc_nvram_register(rtc, nvmem, nvmem_config->size); in rtc_nvmem_register()
Drtc-isl1208.c113 struct nvmem_config nvmem_config; member
772 static const struct nvmem_config isl1208_nvmem_config = {
836 isl1208->nvmem_config = isl1208_nvmem_config; in isl1208_probe()
837 isl1208->nvmem_config.size = isl1208->config->nvmem_length; in isl1208_probe()
838 isl1208->nvmem_config.priv = isl1208; in isl1208_probe()
893 rc = rtc_nvmem_register(isl1208->rtc, &isl1208->nvmem_config); in isl1208_probe()
/kernel/linux/linux-5.10/drivers/hwmon/pmbus/
Dadm1266.c58 struct nvmem_config nvmem_config; member
384 if (offset + bytes > data->nvmem_config.size) in adm1266_nvmem_read()
388 memset(data->dev_mem, 0, data->nvmem_config.size); in adm1266_nvmem_read()
404 data->nvmem_config.name = dev_name(&data->client->dev); in adm1266_config_nvmem()
405 data->nvmem_config.dev = &data->client->dev; in adm1266_config_nvmem()
406 data->nvmem_config.root_only = true; in adm1266_config_nvmem()
407 data->nvmem_config.read_only = true; in adm1266_config_nvmem()
408 data->nvmem_config.owner = THIS_MODULE; in adm1266_config_nvmem()
409 data->nvmem_config.reg_read = adm1266_nvmem_read; in adm1266_config_nvmem()
410 data->nvmem_config.cells = adm1266_nvmem_cells; in adm1266_config_nvmem()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dnvmem-provider.h61 struct nvmem_config { struct
105 struct nvmem_device *nvmem_register(const struct nvmem_config *cfg);
109 const struct nvmem_config *cfg);
118 static inline struct nvmem_device *nvmem_register(const struct nvmem_config *c) in nvmem_register()
126 devm_nvmem_register(struct device *dev, const struct nvmem_config *c) in devm_nvmem_register()
Drtc.h252 struct nvmem_config *nvmem_config);
256 struct nvmem_config *nvmem_config) in rtc_nvmem_register() argument
/kernel/linux/linux-5.10/drivers/media/i2c/
Dov2740.c1012 struct nvmem_config nvmem_config = { }; in ov2740_register_nvmem() local
1040 nvmem_config.name = dev_name(dev); in ov2740_register_nvmem()
1041 nvmem_config.dev = dev; in ov2740_register_nvmem()
1042 nvmem_config.read_only = true; in ov2740_register_nvmem()
1043 nvmem_config.root_only = true; in ov2740_register_nvmem()
1044 nvmem_config.owner = THIS_MODULE; in ov2740_register_nvmem()
1045 nvmem_config.compat = true; in ov2740_register_nvmem()
1046 nvmem_config.base_dev = dev; in ov2740_register_nvmem()
1047 nvmem_config.reg_read = ov2740_nvmem_read; in ov2740_register_nvmem()
1048 nvmem_config.reg_write = NULL; in ov2740_register_nvmem()
[all …]
Dvideo-i2c.c107 struct nvmem_config *nvmem_config; member
130 static struct nvmem_config mlx90640_nvram_config = {
381 .nvmem_config = &mlx90640_nvram_config,
846 if (data->chip->nvmem_config) { in video_i2c_probe()
847 struct nvmem_config *config = data->chip->nvmem_config; in video_i2c_probe()
/kernel/linux/linux-5.10/drivers/thunderbolt/
Dnvm.c59 struct nvmem_config config; in tb_nvm_add_active()
124 struct nvmem_config config; in tb_nvm_add_non_active()
/kernel/linux/linux-5.10/drivers/nvmem/
Dsnvs_lpgpr.c34 struct nvmem_config cfg;
94 struct nvmem_config *cfg; in snvs_lpgpr_probe()
Djz4780-efuse.c118 static struct nvmem_config jz4780_efuse_nvmem_config = {
143 struct nvmem_config cfg; in jz4780_efuse_probe()
Dzynqmp_nvmem.c36 static struct nvmem_config econfig = {
Duniphier-efuse.c37 struct nvmem_config econfig = {}; in uniphier_efuse_probe()
Dbcm-ocotp.c85 struct nvmem_config *config;
231 static struct nvmem_config bcm_otpc_nvmem_config = {
Dlpc18xx_otp.c59 static struct nvmem_config lpc18xx_otp_nvmem_config = {
Dmtk-efuse.c36 struct nvmem_config econfig = {}; in mtk_efuse_probe()
Dmeson-efuse.c47 struct nvmem_config *econfig; in meson_efuse_probe()
Dcore.c270 const struct nvmem_config *config) in nvmem_sysfs_setup_compat()
302 const struct nvmem_config *config) in nvmem_sysfs_remove_compat()
311 const struct nvmem_config *config) in nvmem_sysfs_setup_compat()
316 const struct nvmem_config *config) in nvmem_sysfs_remove_compat()
607 struct nvmem_device *nvmem_register(const struct nvmem_config *config) in nvmem_register()
769 const struct nvmem_config *config) in devm_nvmem_register()
Dimx-iim.c103 struct nvmem_config cfg = {}; in imx_iim_probe()
Dmxs-ocotp.c107 static struct nvmem_config ocotp_config = {
Dimx-ocotp.c83 struct nvmem_config *config;
446 static struct nvmem_config imx_ocotp_nvmem_config = {
Dsunxi_sid.c116 struct nvmem_config *nvmem_cfg; in sunxi_sid_probe()
/kernel/linux/linux-5.10/drivers/soc/atmel/
Dsfr.c33 static struct nvmem_config atmel_sfr_nvmem_config = {

123