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",
71 struct nvmem_layout *layout = to_nvmem_layout_device(dev); in nvmem_layout_release_device() local
73 of_node_put(layout->dev.of_node); in nvmem_layout_release_device()
74 kfree(layout); in nvmem_layout_release_device()
80 struct nvmem_layout *layout; in nvmem_layout_create_device() local
84 layout = kzalloc(sizeof(*layout), GFP_KERNEL); in nvmem_layout_create_device()
85 if (!layout) in nvmem_layout_create_device()
89 layout->nvmem = nvmem; in nvmem_layout_create_device()
90 nvmem->layout = layout; in nvmem_layout_create_device()
93 dev = &layout->dev; in nvmem_layout_create_device()
114 { .compatible = "fixed-layout", },
143 /* NVMEM layout buses expect only a single device representing the layout */ in nvmem_layout_bus_populate()
155 return of_get_child_by_name(nvmem->dev.of_node, "nvmem-layout"); in of_nvmem_layout_get_container()
172 /* Populate the layout device */ in nvmem_populate_layout()
185 if (!nvmem->layout) in nvmem_destroy_layout()
188 dev = &nvmem->layout->dev; in nvmem_destroy_layout()