Lines Matching refs:nvmem_device
22 struct nvmem_device { struct
43 #define to_nvmem_device(d) container_of(d, struct nvmem_device, dev) argument
54 struct nvmem_device *nvmem;
69 static int nvmem_reg_read(struct nvmem_device *nvmem, unsigned int offset, in nvmem_reg_read()
78 static int nvmem_reg_write(struct nvmem_device *nvmem, unsigned int offset, in nvmem_reg_write()
108 struct nvmem_device *nvmem = to_nvmem_device(dev); in type_show()
125 struct nvmem_device *nvmem; in bin_attr_nvmem_read()
165 struct nvmem_device *nvmem; in bin_attr_nvmem_write()
200 static umode_t nvmem_bin_attr_get_umode(struct nvmem_device *nvmem) in nvmem_bin_attr_get_umode()
223 struct nvmem_device *nvmem = to_nvmem_device(dev); in nvmem_bin_attr_is_visible()
267 static int nvmem_sysfs_setup_compat(struct nvmem_device *nvmem, in nvmem_sysfs_setup_compat()
299 static void nvmem_sysfs_remove_compat(struct nvmem_device *nvmem, in nvmem_sysfs_remove_compat()
308 static int nvmem_sysfs_setup_compat(struct nvmem_device *nvmem, in nvmem_sysfs_setup_compat()
313 static void nvmem_sysfs_remove_compat(struct nvmem_device *nvmem, in nvmem_sysfs_remove_compat()
322 struct nvmem_device *nvmem = to_nvmem_device(dev); in nvmem_release()
348 static void nvmem_device_remove_all_cells(const struct nvmem_device *nvmem) in nvmem_device_remove_all_cells()
364 static int nvmem_cell_info_to_nvmem_cell_nodup(struct nvmem_device *nvmem, in nvmem_cell_info_to_nvmem_cell_nodup()
390 static int nvmem_cell_info_to_nvmem_cell(struct nvmem_device *nvmem, in nvmem_cell_info_to_nvmem_cell()
416 static int nvmem_add_cells(struct nvmem_device *nvmem, in nvmem_add_cells()
482 static int nvmem_add_cells_from_table(struct nvmem_device *nvmem) in nvmem_add_cells_from_table()
520 nvmem_find_cell_by_name(struct nvmem_device *nvmem, const char *cell_id) in nvmem_find_cell_by_name()
536 static int nvmem_add_cells_from_of(struct nvmem_device *nvmem) in nvmem_add_cells_from_of()
599 struct nvmem_device *nvmem_register(const struct nvmem_config *config) in nvmem_register()
601 struct nvmem_device *nvmem; in nvmem_register()
720 struct nvmem_device *nvmem; in nvmem_device_release()
722 nvmem = container_of(kref, struct nvmem_device, refcnt); in nvmem_device_release()
738 void nvmem_unregister(struct nvmem_device *nvmem) in nvmem_unregister()
746 nvmem_unregister(*(struct nvmem_device **)res); in devm_nvmem_release()
760 struct nvmem_device *devm_nvmem_register(struct device *dev, in devm_nvmem_register()
763 struct nvmem_device **ptr, *nvmem; in devm_nvmem_register()
784 struct nvmem_device **r = res; in devm_nvmem_match()
798 int devm_nvmem_unregister(struct device *dev, struct nvmem_device *nvmem) in devm_nvmem_unregister()
804 static struct nvmem_device *__nvmem_device_get(void *data, in __nvmem_device_get()
807 struct nvmem_device *nvmem = NULL; in __nvmem_device_get()
832 static void __nvmem_device_put(struct nvmem_device *nvmem) in __nvmem_device_put()
849 struct nvmem_device *of_nvmem_device_get(struct device_node *np, const char *id) in of_nvmem_device_get()
853 struct nvmem_device *nvmem; in of_nvmem_device_get()
879 struct nvmem_device *nvmem_device_get(struct device *dev, const char *dev_name) in nvmem_device_get()
882 struct nvmem_device *nvmem; in nvmem_device_get()
904 struct nvmem_device *nvmem_device_find(void *data, in nvmem_device_find()
913 struct nvmem_device **nvmem = res; in devm_nvmem_device_match()
923 nvmem_device_put(*(struct nvmem_device **)res); in devm_nvmem_device_release()
933 void devm_nvmem_device_put(struct device *dev, struct nvmem_device *nvmem) in devm_nvmem_device_put()
949 void nvmem_device_put(struct nvmem_device *nvmem) in nvmem_device_put()
965 struct nvmem_device *devm_nvmem_device_get(struct device *dev, const char *id) in devm_nvmem_device_get()
967 struct nvmem_device **ptr, *nvmem; in devm_nvmem_device_get()
990 struct nvmem_device *nvmem; in nvmem_cell_get_from_lookup()
1028 nvmem_find_cell_by_node(struct nvmem_device *nvmem, struct device_node *np) in nvmem_find_cell_by_node()
1059 struct nvmem_device *nvmem; in of_nvmem_cell_get()
1191 struct nvmem_device *nvmem = cell->nvmem; in nvmem_cell_put()
1229 static int __nvmem_cell_read(struct nvmem_device *nvmem, in __nvmem_cell_read()
1262 struct nvmem_device *nvmem = cell->nvmem; in nvmem_cell_read()
1286 struct nvmem_device *nvmem = cell->nvmem; in nvmem_cell_prepare_write_buffer()
1347 struct nvmem_device *nvmem = cell->nvmem; in nvmem_cell_write()
1471 ssize_t nvmem_device_cell_read(struct nvmem_device *nvmem, in nvmem_device_cell_read()
1502 int nvmem_device_cell_write(struct nvmem_device *nvmem, in nvmem_device_cell_write()
1530 int nvmem_device_read(struct nvmem_device *nvmem, in nvmem_device_read()
1558 int nvmem_device_write(struct nvmem_device *nvmem, in nvmem_device_write()
1645 const char *nvmem_dev_name(struct nvmem_device *nvmem) in nvmem_dev_name()