/linux/scripts/dtc/libfdt/ |
H A D | fdt_overlay.c | 48 int path_len = 0, ret; in fdt_overlay_target_offset() local 58 path = fdt_getprop(fdto, fragment_offset, "target-path", &path_len); in fdt_overlay_target_offset() 62 ret = path_len; in fdt_overlay_target_offset() 73 if (ret < 0 && path_len == -FDT_ERR_NOTFOUND) in fdt_overlay_target_offset() 333 const char *path, uint32_t path_len, in overlay_fixup_one_phandle() argument 343 fixup_off = fdt_path_offset_namelen(fdto, path, path_len); in overlay_fixup_one_phandle() 410 uint32_t path_len, name_len; in overlay_fixup_phandle() local 428 path_len = sep - path; in overlay_fixup_phandle() 429 if (path_len == (fixup_len - 1)) in overlay_fixup_phandle() 432 fixup_len -= path_len + 1; in overlay_fixup_phandle() [all …]
|
/linux/fs/smb/server/ |
H A D | misc.c | 290 int no_slash = 0, name_len, path_len; in convert_to_unix_name() local 296 path_len = share->path_sz; in convert_to_unix_name() 298 new_name = kmalloc(path_len + name_len + 2, KSMBD_DEFAULT_GFP); in convert_to_unix_name() 302 memcpy(new_name, share->path, path_len); in convert_to_unix_name() 303 if (new_name[path_len - 1] != '/') { in convert_to_unix_name() 304 new_name[path_len] = '/'; in convert_to_unix_name() 308 memcpy(new_name + path_len + no_slash, name, name_len); in convert_to_unix_name() 309 path_len += name_len + no_slash; in convert_to_unix_name() 310 new_name[path_len] = 0x00; in convert_to_unix_name()
|
H A D | vfs.c | 1236 size_t path_len, remain_len; in ksmbd_vfs_kern_path_locked() local 1239 path_len = strlen(filepath); in ksmbd_vfs_kern_path_locked() 1240 remain_len = path_len; in ksmbd_vfs_kern_path_locked() 1246 char *filename = filepath + path_len - remain_len; in ksmbd_vfs_kern_path_locked()
|
/linux/arch/um/os-Linux/ |
H A D | main.c | 80 int path_len = 0; in setup_env_path() local 87 if (!old_path || (path_len = strlen(old_path)) == 0) { in setup_env_path() 94 path_len += strlen("PATH=" UML_LIB_PATH) + 1; in setup_env_path() 95 new_path = malloc(path_len); in setup_env_path() 100 snprintf(new_path, path_len, "PATH=%s" UML_LIB_PATH, old_path); in setup_env_path()
|
/linux/fs/vboxsf/ |
H A D | utils.c | 370 int path_len, out_len, nb; in vboxsf_path_from_dentry() local 384 path_len = strlen(path); in vboxsf_path_from_dentry() 396 while (path_len) { in vboxsf_path_from_dentry() 397 nb = sbi->nls->char2uni(path, path_len, &uni); in vboxsf_path_from_dentry() 404 path_len -= nb; in vboxsf_path_from_dentry() 420 if ((SHFLSTRING_HEADER_SIZE + path_len + 1) > PATH_MAX) { in vboxsf_path_from_dentry() 429 memmove(shfl_path->string.utf8, path, path_len); in vboxsf_path_from_dentry() 430 shfl_path->string.utf8[path_len] = 0; in vboxsf_path_from_dentry() 431 shfl_path->length = path_len; in vboxsf_path_from_dentry() 432 shfl_path->size = path_len + 1; in vboxsf_path_from_dentry()
|
/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()
|
/linux/drivers/gpu/drm/mediatek/ |
H A D | mtk_ddp_comp.c | 504 unsigned int path_len, in mtk_ddp_comp_find() argument 512 for (i = 0U; i < path_len; i++) in mtk_ddp_comp_find() 537 unsigned int path_len, in mtk_ddp_path_available() argument 542 if (!path || !path_len) in mtk_ddp_path_available() 545 for (i = 0U; i < path_len; i++) { in mtk_ddp_path_available()
|
H A D | mtk_crtc.h | 19 unsigned int path_len, int priv_data_index,
|
H A D | mtk_crtc.c | 941 unsigned int path_len, int priv_data_index, in mtk_crtc_create() argument 964 for (i = 0; i < path_len; i++) { in mtk_crtc_create() 993 mtk_crtc->ddp_comp_nr = path_len; in mtk_crtc_create()
|
/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()
|
/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()
|
/linux/fs/autofs/ |
H A D | dev-ioctl.c | 446 int path_len = param->size - AUTOFS_DEV_IOCTL_SIZE - 1; in autofs_dev_ioctl_timeout() local 464 dentry = try_lookup_one_len(param->path, base, path_len); in autofs_dev_ioctl_timeout()
|
/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()
|
/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()
|
/linux/fs/smb/client/ |
H A D | smb2pdu.c | 2778 int treename_len, path_len; in alloc_path_with_tree_prefix() local 2792 path_len = UniStrnlen((wchar_t *)path, PATH_MAX); in alloc_path_with_tree_prefix() 2795 *out_len = treename_len + (path[0] ? 1 : 0) + path_len; in alloc_path_with_tree_prefix()
|