Lines Matching full:nvmem
46 * tb_nvm_add_active() - Adds active NVMem device to NVM
50 * NVMem device)
52 * Registers new active NVmem device for @nvm. The @reg_read is called
53 * directly from NVMem so it must handle possible concurrent access if
60 struct nvmem_device *nvmem; in tb_nvm_add_active() local
75 nvmem = nvmem_register(&config); in tb_nvm_add_active()
76 if (IS_ERR(nvmem)) in tb_nvm_add_active()
77 return PTR_ERR(nvmem); in tb_nvm_add_active()
79 nvm->active = nvmem; in tb_nvm_add_active()
110 * tb_nvm_add_non_active() - Adds non-active NVMem device to NVM
114 * to the NVMem device)
116 * Registers new non-active NVmem device for @nvm. The @reg_write is called
117 * directly from NVMem so it must handle possible concurrent access if
125 struct nvmem_device *nvmem; in tb_nvm_add_non_active() local
140 nvmem = nvmem_register(&config); in tb_nvm_add_non_active()
141 if (IS_ERR(nvmem)) in tb_nvm_add_non_active()
142 return PTR_ERR(nvmem); in tb_nvm_add_non_active()
144 nvm->non_active = nvmem; in tb_nvm_add_non_active()
152 * Releases NVM and the NVMem devices if they were registered.