| /components/drivers/ofw/libfdt/ |
| A D | fdt_overlay.c | 46 uint32_t phandle; in fdt_overlay_target_offset() local 51 phandle = overlay_get_target_phandle(fdto, fragment_offset); in fdt_overlay_target_offset() 52 if (phandle == (uint32_t)-1) in fdt_overlay_target_offset() 56 if (!phandle) { in fdt_overlay_target_offset() 64 ret = fdt_node_offset_by_phandle(fdt, phandle); in fdt_overlay_target_offset() 360 uint32_t phandle; in overlay_fixup_one_phandle() local 377 phandle = fdt_get_phandle(fdt, symbol_off); in overlay_fixup_one_phandle() 378 if (!phandle) in overlay_fixup_one_phandle() 387 phandle_prop = cpu_to_fdt32(phandle); in overlay_fixup_one_phandle()
|
| A D | fdt_ro.c | 114 int fdt_find_max_phandle(const void *fdt, uint32_t *phandle) in fdt_find_max_phandle() argument 136 if (phandle) in fdt_find_max_phandle() 137 *phandle = max; in fdt_find_max_phandle() 142 int fdt_generate_phandle(const void *fdt, uint32_t *phandle) in fdt_generate_phandle() argument 154 if (phandle) in fdt_generate_phandle() 155 *phandle = max + 1; in fdt_generate_phandle() 681 int fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle) in fdt_node_offset_by_phandle() argument 685 if ((phandle == 0) || (phandle == ~0U)) in fdt_node_offset_by_phandle() 699 if (fdt_get_phandle(fdt, offset) == phandle) in fdt_node_offset_by_phandle()
|
| A D | libfdt.h | 381 int fdt_find_max_phandle(const void *fdt, uint32_t *phandle); 400 uint32_t phandle; in fdt_get_max_phandle() local 403 err = fdt_find_max_phandle(fdt, &phandle); in fdt_get_max_phandle() 407 return phandle; in fdt_get_max_phandle() 422 int fdt_generate_phandle(const void *fdt, uint32_t *phandle); 1037 int fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle);
|
| /components/drivers/pinctrl/ |
| A D | pinctrl.c | 23 rt_phandle phandle; in ofw_pin_ctrl_confs_apply() local 31 rt_ofw_foreach_prop_u32(np, pinctrl_n_name, prop, cell, phandle) in ofw_pin_ctrl_confs_apply() 36 conf_np = pinctrl_np = rt_ofw_find_node_by_phandle(phandle); in ofw_pin_ctrl_confs_apply()
|
| /components/legacy/fdt/libfdt/ |
| A D | fdt_ro.c | 96 uint32_t phandle; in fdt_get_max_phandle() local 104 phandle = fdt_get_phandle(fdt, offset); in fdt_get_max_phandle() 105 if (phandle == (uint32_t)-1) in fdt_get_max_phandle() 108 if (phandle > max_phandle) in fdt_get_max_phandle() 109 max_phandle = phandle; in fdt_get_max_phandle() 523 int fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle) in fdt_node_offset_by_phandle() argument 527 if ((phandle == 0) || (phandle == -1)) in fdt_node_offset_by_phandle() 541 if (fdt_get_phandle(fdt, offset) == phandle) in fdt_node_offset_by_phandle()
|
| A D | libfdt.h | 936 int fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle);
|
| /components/legacy/fdt/src/ |
| A D | dtb_access.c | 408 struct dtb_node *dtb_node_find_node_by_phandle(phandle handle) in dtb_node_find_node_by_phandle() 497 phandle phandle; in __dtb_node_parse_phandle_with_args() local 516 phandle = fdt32_to_cpu(*(list++)); in __dtb_node_parse_phandle_with_args() 517 if (phandle) in __dtb_node_parse_phandle_with_args() 530 node = dtb_node_find_node_by_phandle(phandle); in __dtb_node_parse_phandle_with_args() 575 if (!phandle) in __dtb_node_parse_phandle_with_args()
|
| A D | dtb_base.c | 192 struct dtb_node *dtb_node_get_by_phandle(uint32_t phandle) in dtb_node_get_by_phandle() argument 195 return dtb_node_find_node_by_phandle(phandle); in dtb_node_get_by_phandle() 459 phandle parent; in dtb_node_irq_find_parent()
|
| A D | dtb_get.c | 628 struct dtb_node *dtb_node_get_dtb_node_by_phandle_DFS(struct dtb_node *dtb_node, phandle handle) in dtb_node_get_dtb_node_by_phandle_DFS() 651 struct dtb_node *dtb_node_get_dtb_node_by_phandle_BFS(struct dtb_node *dtb_node, phandle handle) in dtb_node_get_dtb_node_by_phandle_BFS()
|
| /components/legacy/fdt/inc/ |
| A D | dtb_node.h | 44 typedef uint32_t phandle; typedef 76 phandle handle; 155 struct dtb_node *dtb_node_get_dtb_node_by_phandle_DFS(struct dtb_node *dtb_node, phandle handle); 156 struct dtb_node *dtb_node_get_dtb_node_by_phandle_BFS(struct dtb_node *dtb_node, phandle handle); 189 struct dtb_node *dtb_node_find_node_by_phandle(phandle handle); 341 struct dtb_node *dtb_node_get_by_phandle(uint32_t phandle);
|
| /components/drivers/ofw/ |
| A D | base.c | 658 struct rt_ofw_node *rt_ofw_find_node_by_phandle(rt_phandle phandle) in rt_ofw_find_node_by_phandle() argument 662 if (phandle >= OFW_PHANDLE_MIN && phandle <= OFW_PHANDLE_MAX) in rt_ofw_find_node_by_phandle() 665 rt_phandle poff = phandle - _phandle_range[0]; in rt_ofw_find_node_by_phandle() 673 if (np->phandle == phandle) in rt_ofw_find_node_by_phandle() 977 rt_uint32_t phandle; in rt_ofw_get_cpu_state_node() local 985 np = rt_ofw_find_node_by_phandle((rt_phandle)phandle); in rt_ofw_get_cpu_state_node() 1245 rt_uint32_t phandle = fdt32_to_cpu(*(map + 1)); in ofw_map_id() local 1359 rt_phandle phandle; in rt_ofw_append_child() local 1366 if ((phandle = ofw_phandle_next())) in rt_ofw_append_child() 1377 np->phandle = phandle; in rt_ofw_append_child() [all …]
|
| A D | fdt.c | 960 np->phandle = fdt_get_phandle(_fdt, node_off); in fdt_unflatten_single() 962 if (np->phandle >= OFW_PHANDLE_MIN) in fdt_unflatten_single() 964 if (np->phandle < _phandle_min) in fdt_unflatten_single() 966 _phandle_min = np->phandle; in fdt_unflatten_single() 969 if (np->phandle > _phandle_max) in fdt_unflatten_single() 971 _phandle_max = np->phandle; in fdt_unflatten_single()
|
| /components/legacy/fdt/docs/ |
| A D | api.md | 235 ## 通过节点phandle值查找节点 237 struct dtb_node *fdt_get_dtb_node_by_phandle_DFS(struct dtb_node *dtb_node, phandle handle) 240 struct dtb_node *fdt_get_dtb_node_by_phandle_BFS(struct dtb_node *dtb_node, phandle handle) 246 |handle | 查找节点的phandle值 |
|
| /components/drivers/dma/ |
| A D | dma_pool.c | 173 rt_phandle phandle; in ofw_device_dma_ops() local 180 rt_ofw_foreach_prop_u32(np, "memory-region", prop, cell, phandle) in ofw_device_dma_ops() 184 if (!(mem_np = rt_ofw_find_node_by_phandle(phandle))) in ofw_device_dma_ops()
|
| /components/drivers/include/drivers/ |
| A D | ofw.h | 38 rt_phandle phandle; member 180 struct rt_ofw_node *rt_ofw_find_node_by_phandle(rt_phandle phandle);
|