/openbmc/u-boot/scripts/dtc/libfdt/ |
H A D | fdt_overlay.c | 108 int path_len = 0, ret; in overlay_get_target() local 122 ret = path_len; in overlay_get_target() 133 if (ret < 0 && path_len == -FDT_ERR_NOTFOUND) in overlay_get_target() 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() 528 path, path_len, name, name_len, in overlay_fixup_phandle() 772 return path_len; in overlay_symbol_update() 775 if (path_len < 1 || memchr(path, '\0', path_len) != &path[path_len - 1]) in overlay_symbol_update() [all …]
|
/openbmc/linux/scripts/dtc/libfdt/ |
H A D | fdt_overlay.c | 48 int path_len = 0, ret; in fdt_overlay_target_offset() local 62 ret = path_len; in fdt_overlay_target_offset() 73 if (ret < 0 && path_len == -FDT_ERR_NOTFOUND) in fdt_overlay_target_offset() 432 uint32_t path_len, name_len; in overlay_fixup_phandle() local 450 path_len = sep - path; in overlay_fixup_phandle() 451 if (path_len == (fixup_len - 1)) in overlay_fixup_phandle() 454 fixup_len -= path_len + 1; in overlay_fixup_phandle() 469 path, path_len, name, name_len, in overlay_fixup_phandle() 713 return path_len; in overlay_symbol_update() 716 if (path_len < 1 || memchr(path, '\0', path_len) != &path[path_len - 1]) in overlay_symbol_update() [all …]
|
/openbmc/qemu/util/ |
H A D | selfmap.c | 45 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/linux/fs/smb/server/ |
H A D | misc.c | 289 int no_slash = 0, name_len, path_len; in convert_to_unix_name() local 295 path_len = share->path_sz; in convert_to_unix_name() 297 new_name = kmalloc(path_len + name_len + 2, GFP_KERNEL); in convert_to_unix_name() 301 memcpy(new_name, share->path, path_len); in convert_to_unix_name() 302 if (new_name[path_len - 1] != '/') { in convert_to_unix_name() 303 new_name[path_len] = '/'; in convert_to_unix_name() 307 memcpy(new_name + path_len + no_slash, name, name_len); in convert_to_unix_name() 308 path_len += name_len + no_slash; in convert_to_unix_name() 309 new_name[path_len] = 0x00; in convert_to_unix_name()
|
H A D | vfs.c | 1231 size_t path_len, remain_len; in ksmbd_vfs_kern_path_locked() local 1234 path_len = strlen(filepath); in ksmbd_vfs_kern_path_locked() 1235 remain_len = path_len; in ksmbd_vfs_kern_path_locked() 1241 char *filename = filepath + path_len - remain_len; in ksmbd_vfs_kern_path_locked()
|
/openbmc/linux/arch/um/os-Linux/ |
H A D | main.c | 78 int path_len = 0; in setup_env_path() local 85 if (!old_path || (path_len = strlen(old_path)) == 0) { in setup_env_path() 92 path_len += strlen("PATH=" UML_LIB_PATH) + 1; in setup_env_path() 93 new_path = malloc(path_len); in setup_env_path() 98 snprintf(new_path, path_len, "PATH=%s" UML_LIB_PATH, old_path); in setup_env_path()
|
/openbmc/u-boot/include/linux/ |
H A D | libfdt.h | 146 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/linux/fs/vboxsf/ |
H A D | utils.c | 369 int path_len, out_len, nb; in vboxsf_path_from_dentry() local 383 path_len = strlen(path); in vboxsf_path_from_dentry() 395 while (path_len) { in vboxsf_path_from_dentry() 396 nb = sbi->nls->char2uni(path, path_len, &uni); in vboxsf_path_from_dentry() 403 path_len -= nb; in vboxsf_path_from_dentry() 419 if ((SHFLSTRING_HEADER_SIZE + path_len + 1) > PATH_MAX) { in vboxsf_path_from_dentry() 428 memmove(shfl_path->string.utf8, path, path_len); in vboxsf_path_from_dentry() 429 shfl_path->string.utf8[path_len] = 0; in vboxsf_path_from_dentry() 430 shfl_path->length = path_len; in vboxsf_path_from_dentry() 431 shfl_path->size = path_len + 1; in vboxsf_path_from_dentry()
|
/openbmc/qemu/system/ |
H A D | device_tree.c | 248 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 D | fdt_region.c | 33 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/linux/fs/smb/server/mgmt/ |
H A D | share_config.c | 163 int path_len = PATH_MAX; in share_config_request() local 166 path_len = resp->payload_sz - resp->veto_list_sz; in share_config_request() 168 share->path = kstrndup(ksmbd_share_config_path(resp), path_len, in share_config_request()
|
/openbmc/qemu/hw/core/ |
H A D | sysbus-fdt.c | 143 int ret, node_offset, prop_len, path_len = 16; in fdt_build_clock_node() local 151 node_path = g_malloc(path_len); in fdt_build_clock_node() 152 while ((ret = fdt_get_path(host_fdt, node_offset, node_path, path_len)) in fdt_build_clock_node() 154 path_len += 16; in fdt_build_clock_node() 155 node_path = g_realloc(node_path, path_len); in fdt_build_clock_node()
|
/openbmc/u-boot/cmd/ |
H A D | pxe.c | 92 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/openbmc/poky/meta/recipes-devtools/python/python3-dtc/ |
H A D | 0001-Revert-libfdt-overlay-make-overlay_get_target-public.patch | 46 int path_len = 0, ret; 57 - path = fdt_getprop(fdto, fragment_offset, "target-path", &path_len); 58 + path = fdt_getprop(fdto, fragment, "target-path", &path_len);
|
/openbmc/linux/drivers/gpu/drm/mediatek/ |
H A D | mtk_drm_crtc.h | 20 unsigned int path_len,
|
H A D | mtk_drm_ddp_comp.c | 495 unsigned int path_len, in mtk_drm_find_comp_in_ddp() argument 503 for (i = 0U; i < path_len; i++) in mtk_drm_find_comp_in_ddp()
|
H A D | mtk_drm_crtc.c | 930 const unsigned int *path, unsigned int path_len, in mtk_drm_crtc_create() argument 952 for (i = 0; i < path_len; i++) { in mtk_drm_crtc_create() 981 mtk_crtc->ddp_comp_nr = path_len; in mtk_drm_crtc_create()
|
/openbmc/qemu/hw/i386/kvm/ |
H A D | xenstore_impl.c | 372 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/linux/drivers/xen/xenbus/ |
H A D | xenbus_dev_frontend.c | 273 int path_len, tok_len, body_len; in watch_fired() local 281 path_len = strlen(path) + 1; in watch_fired() 283 body_len = path_len + tok_len; in watch_fired() 292 ret = queue_reply(&staging_q, path, path_len); in watch_fired()
|
/openbmc/linux/drivers/of/ |
H A D | overlay.c | 207 int path_len; in dup_and_fixup_symbol_prop() local 216 path_len = strlen(path); in dup_and_fixup_symbol_prop() 218 if (path_len < 1) in dup_and_fixup_symbol_prop() 235 if (overlay_name_len > path_len) in dup_and_fixup_symbol_prop()
|
/openbmc/u-boot/tools/ |
H A D | fdtgrep.c | 654 int max_regions, char *path, int path_len, int flags) in fdtgrep_find_regions() argument 662 ®ion[count++], path, path_len, in fdtgrep_find_regions() 667 path, path_len, disp->flags, &state); in fdtgrep_find_regions()
|
/openbmc/linux/tools/perf/util/ |
H A D | synthetic-events.c | 552 size_t path_len = strlen(path) - mount_len + 1; in perf_event__synthesize_cgroup() local 559 while (path_len % sizeof(u64)) in perf_event__synthesize_cgroup() 560 path[mount_len + path_len++] = '\0'; in perf_event__synthesize_cgroup() 565 event->cgroup.header.size = event_size + path_len + machine->id_hdr_size; in perf_event__synthesize_cgroup() 574 strncpy(event->cgroup.path, path + mount_len, path_len); in perf_event__synthesize_cgroup() 575 memset(event->cgroup.path + path_len, 0, machine->id_hdr_size); in perf_event__synthesize_cgroup()
|
/openbmc/qemu/block/ |
H A D | vvfat.c | 2021 int path_len = strlen(path); in check_directory_consistency() local 2024 assert(path_len < PATH_MAX); /* len was tested before! */ in check_directory_consistency() 2026 path2[path_len] = '/'; in check_directory_consistency() 2027 path2[path_len + 1] = '\0'; in check_directory_consistency() 2099 if (path_len + 1 + lfn.len >= PATH_MAX) { in check_directory_consistency() 2103 pstrcpy(path2 + path_len + 1, sizeof(path2) - path_len - 1, in check_directory_consistency()
|
/openbmc/qemu/hw/pci/ |
H A D | pci.c | 2552 int path_len; in pcibus_get_dev_path() local 2565 path_len = root_bus_len + slot_len * slot_depth; in pcibus_get_dev_path() 2568 path = g_malloc(path_len + 1 /* For '\0' */); in pcibus_get_dev_path() 2569 path[path_len] = '\0'; in pcibus_get_dev_path() 2575 p = path + path_len; in pcibus_get_dev_path()
|
/openbmc/linux/fs/btrfs/ |
H A D | send.c | 482 int path_len; in fs_path_ensure_buf() local 495 path_len = p->end - p->start; in fs_path_ensure_buf() 519 tmp_buf = p->buf + old_buf_len - path_len - 1; in fs_path_ensure_buf() 521 p->start = p->end - path_len; in fs_path_ensure_buf() 522 memmove(p->start, tmp_buf, path_len + 1); in fs_path_ensure_buf() 525 p->end = p->start + path_len; in fs_path_ensure_buf()
|