Home
last modified time | relevance | path

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

/linux/scripts/dtc/libfdt/
A Dfdt_overlay.c63 int path_len = 0, ret; in overlay_get_target() local
77 ret = path_len; in overlay_get_target()
88 if (ret < 0 && path_len == -FDT_ERR_NOTFOUND) in overlay_get_target()
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()
484 path, path_len, name, name_len, in overlay_fixup_phandle()
728 return path_len; in overlay_symbol_update()
731 if (path_len < 1 || memchr(path, '\0', path_len) != &path[path_len - 1]) in overlay_symbol_update()
[all …]
/linux/fs/ksmbd/
A Dmisc.c238 int no_slash = 0, name_len, path_len; in convert_to_unix_name() local
244 path_len = share->path_sz; in convert_to_unix_name()
246 new_name = kmalloc(path_len + name_len + 2, GFP_KERNEL); in convert_to_unix_name()
250 memcpy(new_name, share->path, path_len); in convert_to_unix_name()
251 if (new_name[path_len - 1] != '/') { in convert_to_unix_name()
252 new_name[path_len] = '/'; in convert_to_unix_name()
256 memcpy(new_name + path_len + no_slash, name, name_len); in convert_to_unix_name()
257 path_len += name_len + no_slash; in convert_to_unix_name()
258 new_name[path_len] = 0x00; in convert_to_unix_name()
A Dvfs.c1223 size_t path_len, remain_len; in ksmbd_vfs_kern_path() local
1229 path_len = strlen(filepath); in ksmbd_vfs_kern_path()
1230 remain_len = path_len; in ksmbd_vfs_kern_path()
1236 char *filename = filepath + path_len - remain_len; in ksmbd_vfs_kern_path()
/linux/arch/um/os-Linux/
A 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/fs/vboxsf/
A Dutils.c368 int path_len, out_len, nb; in vboxsf_path_from_dentry() local
382 path_len = strlen(path); in vboxsf_path_from_dentry()
394 while (path_len) { in vboxsf_path_from_dentry()
395 nb = sbi->nls->char2uni(path, path_len, &uni); in vboxsf_path_from_dentry()
402 path_len -= nb; in vboxsf_path_from_dentry()
418 if ((SHFLSTRING_HEADER_SIZE + path_len + 1) > PATH_MAX) { in vboxsf_path_from_dentry()
427 memmove(shfl_path->string.utf8, path, path_len); in vboxsf_path_from_dentry()
428 shfl_path->string.utf8[path_len] = 0; in vboxsf_path_from_dentry()
429 shfl_path->length = path_len; in vboxsf_path_from_dentry()
430 shfl_path->size = path_len + 1; in vboxsf_path_from_dentry()
/linux/drivers/xen/xenbus/
A 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/drivers/gpu/drm/mediatek/
A Dmtk_drm_crtc.h20 unsigned int path_len);
A Dmtk_drm_ddp_comp.c366 unsigned int path_len, in mtk_drm_find_comp_in_ddp() argument
374 for (i = 0U; i < path_len; i++) in mtk_drm_find_comp_in_ddp()
A Dmtk_drm_crtc.c737 const enum mtk_ddp_comp_id *path, unsigned int path_len) in mtk_drm_crtc_create() argument
752 for (i = 0; i < path_len; i++) { in mtk_drm_crtc_create()
778 mtk_crtc->ddp_comp_nr = path_len; in mtk_drm_crtc_create()
/linux/drivers/of/
A Doverlay.c211 int path_len; in dup_and_fixup_symbol_prop() local
220 path_len = strlen(path); in dup_and_fixup_symbol_prop()
222 if (path_len < 1) in dup_and_fixup_symbol_prop()
239 if (overlay_name_len > path_len) in dup_and_fixup_symbol_prop()
/linux/tools/perf/util/
A Dsynthetic-events.c522 size_t path_len = strlen(path) - mount_len + 1; in perf_event__synthesize_cgroup() local
529 while (path_len % sizeof(u64)) in perf_event__synthesize_cgroup()
530 path[mount_len + path_len++] = '\0'; in perf_event__synthesize_cgroup()
535 event->cgroup.header.size = event_size + path_len + machine->id_hdr_size; in perf_event__synthesize_cgroup()
544 strncpy(event->cgroup.path, path + mount_len, path_len); in perf_event__synthesize_cgroup()
545 memset(event->cgroup.path + path_len, 0, machine->id_hdr_size); in perf_event__synthesize_cgroup()
/linux/fs/btrfs/
A Dsend.c397 int path_len; in fs_path_ensure_buf() local
410 path_len = p->end - p->start; in fs_path_ensure_buf()
433 tmp_buf = p->buf + old_buf_len - path_len - 1; in fs_path_ensure_buf()
435 p->start = p->end - path_len; in fs_path_ensure_buf()
436 memmove(p->start, tmp_buf, path_len + 1); in fs_path_ensure_buf()
439 p->end = p->start + path_len; in fs_path_ensure_buf()
/linux/fs/cifs/
A Dsmb2pdu.c2496 int treename_len, path_len; in alloc_path_with_tree_prefix() local
2510 path_len = UniStrnlen((wchar_t *)path, PATH_MAX); in alloc_path_with_tree_prefix()
2516 *out_len = treename_len + 1 + path_len; in alloc_path_with_tree_prefix()

Completed in 119 milliseconds