Home
last modified time | relevance | path

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

/linux-6.1.9/scripts/dtc/libfdt/
Dfdt_overlay.c63 int path_len = 0, ret; in overlay_get_target() local
73 path = fdt_getprop(fdto, fragment, "target-path", &path_len); in overlay_get_target()
77 ret = path_len; in overlay_get_target()
88 if (ret < 0 && path_len == -FDT_ERR_NOTFOUND) in overlay_get_target()
370 const char *path, uint32_t path_len, in overlay_fixup_one_phandle() argument
396 fixup_off = fdt_path_offset_namelen(fdto, path, path_len); in overlay_fixup_one_phandle()
447 uint32_t path_len, name_len; in overlay_fixup_phandle() local
465 path_len = sep - path; in overlay_fixup_phandle()
466 if (path_len == (fixup_len - 1)) in overlay_fixup_phandle()
469 fixup_len -= path_len + 1; in overlay_fixup_phandle()
[all …]
/linux-6.1.9/fs/ksmbd/
Dmisc.c288 int no_slash = 0, name_len, path_len; in convert_to_unix_name() local
294 path_len = share->path_sz; in convert_to_unix_name()
296 new_name = kmalloc(path_len + name_len + 2, GFP_KERNEL); in convert_to_unix_name()
300 memcpy(new_name, share->path, path_len); in convert_to_unix_name()
301 if (new_name[path_len - 1] != '/') { in convert_to_unix_name()
302 new_name[path_len] = '/'; in convert_to_unix_name()
306 memcpy(new_name + path_len + no_slash, name, name_len); in convert_to_unix_name()
307 path_len += name_len + no_slash; in convert_to_unix_name()
308 new_name[path_len] = 0x00; in convert_to_unix_name()
Dvfs.c1230 size_t path_len, remain_len; in ksmbd_vfs_kern_path() local
1236 path_len = strlen(filepath); in ksmbd_vfs_kern_path()
1237 remain_len = path_len; in ksmbd_vfs_kern_path()
1243 char *filename = filepath + path_len - remain_len; in ksmbd_vfs_kern_path()
/linux-6.1.9/arch/um/os-Linux/
Dmain.c78 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()
/linux-6.1.9/fs/vboxsf/
Dutils.c369 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()
/linux-6.1.9/drivers/gpu/drm/mediatek/
Dmtk_drm_crtc.h20 unsigned int path_len);
Dmtk_drm_ddp_comp.c468 unsigned int path_len, in mtk_drm_find_comp_in_ddp() argument
476 for (i = 0U; i < path_len; i++) in mtk_drm_find_comp_in_ddp()
Dmtk_drm_crtc.c869 const enum mtk_ddp_comp_id *path, unsigned int path_len) in mtk_drm_crtc_create() argument
884 for (i = 0; i < path_len; i++) { in mtk_drm_crtc_create()
910 mtk_crtc->ddp_comp_nr = path_len; in mtk_drm_crtc_create()
/linux-6.1.9/drivers/xen/xenbus/
Dxenbus_dev_frontend.c273 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()
/linux-6.1.9/drivers/of/
Doverlay.c207 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()
/linux-6.1.9/tools/perf/util/
Dsynthetic-events.c552 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()
/linux-6.1.9/fs/btrfs/
Dsend.c426 int path_len; in fs_path_ensure_buf() local
439 path_len = p->end - p->start; in fs_path_ensure_buf()
462 tmp_buf = p->buf + old_buf_len - path_len - 1; in fs_path_ensure_buf()
464 p->start = p->end - path_len; in fs_path_ensure_buf()
465 memmove(p->start, tmp_buf, path_len + 1); in fs_path_ensure_buf()
468 p->end = p->start + path_len; in fs_path_ensure_buf()
/linux-6.1.9/fs/cifs/
Dsmb2pdu.c2577 int treename_len, path_len; in alloc_path_with_tree_prefix() local
2591 path_len = UniStrnlen((wchar_t *)path, PATH_MAX); in alloc_path_with_tree_prefix()
2594 *out_len = treename_len + (path[0] ? 1 : 0) + path_len; in alloc_path_with_tree_prefix()