Home
last modified time | relevance | path

Searched refs:path_len (Results 1 – 11 of 11) sorted by relevance

/openbmc/u-boot/scripts/dtc/libfdt/
H A Dfdt_overlay.c108 int path_len = 0, ret; in overlay_get_target() local
118 path = fdt_getprop(fdto, fragment, "target-path", &path_len); in overlay_get_target()
122 ret = path_len; in overlay_get_target()
133 if (ret < 0 && path_len == -FDT_ERR_NOTFOUND) in overlay_get_target()
414 const char *path, uint32_t path_len, in overlay_fixup_one_phandle() argument
440 fixup_off = fdt_path_offset_namelen(fdto, path, path_len); in overlay_fixup_one_phandle()
491 uint32_t path_len, name_len; in overlay_fixup_phandle() local
509 path_len = sep - path; in overlay_fixup_phandle()
510 if (path_len == (fixup_len - 1)) in overlay_fixup_phandle()
513 fixup_len -= path_len + 1; in overlay_fixup_phandle()
[all …]
/openbmc/qemu/util/
H A Dselfmap.c45 size_t path_len; in read_self_maps() local
51 path_len = strlen(p) + 1; in read_self_maps()
54 path_len = 0; in read_self_maps()
57 e = g_malloc0(sizeof(*e) + path_len); in read_self_maps()
70 if (path_len) { in read_self_maps()
71 e->path = memcpy(e + 1, p, path_len); in read_self_maps()
/openbmc/u-boot/include/linux/
H A Dlibfdt.h146 char *path, int path_len, int add_string_tab);
266 char *path, int path_len, int flags,
282 char *path, int path_len, int flags,
/openbmc/qemu/system/
H A Ddevice_tree.c248 unsigned int path_len = 16, n = 0; in qemu_fdt_node_unit_path() local
265 path = g_malloc(path_len); in qemu_fdt_node_unit_path()
266 while ((ret = fdt_get_path(fdt, offset, path, path_len)) in qemu_fdt_node_unit_path()
268 path_len += 16; in qemu_fdt_node_unit_path()
269 path = g_realloc(path, path_len); in qemu_fdt_node_unit_path()
305 unsigned int path_len = 16, n = 0; in qemu_fdt_node_path() local
320 path = g_malloc(path_len); in qemu_fdt_node_path()
321 while ((ret = fdt_get_path(fdt, offset, path, path_len)) in qemu_fdt_node_path()
323 path_len += 16; in qemu_fdt_node_path()
324 path = g_realloc(path, path_len); in qemu_fdt_node_path()
/openbmc/u-boot/lib/libfdt/
H A Dfdt_region.c33 char *path, int path_len, int add_string_tab) in fdt_find_regions() argument
80 if (end - path + 2 + len >= path_len) in fdt_find_regions()
343 char *path, int path_len, int flags, in fdt_first_region() argument
361 path, path_len, flags, info); in fdt_first_region()
440 char *path, int path_len, int flags, in fdt_next_region() argument
532 if (p.end - path + 2 + len >= path_len) in fdt_next_region()
/openbmc/u-boot/cmd/
H A Dpxe.c92 size_t path_len = 0; in get_bootfile_path() local
108 path_len = (last_slash - bootfile) + 1; in get_bootfile_path()
110 if (bootfile_path_size < path_len) { in get_bootfile_path()
112 bootfile_path_size, path_len); in get_bootfile_path()
117 strncpy(bootfile_path, bootfile, path_len); in get_bootfile_path()
120 bootfile_path[path_len] = '\0'; in get_bootfile_path()
194 size_t path_len; in get_relfile() local
204 path_len = strlen(file_path); in get_relfile()
205 path_len += strlen(relfile); in get_relfile()
207 if (path_len > MAX_TFTP_PATH_LEN) { in get_relfile()
/openbmc/qemu/hw/core/
H A Dsysbus-fdt.c145 int ret, node_offset, prop_len, path_len = 16; in fdt_build_clock_node() local
153 node_path = g_malloc(path_len); in fdt_build_clock_node()
154 while ((ret = fdt_get_path(host_fdt, node_offset, node_path, path_len)) in fdt_build_clock_node()
156 path_len += 16; in fdt_build_clock_node()
157 node_path = g_realloc(node_path, path_len); in fdt_build_clock_node()
/openbmc/qemu/hw/i386/kvm/
H A Dxenstore_impl.c372 int path_len = strlen(op->path); in node_rm_recurse() local
381 assert(key_len + path_len + 2 <= sizeof(op->path)); in node_rm_recurse()
382 op->path[path_len] = '/'; in node_rm_recurse()
383 memcpy(op->path + path_len + 1, key, key_len + 1); in node_rm_recurse()
395 op->path[path_len] = '\0'; in node_rm_recurse()
967 int path_len = strlen(op->path); in tx_commit_walk() local
989 assert(key_len + path_len + 2 <= sizeof(op->path)); in tx_commit_walk()
990 op->path[path_len] = '/'; in tx_commit_walk()
991 memcpy(op->path + path_len + 1, key, key_len + 1); in tx_commit_walk()
1015 op->path[path_len] = '\0'; in tx_commit_walk()
/openbmc/u-boot/tools/
H A Dfdtgrep.c654 int max_regions, char *path, int path_len, int flags) in fdtgrep_find_regions() argument
662 &region[count++], path, path_len, in fdtgrep_find_regions()
667 path, path_len, disp->flags, &state); in fdtgrep_find_regions()
/openbmc/qemu/block/
H A Dvvfat.c2020 int path_len = strlen(path); in check_directory_consistency() local
2023 assert(path_len < PATH_MAX); /* len was tested before! */ in check_directory_consistency()
2025 path2[path_len] = '/'; in check_directory_consistency()
2026 path2[path_len + 1] = '\0'; in check_directory_consistency()
2098 if (path_len + 1 + lfn.len >= PATH_MAX) { in check_directory_consistency()
2102 pstrcpy(path2 + path_len + 1, sizeof(path2) - path_len - 1, in check_directory_consistency()
/openbmc/qemu/hw/pci/
H A Dpci.c2743 int path_len; in pcibus_get_dev_path() local
2756 path_len = root_bus_len + slot_len * slot_depth; in pcibus_get_dev_path()
2759 path = g_malloc(path_len + 1 /* For '\0' */); in pcibus_get_dev_path()
2760 path[path_len] = '\0'; in pcibus_get_dev_path()
2766 p = path + path_len; in pcibus_get_dev_path()