Lines Matching refs:nvmem_device

29 	struct nvmem_device	*nvmem;
45 static int nvmem_reg_read(struct nvmem_device *nvmem, unsigned int offset, in nvmem_reg_read()
54 static int nvmem_reg_write(struct nvmem_device *nvmem, unsigned int offset, in nvmem_reg_write()
65 struct nvmem_device *nvmem = to_nvmem_device(dev); in nvmem_release()
79 static struct nvmem_device *of_nvmem_find(struct device_node *nvmem_np) in of_nvmem_find()
94 static struct nvmem_device *nvmem_find(const char *name) in nvmem_find()
117 static void nvmem_device_remove_all_cells(const struct nvmem_device *nvmem) in nvmem_device_remove_all_cells()
133 static int nvmem_cell_info_to_nvmem_cell(struct nvmem_device *nvmem, in nvmem_cell_info_to_nvmem_cell()
168 static int nvmem_add_cells(struct nvmem_device *nvmem, in nvmem_add_cells()
234 static int nvmem_add_cells_from_table(struct nvmem_device *nvmem) in nvmem_add_cells_from_table()
272 nvmem_find_cell_by_name(struct nvmem_device *nvmem, const char *cell_id) in nvmem_find_cell_by_name()
288 static int nvmem_add_cells_from_of(struct nvmem_device *nvmem) in nvmem_add_cells_from_of()
351 struct nvmem_device *nvmem_register(const struct nvmem_config *config) in nvmem_register()
353 struct nvmem_device *nvmem; in nvmem_register()
450 struct nvmem_device *nvmem; in nvmem_device_release()
452 nvmem = container_of(kref, struct nvmem_device, refcnt); in nvmem_device_release()
469 void nvmem_unregister(struct nvmem_device *nvmem) in nvmem_unregister()
477 nvmem_unregister(*(struct nvmem_device **)res); in devm_nvmem_release()
491 struct nvmem_device *devm_nvmem_register(struct device *dev, in devm_nvmem_register()
494 struct nvmem_device **ptr, *nvmem; in devm_nvmem_register()
515 struct nvmem_device **r = res; in devm_nvmem_match()
529 int devm_nvmem_unregister(struct device *dev, struct nvmem_device *nvmem) in devm_nvmem_unregister()
535 static struct nvmem_device *__nvmem_device_get(struct device_node *np, in __nvmem_device_get()
538 struct nvmem_device *nvmem = NULL; in __nvmem_device_get()
560 static void __nvmem_device_put(struct nvmem_device *nvmem) in __nvmem_device_put()
577 struct nvmem_device *of_nvmem_device_get(struct device_node *np, const char *id) in of_nvmem_device_get()
604 struct nvmem_device *nvmem_device_get(struct device *dev, const char *dev_name) in nvmem_device_get()
607 struct nvmem_device *nvmem; in nvmem_device_get()
622 struct nvmem_device **nvmem = res; in devm_nvmem_device_match()
632 nvmem_device_put(*(struct nvmem_device **)res); in devm_nvmem_device_release()
642 void devm_nvmem_device_put(struct device *dev, struct nvmem_device *nvmem) in devm_nvmem_device_put()
658 void nvmem_device_put(struct nvmem_device *nvmem) in nvmem_device_put()
674 struct nvmem_device *devm_nvmem_device_get(struct device *dev, const char *id) in devm_nvmem_device_get()
676 struct nvmem_device **ptr, *nvmem; in devm_nvmem_device_get()
699 struct nvmem_device *nvmem; in nvmem_cell_get_from_lookup()
736 nvmem_find_cell_by_node(struct nvmem_device *nvmem, struct device_node *np) in nvmem_find_cell_by_node()
767 struct nvmem_device *nvmem; in of_nvmem_cell_get()
899 struct nvmem_device *nvmem = cell->nvmem; in nvmem_cell_put()
937 static int __nvmem_cell_read(struct nvmem_device *nvmem, in __nvmem_cell_read()
970 struct nvmem_device *nvmem = cell->nvmem; in nvmem_cell_read()
994 struct nvmem_device *nvmem = cell->nvmem; in nvmem_cell_prepare_write_buffer()
1055 struct nvmem_device *nvmem = cell->nvmem; in nvmem_cell_write()
1165 ssize_t nvmem_device_cell_read(struct nvmem_device *nvmem, in nvmem_device_cell_read()
1196 int nvmem_device_cell_write(struct nvmem_device *nvmem, in nvmem_device_cell_write()
1224 int nvmem_device_read(struct nvmem_device *nvmem, in nvmem_device_read()
1252 int nvmem_device_write(struct nvmem_device *nvmem, in nvmem_device_write()
1339 const char *nvmem_dev_name(struct nvmem_device *nvmem) in nvmem_dev_name()