/kernel/linux/linux-5.10/fs/btrfs/ |
D | dir-item.c | 25 int name_len) in insert_with_overflow() argument 36 di = btrfs_match_dir_item_name(fs_info, path, name, name_len); in insert_with_overflow() 58 const char *name, u16 name_len, in btrfs_insert_xattr_item() argument 69 if (name_len + data_len > BTRFS_MAX_XATTR_SIZE(root->fs_info)) in btrfs_insert_xattr_item() 74 key.offset = btrfs_name_hash(name, name_len); in btrfs_insert_xattr_item() 76 data_size = sizeof(*dir_item) + name_len + data_len; in btrfs_insert_xattr_item() 78 name, name_len); in btrfs_insert_xattr_item() 87 btrfs_set_dir_name_len(leaf, dir_item, name_len); in btrfs_insert_xattr_item() 91 data_ptr = (unsigned long)((char *)name_ptr + name_len); in btrfs_insert_xattr_item() 93 write_extent_buffer(leaf, name, name_ptr, name_len); in btrfs_insert_xattr_item() [all …]
|
D | inode-item.c | 13 int name_len) in btrfs_find_name_in_backref() argument 29 if (len != name_len) in btrfs_find_name_in_backref() 31 if (memcmp_extent_buffer(leaf, name, name_ptr, name_len) == 0) in btrfs_find_name_in_backref() 39 const char *name, int name_len) in btrfs_find_name_in_ext_backref() argument 62 if (ref_name_len == name_len && in btrfs_find_name_in_ext_backref() 64 (memcmp_extent_buffer(leaf, name, name_ptr, name_len) == 0)) in btrfs_find_name_in_ext_backref() 77 const char *name, int name_len, in btrfs_lookup_inode_extref() argument 86 key.offset = btrfs_extref_hash(ref_objectid, name, name_len); in btrfs_lookup_inode_extref() 94 ref_objectid, name, name_len); in btrfs_lookup_inode_extref() 100 const char *name, int name_len, in btrfs_del_inode_extref() argument [all …]
|
D | xattr.c | 86 size_t name_len = strlen(name); in btrfs_setxattr() local 91 if (name_len + size > BTRFS_MAX_XATTR_SIZE(root->fs_info)) in btrfs_setxattr() 101 btrfs_ino(BTRFS_I(inode)), name, name_len, -1); in btrfs_setxattr() 121 btrfs_ino(BTRFS_I(inode)), name, name_len, 0); in btrfs_setxattr() 133 name, name_len, value, size); in btrfs_setxattr() 142 di = btrfs_match_dir_item_name(fs_info, path, name, name_len); in btrfs_setxattr() 149 di = btrfs_match_dir_item_name(fs_info, path, name, name_len); in btrfs_setxattr() 172 const u32 data_size = sizeof(*di) + name_len + size; in btrfs_setxattr() 185 if (old_data_len + name_len + sizeof(*di) == item_size) { in btrfs_setxattr() 204 data_ptr = ((unsigned long)(di + 1)) + name_len; in btrfs_setxattr() [all …]
|
/kernel/linux/linux-5.10/drivers/video/fbdev/core/ |
D | fb_cmdline.c | 39 int name_len = strlen(name), i; in fb_get_options() local 41 if (name_len && ofonly && strncmp(name, "offb", 4)) in fb_get_options() 44 if (name_len && !retval) { in fb_get_options() 51 if (!strncmp(name, opt, name_len) && in fb_get_options() 52 opt[name_len] == ':') in fb_get_options() 53 options = opt + name_len + 1; in fb_get_options()
|
/kernel/linux/linux-5.10/fs/cifs/ |
D | cifssmb.c | 854 int name_len; in CIFSPOSIXDelFile() local 867 name_len = in CIFSPOSIXDelFile() 870 name_len++; /* trailing null */ in CIFSPOSIXDelFile() 871 name_len *= 2; in CIFSPOSIXDelFile() 873 name_len = copy_path_name(pSMB->FileName, fileName); in CIFSPOSIXDelFile() 876 params = 6 + name_len; in CIFSPOSIXDelFile() 928 int name_len; in CIFSSMBDelFile() local 938 name_len = cifsConvertToUTF16((__le16 *) pSMB->fileName, name, in CIFSSMBDelFile() 941 name_len++; /* trailing null */ in CIFSSMBDelFile() 942 name_len *= 2; in CIFSSMBDelFile() [all …]
|
/kernel/linux/linux-5.10/net/ceph/ |
D | cls_lock_client.c | 30 int name_len = strlen(lock_name); in ceph_cls_lock() local 39 lock_op_buf_size = name_len + sizeof(__le32) + in ceph_cls_lock() 60 ceph_encode_string(&p, end, lock_name, name_len); in ceph_cls_lock() 95 int name_len = strlen(lock_name); in ceph_cls_unlock() local 101 unlock_op_buf_size = name_len + sizeof(__le32) + in ceph_cls_unlock() 117 ceph_encode_string(&p, end, lock_name, name_len); in ceph_cls_unlock() 145 int name_len = strlen(lock_name); in ceph_cls_break_lock() local 151 break_op_buf_size = name_len + sizeof(__le32) + in ceph_cls_break_lock() 168 ceph_encode_string(&p, end, lock_name, name_len); in ceph_cls_break_lock() 191 int name_len = strlen(lock_name); in ceph_cls_set_cookie() local [all …]
|
/kernel/linux/linux-5.10/fs/afs/ |
D | vl_list.c | 12 struct afs_vlserver *afs_alloc_vlserver(const char *name, size_t name_len, in afs_alloc_vlserver() argument 17 vlserver = kzalloc(struct_size(vlserver, name, name_len + 1), in afs_alloc_vlserver() 25 vlserver->name_len = name_len; in afs_alloc_vlserver() 27 memcpy(vlserver->name, name, name_len); in afs_alloc_vlserver() 200 bs.name_len = afs_extract_le16(&b); in afs_extract_vlserver_list() 210 bs.name_len, bs.priority, bs.weight, in afs_extract_vlserver_list() 212 bs.name_len, bs.name_len, b); in afs_extract_vlserver_list() 214 if (end - b < bs.name_len) in afs_extract_vlserver_list() 237 if (p->name_len == bs.name_len && in afs_extract_vlserver_list() 239 strncasecmp(b, p->name, bs.name_len) == 0) { in afs_extract_vlserver_list() [all …]
|
D | volume.c | 89 volume->name_len = vldb->name_len; in afs_alloc_volume() 95 memcpy(volume->name, vldb->name, vldb->name_len + 1); in afs_alloc_volume() 322 if (vldb->name_len != volume->name_len || in afs_update_volume_status() 323 memcmp(vldb->name, volume->name, vldb->name_len) != 0) { in afs_update_volume_status() 326 volume->name_len = vldb->name_len; in afs_update_volume_status()
|
/kernel/linux/linux-5.10/scripts/ |
D | extract-module-sig.pl | 59 my ($algo, $hash, $id_type, $name_len, $kid_len, $sig_len) = @info; 75 unless ($p >= $name_len + $kid_len + $sig_len); 81 $p -= $name_len; 82 my $raw_name = substr($buf, $p, $name_len); 104 if ($name_len > 0) { 105 print STDERR "Found $name_len bytes of signer's name [$raw_name]\n";
|
/kernel/linux/linux-5.10/fs/adfs/ |
D | dir_f.c | 178 unsigned int name_len; in adfs_dir2obj() local 180 for (name_len = 0; name_len < ADFS_F_NAME_LEN; name_len++) { in adfs_dir2obj() 181 if (de->dirobname[name_len] < ' ') in adfs_dir2obj() 184 obj->name[name_len] = de->dirobname[name_len]; in adfs_dir2obj() 187 obj->name_len = name_len; in adfs_dir2obj() 262 if (!dir_emit(ctx, obj.name, obj.name_len, in adfs_f_iterate()
|
D | dir.c | 213 for (i = dots = 0; i < obj->name_len; i++) in adfs_object_fixup() 219 if (obj->name_len <= 2 && dots == obj->name_len) in adfs_object_fixup() 230 obj->name[obj->name_len++] = ','; in adfs_object_fixup() 231 obj->name[obj->name_len++] = hex_asc_lo(filetype >> 8); in adfs_object_fixup() 232 obj->name[obj->name_len++] = hex_asc_lo(filetype >> 4); in adfs_object_fixup() 233 obj->name[obj->name_len++] = hex_asc_lo(filetype >> 0); in adfs_object_fixup() 354 u32 name_len; in adfs_dir_lookup_byname() local 368 name_len = qstr->len; in adfs_dir_lookup_byname() 370 if (!__adfs_compare(name, name_len, obj->name, obj->name_len)) { in adfs_dir_lookup_byname()
|
/kernel/linux/linux-5.10/security/tomoyo/ |
D | realpath.c | 192 int name_len; in tomoyo_get_local_path() local 198 name_len = strlen(name); in tomoyo_get_local_path() 199 pos -= name_len; in tomoyo_get_local_path() 202 memmove(pos, name, name_len); in tomoyo_get_local_path() 209 const int name_len = strlen(name); in tomoyo_get_local_path() local 211 pos -= name_len + 1; in tomoyo_get_local_path() 214 memmove(pos, name, name_len); in tomoyo_get_local_path() 215 pos[name_len] = ':'; in tomoyo_get_local_path()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
D | obj_name.c | 24 size_t name_len = strlen(tests[i].name) + 1; in test_obj_name() local 30 ncopy = name_len < sizeof(attr.prog_name) ? in test_obj_name() 31 name_len : sizeof(attr.prog_name); in test_obj_name() 51 ncopy = name_len < sizeof(attr.map_name) ? in test_obj_name() 52 name_len : sizeof(attr.map_name); in test_obj_name()
|
/kernel/linux/linux-5.10/fs/hmdfs/comm/ |
D | message_verify.c | 451 int str_len[] = { req->path_len, req->name_len }; in verify_mkdir_req() 454 req->name_len < 0 || req->name_len >= PATH_MAX) in verify_mkdir_req() 457 if (msg_len != sizeof(*req) + req->path_len + 1 + req->name_len + 1) in verify_mkdir_req() 490 int str_len[] = { req->path_len, req->name_len }; in verify_create_req() 493 req->name_len < 0 || req->name_len >= PATH_MAX) in verify_create_req() 496 if (msg_len != sizeof(*req) + req->path_len + 1 + req->name_len + 1) in verify_create_req() 529 int str_len[] = { req->path_len, req->name_len }; in verify_rmdir_req() 532 req->name_len < 0 || req->name_len >= PATH_MAX) in verify_rmdir_req() 535 if (msg_len != sizeof(*req) + req->path_len + 1 + req->name_len + 1) in verify_rmdir_req() 558 int str_len[] = { req->path_len, req->name_len }; in verify_unlink_req() [all …]
|
/kernel/linux/linux-5.10/fs/hmdfs/ |
D | hmdfs_client.c | 459 int name_len = strlen(name); in hmdfs_client_start_mkdir() local 461 name_len + 1; in hmdfs_client_start_mkdir() 474 mkdir_req->name_len = cpu_to_le32(name_len); in hmdfs_client_start_mkdir() 477 strncpy(mkdir_req->path + path_len + 1, name, name_len); in hmdfs_client_start_mkdir() 506 int name_len = strlen(name); in hmdfs_client_start_create() local 508 name_len + 1; in hmdfs_client_start_create() 521 create_req->name_len = cpu_to_le32(name_len); in hmdfs_client_start_create() 525 strncpy(create_req->path + path_len + 1, name, name_len); in hmdfs_client_start_create() 552 int name_len = strlen(name); in hmdfs_client_start_rmdir() local 554 name_len + 1; in hmdfs_client_start_rmdir() [all …]
|
/kernel/linux/linux-5.10/fs/nilfs2/ |
D | dir.c | 142 if (rec_len < NILFS_DIR_REC_LEN(p->name_len)) in nilfs_check_page() 176 rec_len, p->name_len); in nilfs_check_page() 216 if (len != de->name_len) in nilfs_match() 303 if (!dir_emit(ctx, de->name, de->name_len, in nilfs_readdir() 445 unsigned short rec_len, name_len; in nilfs_add_link() local 474 name_len = 0; in nilfs_add_link() 489 name_len = NILFS_DIR_REC_LEN(de->name_len); in nilfs_add_link() 493 if (rec_len >= name_len + reclen) in nilfs_add_link() 512 de1 = (struct nilfs_dir_entry *)((char *)de + name_len); in nilfs_add_link() 513 de1->rec_len = nilfs_rec_len_to_disk(rec_len - name_len); in nilfs_add_link() [all …]
|
/kernel/linux/linux-5.10/fs/ceph/ |
D | xattr.c | 443 const char *name, int name_len, in __set_xattr() argument 458 c = strncmp(name, xattr->name, min(name_len, xattr->name_len)); in __set_xattr() 464 if (name_len == xattr->name_len) in __set_xattr() 466 else if (name_len < xattr->name_len) in __set_xattr() 500 xattr->name_len = name_len; in __set_xattr() 515 ci->i_xattrs.names_size -= xattr->name_len; in __set_xattr() 518 ci->i_xattrs.names_size += name_len; in __set_xattr() 536 ceph_vinop(&ci->vfs_inode), xattr, name_len, name, val_len, val); in __set_xattr() 547 int name_len = strlen(name); in __get_xattr() local 554 c = strncmp(name, xattr->name, xattr->name_len); in __get_xattr() [all …]
|
/kernel/linux/linux-5.10/drivers/mtd/ubi/ |
D | vtbl.c | 137 vtbl_rec->name_len = cpu_to_be16(re->new_name_len); in ubi_vtbl_rename_volumes() 160 int i, n, reserved_pebs, alignment, data_pad, vol_type, name_len; in vtbl_check() local 173 name_len = be16_to_cpu(vtbl[i].name_len); in vtbl_check() 194 name_len < 0) { in vtbl_check() 234 if (name_len > UBI_VOL_NAME_MAX) { in vtbl_check() 244 if (name_len != strnlen(name, name_len + 1)) { in vtbl_check() 253 int len1 = be16_to_cpu(vtbl[i].name_len); in vtbl_check() 254 int len2 = be16_to_cpu(vtbl[n].name_len); in vtbl_check() 544 vol->name_len = be16_to_cpu(vtbl[i].name_len); in init_volumes() 546 memcpy(vol->name, vtbl[i].name, vol->name_len); in init_volumes() [all …]
|
D | vmt.c | 193 ubi->volumes[i]->name_len == req->name_len && in ubi_create_volume() 223 vol->name_len = req->name_len; in ubi_create_volume() 224 memcpy(vol->name, req->name, vol->name_len); in ubi_create_volume() 281 vtbl_rec.name_len = cpu_to_be16(vol->name_len); in ubi_create_volume() 290 memcpy(vtbl_rec.name, vol->name, vol->name_len); in ubi_create_volume() 558 vol->name_len = re->new_name_len; in ubi_rename_volumes() 642 int reserved_pebs, alignment, data_pad, vol_type, name_len, upd_marker; in self_check_volume() local 661 vol->name_len < 0) { in self_check_volume() 704 if (vol->name_len > UBI_VOL_NAME_MAX) { in self_check_volume() 710 n = strnlen(vol->name, vol->name_len + 1); in self_check_volume() [all …]
|
D | cdev.c | 599 req->name_len < 0) in verify_mkvol_req() 630 if (!req->name[0] || !req->name_len) in verify_mkvol_req() 633 if (req->name_len > UBI_VOL_NAME_MAX) { in verify_mkvol_req() 638 n = strnlen(req->name, req->name_len + 1); in verify_mkvol_req() 639 if (n != req->name_len) in verify_mkvol_req() 697 if (req->ents[i].name_len < 0) in rename_volumes() 699 if (req->ents[i].name_len > UBI_VOL_NAME_MAX) in rename_volumes() 701 req->ents[i].name[req->ents[i].name_len] = '\0'; in rename_volumes() 703 if (n != req->ents[i].name_len) in rename_volumes() 727 int name_len = req->ents[i].name_len; in rename_volumes() local [all …]
|
D | debug.c | 103 pr_err("\tname_len %d\n", vol->name_len); in ubi_dump_vol_info() 112 if (vol->name_len <= UBI_VOL_NAME_MAX && in ubi_dump_vol_info() 113 strnlen(vol->name, vol->name_len + 1) == vol->name_len) { in ubi_dump_vol_info() 129 int name_len = be16_to_cpu(r->name_len); in ubi_dump_vtbl_record() local 137 pr_err("\tname_len %d\n", name_len); in ubi_dump_vtbl_record() 144 if (name_len <= UBI_VOL_NAME_MAX && in ubi_dump_vtbl_record() 145 strnlen(&r->name[0], name_len + 1) == name_len) { in ubi_dump_vtbl_record() 202 pr_err("\tname_len %d\n", req->name_len); in ubi_dump_mkvol_req()
|
/kernel/linux/linux-5.10/fs/ext2/ |
D | dir.c | 142 if (unlikely(rec_len < EXT2_DIR_REC_LEN(p->name_len))) in ext2_check_page() 183 rec_len, p->name_len); in ext2_check_page() 226 if (len != de->name_len) in ext2_match() 318 if (!dir_emit(ctx, de->name, de->name_len, in ext2_readdir() 467 unsigned short rec_len, name_len; in ext2_add_link() local 496 name_len = 0; in ext2_add_link() 511 name_len = EXT2_DIR_REC_LEN(de->name_len); in ext2_add_link() 515 if (rec_len >= name_len + reclen) in ext2_add_link() 532 ext2_dirent *de1 = (ext2_dirent *) ((char *) de + name_len); in ext2_add_link() 533 de1->rec_len = ext2_rec_len_to_disk(rec_len - name_len); in ext2_add_link() [all …]
|
/kernel/linux/linux-5.10/tools/perf/util/ |
D | bpf-event.c | 131 int name_len; in synthesize_bpf_prog_name() local 133 name_len = snprintf(buf, size, "bpf_prog_"); in synthesize_bpf_prog_name() 134 name_len += snprintf_hex(buf + name_len, size - name_len, in synthesize_bpf_prog_name() 147 name_len += snprintf(buf + name_len, size - name_len, in synthesize_bpf_prog_name() 149 return name_len; in synthesize_bpf_prog_name() 236 int name_len; in perf_event__synthesize_one_bpf_prog() local 249 name_len = synthesize_bpf_prog_name(ksymbol_event->name, in perf_event__synthesize_one_bpf_prog() 251 ksymbol_event->header.size += PERF_ALIGN(name_len + 1, in perf_event__synthesize_one_bpf_prog()
|
/kernel/linux/linux-5.10/tools/lib/api/fs/ |
D | fs.c | 218 size_t name_len = strlen(fs->name); in fs__env_override() local 220 char upper_name[name_len + 5 + 1]; in fs__env_override() 222 memcpy(upper_name, fs->name, name_len); in fs__env_override() 223 mem_toupper(upper_name, name_len); in fs__env_override() 224 strcpy(&upper_name[name_len], "_PATH"); in fs__env_override() 271 size_t name_len = strlen(fs->name); in mount_overload() local 273 char upper_name[5 + name_len + 12 + 1]; in mount_overload() 275 snprintf(upper_name, name_len, "PERF_%s_ENVIRONMENT", fs->name); in mount_overload() 276 mem_toupper(upper_name, name_len); in mount_overload()
|
/kernel/linux/linux-5.10/fs/isofs/ |
D | dir.c | 20 int len = de->name_len[0]; in isofs_name_translate() 59 std = sizeof(struct iso_directory_record) + de->name_len[0]; in get_acorn_filename() 150 if (de_len < de->name_len[0] + in do_isofs_readdir() 175 if (de->name_len[0] == 1 && de->name[0] == 0) { in do_isofs_readdir() 185 if (de->name_len[0] == 1 && de->name[0] == 1) { in do_isofs_readdir() 230 len = de->name_len[0]; in do_isofs_readdir()
|