Lines Matching refs:cells
261 struct nvmem_cell **cells; in nvmem_add_cells() local
262 const struct nvmem_cell_info *info = cfg->cells; in nvmem_add_cells()
265 cells = kcalloc(cfg->ncells, sizeof(*cells), GFP_KERNEL); in nvmem_add_cells()
266 if (!cells) in nvmem_add_cells()
270 cells[i] = kzalloc(sizeof(**cells), GFP_KERNEL); in nvmem_add_cells()
271 if (!cells[i]) { in nvmem_add_cells()
276 rval = nvmem_cell_info_to_nvmem_cell(nvmem, &info[i], cells[i]); in nvmem_add_cells()
278 kfree(cells[i]); in nvmem_add_cells()
282 nvmem_cell_add(cells[i]); in nvmem_add_cells()
287 kfree(cells); in nvmem_add_cells()
292 nvmem_cell_drop(cells[i]); in nvmem_add_cells()
364 if (config->cells) in nvmem_register()