Lines Matching refs:nvmem_device

24 #define to_nvmem_device(d) container_of(d, struct nvmem_device, dev)
37 struct nvmem_device *nvmem;
55 static int __nvmem_reg_read(struct nvmem_device *nvmem, unsigned int offset, in __nvmem_reg_read()
64 static int __nvmem_reg_write(struct nvmem_device *nvmem, unsigned int offset, in __nvmem_reg_write()
79 static int nvmem_access_with_keepouts(struct nvmem_device *nvmem, in nvmem_access_with_keepouts()
143 static int nvmem_reg_read(struct nvmem_device *nvmem, unsigned int offset, in nvmem_reg_read()
152 static int nvmem_reg_write(struct nvmem_device *nvmem, unsigned int offset, in nvmem_reg_write()
177 struct nvmem_device *nvmem = to_nvmem_device(dev); in type_show()
187 struct nvmem_device *nvmem = to_nvmem_device(dev); in force_ro_show()
195 struct nvmem_device *nvmem = to_nvmem_device(dev); in force_ro_store()
217 struct nvmem_device *nvmem; in bin_attr_nvmem_read()
250 struct nvmem_device *nvmem; in bin_attr_nvmem_write()
278 static umode_t nvmem_bin_attr_get_umode(struct nvmem_device *nvmem) in nvmem_bin_attr_get_umode()
302 struct nvmem_device *nvmem = to_nvmem_device(dev); in nvmem_bin_attr_is_visible()
312 struct nvmem_device *nvmem = to_nvmem_device(dev); in nvmem_bin_attr_size()
321 struct nvmem_device *nvmem = to_nvmem_device(dev); in nvmem_attr_is_visible()
414 static int nvmem_sysfs_setup_compat(struct nvmem_device *nvmem, in nvmem_sysfs_setup_compat()
448 static void nvmem_sysfs_remove_compat(struct nvmem_device *nvmem, in nvmem_sysfs_remove_compat()
455 static int nvmem_populate_sysfs_cells(struct nvmem_device *nvmem) in nvmem_populate_sysfs_cells()
522 static int nvmem_sysfs_setup_compat(struct nvmem_device *nvmem, in nvmem_sysfs_setup_compat()
527 static void nvmem_sysfs_remove_compat(struct nvmem_device *nvmem, in nvmem_sysfs_remove_compat()
536 struct nvmem_device *nvmem = to_nvmem_device(dev); in nvmem_release()
562 static void nvmem_device_remove_all_cells(const struct nvmem_device *nvmem) in nvmem_device_remove_all_cells()
578 static int nvmem_cell_info_to_nvmem_cell_entry_nodup(struct nvmem_device *nvmem, in nvmem_cell_info_to_nvmem_cell_entry_nodup()
622 static int nvmem_cell_info_to_nvmem_cell_entry(struct nvmem_device *nvmem, in nvmem_cell_info_to_nvmem_cell_entry()
647 int nvmem_add_one_cell(struct nvmem_device *nvmem, in nvmem_add_one_cell()
678 static int nvmem_add_cells(struct nvmem_device *nvmem, in nvmem_add_cells()
720 nvmem_find_cell_entry_by_name(struct nvmem_device *nvmem, const char *cell_id) in nvmem_find_cell_entry_by_name()
736 static int nvmem_validate_keepouts(struct nvmem_device *nvmem) in nvmem_validate_keepouts()
789 static int nvmem_add_cells_from_dt(struct nvmem_device *nvmem, struct device_node *np) in nvmem_add_cells_from_dt()
838 static int nvmem_add_cells_from_legacy_of(struct nvmem_device *nvmem) in nvmem_add_cells_from_legacy_of()
843 static int nvmem_add_cells_from_fixed_layout(struct nvmem_device *nvmem) in nvmem_add_cells_from_fixed_layout()
900 struct nvmem_device *nvmem_register(const struct nvmem_config *config) in nvmem_register()
902 struct nvmem_device *nvmem; in nvmem_register()
1051 struct nvmem_device *nvmem; in nvmem_device_release()
1053 nvmem = container_of(kref, struct nvmem_device, refcnt); in nvmem_device_release()
1070 void nvmem_unregister(struct nvmem_device *nvmem) in nvmem_unregister()
1093 struct nvmem_device *devm_nvmem_register(struct device *dev, in devm_nvmem_register()
1096 struct nvmem_device *nvmem; in devm_nvmem_register()
1111 static struct nvmem_device *__nvmem_device_get(void *data, in __nvmem_device_get()
1114 struct nvmem_device *nvmem = NULL; in __nvmem_device_get()
1139 static void __nvmem_device_put(struct nvmem_device *nvmem) in __nvmem_device_put()
1156 struct nvmem_device *of_nvmem_device_get(struct device_node *np, const char *id) in of_nvmem_device_get()
1160 struct nvmem_device *nvmem; in of_nvmem_device_get()
1186 struct nvmem_device *nvmem_device_get(struct device *dev, const char *dev_name) in nvmem_device_get()
1189 struct nvmem_device *nvmem; in nvmem_device_get()
1211 struct nvmem_device *nvmem_device_find(void *data, in nvmem_device_find()
1220 struct nvmem_device **nvmem = res; in devm_nvmem_device_match()
1230 nvmem_device_put(*(struct nvmem_device **)res); in devm_nvmem_device_release()
1240 void devm_nvmem_device_put(struct device *dev, struct nvmem_device *nvmem) in devm_nvmem_device_put()
1256 void nvmem_device_put(struct nvmem_device *nvmem) in nvmem_device_put()
1272 struct nvmem_device *devm_nvmem_device_get(struct device *dev, const char *id) in devm_nvmem_device_get()
1274 struct nvmem_device **ptr, *nvmem; in devm_nvmem_device_get()
1323 struct nvmem_device *nvmem; in nvmem_cell_get_from_lookup()
1363 static void nvmem_layout_module_put(struct nvmem_device *nvmem) in nvmem_layout_module_put()
1371 nvmem_find_cell_entry_by_node(struct nvmem_device *nvmem, struct device_node *np) in nvmem_find_cell_entry_by_node()
1387 static int nvmem_layout_module_get_optional(struct nvmem_device *nvmem) in nvmem_layout_module_get_optional()
1414 struct nvmem_device *nvmem; in of_nvmem_cell_get()
1590 struct nvmem_device *nvmem = cell->entry->nvmem; in nvmem_cell_put()
1642 static int __nvmem_cell_read(struct nvmem_device *nvmem, in __nvmem_cell_read()
1683 struct nvmem_device *nvmem = entry->nvmem; in nvmem_cell_read()
1707 struct nvmem_device *nvmem = cell->nvmem; in nvmem_cell_prepare_write_buffer()
1759 struct nvmem_device *nvmem = cell->nvmem; in __nvmem_cell_entry_write()
2003 ssize_t nvmem_device_cell_read(struct nvmem_device *nvmem, in nvmem_device_cell_read()
2034 int nvmem_device_cell_write(struct nvmem_device *nvmem, in nvmem_device_cell_write()
2062 int nvmem_device_read(struct nvmem_device *nvmem, in nvmem_device_read()
2090 int nvmem_device_write(struct nvmem_device *nvmem, in nvmem_device_write()
2151 const char *nvmem_dev_name(struct nvmem_device *nvmem) in nvmem_dev_name()
2164 size_t nvmem_dev_size(struct nvmem_device *nvmem) in nvmem_dev_size()