Home
last modified time | relevance | path

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

123456789

/linux/fs/ntfs3/
H A 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()
217 u8 name_len = ea->name_len; in ntfs_list_ea() local
219 if (!name_len) in ntfs_list_ea()
222 if (name_len > ea_size) { in ntfs_list_ea()
233 if (ret + name_len + 1 > bytes_per_buffer) { in ntfs_list_ea()
[all …]
H A 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 …]
H A 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()
289 t32 = sizeof(short) * attr->name_len; in mi_enum_attr()
308 t32 = sizeof(short) * attr->name_len; in mi_enum_attr()
356 u8 name_len, const __le16 *id) in mi_find_attr() argument
373 if (attr->name_len != name_len) in mi_find_attr()
376 if (name_len && memcmp(attr_name(attr), name, name_len * sizeof(short))) in mi_find_attr()
471 const __le16 *name, u8 name_len, u32 asize, in mi_insert_attr() argument
492 int diff = compare_attr(attr, type, name, name_len, upcase); in mi_insert_attr()
518 attr->name_len = name_len; in mi_insert_attr()
[all …]
/linux/fs/smb/client/
H A Dcifssmb.c669 int name_len; in CIFSPOSIXDelFile() local
682 name_len = in CIFSPOSIXDelFile()
685 name_len++; /* trailing null */ in CIFSPOSIXDelFile()
686 name_len *= 2; in CIFSPOSIXDelFile()
688 name_len = copy_path_name(pSMB->FileName, fileName); in CIFSPOSIXDelFile()
691 params = 6 + name_len; in CIFSPOSIXDelFile()
746 int name_len; in CIFSSMBDelFile() local
756 name_len = cifsConvertToUTF16((__le16 *) pSMB->fileName, name, in CIFSSMBDelFile()
759 name_len++; /* trailing null */ in CIFSSMBDelFile()
760 name_len *= 2; in CIFSSMBDelFile()
[all …]
/linux/net/ceph/
H A 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/fs/ceph/
H A Dcrypto.c213 const char *name, int *name_len) in parse_longname() argument
220 int orig_len = *name_len; in parse_longname()
230 *name_len = (name_end - name); in parse_longname()
231 if (*name_len <= 0) { in parse_longname()
238 orig_len - *name_len - 2, in parse_longname()
270 int name_len; in ceph_encode_encrypted_dname() local
276 name_len = d_name->len; in ceph_encode_encrypted_dname()
279 if ((ceph_snap(dir) == CEPH_SNAPDIR) && (name_len > 0) && in ceph_encode_encrypted_dname()
281 dir = parse_longname(parent, iname.name, &name_len); in ceph_encode_encrypted_dname()
286 iname.len = name_len; in ceph_encode_encrypted_dname()
[all …]
H A Dxattr.c569 const char *name, int name_len, in __set_xattr() argument
586 c = strncmp(name, xattr->name, min(name_len, xattr->name_len)); in __set_xattr()
592 if (name_len == xattr->name_len) in __set_xattr()
594 else if (name_len < xattr->name_len) in __set_xattr()
628 xattr->name_len = name_len; in __set_xattr()
643 ci->i_xattrs.names_size -= xattr->name_len; in __set_xattr()
646 ci->i_xattrs.names_size += name_len; in __set_xattr()
664 ceph_vinop(inode), xattr, name_len, name, min(val_len, in __set_xattr()
678 int name_len = strlen(name); in __get_xattr() local
685 c = strncmp(name, xattr->name, xattr->name_len); in __get_xattr()
[all …]
/linux/fs/afs/
H A Dvl_list.c12 struct afs_vlserver *afs_alloc_vlserver(const char *name, size_t name_len, in afs_alloc_vlserver() argument
18 vlserver = kzalloc(struct_size(vlserver, name, name_len + 1), in afs_alloc_vlserver()
27 vlserver->name_len = name_len; in afs_alloc_vlserver()
30 memcpy(vlserver->name, name, name_len); in afs_alloc_vlserver()
202 bs.name_len = afs_extract_le16(&b); in afs_extract_vlserver_list()
212 bs.name_len, bs.priority, bs.weight, in afs_extract_vlserver_list()
214 bs.name_len, bs.name_len, b); in afs_extract_vlserver_list()
216 if (end - b < bs.name_len) in afs_extract_vlserver_list()
239 if (p->name_len == bs.name_len && in afs_extract_vlserver_list()
241 strncasecmp(b, p->name, bs.name_len) == 0) { in afs_extract_vlserver_list()
[all …]
/linux/fs/btrfs/
H A Dxattr.c89 size_t name_len = strlen(name); in btrfs_setxattr() local
94 if (name_len + size > BTRFS_MAX_XATTR_SIZE(root->fs_info)) in btrfs_setxattr()
104 btrfs_ino(BTRFS_I(inode)), name, name_len, -1); in btrfs_setxattr()
124 btrfs_ino(BTRFS_I(inode)), name, name_len, 0); in btrfs_setxattr()
136 name, name_len, value, size); in btrfs_setxattr()
145 di = btrfs_match_dir_item_name(path, name, name_len); in btrfs_setxattr()
152 di = btrfs_match_dir_item_name(path, name, name_len); in btrfs_setxattr()
175 const u32 data_size = sizeof(*di) + name_len + size; in btrfs_setxattr()
187 if (old_data_len + name_len + sizeof(*di) == item_size) { in btrfs_setxattr()
205 data_ptr = ((unsigned long)(di + 1)) + name_len; in btrfs_setxattr()
[all …]
/linux/drivers/video/
H A 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/scripts/
H A 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/security/tomoyo/
H A 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/fs/adfs/
H A 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()
H A 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/fs/nilfs2/
H A Ddir.c134 if (rec_len < NILFS_DIR_REC_LEN(p->name_len)) in nilfs_check_folio()
174 rec_len, p->name_len); in nilfs_check_folio()
218 if (len != de->name_len) in nilfs_match()
271 if (!dir_emit(ctx, de->name, de->name_len, in nilfs_readdir()
430 unsigned short rec_len, name_len; in nilfs_add_link() local
456 name_len = 0; in nilfs_add_link()
471 name_len = NILFS_DIR_REC_LEN(de->name_len); in nilfs_add_link()
475 if (rec_len >= name_len + reclen) in nilfs_add_link()
494 de1 = (struct nilfs_dir_entry *)((char *)de + name_len); in nilfs_add_link()
495 de1->rec_len = nilfs_rec_len_to_disk(rec_len - name_len); in nilfs_add_link()
[all …]
/linux/drivers/mtd/ubi/
H A 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 …]
H A Dvmt.c139 strncmp(volname, vol->name, vol->name_len)) in find_volume_fwnode()
220 ubi->volumes[i]->name_len == req->name_len && in ubi_create_volume()
250 vol->name_len = req->name_len; in ubi_create_volume()
251 memcpy(vol->name, req->name, vol->name_len); in ubi_create_volume()
309 vtbl_rec.name_len = cpu_to_be16(vol->name_len); in ubi_create_volume()
318 memcpy(vtbl_rec.name, vol->name, vol->name_len); in ubi_create_volume()
599 vol->name_len = re->new_name_len; in ubi_rename_volumes()
684 int reserved_pebs, alignment, data_pad, vol_type, name_len, upd_marker; in self_check_volume() local
703 vol->name_len < 0) { in self_check_volume()
746 if (vol->name_len > UBI_VOL_NAME_MAX) { in self_check_volume()
[all …]
H A 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/tools/testing/selftests/bpf/prog_tests/
H A 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/fs/ext2/
H A Ddir.c125 if (unlikely(rec_len < EXT2_DIR_REC_LEN(p->name_len))) in ext2_check_folio()
166 rec_len, p->name_len); in ext2_check_folio()
219 if (len != de->name_len) in ext2_match()
311 if (!dir_emit(ctx, de->name, de->name_len, in ext2_readdir()
483 unsigned short rec_len, name_len; in ext2_add_link() local
509 name_len = 0; in ext2_add_link()
524 name_len = EXT2_DIR_REC_LEN(de->name_len); in ext2_add_link()
528 if (rec_len >= name_len + reclen) in ext2_add_link()
544 ext2_dirent *de1 = (ext2_dirent *) ((char *) de + name_len); in ext2_add_link()
545 de1->rec_len = ext2_rec_len_to_disk(rec_len - name_len); in ext2_add_link()
[all …]
/linux/tools/lib/api/fs/
H A Dfs.c224 size_t name_len = strlen(fs->name); in fs__env_override() local
226 char upper_name[name_len + 5 + 1]; in fs__env_override()
228 memcpy(upper_name, fs->name, name_len); in fs__env_override()
229 mem_toupper(upper_name, name_len); in fs__env_override()
230 strcpy(&upper_name[name_len], "_PATH"); in fs__env_override()
260 size_t name_len = strlen(fs->name); in mount_overload() local
262 char upper_name[5 + name_len + 12 + 1]; in mount_overload()
264 snprintf(upper_name, name_len, "PERF_%s_ENVIRONMENT", fs->name); in mount_overload()
265 mem_toupper(upper_name, name_len); in mount_overload()
/linux/fs/smb/server/
H A Dmisc.c290 int no_slash = 0, name_len, path_len; in convert_to_unix_name() local
297 name_len = strlen(name); in convert_to_unix_name()
298 new_name = kmalloc(path_len + name_len + 2, KSMBD_DEFAULT_GFP); 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()
319 int sz = min(4 * d_info->name_len, PATH_MAX); in ksmbd_convert_dir_info_name()
330 d_info->name_len, local_nls, 0); in ksmbd_convert_dir_info_name()
/linux/tools/perf/util/
H A Dbpf-event.c133 int name_len; in synthesize_bpf_prog_name() local
135 name_len = snprintf(buf, size, "bpf_prog_"); in synthesize_bpf_prog_name()
136 name_len += snprintf_hex(buf + name_len, size - name_len, in synthesize_bpf_prog_name()
149 name_len += snprintf(buf + name_len, size - name_len, in synthesize_bpf_prog_name()
151 return name_len; in synthesize_bpf_prog_name()
245 int name_len; in perf_event__synthesize_one_bpf_prog() local
258 name_len = synthesize_bpf_prog_name(ksymbol_event->name, in perf_event__synthesize_one_bpf_prog()
260 ksymbol_event->header.size += PERF_ALIGN(name_len + 1, in perf_event__synthesize_one_bpf_prog()
/linux/net/bluetooth/
H A Deir.c178 size_t name_len; in eir_create() local
180 name_len = strnlen(hdev->dev_name, sizeof(hdev->dev_name)); in eir_create()
182 if (name_len > 0) { in eir_create()
184 if (name_len > 48) { in eir_create()
185 name_len = 48; in eir_create()
192 ptr[0] = name_len + 1; in eir_create()
194 memcpy(ptr + 2, hdev->dev_name, name_len); in eir_create()
196 ptr += (name_len + 2); in eir_create()
/linux/init/
H A Dinitramfs.c182 static __initdata unsigned long body_len, name_len; variable
209 name_len = parsed[11]; in parse_header()
291 next_header = this_header + N_ALIGN(name_len) + body_len; in do_header()
294 if (name_len <= 0 || name_len > PATH_MAX) in do_header()
300 remains = N_ALIGN(name_len) + body_len; in do_header()
306 read_into(name_buf, N_ALIGN(name_len), GotName); in do_header()
365 if (collected[name_len - 1] != '\0') { in do_name()
367 (int)name_len, collected); in do_name()
436 if (collected[name_len - 1] != '\0') { in do_symlink()
438 (int)name_len, collected); in do_symlink()
[all …]

123456789