Lines Matching defs:nvmem
37 struct nvmem_device *nvmem; member
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() local
190 struct nvmem_device *nvmem = to_nvmem_device(dev); in force_ro_show() local
198 struct nvmem_device *nvmem = to_nvmem_device(dev); in force_ro_store() local
220 struct nvmem_device *nvmem; in bin_attr_nvmem_read() local
253 struct nvmem_device *nvmem; in bin_attr_nvmem_write() local
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() local
315 struct nvmem_device *nvmem = to_nvmem_device(dev); in nvmem_attr_is_visible() local
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() local
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()
914 struct nvmem_device *nvmem; in nvmem_register() local
1067 struct nvmem_device *nvmem; in nvmem_device_release() local
1086 void nvmem_unregister(struct nvmem_device *nvmem) in nvmem_unregister()
1093 static void devm_nvmem_unregister(void *nvmem) in devm_nvmem_unregister()
1112 struct nvmem_device *nvmem; in devm_nvmem_register() local
1130 struct nvmem_device *nvmem = NULL; in __nvmem_device_get() local
1155 static void __nvmem_device_put(struct nvmem_device *nvmem) in __nvmem_device_put()
1176 struct nvmem_device *nvmem; in of_nvmem_device_get() local
1205 struct nvmem_device *nvmem; in nvmem_device_get() local
1236 struct nvmem_device **nvmem = res; in devm_nvmem_device_match() local
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()
1290 struct nvmem_device **ptr, *nvmem; in devm_nvmem_device_get() local
1339 struct nvmem_device *nvmem; in nvmem_cell_get_from_lookup() local
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() local
1606 struct nvmem_device *nvmem = cell->entry->nvmem; in nvmem_cell_put() local
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() local
1715 struct nvmem_device *nvmem = cell->nvmem; in nvmem_cell_prepare_write_buffer() local
1767 struct nvmem_device *nvmem = cell->nvmem; in __nvmem_cell_entry_write() local
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()