Home
last modified time | relevance | path

Searched refs:name_len (Results 1 – 25 of 238) sorted by relevance

12345678910

/linux-6.6.21/fs/ntfs3/
Dattrlist.c154 sz < le->name_off + le->name_len * sizeof(short)) { in al_enumerate()
174 return al_find_ex(ni, le, attr->type, attr_name(attr), attr->name_len, in al_find_le()
188 u8 name_len, const CLST *vcn) in al_find_ex() argument
204 if (le->name_len != name_len) in al_find_ex()
212 diff = ntfs_cmp_names(le_name(le), name_len, name, in al_find_ex()
213 name_len, ni->mi.sbi->upcase, in al_find_ex()
245 u8 name_len, CLST vcn) in al_find_le_to_insert() argument
264 diff = ntfs_cmp_names(le_name(le), le->name_len, name, in al_find_le_to_insert()
265 name_len, ni->mi.sbi->upcase, in al_find_le_to_insert()
287 u8 name_len, CLST svcn, __le16 id, const struct MFT_REF *ref, in al_add_le() argument
[all …]
Dxattr.c28 1 + ea->name_len + in unpacked_ea_size()
36 1 + ea->name_len + le16_to_cpu(ea->elength)) - in packed_ea_size()
46 const char *name, u8 name_len, u32 *off, u32 *ea_sz) in find_ea() argument
57 if (ea->name_len == name_len && in find_ea()
58 !memcmp(ea->name, name, name_len)) { in find_ea()
166 1 + ef->name_len + in ntfs_read_ea()
219 if (!ea->name_len) in ntfs_list_ea()
222 if (ea->name_len > ea_size) in ntfs_list_ea()
230 if (ret + ea->name_len + 1 > bytes_per_buffer) { in ntfs_list_ea()
235 memcpy(buffer + ret, ea->name, ea->name_len); in ntfs_list_ea()
[all …]
Drecord.c15 const __le16 *name, u8 name_len, in compare_attr() argument
25 return ntfs_cmp_names(attr_name(left), left->name_len, name, name_len, in compare_attr()
285 t32 = sizeof(short) * attr->name_len; in mi_enum_attr()
300 t32 = sizeof(short) * attr->name_len; in mi_enum_attr()
347 u8 name_len, const __le16 *id) in mi_find_attr() argument
364 if (attr->name_len != name_len) in mi_find_attr()
367 if (name_len && memcmp(attr_name(attr), name, name_len * sizeof(short))) in mi_find_attr()
462 const __le16 *name, u8 name_len, u32 asize, in mi_insert_attr() argument
483 int diff = compare_attr(attr, type, name, name_len, upcase); in mi_insert_attr()
509 attr->name_len = name_len; in mi_insert_attr()
[all …]
/linux-6.6.21/fs/smb/client/
Dcifssmb.c670 int name_len; in CIFSPOSIXDelFile() local
683 name_len = in CIFSPOSIXDelFile()
686 name_len++; /* trailing null */ in CIFSPOSIXDelFile()
687 name_len *= 2; in CIFSPOSIXDelFile()
689 name_len = copy_path_name(pSMB->FileName, fileName); in CIFSPOSIXDelFile()
692 params = 6 + name_len; in CIFSPOSIXDelFile()
747 int name_len; in CIFSSMBDelFile() local
757 name_len = cifsConvertToUTF16((__le16 *) pSMB->fileName, name, in CIFSSMBDelFile()
760 name_len++; /* trailing null */ in CIFSSMBDelFile()
761 name_len *= 2; in CIFSSMBDelFile()
[all …]
/linux-6.6.21/fs/ceph/
Dcrypto.c212 const char *name, int *name_len) in parse_longname() argument
218 int orig_len = *name_len; in parse_longname()
228 *name_len = (name_end - name); in parse_longname()
229 if (*name_len <= 0) { in parse_longname()
236 orig_len - *name_len - 2, in parse_longname()
267 int name_len; in ceph_encode_encrypted_dname() local
273 name_len = d_name->len; in ceph_encode_encrypted_dname()
276 if ((ceph_snap(dir) == CEPH_SNAPDIR) && (name_len > 0) && in ceph_encode_encrypted_dname()
278 dir = parse_longname(parent, iname.name, &name_len); in ceph_encode_encrypted_dname()
283 iname.len = name_len; in ceph_encode_encrypted_dname()
[all …]
Dxattr.c568 const char *name, int name_len, in __set_xattr() argument
583 c = strncmp(name, xattr->name, min(name_len, xattr->name_len)); in __set_xattr()
589 if (name_len == xattr->name_len) in __set_xattr()
591 else if (name_len < xattr->name_len) in __set_xattr()
625 xattr->name_len = name_len; in __set_xattr()
640 ci->i_xattrs.names_size -= xattr->name_len; in __set_xattr()
643 ci->i_xattrs.names_size += name_len; in __set_xattr()
661 ceph_vinop(&ci->netfs.inode), xattr, name_len, name, in __set_xattr()
674 int name_len = strlen(name); in __get_xattr() local
681 c = strncmp(name, xattr->name, xattr->name_len); in __get_xattr()
[all …]
/linux-6.6.21/net/ceph/
Dcls_lock_client.c32 int name_len = strlen(lock_name); in ceph_cls_lock() local
41 lock_op_buf_size = name_len + sizeof(__le32) + in ceph_cls_lock()
62 ceph_encode_string(&p, end, lock_name, name_len); in ceph_cls_lock()
99 int name_len = strlen(lock_name); in ceph_cls_unlock() local
105 unlock_op_buf_size = name_len + sizeof(__le32) + in ceph_cls_unlock()
121 ceph_encode_string(&p, end, lock_name, name_len); in ceph_cls_unlock()
151 int name_len = strlen(lock_name); in ceph_cls_break_lock() local
157 break_op_buf_size = name_len + sizeof(__le32) + in ceph_cls_break_lock()
174 ceph_encode_string(&p, end, lock_name, name_len); in ceph_cls_break_lock()
197 int name_len = strlen(lock_name); in ceph_cls_set_cookie() local
[all …]
/linux-6.6.21/fs/btrfs/
Ddir-item.c28 int name_len) in insert_with_overflow() argument
38 di = btrfs_match_dir_item_name(fs_info, path, name, name_len); in insert_with_overflow()
59 const char *name, u16 name_len, in btrfs_insert_xattr_item() argument
70 if (name_len + data_len > BTRFS_MAX_XATTR_SIZE(root->fs_info)) in btrfs_insert_xattr_item()
75 key.offset = btrfs_name_hash(name, name_len); in btrfs_insert_xattr_item()
77 data_size = sizeof(*dir_item) + name_len + data_len; in btrfs_insert_xattr_item()
79 name, name_len); in btrfs_insert_xattr_item()
88 btrfs_set_dir_name_len(leaf, dir_item, name_len); in btrfs_insert_xattr_item()
92 data_ptr = (unsigned long)((char *)name_ptr + name_len); in btrfs_insert_xattr_item()
94 write_extent_buffer(leaf, name, name_ptr, name_len); in btrfs_insert_xattr_item()
[all …]
Dxattr.c90 size_t name_len = strlen(name); in btrfs_setxattr() local
95 if (name_len + size > BTRFS_MAX_XATTR_SIZE(root->fs_info)) in btrfs_setxattr()
105 btrfs_ino(BTRFS_I(inode)), name, name_len, -1); in btrfs_setxattr()
125 btrfs_ino(BTRFS_I(inode)), name, name_len, 0); in btrfs_setxattr()
137 name, name_len, value, size); in btrfs_setxattr()
146 di = btrfs_match_dir_item_name(fs_info, path, name, name_len); in btrfs_setxattr()
153 di = btrfs_match_dir_item_name(fs_info, path, name, name_len); in btrfs_setxattr()
176 const u32 data_size = sizeof(*di) + name_len + size; in btrfs_setxattr()
188 if (old_data_len + name_len + sizeof(*di) == item_size) { in btrfs_setxattr()
206 data_ptr = ((unsigned long)(di + 1)) + name_len; in btrfs_setxattr()
[all …]
/linux-6.6.21/drivers/video/
Dcmdline.c36 size_t name_len = 0; in __video_get_option_string() local
39 name_len = strlen(name); in __video_get_option_string()
41 if (name_len) { in __video_get_option_string()
51 if (!strncmp(opt, name, name_len) && opt[name_len] == ':') in __video_get_option_string()
52 options = opt + name_len + 1; in __video_get_option_string()
/linux-6.6.21/fs/afs/
Dvl_list.c12 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()
193 bs.name_len = afs_extract_le16(&b); in afs_extract_vlserver_list()
203 bs.name_len, bs.priority, bs.weight, in afs_extract_vlserver_list()
205 bs.name_len, bs.name_len, b); in afs_extract_vlserver_list()
207 if (end - b < bs.name_len) in afs_extract_vlserver_list()
230 if (p->name_len == bs.name_len && in afs_extract_vlserver_list()
232 strncasecmp(b, p->name, bs.name_len) == 0) { in afs_extract_vlserver_list()
[all …]
/linux-6.6.21/scripts/
Dextract-module-sig.pl59 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";
/linux-6.6.21/security/tomoyo/
Drealpath.c192 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()
/linux-6.6.21/fs/adfs/
Ddir_f.c178 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()
Ddir.c213 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()
/linux-6.6.21/fs/nilfs2/
Ddir.c142 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 …]
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dobj_name.c24 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()
/linux-6.6.21/drivers/mtd/ubi/
Dvtbl.c137 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 …]
Dvmt.c193 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()
549 vol->name_len = re->new_name_len; in ubi_rename_volumes()
633 int reserved_pebs, alignment, data_pad, vol_type, name_len, upd_marker; in self_check_volume() local
652 vol->name_len < 0) { in self_check_volume()
695 if (vol->name_len > UBI_VOL_NAME_MAX) { in self_check_volume()
701 n = strnlen(vol->name, vol->name_len + 1); in self_check_volume()
[all …]
Dcdev.c599 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 …]
/linux-6.6.21/fs/ext2/
Ddir.c125 if (unlikely(rec_len < EXT2_DIR_REC_LEN(p->name_len))) in ext2_check_page()
166 rec_len, p->name_len); in ext2_check_page()
219 if (len != de->name_len) in ext2_match()
311 if (!dir_emit(ctx, de->name, de->name_len, in ext2_readdir()
487 unsigned short rec_len, name_len; in ext2_add_link() local
513 name_len = 0; in ext2_add_link()
528 name_len = EXT2_DIR_REC_LEN(de->name_len); in ext2_add_link()
532 if (rec_len >= name_len + reclen) in ext2_add_link()
548 ext2_dirent *de1 = (ext2_dirent *) ((char *) de + name_len); in ext2_add_link()
549 de1->rec_len = ext2_rec_len_to_disk(rec_len - name_len); in ext2_add_link()
[all …]
/linux-6.6.21/fs/smb/server/
Dmisc.c288 int no_slash = 0, name_len, path_len; in convert_to_unix_name() local
295 name_len = strlen(name); in convert_to_unix_name()
296 new_name = kmalloc(path_len + name_len + 2, GFP_KERNEL); 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()
317 int sz = min(4 * d_info->name_len, PATH_MAX); in ksmbd_convert_dir_info_name()
328 d_info->name_len, local_nls, 0); in ksmbd_convert_dir_info_name()
/linux-6.6.21/tools/lib/api/fs/
Dfs.c223 size_t name_len = strlen(fs->name); in fs__env_override() local
225 char upper_name[name_len + 5 + 1]; in fs__env_override()
227 memcpy(upper_name, fs->name, name_len); in fs__env_override()
228 mem_toupper(upper_name, name_len); in fs__env_override()
229 strcpy(&upper_name[name_len], "_PATH"); in fs__env_override()
259 size_t name_len = strlen(fs->name); in mount_overload() local
261 char upper_name[5 + name_len + 12 + 1]; in mount_overload()
263 snprintf(upper_name, name_len, "PERF_%s_ENVIRONMENT", fs->name); in mount_overload()
264 mem_toupper(upper_name, name_len); in mount_overload()
/linux-6.6.21/fs/isofs/
Ddir.c20 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()
/linux-6.6.21/tools/perf/util/
Dbpf-event.c132 int name_len; in synthesize_bpf_prog_name() local
134 name_len = snprintf(buf, size, "bpf_prog_"); in synthesize_bpf_prog_name()
135 name_len += snprintf_hex(buf + name_len, size - name_len, in synthesize_bpf_prog_name()
148 name_len += snprintf(buf + name_len, size - name_len, in synthesize_bpf_prog_name()
150 return name_len; in synthesize_bpf_prog_name()
244 int name_len; in perf_event__synthesize_one_bpf_prog() local
257 name_len = synthesize_bpf_prog_name(ksymbol_event->name, in perf_event__synthesize_one_bpf_prog()
259 ksymbol_event->header.size += PERF_ALIGN(name_len + 1, in perf_event__synthesize_one_bpf_prog()

12345678910