Lines Matching refs:layout
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()
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()
187 if (!nvmem->layout) in nvmem_destroy_layout()
190 dev = &nvmem->layout->dev; in nvmem_destroy_layout()