Home
last modified time | relevance | path

Searched refs:of_offset (Results 1 – 10 of 10) sorted by relevance

/external/u-boot/include/dm/
Dofnode.h52 long of_offset; member
92 return node.of_offset; in ofnode_to_offset()
105 return node.of_offset != -1; in ofnode_valid()
114 static inline ofnode offset_to_ofnode(int of_offset) in offset_to_ofnode() argument
121 node.of_offset = of_offset; in offset_to_ofnode()
174 return ref1.of_offset == ref2.of_offset; in ofnode_equal()
190 node.of_offset = -1; in ofnode_null()
Ddevice.h165 static inline void dev_set_of_offset(struct udevice *dev, int of_offset) in dev_set_of_offset() argument
167 dev->node = offset_to_ofnode(of_offset); in dev_set_of_offset()
457 int device_find_child_by_of_offset(struct udevice *parent, int of_offset,
472 int device_get_child_by_of_offset(struct udevice *parent, int of_offset,
487 int device_get_global_by_of_offset(int of_offset, struct udevice **devp);
Ddevice-internal.h40 const char *name, void *platdata, int of_offset,
/external/u-boot/test/dm/
Dspi.c26 int of_offset; in dm_test_spi_find() local
37 of_offset = dev_of_offset(info.dev); in dm_test_spi_find()
68 ut_assertok(sandbox_sf_bind_emul(state, busnum, cs, bus, of_offset, in dm_test_spi_find()
78 ut_assertok(sandbox_sf_bind_emul(state, busnum, cs_b, bus, of_offset, in dm_test_spi_find()
/external/u-boot/drivers/core/
Ddevice.c226 const char *name, void *platdata, int of_offset, in device_bind() argument
230 offset_to_ofnode(of_offset), 0, devp); in device_bind()
554 int device_find_child_by_of_offset(struct udevice *parent, int of_offset, in device_find_child_by_of_offset() argument
562 if (dev_of_offset(dev) == of_offset) { in device_find_child_by_of_offset()
583 int of_offset) in _device_find_global_by_of_offset() argument
587 if (dev_of_offset(parent) == of_offset) in _device_find_global_by_of_offset()
591 found = _device_find_global_by_of_offset(dev, of_offset); in _device_find_global_by_of_offset()
599 int device_get_global_by_of_offset(int of_offset, struct udevice **devp) in device_get_global_by_of_offset() argument
603 dev = _device_find_global_by_of_offset(gd->dm_root, of_offset); in device_get_global_by_of_offset()
Dofnode.c175 parent.of_offset = fdt_parent_offset(gd->fdt_blob, in ofnode_get_parent()
197 node.of_offset = fdt_node_offset_by_phandle(gd->fdt_blob, in ofnode_get_by_phandle()
Droot.c355 ret = dm_scan_fdt_node(gd->dm_root, gd->fdt_blob, node.of_offset, in dm_extended_scan_fdt()
/external/u-boot/include/
Dspi_flash.h188 struct udevice *bus, int of_offset, const char *spec);
/external/u-boot/drivers/mtd/spi/
Dsandbox.c559 struct udevice *bus, int of_offset, const char *spec) in sandbox_sf_bind_emul() argument
578 ret = device_bind(bus, drv, str, NULL, of_offset, &emul); in sandbox_sf_bind_emul()
/external/u-boot/doc/driver-model/
DREADME.txt625 applicable such as of_offset, driver_data & platdata, and finally calls the
633 platdata will be NULL, but of_offset will be the offset of the device tree