/openbmc/u-boot/fs/btrfs/ |
H A D | dir-item.c | 23 end = start + sizeof(*item) + item->name_len; in verify_dir_item() 24 if (item->name_len > max_len || end > total) { in verify_dir_item() 26 item->name_len); in verify_dir_item() 35 int name_len) in btrfs_match_dir_item_name() argument 47 this_len = sizeof(*item) + item->name_len + item->data_len; in btrfs_match_dir_item_name() 52 if (item->name_len == name_len && !memcmp(name_ptr, name, in btrfs_match_dir_item_name() 53 name_len)) in btrfs_match_dir_item_name() 64 const char *name, int name_len, in btrfs_lookup_dir_item() argument 73 key.offset = btrfs_name_hash(name, name_len); in btrfs_lookup_dir_item() 81 res = btrfs_match_dir_item_name(&path, name, name_len); in btrfs_lookup_dir_item() [all …]
|
H A D | subvolume.c | 29 ptr -= rref.name_len + 1; in get_subvol_name() 33 memcpy(ptr + 1, tmp, rref.name_len); in get_subvol_name() 47 ptr -= iref.name_len + 1; in get_subvol_name() 51 memcpy(ptr + 1, tmp, iref.name_len); in get_subvol_name() 108 printf("%.*s\n", (int) ref->name_len, in list_subvols()
|
/openbmc/linux/fs/ntfs3/ |
H A D | attrlist.c | 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 265 name_len, ni->mi.sbi->upcase, in al_find_le_to_insert() 302 sz = le_size(name_len); in al_add_le() 332 le->name_len = name_len; in al_add_le() 337 memcpy(le->name, name, sizeof(short) * name_len); in al_add_le() 408 if (le->name_len != name_len) in al_delete_le() [all …]
|
H A D | xattr.c | 28 1 + ea->name_len + in unpacked_ea_size() 57 if (ea->name_len == name_len && in find_ea() 166 1 + ef->name_len + in ntfs_read_ea() 219 if (!ea->name_len) in ntfs_list_ea() 242 ret += ea->name_len + 1; in ntfs_list_ea() 268 if (name_len > 255) { in ntfs_get_ea() 339 if (name_len > 255) { in ntfs_set_ea() 416 new_ea->name_len = name_len; in ntfs_set_ea() 419 new_ea->name[name_len] = 0; in ntfs_set_ea() 548 size_t name_len; in ntfs_get_acl() local [all …]
|
/openbmc/linux/drivers/video/ |
H A D | cmdline.c | 36 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()
|
/openbmc/linux/fs/smb/client/ |
H A D | cifssmb.c | 683 name_len = in CIFSPOSIXDelFile() 894 name_len = in CIFSPOSIXCreate() 1060 name_len = in SMBLegacyOpen() 1174 name_len++; in CIFS_open() 2385 name_len = in CIFSUnixCreateSymLink() 2564 name_len = in CIFSCreateHardLink() 2626 name_len = in CIFSSMBUnixQuerySymLink() 3051 name_len = in cifs_do_get_acl() 3140 name_len = in cifs_do_set_acl() 5730 name_len = temp_fea->name_len; in CIFSSMBQAllEAs() [all …]
|
/openbmc/linux/fs/ceph/ |
H A D | crypto.c | 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() 283 iname.len = name_len; in ceph_encode_encrypted_dname() 385 int name_len = fname->name_len; in ceph_fname_to_usr() local 403 oname->len = fname->name_len; in ceph_fname_to_usr() 421 oname->len = fname->name_len; in ceph_fname_to_usr() [all …]
|
/openbmc/linux/net/ceph/ |
H A D | cls_lock_client.c | 32 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() 197 int name_len = strlen(lock_name); in ceph_cls_set_cookie() local 341 int name_len = strlen(lock_name); in ceph_cls_lock_info() local [all …]
|
/openbmc/linux/fs/btrfs/ |
H A D | xattr.c | 90 size_t name_len = strlen(name); in btrfs_setxattr() local 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() 206 data_ptr = ((unsigned long)(di + 1)) + name_len; in btrfs_setxattr() 325 u16 name_len = btrfs_dir_name_len(leaf, di); in btrfs_listxattr() local 330 total_size += name_len + 1; in btrfs_listxattr() 338 if (!buffer || (name_len + 1) > size_left) { in btrfs_listxattr() 344 buffer[name_len] = '\0'; in btrfs_listxattr() 346 size_left -= name_len + 1; in btrfs_listxattr() [all …]
|
H A D | dir-item.c | 28 int name_len) in insert_with_overflow() argument 59 const char *name, u16 name_len, in btrfs_insert_xattr_item() argument 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() 94 write_extent_buffer(leaf, name, name_ptr, name_len); in btrfs_insert_xattr_item() 181 int name_len, int mod) in btrfs_lookup_match_dir() argument 359 const char *name, u16 name_len, in btrfs_lookup_xattr() argument 367 key.offset = btrfs_name_hash(name, name_len); in btrfs_lookup_xattr() [all …]
|
/openbmc/linux/fs/afs/ |
H A D | vl_list.c | 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() 240 server = afs_alloc_vlserver(b, bs.name_len, bs.port); in afs_extract_vlserver_list() [all …]
|
/openbmc/linux/scripts/ |
H A 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";
|
/openbmc/linux/security/tomoyo/ |
H A 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()
|
/openbmc/u-boot/lib/efi_loader/ |
H A D | efi_variable.c | 269 unsigned long name_len; in parse_uboot_variable() local 284 name_len = end - name; in parse_uboot_variable() 285 if (*variable_name_size < (name_len + 1)) { in parse_uboot_variable() 286 *variable_name_size = name_len + 1; in parse_uboot_variable() 293 utf8_utf16_strncpy(&p, name, name_len); in parse_uboot_variable() 294 variable_name[name_len] = 0; in parse_uboot_variable() 295 *variable_name_size = name_len + 1; in parse_uboot_variable() 328 ssize_t name_len, list_len; in efi_get_next_variable_name() local 353 name_len = strlen(native_name); in efi_get_next_variable_name() 355 if (!strncmp(variable, native_name, name_len) && in efi_get_next_variable_name() [all …]
|
/openbmc/u-boot/arch/arc/lib/ |
H A D | cpu.c | 39 const char *arc_700_version(int arcver, char *name, int name_len) in arc_700_version() argument 60 snprintf(name, name_len, "ARC 700 %s", arc_ver); in arc_700_version() 81 const char *arc_em_version(int arcver, char *name, int name_len) in arc_em_version() argument 116 snprintf(name, name_len, "ARC %s %s", arc_name, arc_ver); in arc_em_version() 140 const char *arc_hs_version(int arcver, char *name, int name_len) in arc_hs_version() argument 180 snprintf(name, name_len, "ARC %s %s", arc_name, arc_ver); in arc_hs_version()
|
/openbmc/linux/fs/adfs/ |
H A 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()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A 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()
|
/openbmc/u-boot/drivers/video/ |
H A D | videomodes.c | 335 const int name_len = strlen(name); in video_get_option_string() local 339 if (strncmp(p, name, name_len) == 0 && p[name_len] == '=') { in video_get_option_string() 340 len = i - (name_len + 1); in video_get_option_string() 343 memcpy(dest, &p[name_len + 1], len); in video_get_option_string() 365 const int name_len = strlen(name); in video_get_option_int() local 369 if (strncmp(p, name, name_len) == 0 && p[name_len] == '=') in video_get_option_int() 370 return simple_strtoul(&p[name_len + 1], NULL, 10); in video_get_option_int()
|
/openbmc/u-boot/drivers/mtd/ubi/ |
H A D | vtbl.c | 143 vtbl_rec->name_len = cpu_to_be16(re->new_name_len); in ubi_vtbl_rename_volumes() 179 name_len = be16_to_cpu(vtbl[i].name_len); 200 name_len < 0) { 240 if (name_len > UBI_VOL_NAME_MAX) { 250 if (name_len != strnlen(name, name_len + 1)) { 259 int len1 = be16_to_cpu(vtbl[i].name_len); 260 int len2 = be16_to_cpu(vtbl[n].name_len); 551 vol->name_len = be16_to_cpu(vtbl[i].name_len); 553 memcpy(vol->name, vtbl[i].name, vol->name_len); 554 vol->name[vol->name_len] = '\0'; [all …]
|
H A D | vmt.c | 197 ubi->volumes[i]->name_len == req->name_len && in ubi_create_volume() 227 vol->name_len = req->name_len; in ubi_create_volume() 228 memcpy(vol->name, req->name, vol->name_len); in ubi_create_volume() 293 vtbl_rec.name_len = cpu_to_be16(vol->name_len); in ubi_create_volume() 563 vol->name_len = re->new_name_len; in ubi_rename_volumes() 668 vol->name_len < 0) { in self_check_volume() 711 if (vol->name_len > UBI_VOL_NAME_MAX) { in self_check_volume() 717 n = strnlen(vol->name, vol->name_len + 1); in self_check_volume() 718 if (n != vol->name_len) { in self_check_volume() 760 name_len = be16_to_cpu(ubi->vtbl[vol_id].name_len); in self_check_volume() [all …]
|
/openbmc/linux/drivers/mtd/ubi/ |
H A D | vtbl.c | 137 vtbl_rec->name_len = cpu_to_be16(re->new_name_len); in ubi_vtbl_rename_volumes() 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() 547 vol->name[vol->name_len] = '\0'; in init_volumes() [all …]
|
H A 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() 549 vol->name_len = re->new_name_len; in ubi_rename_volumes() 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() 702 if (n != vol->name_len) { in self_check_volume() 749 name_len = be16_to_cpu(ubi->vtbl[vol_id].name_len); in self_check_volume() [all …]
|
/openbmc/u-boot/fs/yaffs2/ |
H A D | yaffs_nameval.c | 171 int name_len; in nval_list() local 182 name_len = yaffs_strnlen((YCHAR *) (xb + pos), size); in nval_list() 183 if (ncopied + name_len + 1 < bsize) { in nval_list() 184 memcpy(buf, xb + pos, name_len * sizeof(YCHAR)); in nval_list() 185 buf += name_len; in nval_list() 192 ncopied += (name_len + 1); in nval_list()
|
/openbmc/linux/fs/ext2/ |
H A D | dir.c | 166 rec_len, p->name_len); in ext2_check_page() 219 if (len != de->name_len) in ext2_match() 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() 553 de->name_len = namelen; in ext2_add_link() 637 de->name_len = 1; in ext2_make_empty() 644 de->name_len = 2; in ext2_make_empty() 687 if (de->name_len > 2) in ext2_empty_dir() [all …]
|
/openbmc/linux/fs/nilfs2/ |
H A D | dir.c | 182 rec_len, p->name_len); in nilfs_check_page() 227 if (len != de->name_len) in nilfs_match() 482 unsigned short rec_len, name_len; in nilfs_add_link() local 510 name_len = 0; in nilfs_add_link() 525 name_len = NILFS_DIR_REC_LEN(de->name_len); in nilfs_add_link() 529 if (rec_len >= name_len + reclen) in nilfs_add_link() 553 de->name_len = namelen; in nilfs_add_link() 635 de->name_len = 1; in nilfs_make_empty() 642 de->name_len = 2; in nilfs_make_empty() 684 if (de->name_len > 2) in nilfs_empty_dir() [all …]
|