Lines Matching refs:nvmem_device

22 struct nvmem_device {  struct
46 #define to_nvmem_device(d) container_of(d, struct nvmem_device, dev) argument
56 struct nvmem_device *nvmem;
76 static int __nvmem_reg_read(struct nvmem_device *nvmem, unsigned int offset, in __nvmem_reg_read()
85 static int __nvmem_reg_write(struct nvmem_device *nvmem, unsigned int offset, in __nvmem_reg_write()
100 static int nvmem_access_with_keepouts(struct nvmem_device *nvmem, in nvmem_access_with_keepouts()
164 static int nvmem_reg_read(struct nvmem_device *nvmem, unsigned int offset, in nvmem_reg_read()
173 static int nvmem_reg_write(struct nvmem_device *nvmem, unsigned int offset, in nvmem_reg_write()
198 struct nvmem_device *nvmem = to_nvmem_device(dev); in type_show()
215 struct nvmem_device *nvmem; in bin_attr_nvmem_read()
255 struct nvmem_device *nvmem; in bin_attr_nvmem_write()
290 static umode_t nvmem_bin_attr_get_umode(struct nvmem_device *nvmem) in nvmem_bin_attr_get_umode()
313 struct nvmem_device *nvmem = to_nvmem_device(dev); in nvmem_bin_attr_is_visible()
359 static int nvmem_sysfs_setup_compat(struct nvmem_device *nvmem, in nvmem_sysfs_setup_compat()
394 static void nvmem_sysfs_remove_compat(struct nvmem_device *nvmem, in nvmem_sysfs_remove_compat()
403 static int nvmem_sysfs_setup_compat(struct nvmem_device *nvmem, in nvmem_sysfs_setup_compat()
408 static void nvmem_sysfs_remove_compat(struct nvmem_device *nvmem, in nvmem_sysfs_remove_compat()
417 struct nvmem_device *nvmem = to_nvmem_device(dev); in nvmem_release()
443 static void nvmem_device_remove_all_cells(const struct nvmem_device *nvmem) in nvmem_device_remove_all_cells()
459 static int nvmem_cell_info_to_nvmem_cell_entry_nodup(struct nvmem_device *nvmem, in nvmem_cell_info_to_nvmem_cell_entry_nodup()
486 static int nvmem_cell_info_to_nvmem_cell_entry(struct nvmem_device *nvmem, in nvmem_cell_info_to_nvmem_cell_entry()
512 static int nvmem_add_cells(struct nvmem_device *nvmem, in nvmem_add_cells()
578 static int nvmem_add_cells_from_table(struct nvmem_device *nvmem) in nvmem_add_cells_from_table()
614 nvmem_find_cell_entry_by_name(struct nvmem_device *nvmem, const char *cell_id) in nvmem_find_cell_entry_by_name()
630 static int nvmem_validate_keepouts(struct nvmem_device *nvmem) in nvmem_validate_keepouts()
683 static int nvmem_add_cells_from_of(struct nvmem_device *nvmem) in nvmem_add_cells_from_of()
752 struct nvmem_device *nvmem_register(const struct nvmem_config *config) in nvmem_register()
754 struct nvmem_device *nvmem; in nvmem_register()
890 struct nvmem_device *nvmem; in nvmem_device_release()
892 nvmem = container_of(kref, struct nvmem_device, refcnt); in nvmem_device_release()
908 void nvmem_unregister(struct nvmem_device *nvmem) in nvmem_unregister()
931 struct nvmem_device *devm_nvmem_register(struct device *dev, in devm_nvmem_register()
934 struct nvmem_device *nvmem; in devm_nvmem_register()
949 static struct nvmem_device *__nvmem_device_get(void *data, in __nvmem_device_get()
952 struct nvmem_device *nvmem = NULL; in __nvmem_device_get()
977 static void __nvmem_device_put(struct nvmem_device *nvmem) in __nvmem_device_put()
994 struct nvmem_device *of_nvmem_device_get(struct device_node *np, const char *id) in of_nvmem_device_get()
998 struct nvmem_device *nvmem; in of_nvmem_device_get()
1024 struct nvmem_device *nvmem_device_get(struct device *dev, const char *dev_name) in nvmem_device_get()
1027 struct nvmem_device *nvmem; in nvmem_device_get()
1049 struct nvmem_device *nvmem_device_find(void *data, in nvmem_device_find()
1058 struct nvmem_device **nvmem = res; in devm_nvmem_device_match()
1068 nvmem_device_put(*(struct nvmem_device **)res); in devm_nvmem_device_release()
1078 void devm_nvmem_device_put(struct device *dev, struct nvmem_device *nvmem) in devm_nvmem_device_put()
1094 void nvmem_device_put(struct nvmem_device *nvmem) in nvmem_device_put()
1110 struct nvmem_device *devm_nvmem_device_get(struct device *dev, const char *id) in devm_nvmem_device_get()
1112 struct nvmem_device **ptr, *nvmem; in devm_nvmem_device_get()
1159 struct nvmem_device *nvmem; in nvmem_cell_get_from_lookup()
1201 nvmem_find_cell_entry_by_node(struct nvmem_device *nvmem, struct device_node *np) in nvmem_find_cell_entry_by_node()
1232 struct nvmem_device *nvmem; in of_nvmem_cell_get()
1369 struct nvmem_device *nvmem = cell->entry->nvmem; in nvmem_cell_put()
1412 static int __nvmem_cell_read(struct nvmem_device *nvmem, in __nvmem_cell_read()
1452 struct nvmem_device *nvmem = cell->entry->nvmem; in nvmem_cell_read()
1476 struct nvmem_device *nvmem = cell->nvmem; in nvmem_cell_prepare_write_buffer()
1528 struct nvmem_device *nvmem = cell->nvmem; in __nvmem_cell_entry_write()
1762 ssize_t nvmem_device_cell_read(struct nvmem_device *nvmem, in nvmem_device_cell_read()
1793 int nvmem_device_cell_write(struct nvmem_device *nvmem, in nvmem_device_cell_write()
1821 int nvmem_device_read(struct nvmem_device *nvmem, in nvmem_device_read()
1849 int nvmem_device_write(struct nvmem_device *nvmem, in nvmem_device_write()
1936 const char *nvmem_dev_name(struct nvmem_device *nvmem) in nvmem_dev_name()