Searched refs:nvmem_cell (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/include/linux/
H A Dnvmem-consumer.h18 struct nvmem_cell;
32 struct nvmem_cell *nvmem_cell_get(struct device *dev, const char *name);
33 struct nvmem_cell *devm_nvmem_cell_get(struct device *dev, const char *name);
34 void nvmem_cell_put(struct nvmem_cell *cell);
35 void devm_nvmem_cell_put(struct device *dev, struct nvmem_cell *cell);
36 void *nvmem_cell_read(struct nvmem_cell *cell, size_t *len);
37 int nvmem_cell_write(struct nvmem_cell *cell, void *buf, size_t len);
56 static inline struct nvmem_cell *nvmem_cell_get(struct device *dev, nvmem_cell_get()
62 static inline struct nvmem_cell *devm_nvmem_cell_get(struct device *dev, devm_nvmem_cell_get()
69 struct nvmem_cell *cell) devm_nvmem_cell_put()
73 static inline void nvmem_cell_put(struct nvmem_cell *cell) nvmem_cell_put()
77 static inline char *nvmem_cell_read(struct nvmem_cell *cell, size_t *len) nvmem_cell_read()
82 static inline int nvmem_cell_write(struct nvmem_cell *cell, nvmem_cell_write()
139 struct nvmem_cell *of_nvmem_cell_get(struct device_node *np,
144 static inline struct nvmem_cell *of_nvmem_cell_get(struct device_node *np, of_nvmem_cell_get()
/linux-4.4.14/drivers/nvmem/
H A Dcore.c43 struct nvmem_cell { struct
194 static struct nvmem_cell *nvmem_find_cell(const char *cell_id) nvmem_find_cell()
196 struct nvmem_cell *p; nvmem_find_cell()
205 static void nvmem_cell_drop(struct nvmem_cell *cell) nvmem_cell_drop()
215 struct nvmem_cell *cell; nvmem_device_remove_all_cells()
219 cell = list_entry(p, struct nvmem_cell, node); nvmem_device_remove_all_cells()
225 static void nvmem_cell_add(struct nvmem_cell *cell) nvmem_cell_add()
234 struct nvmem_cell *cell) nvmem_cell_info_to_nvmem_cell()
261 struct nvmem_cell **cells; nvmem_add_cells()
395 struct nvmem_cell **cellp, __nvmem_device_get()
409 struct nvmem_cell *cell = nvmem_find_cell(cell_id); __nvmem_device_get()
566 * Return: ERR_PTR() on error or a valid pointer to a struct nvmem_cell
567 * on success. The nvmem_cell will be freed by the automatically once the
590 static struct nvmem_cell *nvmem_cell_get_from_list(const char *cell_id) nvmem_cell_get_from_list()
592 struct nvmem_cell *cell = NULL; nvmem_cell_get_from_list()
610 * to a struct nvmem_cell. The nvmem_cell will be freed by the
613 struct nvmem_cell *of_nvmem_cell_get(struct device_node *np, of_nvmem_cell_get()
617 struct nvmem_cell *cell; of_nvmem_cell_get()
695 * to a struct nvmem_cell. The nvmem_cell will be freed by the
698 struct nvmem_cell *nvmem_cell_get(struct device *dev, const char *cell_id) nvmem_cell_get()
700 struct nvmem_cell *cell; nvmem_cell_get()
714 nvmem_cell_put(*(struct nvmem_cell **)res); devm_nvmem_cell_release()
724 * to a struct nvmem_cell. The nvmem_cell will be freed by the
727 struct nvmem_cell *devm_nvmem_cell_get(struct device *dev, const char *id) devm_nvmem_cell_get()
729 struct nvmem_cell **ptr, *cell; devm_nvmem_cell_get()
749 struct nvmem_cell **c = res; devm_nvmem_cell_match()
763 void devm_nvmem_cell_put(struct device *dev, struct nvmem_cell *cell) devm_nvmem_cell_put()
779 void nvmem_cell_put(struct nvmem_cell *cell) nvmem_cell_put()
788 static inline void nvmem_shift_read_buffer_in_place(struct nvmem_cell *cell, nvmem_shift_read_buffer_in_place()
817 struct nvmem_cell *cell, __nvmem_cell_read()
845 void *nvmem_cell_read(struct nvmem_cell *cell, size_t *len) nvmem_cell_read()
868 static inline void *nvmem_cell_prepare_write_buffer(struct nvmem_cell *cell, nvmem_cell_prepare_write_buffer()
923 int nvmem_cell_write(struct nvmem_cell *cell, void *buf, size_t len) nvmem_cell_write()
964 struct nvmem_cell cell; nvmem_device_cell_read()
995 struct nvmem_cell cell; nvmem_device_cell_write()

Completed in 44 milliseconds