Lines Matching full:layout
3 * NVMEM layout bus handling
32 struct nvmem_layout *layout = to_nvmem_layout_device(dev); in nvmem_layout_bus_probe() local
37 return drv->probe(layout); in nvmem_layout_bus_probe()
43 struct nvmem_layout *layout = to_nvmem_layout_device(dev); in nvmem_layout_bus_remove() local
45 return drv->remove(layout); in nvmem_layout_bus_remove()
49 .name = "nvmem-layout",
73 struct nvmem_layout *layout = to_nvmem_layout_device(dev); in nvmem_layout_release_device() local
75 of_node_put(layout->dev.of_node); in nvmem_layout_release_device()
76 kfree(layout); in nvmem_layout_release_device()
82 struct nvmem_layout *layout; in nvmem_layout_create_device() local
86 layout = kzalloc(sizeof(*layout), GFP_KERNEL); in nvmem_layout_create_device()
87 if (!layout) in nvmem_layout_create_device()
91 layout->nvmem = nvmem; in nvmem_layout_create_device()
92 nvmem->layout = layout; in nvmem_layout_create_device()
95 dev = &layout->dev; in nvmem_layout_create_device()
116 { .compatible = "fixed-layout", },
145 /* NVMEM layout buses expect only a single device representing the layout */ in nvmem_layout_bus_populate()
157 return of_get_child_by_name(nvmem->dev.of_node, "nvmem-layout"); in of_nvmem_layout_get_container()
174 /* Populate the layout device */ in nvmem_populate_layout()
187 if (!nvmem->layout) in nvmem_destroy_layout()
190 dev = &nvmem->layout->dev; in nvmem_destroy_layout()