Lines Matching refs:nvmem_np
265 static int of_nvmem_match(struct device *dev, void *nvmem_np) in of_nvmem_match() argument
267 return dev->of_node == nvmem_np; in of_nvmem_match()
270 static struct nvmem_device *of_nvmem_find(struct device_node *nvmem_np) in of_nvmem_find() argument
274 if (!nvmem_np) in of_nvmem_find()
277 d = bus_find_device(&nvmem_bus_type, NULL, nvmem_np, of_nvmem_match); in of_nvmem_find()
700 struct device_node *nvmem_np; in of_nvmem_device_get() local
705 nvmem_np = of_parse_phandle(np, "nvmem", index); in of_nvmem_device_get()
706 if (!nvmem_np) in of_nvmem_device_get()
709 return __nvmem_device_get(nvmem_np, NULL, NULL); in of_nvmem_device_get()
841 struct device_node *cell_np, *nvmem_np; in of_nvmem_cell_get() local
856 nvmem_np = of_get_next_parent(cell_np); in of_nvmem_cell_get()
857 if (!nvmem_np) in of_nvmem_cell_get()
860 nvmem = __nvmem_device_get(nvmem_np, NULL, NULL); in of_nvmem_cell_get()
861 of_node_put(nvmem_np); in of_nvmem_cell_get()