Lines Matching refs:cell
31 static TEE_Result atmel_sfc_read_cell(struct nvmem_cell *cell, uint8_t *data) in atmel_sfc_read_cell() argument
33 struct atmel_sfc *atmel_sfc = cell->drv_data; in atmel_sfc_read_cell()
35 if (cell->offset + cell->len > ATMEL_SFC_CELLS_8) in atmel_sfc_read_cell()
38 memcpy(data, &atmel_sfc->fuses[cell->offset], cell->len); in atmel_sfc_read_cell()
43 static void atmel_sfc_put_cell(struct nvmem_cell *cell) in atmel_sfc_put_cell() argument
45 free(cell); in atmel_sfc_put_cell()
57 struct nvmem_cell *cell = NULL; in atmel_sfc_dt_get() local
60 cell = calloc(1, sizeof(*cell)); in atmel_sfc_dt_get()
61 if (!cell) in atmel_sfc_dt_get()
64 res = nvmem_cell_parse_dt(args->fdt, args->phandle_node, cell); in atmel_sfc_dt_get()
68 if (cell->offset + cell->len > ATMEL_SFC_CELLS_8) { in atmel_sfc_dt_get()
73 cell->ops = &atmel_sfc_nvmem_ops; in atmel_sfc_dt_get()
74 cell->drv_data = data; in atmel_sfc_dt_get()
75 *out_cell = cell; in atmel_sfc_dt_get()
80 free(cell); in atmel_sfc_dt_get()