Lines Matching refs:nvmem_cfg
116 struct nvmem_config *nvmem_cfg; in sunxi_sid_probe() local
139 nvmem_cfg = devm_kzalloc(dev, sizeof(*nvmem_cfg), GFP_KERNEL); in sunxi_sid_probe()
140 if (!nvmem_cfg) in sunxi_sid_probe()
143 nvmem_cfg->dev = dev; in sunxi_sid_probe()
144 nvmem_cfg->name = "sunxi-sid"; in sunxi_sid_probe()
145 nvmem_cfg->type = NVMEM_TYPE_OTP; in sunxi_sid_probe()
146 nvmem_cfg->read_only = true; in sunxi_sid_probe()
147 nvmem_cfg->size = cfg->size; in sunxi_sid_probe()
148 nvmem_cfg->word_size = 1; in sunxi_sid_probe()
149 nvmem_cfg->stride = 4; in sunxi_sid_probe()
150 nvmem_cfg->priv = sid; in sunxi_sid_probe()
152 nvmem_cfg->reg_read = sun8i_sid_read_by_reg; in sunxi_sid_probe()
154 nvmem_cfg->reg_read = sunxi_sid_read; in sunxi_sid_probe()
156 nvmem = devm_nvmem_register(dev, nvmem_cfg); in sunxi_sid_probe()
164 nvmem_cfg->reg_read(sid, 0, randomness, size); in sunxi_sid_probe()