Lines Matching refs:nvmem_device

24 #define to_nvmem_device(d) container_of(d, struct nvmem_device, dev)
37 struct nvmem_device *nvmem;
58 static int __nvmem_reg_read(struct nvmem_device *nvmem, unsigned int offset, in __nvmem_reg_read()
67 static int __nvmem_reg_write(struct nvmem_device *nvmem, unsigned int offset, in __nvmem_reg_write()
82 static int nvmem_access_with_keepouts(struct nvmem_device *nvmem, in nvmem_access_with_keepouts()
146 static int nvmem_reg_read(struct nvmem_device *nvmem, unsigned int offset, in nvmem_reg_read()
155 static int nvmem_reg_write(struct nvmem_device *nvmem, unsigned int offset, in nvmem_reg_write()
180 struct nvmem_device *nvmem = to_nvmem_device(dev); in type_show()
190 struct nvmem_device *nvmem = to_nvmem_device(dev); in force_ro_show()
198 struct nvmem_device *nvmem = to_nvmem_device(dev); in force_ro_store()
220 struct nvmem_device *nvmem; in bin_attr_nvmem_read()
253 struct nvmem_device *nvmem; in bin_attr_nvmem_write()
281 static umode_t nvmem_bin_attr_get_umode(struct nvmem_device *nvmem) in nvmem_bin_attr_get_umode()
304 struct nvmem_device *nvmem = to_nvmem_device(dev); in nvmem_bin_attr_is_visible()
315 struct nvmem_device *nvmem = to_nvmem_device(dev); in nvmem_attr_is_visible()
407 static int nvmem_sysfs_setup_compat(struct nvmem_device *nvmem, in nvmem_sysfs_setup_compat()
441 static void nvmem_sysfs_remove_compat(struct nvmem_device *nvmem, in nvmem_sysfs_remove_compat()
448 static int nvmem_populate_sysfs_cells(struct nvmem_device *nvmem) in nvmem_populate_sysfs_cells()
512 static int nvmem_sysfs_setup_compat(struct nvmem_device *nvmem, in nvmem_sysfs_setup_compat()
517 static void nvmem_sysfs_remove_compat(struct nvmem_device *nvmem, in nvmem_sysfs_remove_compat()
526 struct nvmem_device *nvmem = to_nvmem_device(dev); in nvmem_release()
552 static void nvmem_device_remove_all_cells(const struct nvmem_device *nvmem) in nvmem_device_remove_all_cells()
568 static int nvmem_cell_info_to_nvmem_cell_entry_nodup(struct nvmem_device *nvmem, in nvmem_cell_info_to_nvmem_cell_entry_nodup()
598 static int nvmem_cell_info_to_nvmem_cell_entry(struct nvmem_device *nvmem, in nvmem_cell_info_to_nvmem_cell_entry()
623 int nvmem_add_one_cell(struct nvmem_device *nvmem, in nvmem_add_one_cell()
654 static int nvmem_add_cells(struct nvmem_device *nvmem, in nvmem_add_cells()
695 static int nvmem_add_cells_from_table(struct nvmem_device *nvmem) in nvmem_add_cells_from_table()
731 nvmem_find_cell_entry_by_name(struct nvmem_device *nvmem, const char *cell_id) in nvmem_find_cell_entry_by_name()
747 static int nvmem_validate_keepouts(struct nvmem_device *nvmem) in nvmem_validate_keepouts()
800 static int nvmem_add_cells_from_dt(struct nvmem_device *nvmem, struct device_node *np) in nvmem_add_cells_from_dt()
850 static int nvmem_add_cells_from_legacy_of(struct nvmem_device *nvmem) in nvmem_add_cells_from_legacy_of()
855 static int nvmem_add_cells_from_fixed_layout(struct nvmem_device *nvmem) in nvmem_add_cells_from_fixed_layout()
912 struct nvmem_device *nvmem_register(const struct nvmem_config *config) in nvmem_register()
914 struct nvmem_device *nvmem; in nvmem_register()
1067 struct nvmem_device *nvmem; in nvmem_device_release()
1069 nvmem = container_of(kref, struct nvmem_device, refcnt); in nvmem_device_release()
1086 void nvmem_unregister(struct nvmem_device *nvmem) in nvmem_unregister()
1109 struct nvmem_device *devm_nvmem_register(struct device *dev, in devm_nvmem_register()
1112 struct nvmem_device *nvmem; in devm_nvmem_register()
1127 static struct nvmem_device *__nvmem_device_get(void *data, in __nvmem_device_get()
1130 struct nvmem_device *nvmem = NULL; in __nvmem_device_get()
1155 static void __nvmem_device_put(struct nvmem_device *nvmem) in __nvmem_device_put()
1172 struct nvmem_device *of_nvmem_device_get(struct device_node *np, const char *id) in of_nvmem_device_get()
1176 struct nvmem_device *nvmem; in of_nvmem_device_get()
1202 struct nvmem_device *nvmem_device_get(struct device *dev, const char *dev_name) in nvmem_device_get()
1205 struct nvmem_device *nvmem; in nvmem_device_get()
1227 struct nvmem_device *nvmem_device_find(void *data, in nvmem_device_find()
1236 struct nvmem_device **nvmem = res; in devm_nvmem_device_match()
1246 nvmem_device_put(*(struct nvmem_device **)res); in devm_nvmem_device_release()
1256 void devm_nvmem_device_put(struct device *dev, struct nvmem_device *nvmem) in devm_nvmem_device_put()
1272 void nvmem_device_put(struct nvmem_device *nvmem) in nvmem_device_put()
1288 struct nvmem_device *devm_nvmem_device_get(struct device *dev, const char *id) in devm_nvmem_device_get()
1290 struct nvmem_device **ptr, *nvmem; in devm_nvmem_device_get()
1339 struct nvmem_device *nvmem; in nvmem_cell_get_from_lookup()
1379 static void nvmem_layout_module_put(struct nvmem_device *nvmem) in nvmem_layout_module_put()
1387 nvmem_find_cell_entry_by_node(struct nvmem_device *nvmem, struct device_node *np) in nvmem_find_cell_entry_by_node()
1403 static int nvmem_layout_module_get_optional(struct nvmem_device *nvmem) in nvmem_layout_module_get_optional()
1430 struct nvmem_device *nvmem; in of_nvmem_cell_get()
1606 struct nvmem_device *nvmem = cell->entry->nvmem; in nvmem_cell_put()
1650 static int __nvmem_cell_read(struct nvmem_device *nvmem, in __nvmem_cell_read()
1691 struct nvmem_device *nvmem = entry->nvmem; in nvmem_cell_read()
1715 struct nvmem_device *nvmem = cell->nvmem; in nvmem_cell_prepare_write_buffer()
1767 struct nvmem_device *nvmem = cell->nvmem; in __nvmem_cell_entry_write()
2009 ssize_t nvmem_device_cell_read(struct nvmem_device *nvmem, in nvmem_device_cell_read()
2040 int nvmem_device_cell_write(struct nvmem_device *nvmem, in nvmem_device_cell_write()
2068 int nvmem_device_read(struct nvmem_device *nvmem, in nvmem_device_read()
2096 int nvmem_device_write(struct nvmem_device *nvmem, in nvmem_device_write()
2183 const char *nvmem_dev_name(struct nvmem_device *nvmem) in nvmem_dev_name()
2196 size_t nvmem_dev_size(struct nvmem_device *nvmem) in nvmem_dev_size()