/kernel/linux/linux-5.10/fs/hmdfs/ |
D | hmdfs_client.c | 36 int path_len = strlen(send_buf); in hmdfs_send_open() local 37 size_t send_len = sizeof(struct open_request) + path_len + 1; in hmdfs_send_open() 51 open_req->path_len = cpu_to_le32(path_len); in hmdfs_send_open() 414 const char *path, int path_len, in hmdfs_client_start_readdir() argument 418 size_t send_len = sizeof(struct readdir_request) + path_len + 1; in hmdfs_client_start_readdir() 432 req->path_len = cpu_to_le32(path_len); in hmdfs_client_start_readdir() 433 strncpy(req->path, path, path_len); in hmdfs_client_start_readdir() 458 int path_len = strlen(path); in hmdfs_client_start_mkdir() local 460 size_t send_len = sizeof(struct mkdir_request) + path_len + 1 + in hmdfs_client_start_mkdir() 473 mkdir_req->path_len = cpu_to_le32(path_len); in hmdfs_client_start_mkdir() [all …]
|
D | hmdfs_server.c | 497 char *filename = recv->buf + le32_to_cpu(recv->path_len) + 1; in hmdfs_lookup_create() 1007 size_t path_len = 0; in server_lower_dentry_path_raw() local 1020 if (unlikely(path_len + dlen + 1 > PATH_MAX - 1)) { in server_lower_dentry_path_raw() 1025 lo_p_buf[path_len++] = in server_lower_dentry_path_raw() 1027 lo_p_buf[path_len++] = '/'; in server_lower_dentry_path_raw() 1031 for (buf_head = lo_p_buf, buf_tail = lo_p_buf + path_len - 1; in server_lower_dentry_path_raw() 1035 if (path_len == 0) in server_lower_dentry_path_raw() 1149 int path_len = le32_to_cpu(mkdir_recv->path_len); in hmdfs_server_mkdir() local 1158 mkdir_name = mkdir_recv->path + path_len + 1; in hmdfs_server_mkdir() 1191 int path_len = le32_to_cpu(create_recv->path_len); in hmdfs_server_create() local [all …]
|
D | inode.h | 49 __u32 path_len; member
|
D | hmdfs_client.h | 35 const char *path, int path_len,
|
D | stash.c | 59 __le32 path_len; member 275 head->path_len = cpu_to_le32(cache->path_len); in hmdfs_set_stash_file_head() 324 written = kernel_write(cache->cache_file, cache->path, cache->path_len, in hmdfs_flush_stash_file_metadata() 326 if (written != cache->path_len) { in hmdfs_flush_stash_file_metadata() 329 cache->path_len, written); in hmdfs_flush_stash_file_metadata() 600 cache->path_len = strlen(cache->path) + 1; in hmdfs_new_file_cache() 603 cache->data_offs = cache->path_offs + DIV_ROUND_UP(cache->path_len, in hmdfs_new_file_cache() 1231 read_size = min_t(unsigned int, le32_to_cpu(head.path_len), PATH_MAX); in hmdfs_get_restore_file_metadata()
|
/kernel/linux/linux-5.10/fs/hmdfs/comm/ |
D | message_verify.c | 348 int path_len; in hmdfs_open_message_verify() local 354 path_len = le32_to_cpu(req->path_len); in hmdfs_open_message_verify() 358 path_len != tmp_len) { in hmdfs_open_message_verify() 367 if (path_contain_dotdot(req->buf, path_len)) { in hmdfs_open_message_verify() 379 size_t path_len; in hmdfs_atomic_open_verify() local 390 path_len = strnlen(req->buf, max_path_size); in hmdfs_atomic_open_verify() 392 if (path_len == max_path_size || path_len + 3 > total_len) { in hmdfs_atomic_open_verify() 393 hmdfs_err("verify fail, len %zu, path_len %zu", len, path_len); in hmdfs_atomic_open_verify() 397 max_file_size = min_t(size_t, NAME_MAX + 1, total_len - path_len - 1); in hmdfs_atomic_open_verify() 398 file_len = strnlen(req->buf + path_len + 1, max_file_size); in hmdfs_atomic_open_verify() [all …]
|
D | protocol.h | 196 __le32 path_len; member 224 __le32 path_len; member 280 __le32 path_len; member 314 __le32 path_len; member 330 __le32 path_len; member 337 __le32 path_len; member 345 __le32 path_len; member 351 __le32 path_len; member 366 __le32 path_len; member 380 __le32 path_len; member [all …]
|
/kernel/linux/linux-5.10/scripts/dtc/libfdt/ |
D | fdt_overlay.c | 63 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 …]
|
/kernel/linux/linux-5.10/arch/um/os-Linux/ |
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()
|
/kernel/linux/linux-5.10/fs/vboxsf/ |
D | utils.c | 349 int path_len, out_len, nb; in vboxsf_path_from_dentry() local 363 path_len = strlen(path); in vboxsf_path_from_dentry() 375 while (path_len) { in vboxsf_path_from_dentry() 376 nb = sbi->nls->char2uni(path, path_len, &uni); in vboxsf_path_from_dentry() 383 path_len -= nb; in vboxsf_path_from_dentry() 399 if ((SHFLSTRING_HEADER_SIZE + path_len + 1) > PATH_MAX) { in vboxsf_path_from_dentry() 408 memmove(shfl_path->string.utf8, path, path_len); in vboxsf_path_from_dentry() 409 shfl_path->string.utf8[path_len] = 0; in vboxsf_path_from_dentry() 410 shfl_path->length = path_len; in vboxsf_path_from_dentry() 411 shfl_path->size = path_len + 1; in vboxsf_path_from_dentry()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/mediatek/ |
D | mtk_drm_crtc.h | 21 unsigned int path_len);
|
D | mtk_drm_crtc.c | 730 const enum mtk_ddp_comp_id *path, unsigned int path_len) in mtk_drm_crtc_create() argument 745 for (i = 0; i < path_len; i++) { in mtk_drm_crtc_create() 763 mtk_crtc->ddp_comp_nr = path_len; in mtk_drm_crtc_create()
|
D | mtk_drm_ddp_comp.c | 421 unsigned int path_len) in mtk_drm_find_comp_in_ddp() argument 428 for (i = 0U; i < path_len; i++) in mtk_drm_find_comp_in_ddp()
|
/kernel/linux/linux-5.10/drivers/xen/xenbus/ |
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()
|
/kernel/linux/linux-5.10/drivers/of/ |
D | overlay.c | 211 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()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
D | synthetic-events.c | 478 size_t path_len = strlen(path) - mount_len + 1; in perf_event__synthesize_cgroup() local 485 while (path_len % sizeof(u64)) in perf_event__synthesize_cgroup() 486 path[mount_len + path_len++] = '\0'; in perf_event__synthesize_cgroup() 491 event->cgroup.header.size = event_size + path_len + machine->id_hdr_size; in perf_event__synthesize_cgroup() 500 strncpy(event->cgroup.path, path + mount_len, path_len); in perf_event__synthesize_cgroup() 501 memset(event->cgroup.path + path_len, 0, machine->id_hdr_size); in perf_event__synthesize_cgroup()
|
/kernel/linux/linux-5.10/fs/btrfs/ |
D | send.c | 385 int path_len; in fs_path_ensure_buf() local 398 path_len = p->end - p->start; in fs_path_ensure_buf() 421 tmp_buf = p->buf + old_buf_len - path_len - 1; in fs_path_ensure_buf() 423 p->start = p->end - path_len; in fs_path_ensure_buf() 424 memmove(p->start, tmp_buf, path_len + 1); in fs_path_ensure_buf() 427 p->end = p->start + path_len; in fs_path_ensure_buf()
|
/kernel/linux/linux-5.10/fs/cifs/ |
D | smb2pdu.c | 2441 int treename_len, path_len; in alloc_path_with_tree_prefix() local 2455 path_len = UniStrnlen((wchar_t *)path, PATH_MAX); in alloc_path_with_tree_prefix() 2461 *out_len = treename_len + 1 + path_len; in alloc_path_with_tree_prefix()
|