/linux-4.1.27/fs/9p/ |
H A D | xattr_security.c | 27 size_t name_len; v9fs_xattr_security_get() local 36 name_len = strlen(name); v9fs_xattr_security_get() 37 full_name = kmalloc(prefix_len + name_len + 1 , GFP_KERNEL); v9fs_xattr_security_get() 41 memcpy(full_name+prefix_len, name, name_len); v9fs_xattr_security_get() 42 full_name[prefix_len + name_len] = '\0'; v9fs_xattr_security_get() 54 size_t name_len; v9fs_xattr_security_set() local 63 name_len = strlen(name); v9fs_xattr_security_set() 64 full_name = kmalloc(prefix_len + name_len + 1 , GFP_KERNEL); v9fs_xattr_security_set() 68 memcpy(full_name + prefix_len, name, name_len); v9fs_xattr_security_set() 69 full_name[prefix_len + name_len] = '\0'; v9fs_xattr_security_set()
|
H A D | xattr_trusted.c | 27 size_t name_len; v9fs_xattr_trusted_get() local 36 name_len = strlen(name); v9fs_xattr_trusted_get() 37 full_name = kmalloc(prefix_len + name_len + 1 , GFP_KERNEL); v9fs_xattr_trusted_get() 41 memcpy(full_name+prefix_len, name, name_len); v9fs_xattr_trusted_get() 42 full_name[prefix_len + name_len] = '\0'; v9fs_xattr_trusted_get() 54 size_t name_len; v9fs_xattr_trusted_set() local 63 name_len = strlen(name); v9fs_xattr_trusted_set() 64 full_name = kmalloc(prefix_len + name_len + 1 , GFP_KERNEL); v9fs_xattr_trusted_set() 68 memcpy(full_name + prefix_len, name, name_len); v9fs_xattr_trusted_set() 69 full_name[prefix_len + name_len] = '\0'; v9fs_xattr_trusted_set()
|
H A D | xattr_user.c | 27 size_t name_len; v9fs_xattr_user_get() local 36 name_len = strlen(name); v9fs_xattr_user_get() 37 full_name = kmalloc(prefix_len + name_len + 1 , GFP_KERNEL); v9fs_xattr_user_get() 41 memcpy(full_name+prefix_len, name, name_len); v9fs_xattr_user_get() 42 full_name[prefix_len + name_len] = '\0'; v9fs_xattr_user_get() 54 size_t name_len; v9fs_xattr_user_set() local 63 name_len = strlen(name); v9fs_xattr_user_set() 64 full_name = kmalloc(prefix_len + name_len + 1 , GFP_KERNEL); v9fs_xattr_user_set() 68 memcpy(full_name + prefix_len, name, name_len); v9fs_xattr_user_set() 69 full_name[prefix_len + name_len] = '\0'; v9fs_xattr_user_set()
|
/linux-4.1.27/fs/reiserfs/ |
H A D | xattr_trusted.c | 37 const char *name, size_t name_len, int handler_flags) trusted_list() 39 const size_t len = name_len + 1; trusted_list() 45 memcpy(list, name, name_len); trusted_list() 46 list[name_len] = '\0'; trusted_list() 36 trusted_list(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int handler_flags) trusted_list() argument
|
H A D | xattr_user.c | 34 const char *name, size_t name_len, int handler_flags) user_list() 36 const size_t len = name_len + 1; user_list() 41 memcpy(list, name, name_len); user_list() 42 list[name_len] = '\0'; user_list() 33 user_list(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int handler_flags) user_list() argument
|
/linux-4.1.27/fs/ext2/ |
H A D | xattr_trusted.c | 13 const char *name, size_t name_len, int type) ext2_xattr_trusted_list() 16 const size_t total_len = prefix_len + name_len + 1; ext2_xattr_trusted_list() 23 memcpy(list+prefix_len, name, name_len); ext2_xattr_trusted_list() 24 list[prefix_len + name_len] = '\0'; ext2_xattr_trusted_list() 12 ext2_xattr_trusted_list(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) ext2_xattr_trusted_list() argument
|
H A D | xattr_user.c | 15 const char *name, size_t name_len, int type) ext2_xattr_user_list() 18 const size_t total_len = prefix_len + name_len + 1; ext2_xattr_user_list() 25 memcpy(list+prefix_len, name, name_len); ext2_xattr_user_list() 26 list[prefix_len + name_len] = '\0'; ext2_xattr_user_list() 14 ext2_xattr_user_list(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) ext2_xattr_user_list() argument
|
H A D | xattr_security.c | 12 const char *name, size_t name_len, int type) ext2_xattr_security_list() 15 const size_t total_len = prefix_len + name_len + 1; ext2_xattr_security_list() 19 memcpy(list+prefix_len, name, name_len); ext2_xattr_security_list() 20 list[prefix_len + name_len] = '\0'; ext2_xattr_security_list() 11 ext2_xattr_security_list(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) ext2_xattr_security_list() argument
|
H A D | dir.c | 145 if (unlikely(rec_len < EXT2_DIR_REC_LEN(p->name_len))) ext2_check_page() 173 error = "rec_len is too small for name_len"; ext2_check_page() 183 "offset=%lu, inode=%lu, rec_len=%d, name_len=%d", ext2_check_page() 186 rec_len, p->name_len); ext2_check_page() 229 if (len != de->name_len) ext2_match() 344 if (!dir_emit(ctx, de->name, de->name_len, ext2_readdir() 494 unsigned short rec_len, name_len; ext2_add_link() local 523 name_len = 0; ext2_add_link() 538 name_len = EXT2_DIR_REC_LEN(de->name_len); ext2_add_link() 542 if (rec_len >= name_len + reclen) ext2_add_link() 559 ext2_dirent *de1 = (ext2_dirent *) ((char *) de + name_len); ext2_add_link() 560 de1->rec_len = ext2_rec_len_to_disk(rec_len - name_len); ext2_add_link() 561 de->rec_len = ext2_rec_len_to_disk(name_len); ext2_add_link() 564 de->name_len = namelen; ext2_add_link() 648 de->name_len = 1; ext2_make_empty() 655 de->name_len = 2; ext2_make_empty() 701 if (de->name_len > 2) ext2_empty_dir() 703 if (de->name_len < 2) { ext2_empty_dir()
|
H A D | xattr.h | 47 #define EXT2_XATTR_LEN(name_len) \ 48 (((name_len) + EXT2_XATTR_ROUND + \
|
H A D | xattr.c | 154 size_t name_len, size; ext2_xattr_get() local 163 name_len = strlen(name); ext2_xattr_get() 164 if (name_len > 255) ext2_xattr_get() 196 name_len == entry->e_name_len && ext2_xattr_get() 197 memcmp(name, entry->e_name, name_len) == 0) ext2_xattr_get() 365 size_t name_len, free, min_offs = sb->s_blocksize; ext2_xattr_set() local 388 name_len = strlen(name); ext2_xattr_set() 389 if (name_len > 255 || value_len > sb->s_blocksize) ext2_xattr_set() 424 not_found = name_len - here->e_name_len; ext2_xattr_set() 426 not_found = memcmp(name, here->e_name,name_len); ext2_xattr_set() 475 free += EXT2_XATTR_LEN(name_len); ext2_xattr_set() 478 if (free < EXT2_XATTR_LEN(name_len) + EXT2_XATTR_SIZE(value_len)) ext2_xattr_set() 530 size_t size = EXT2_XATTR_LEN(name_len); ext2_xattr_set() 535 here->e_name_len = name_len; ext2_xattr_set() 536 memcpy(here->e_name, name, name_len); ext2_xattr_set() 573 size_t size = EXT2_XATTR_LEN(name_len); ext2_xattr_set()
|
H A D | ext2.h | 586 __le16 name_len; /* Name length */ member in struct:ext2_dir_entry 592 * stored in intel byte order, and the name_len field could never be 599 __u8 name_len; /* Name length */ member in struct:ext2_dir_entry_2 627 #define EXT2_DIR_REC_LEN(name_len) (((name_len) + 8 + EXT2_DIR_ROUND) & \
|
/linux-4.1.27/fs/ext3/ |
H A D | xattr_trusted.c | 13 const char *name, size_t name_len, int type) ext3_xattr_trusted_list() 16 const size_t total_len = prefix_len + name_len + 1; ext3_xattr_trusted_list() 23 memcpy(list+prefix_len, name, name_len); ext3_xattr_trusted_list() 24 list[prefix_len + name_len] = '\0'; ext3_xattr_trusted_list() 12 ext3_xattr_trusted_list(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) ext3_xattr_trusted_list() argument
|
H A D | xattr_user.c | 13 const char *name, size_t name_len, int type) ext3_xattr_user_list() 16 const size_t total_len = prefix_len + name_len + 1; ext3_xattr_user_list() 23 memcpy(list+prefix_len, name, name_len); ext3_xattr_user_list() 24 list[prefix_len + name_len] = '\0'; ext3_xattr_user_list() 12 ext3_xattr_user_list(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) ext3_xattr_user_list() argument
|
H A D | xattr_security.c | 12 const char *name, size_t name_len, int type) ext3_xattr_security_list() 15 const size_t total_len = prefix_len + name_len + 1; ext3_xattr_security_list() 20 memcpy(list+prefix_len, name, name_len); ext3_xattr_security_list() 21 list[prefix_len + name_len] = '\0'; ext3_xattr_security_list() 11 ext3_xattr_security_list(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) ext3_xattr_security_list() argument
|
H A D | dir.c | 74 else if (unlikely(rlen < EXT3_DIR_REC_LEN(de->name_len))) ext3_check_dir_entry() 75 error_msg = "rec_len is too small for name_len"; ext3_check_dir_entry() 85 "offset=%lu, inode=%lu, rec_len=%d, name_len=%d", ext3_check_dir_entry() 88 rlen, de->name_len); ext3_check_dir_entry() 190 if (!dir_emit(ctx, de->name, de->name_len, ext3_readdir() 301 __u8 name_len; member in struct:fname 359 len = sizeof(struct fname) + dirent->name_len + 1; ext3_htree_store_dirent() 366 new_fn->name_len = dirent->name_len; ext3_htree_store_dirent() 368 memcpy(new_fn->name, dirent->name, dirent->name_len); ext3_htree_store_dirent() 369 new_fn->name[dirent->name_len] = 0; ext3_htree_store_dirent() 421 if (!dir_emit(ctx, fname->name, fname->name_len, call_filldir()
|
H A D | xattr.h | 50 #define EXT3_XATTR_LEN(name_len) \ 51 (((name_len) + EXT3_XATTR_ROUND + \
|
H A D | xattr.c | 188 size_t name_len; ext3_xattr_find_entry() local 193 name_len = strlen(name); ext3_xattr_find_entry() 198 cmp = name_len - entry->e_name_len; ext3_xattr_find_entry() 200 cmp = memcmp(name, entry->e_name, name_len); ext3_xattr_find_entry() 529 size_t free, min_offs = s->end - s->base, name_len = strlen(i->name); ext3_xattr_set_entry() local 546 free += EXT3_XATTR_LEN(name_len); ext3_xattr_set_entry() 549 if (free < EXT3_XATTR_LEN(name_len) + ext3_xattr_set_entry() 556 size_t size = EXT3_XATTR_LEN(name_len); ext3_xattr_set_entry() 561 s->here->e_name_len = name_len; ext3_xattr_set_entry() 562 memcpy(s->here->e_name, i->name, name_len); ext3_xattr_set_entry() 602 size_t size = EXT3_XATTR_LEN(name_len); ext3_xattr_set_entry()
|
H A D | namei.c | 74 u8 name_len; member in struct:fake_dirent 272 int len = de->name_len; dx_show_leaf() 275 ext3fs_dirhash(de->name, de->name_len, &h); dx_show_leaf() 279 space += EXT3_DIR_REC_LEN(de->name_len); dx_show_leaf() 582 ext3fs_dirhash(de->name, de->name_len, hinfo); htree_dirblock_to_tree() 709 if (de->name_len && de->inode) { dx_make_map() 710 ext3fs_dirhash(de->name, de->name_len, &h); dx_make_map() 783 if (len != de->name_len) ext3_match() 1096 rec_len = EXT3_DIR_REC_LEN(de->name_len); dx_move_dirents() 1120 if (de->inode && de->name_len) { dx_pack_dirents() 1121 rec_len = EXT3_DIR_REC_LEN(de->name_len); dx_pack_dirents() 1268 nlen = EXT3_DIR_REC_LEN(de->name_len); add_dirent_to_buf() 1287 nlen = EXT3_DIR_REC_LEN(de->name_len); add_dirent_to_buf() 1301 de->name_len = namelen; add_dirent_to_buf() 1841 de->name_len = 1; ext3_mkdir() 1842 de->rec_len = ext3_rec_len_to_disk(EXT3_DIR_REC_LEN(de->name_len)); ext3_mkdir() 1849 de->name_len = 2; ext3_mkdir() 2477 old_de->name_len != old_dentry->d_name.len || ext3_rename() 2478 strncmp(old_de->name, old_dentry->d_name.name, old_de->name_len) || ext3_rename()
|
H A D | ext3.h | 829 __le16 name_len; /* Name length */ member in struct:ext3_dir_entry 835 * stored in intel byte order, and the name_len field could never be 842 __u8 name_len; /* Name length */ member in struct:ext3_dir_entry_2 869 #define EXT3_DIR_REC_LEN(name_len) (((name_len) + 8 + EXT3_DIR_ROUND) & \
|
/linux-4.1.27/fs/ext4/ |
H A D | xattr_trusted.c | 17 const char *name, size_t name_len, int type) ext4_xattr_trusted_list() 20 const size_t total_len = prefix_len + name_len + 1; ext4_xattr_trusted_list() 27 memcpy(list+prefix_len, name, name_len); ext4_xattr_trusted_list() 28 list[prefix_len + name_len] = '\0'; ext4_xattr_trusted_list() 16 ext4_xattr_trusted_list(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) ext4_xattr_trusted_list() argument
|
H A D | xattr_security.c | 16 const char *name, size_t name_len, int type) ext4_xattr_security_list() 19 const size_t total_len = prefix_len + name_len + 1; ext4_xattr_security_list() 24 memcpy(list+prefix_len, name, name_len); ext4_xattr_security_list() 25 list[prefix_len + name_len] = '\0'; ext4_xattr_security_list() 15 ext4_xattr_security_list(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) ext4_xattr_security_list() argument
|
H A D | xattr_user.c | 16 const char *name, size_t name_len, int type) ext4_xattr_user_list() 19 const size_t total_len = prefix_len + name_len + 1; ext4_xattr_user_list() 26 memcpy(list+prefix_len, name, name_len); ext4_xattr_user_list() 27 list[prefix_len + name_len] = '\0'; ext4_xattr_user_list() 15 ext4_xattr_user_list(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) ext4_xattr_user_list() argument
|
H A D | xattr.h | 55 #define EXT4_XATTR_LEN(name_len) \ 56 (((name_len) + EXT4_XATTR_ROUND + \
|
H A D | dir.c | 75 else if (unlikely(rlen < EXT4_DIR_REC_LEN(de->name_len))) __ext4_check_dir_entry() 76 error_msg = "rec_len is too small for name_len"; __ext4_check_dir_entry() 88 "inode=%u, rec_len=%d, name_len=%d", __ext4_check_dir_entry() 91 rlen, de->name_len); __ext4_check_dir_entry() 95 "inode=%u, rec_len=%d, name_len=%d", __ext4_check_dir_entry() 98 rlen, de->name_len); __ext4_check_dir_entry() 245 de->name_len, ext4_readdir() 374 __u8 name_len; member in struct:fname 445 new_fn->name_len = ent_name->len; ext4_htree_store_dirent() 503 fname->name_len, call_filldir() 623 nlen = EXT4_DIR_REC_LEN(de->name_len); ext4_check_all_de()
|
H A D | inline.c | 978 offset, de_len, de->name_len, de->name, ext4_show_inline_dir() 979 de->name_len, le32_to_cpu(de->inode)); ext4_show_inline_dir() 1369 fake.name_len = 1; htree_inlinedir_to_tree() 1372 EXT4_DIR_REC_LEN(fake.name_len), htree_inlinedir_to_tree() 1379 fake.name_len = 2; htree_inlinedir_to_tree() 1382 EXT4_DIR_REC_LEN(fake.name_len), htree_inlinedir_to_tree() 1398 ext4fs_dirhash(de->name, de->name_len, hinfo); htree_inlinedir_to_tree() 1406 tmp_str.len = de->name_len; htree_inlinedir_to_tree() 1547 if (!dir_emit(ctx, de->name, de->name_len, ext4_read_inline_dir() 1786 "inode %u, rec_len %u, name_len %d" empty_inline_dir() 1789 le16_to_cpu(de->rec_len), de->name_len, empty_inline_dir()
|
H A D | xattr.c | 251 size_t name_len; ext4_xattr_find_entry() local 256 name_len = strlen(name); ext4_xattr_find_entry() 261 cmp = name_len - entry->e_name_len; ext4_xattr_find_entry() 263 cmp = memcmp(name, entry->e_name, name_len); ext4_xattr_find_entry() 621 size_t free, min_offs = s->end - s->base, name_len = strlen(i->name); ext4_xattr_set_entry() local 638 free += EXT4_XATTR_LEN(name_len); ext4_xattr_set_entry() 641 if (free < EXT4_XATTR_LEN(name_len) + ext4_xattr_set_entry() 648 size_t size = EXT4_XATTR_LEN(name_len); ext4_xattr_set_entry() 653 s->here->e_name_len = name_len; ext4_xattr_set_entry() 654 memcpy(s->here->e_name, i->name, name_len); ext4_xattr_set_entry() 699 size_t size = EXT4_XATTR_LEN(name_len); ext4_xattr_set_entry()
|
H A D | namei.c | 172 u8 name_len; member in struct:fake_dirent 614 len = de->name_len; dx_show_leaf() 625 de->name_len, &h); dx_show_leaf() 633 ctx, de->name_len, dx_show_leaf() 656 ext4fs_dirhash(de->name, de->name_len, dx_show_leaf() 666 int len = de->name_len; dx_show_leaf() 668 ext4fs_dirhash(de->name, de->name_len, &h); dx_show_leaf() 673 space += EXT4_DIR_REC_LEN(de->name_len); dx_show_leaf() 1004 ext4fs_dirhash(de->name, de->name_len, hinfo); htree_dirblock_to_tree() 1014 tmp_str.len = de->name_len; htree_dirblock_to_tree() 1102 tmp_str.len = de->name_len; ext4_htree_fill_tree() 1113 tmp_str.len = de->name_len; ext4_htree_fill_tree() 1183 if (de->name_len && de->inode) { dx_make_map() 1184 ext4fs_dirhash(de->name, de->name_len, &h); dx_make_map() 1259 if (len != de->name_len) ext4_match() 1290 if ((char *) de + de->name_len <= dlimit) { search_dir() 1645 rec_len = EXT4_DIR_REC_LEN(de->name_len); dx_move_dirents() 1668 if (de->inode && de->name_len) { dx_pack_dirents() 1669 rec_len = EXT4_DIR_REC_LEN(de->name_len); dx_pack_dirents() 1841 nlen = EXT4_DIR_REC_LEN(de->name_len); ext4_find_dest_de() 1899 nlen = EXT4_DIR_REC_LEN(de->name_len); ext4_insert_dentry() 1911 de->name_len = tmp_str.len; ext4_insert_dentry() 2621 de->name_len = 1; ext4_init_dot_dotdot() 2622 de->rec_len = ext4_rec_len_to_disk(EXT4_DIR_REC_LEN(de->name_len), ext4_init_dot_dotdot() 2629 de->name_len = 2; ext4_init_dot_dotdot() 2636 EXT4_DIR_REC_LEN(de->name_len), blocksize); ext4_init_dot_dotdot() 3475 ent->de->name_len != ent->dentry->d_name.len || ext4_rename_delete() 3477 ent->de->name_len) || ext4_rename_delete()
|
H A D | crypto_fname.c | 577 .len = de->name_len }; ext4_fname_disk_to_usr() 704 if (de->name_len < 16) ext4_fname_match() 706 ret = memcmp(de->name + de->name_len - 16, ext4_fname_match() 711 if (de->name_len != cstr->len) ext4_fname_match()
|
H A D | ext4.h | 1710 __le16 name_len; /* Name length */ member in struct:ext4_dir_entry 1716 * stored in intel byte order, and the name_len field could never be 1723 __u8 name_len; /* Name length */ member in struct:ext4_dir_entry_2 1769 #define EXT4_DIR_REC_LEN(name_len) (((name_len) + 8 + EXT4_DIR_ROUND) & \
|
/linux-4.1.27/fs/btrfs/ |
H A D | inode-item.c | 26 int name_len, struct btrfs_inode_ref **ref_ret) find_name_in_backref() 44 if (len != name_len) find_name_in_backref() 46 if (memcmp_extent_buffer(leaf, name, name_ptr, name_len) == 0) { find_name_in_backref() 55 const char *name, int name_len, btrfs_find_name_in_ext_backref() 81 if (ref_name_len == name_len && btrfs_find_name_in_ext_backref() 83 (memcmp_extent_buffer(leaf, name, name_ptr, name_len) == 0)) { btrfs_find_name_in_ext_backref() 99 const char *name, int name_len, btrfs_lookup_inode_extref() 109 key.offset = btrfs_extref_hash(ref_objectid, name, name_len); btrfs_lookup_inode_extref() 116 if (!btrfs_find_name_in_ext_backref(path, ref_objectid, name, name_len, &extref)) btrfs_lookup_inode_extref() 123 const char *name, int name_len, btrfs_del_inode_extref() 132 int del_len = name_len + sizeof(*extref); btrfs_del_inode_extref() 139 key.offset = btrfs_extref_hash(ref_objectid, name, name_len); btrfs_del_inode_extref() 159 name, name_len, &extref)) { btrfs_del_inode_extref() 195 const char *name, int name_len, btrfs_del_inode_ref() 208 int del_len = name_len + sizeof(*ref); btrfs_del_inode_ref() 228 if (!find_name_in_backref(path, name, name_len, &ref)) { btrfs_del_inode_ref() 244 sub_item_len = name_len + sizeof(*ref); btrfs_del_inode_ref() 258 return btrfs_del_inode_extref(trans, root, name, name_len, btrfs_del_inode_ref() 272 const char *name, int name_len, btrfs_insert_inode_extref() 277 int ins_len = name_len + sizeof(*extref); btrfs_insert_inode_extref() 286 key.offset = btrfs_extref_hash(ref_objectid, name, name_len); btrfs_insert_inode_extref() 297 name, name_len, NULL)) btrfs_insert_inode_extref() 312 btrfs_set_inode_extref_name_len(path->nodes[0], extref, name_len); btrfs_insert_inode_extref() 317 write_extent_buffer(path->nodes[0], name, ptr, name_len); btrfs_insert_inode_extref() 328 const char *name, int name_len, btrfs_insert_inode_ref() 336 int ins_len = name_len + sizeof(*ref); btrfs_insert_inode_ref() 353 if (find_name_in_backref(path, name, name_len, &ref)) btrfs_insert_inode_ref() 361 btrfs_set_inode_ref_name_len(path->nodes[0], ref, name_len); btrfs_insert_inode_ref() 367 if (find_name_in_backref(path, name, name_len, &ref)) btrfs_insert_inode_ref() 376 btrfs_set_inode_ref_name_len(path->nodes[0], ref, name_len); btrfs_insert_inode_ref() 380 write_extent_buffer(path->nodes[0], name, ptr, name_len); btrfs_insert_inode_ref() 393 name_len, btrfs_insert_inode_ref() 25 find_name_in_backref(struct btrfs_path *path, const char *name, int name_len, struct btrfs_inode_ref **ref_ret) find_name_in_backref() argument 54 btrfs_find_name_in_ext_backref(struct btrfs_path *path, u64 ref_objectid, const char *name, int name_len, struct btrfs_inode_extref **extref_ret) btrfs_find_name_in_ext_backref() argument 96 btrfs_lookup_inode_extref(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, const char *name, int name_len, u64 inode_objectid, u64 ref_objectid, int ins_len, int cow) btrfs_lookup_inode_extref() argument 121 btrfs_del_inode_extref(struct btrfs_trans_handle *trans, struct btrfs_root *root, const char *name, int name_len, u64 inode_objectid, u64 ref_objectid, u64 *index) btrfs_del_inode_extref() argument 193 btrfs_del_inode_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root, const char *name, int name_len, u64 inode_objectid, u64 ref_objectid, u64 *index) btrfs_del_inode_ref() argument 270 btrfs_insert_inode_extref(struct btrfs_trans_handle *trans, struct btrfs_root *root, const char *name, int name_len, u64 inode_objectid, u64 ref_objectid, u64 index) btrfs_insert_inode_extref() argument 326 btrfs_insert_inode_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root, const char *name, int name_len, u64 inode_objectid, u64 ref_objectid, u64 index) btrfs_insert_inode_ref() argument
|
H A D | dir-item.c | 39 int name_len) insert_with_overflow() 49 di = btrfs_match_dir_item_name(root, path, name, name_len); insert_with_overflow() 71 const char *name, u16 name_len, btrfs_insert_xattr_item() 82 BUG_ON(name_len + data_len > BTRFS_MAX_XATTR_SIZE(root)); btrfs_insert_xattr_item() 86 key.offset = btrfs_name_hash(name, name_len); btrfs_insert_xattr_item() 88 data_size = sizeof(*dir_item) + name_len + data_len; btrfs_insert_xattr_item() 90 name, name_len); btrfs_insert_xattr_item() 99 btrfs_set_dir_name_len(leaf, dir_item, name_len); btrfs_insert_xattr_item() 103 data_ptr = (unsigned long)((char *)name_ptr + name_len); btrfs_insert_xattr_item() 105 write_extent_buffer(leaf, name, name_ptr, name_len); btrfs_insert_xattr_item() 121 *root, const char *name, int name_len, btrfs_insert_dir_item() 137 key.offset = btrfs_name_hash(name, name_len); btrfs_insert_dir_item() 146 data_size = sizeof(*dir_item) + name_len; btrfs_insert_dir_item() 148 name, name_len); btrfs_insert_dir_item() 160 btrfs_set_dir_name_len(leaf, dir_item, name_len); btrfs_insert_dir_item() 164 write_extent_buffer(leaf, name, name_ptr, name_len); btrfs_insert_dir_item() 175 ret2 = btrfs_insert_delayed_dir_index(trans, root, name, name_len, dir, btrfs_insert_dir_item() 194 const char *name, int name_len, btrfs_lookup_dir_item() 205 key.offset = btrfs_name_hash(name, name_len); btrfs_lookup_dir_item() 213 return btrfs_match_dir_item_name(root, path, name, name_len); btrfs_lookup_dir_item() 217 const char *name, int name_len) btrfs_check_dir_item_collision() 234 key.offset = btrfs_name_hash(name, name_len); btrfs_check_dir_item_collision() 249 di = btrfs_match_dir_item_name(root, path, name, name_len); btrfs_check_dir_item_collision() 260 data_size = sizeof(*di) + name_len; btrfs_check_dir_item_collision() 287 u64 objectid, const char *name, int name_len, btrfs_lookup_dir_index_item() 304 return btrfs_match_dir_item_name(root, path, name, name_len); btrfs_lookup_dir_index_item() 310 const char *name, int name_len) btrfs_search_dir_index_item() 345 di = btrfs_match_dir_item_name(root, path, name, name_len); btrfs_search_dir_index_item() 357 const char *name, u16 name_len, btrfs_lookup_xattr() 367 key.offset = btrfs_name_hash(name, name_len); btrfs_lookup_xattr() 374 return btrfs_match_dir_item_name(root, path, name, name_len); btrfs_lookup_xattr() 384 const char *name, int name_len) btrfs_match_dir_item_name() 405 if (btrfs_dir_name_len(leaf, dir_item) == name_len && btrfs_match_dir_item_name() 406 memcmp_extent_buffer(leaf, name, name_ptr, name_len) == 0) btrfs_match_dir_item_name() 32 insert_with_overflow(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, struct btrfs_key *cpu_key, u32 data_size, const char *name, int name_len) insert_with_overflow() argument 68 btrfs_insert_xattr_item(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 objectid, const char *name, u16 name_len, const void *data, u16 data_len) btrfs_insert_xattr_item() argument 120 btrfs_insert_dir_item(struct btrfs_trans_handle *trans, struct btrfs_root *root, const char *name, int name_len, struct inode *dir, struct btrfs_key *location, u8 type, u64 index) btrfs_insert_dir_item() argument 191 btrfs_lookup_dir_item(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 dir, const char *name, int name_len, int mod) btrfs_lookup_dir_item() argument 216 btrfs_check_dir_item_collision(struct btrfs_root *root, u64 dir, const char *name, int name_len) btrfs_check_dir_item_collision() argument 284 btrfs_lookup_dir_index_item(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 dir, u64 objectid, const char *name, int name_len, int mod) btrfs_lookup_dir_index_item() argument 308 btrfs_search_dir_index_item(struct btrfs_root *root, struct btrfs_path *path, u64 dirid, const char *name, int name_len) btrfs_search_dir_index_item() argument 354 btrfs_lookup_xattr(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 dir, const char *name, u16 name_len, int mod) btrfs_lookup_xattr() argument 382 btrfs_match_dir_item_name(struct btrfs_root *root, struct btrfs_path *path, const char *name, int name_len) btrfs_match_dir_item_name() argument
|
H A D | xattr.c | 98 size_t name_len = strlen(name); do_setxattr() local 101 if (name_len + size > BTRFS_MAX_XATTR_SIZE(root)) do_setxattr() 111 name, name_len, -1); do_setxattr() 131 name, name_len, 0); do_setxattr() 143 name, name_len, value, size); do_setxattr() 152 di = btrfs_match_dir_item_name(root, path, name, name_len); do_setxattr() 159 di = btrfs_match_dir_item_name(root, path, name, name_len); do_setxattr() 182 const u32 data_size = sizeof(*di) + name_len + size; do_setxattr() 195 if (old_data_len + name_len + sizeof(*di) == item_size) { do_setxattr() 215 data_ptr = ((unsigned long)(di + 1)) + name_len; do_setxattr() 272 size_t name_len; btrfs_listxattr() local 325 name_len = btrfs_dir_name_len(leaf, di); btrfs_listxattr() 326 total_size += name_len + 1; btrfs_listxattr() 332 if (!buffer || (name_len + 1) > size_left) { btrfs_listxattr() 338 read_extent_buffer(leaf, buffer, name_ptr, name_len); btrfs_listxattr() 339 buffer[name_len] = '\0'; btrfs_listxattr() 341 size_left -= name_len + 1; btrfs_listxattr() 342 buffer += name_len + 1; btrfs_listxattr()
|
H A D | props.c | 209 u32 name_len = btrfs_dir_name_len(leaf, di); iterate_object_props() local 214 this_len = sizeof(*di) + name_len + data_len; iterate_object_props() 216 data_ptr = name_ptr + name_len; iterate_object_props() 218 if (name_len <= XATTR_BTRFS_PREFIX_LEN || iterate_object_props() 224 if (name_len >= name_buf_len) { iterate_object_props() 226 name_buf_len = name_len + 1; iterate_object_props() 233 read_extent_buffer(leaf, name_buf, name_ptr, name_len); iterate_object_props() 234 name_buf[name_len] = '\0'; iterate_object_props()
|
H A D | tree-log.h | 71 const char *name, int name_len, 75 const char *name, int name_len,
|
H A D | export.c | 232 int name_len; btrfs_get_name() local 278 name_len = btrfs_root_ref_name_len(leaf, rref); btrfs_get_name() 283 name_len = btrfs_inode_ref_name_len(leaf, iref); btrfs_get_name() 286 read_extent_buffer(leaf, name, name_ptr, name_len); btrfs_get_name() 293 name[name_len] = '\0'; btrfs_get_name()
|
H A D | root-tree.c | 351 const char *name, int name_len) btrfs_del_root_ref() 378 WARN_ON(btrfs_root_ref_name_len(leaf, ref) != name_len); btrfs_del_root_ref() 380 WARN_ON(memcmp_extent_buffer(leaf, name, ptr, name_len)); btrfs_del_root_ref() 408 * The dirid, sequence, name and name_len refer to the directory entry 422 const char *name, int name_len) btrfs_add_root_ref() 440 sizeof(*ref) + name_len); btrfs_add_root_ref() 451 btrfs_set_root_ref_name_len(leaf, ref, name_len); btrfs_add_root_ref() 453 write_extent_buffer(leaf, name, ptr, name_len); btrfs_add_root_ref() 348 btrfs_del_root_ref(struct btrfs_trans_handle *trans, struct btrfs_root *tree_root, u64 root_id, u64 ref_id, u64 dirid, u64 *sequence, const char *name, int name_len) btrfs_del_root_ref() argument 419 btrfs_add_root_ref(struct btrfs_trans_handle *trans, struct btrfs_root *tree_root, u64 root_id, u64 ref_id, u64 dirid, u64 sequence, const char *name, int name_len) btrfs_add_root_ref() argument
|
H A D | send.c | 271 int name_len; member in struct:name_cache_entry 392 static int fs_path_prepare_for_add(struct fs_path *p, int name_len, fs_path_prepare_for_add() argument 398 new_len = p->end - p->start + name_len; fs_path_prepare_for_add() 408 p->start -= name_len; fs_path_prepare_for_add() 414 p->end += name_len; fs_path_prepare_for_add() 422 static int fs_path_add(struct fs_path *p, const char *name, int name_len) fs_path_add() argument 427 ret = fs_path_prepare_for_add(p, name_len, &prepared); fs_path_add() 430 memcpy(prepared, name, name_len); fs_path_add() 863 u32 name_len; iterate_inode_ref() local 901 name_len = btrfs_inode_ref_name_len(eb, iref); iterate_inode_ref() 907 name_len = btrfs_inode_extref_name_len(eb, extref); iterate_inode_ref() 914 start = btrfs_ref_to_path(root, tmp_path, name_len, iterate_inode_ref() 928 name_len, name_off, iterate_inode_ref() 940 name_len); iterate_inode_ref() 945 cur += elem_size + name_len; iterate_inode_ref() 959 const char *name, int name_len, 981 u32 name_len; iterate_dir_item() local 1013 name_len = btrfs_dir_name_len(eb, di); iterate_dir_item() 1019 if (name_len > XATTR_NAME_MAX) { iterate_dir_item() 1023 if (name_len + data_len > BTRFS_MAX_XATTR_SIZE(root)) { iterate_dir_item() 1031 if (name_len + data_len > PATH_MAX) { iterate_dir_item() 1037 if (name_len + data_len > buf_len) { iterate_dir_item() 1038 buf_len = name_len + data_len; iterate_dir_item() 1060 name_len + data_len); iterate_dir_item() 1062 len = sizeof(*di) + name_len + data_len; iterate_dir_item() 1066 ret = iterate(num, &di_key, buf, name_len, buf + name_len, iterate_dir_item() 1663 u64 dir, const char *name, int name_len, lookup_dir_item_inode() 1677 dir, name, name_len, 0); lookup_dir_item_inode() 1772 const char *name, int name_len) is_first_ref() 1786 if (dir != tmp_dir || name_len != fs_path_len(tmp_name)) { is_first_ref() 1791 ret = !memcmp(tmp_name->start, name, name_len); is_first_ref() 1809 const char *name, int name_len, will_overwrite_ref() 1842 ret = lookup_dir_item_inode(sctx->parent_root, dir, name, name_len, will_overwrite_ref() 1882 const char *name, int name_len) did_overwrite_ref() 1897 ret = lookup_dir_item_inode(sctx->send_root, dir, name, name_len, did_overwrite_ref() 2110 ret = fs_path_add(dest, nce->name, nce->name_len); __get_cur_name_and_parent() 2178 nce->name_len = fs_path_len(dest); __get_cur_name_and_parent() 2690 int name_len; member in struct:recorded_ref 2712 ref->name_len = ref->full_path->end - ref->name; __record_ref() 2718 ref->full_path->start - 1 - ref->name_len; __record_ref() 3306 key.offset = btrfs_name_hash(parent_ref->name, parent_ref->name_len); wait_for_dest_dir_move() 3317 parent_ref->name, parent_ref->name_len); wait_for_dest_dir_move() 3557 cur->name, cur->name_len, process_recorded_refs() 3564 cur->name_len); process_recorded_refs() 3699 cur->name, cur->name_len); process_recorded_refs() 4059 const char *name, int name_len, send_set_xattr() 4069 TLV_PUT_STRING(sctx, BTRFS_SEND_A_XATTR_NAME, name, name_len); send_set_xattr() 4081 const char *name, int name_len) send_remove_xattr() 4090 TLV_PUT_STRING(sctx, BTRFS_SEND_A_XATTR_NAME, name, name_len); send_remove_xattr() 4100 const char *name, int name_len, __process_new_xattr() 4119 if (!strncmp(name, XATTR_NAME_POSIX_ACL_ACCESS, name_len) || __process_new_xattr() 4120 !strncmp(name, XATTR_NAME_POSIX_ACL_DEFAULT, name_len)) { __process_new_xattr() 4133 ret = send_set_xattr(sctx, p, name, name_len, data, data_len); __process_new_xattr() 4141 const char *name, int name_len, __process_deleted_xattr() 4157 ret = send_remove_xattr(sctx, p, name, name_len); __process_deleted_xattr() 4186 int name_len; member in struct:find_xattr_ctx 4193 const char *name, int name_len, __find_xattr() 4199 if (name_len == ctx->name_len && __find_xattr() 4200 strncmp(name, ctx->name, name_len) == 0) { __find_xattr() 4214 const char *name, int name_len, find_xattr() 4221 ctx.name_len = name_len; find_xattr() 4243 const char *name, int name_len, __process_changed_new_xattr() 4253 sctx->cmp_key, name, name_len, &found_data, __process_changed_new_xattr() 4256 ret = __process_new_xattr(num, di_key, name, name_len, data, __process_changed_new_xattr() 4261 ret = __process_new_xattr(num, di_key, name, name_len, __process_changed_new_xattr() 4273 const char *name, int name_len, __process_changed_deleted_xattr() 4281 name, name_len, NULL, NULL); __process_changed_deleted_xattr() 4283 ret = __process_deleted_xattr(num, di_key, name, name_len, data, __process_changed_deleted_xattr() 1662 lookup_dir_item_inode(struct btrfs_root *root, u64 dir, const char *name, int name_len, u64 *found_inode, u8 *found_type) lookup_dir_item_inode() argument 1770 is_first_ref(struct btrfs_root *root, u64 ino, u64 dir, const char *name, int name_len) is_first_ref() argument 1808 will_overwrite_ref(struct send_ctx *sctx, u64 dir, u64 dir_gen, const char *name, int name_len, u64 *who_ino, u64 *who_gen) will_overwrite_ref() argument 1879 did_overwrite_ref(struct send_ctx *sctx, u64 dir, u64 dir_gen, u64 ino, u64 ino_gen, const char *name, int name_len) did_overwrite_ref() argument 4057 send_set_xattr(struct send_ctx *sctx, struct fs_path *path, const char *name, int name_len, const char *data, int data_len) send_set_xattr() argument 4079 send_remove_xattr(struct send_ctx *sctx, struct fs_path *path, const char *name, int name_len) send_remove_xattr() argument 4099 __process_new_xattr(int num, struct btrfs_key *di_key, const char *name, int name_len, const char *data, int data_len, u8 type, void *ctx) __process_new_xattr() argument 4140 __process_deleted_xattr(int num, struct btrfs_key *di_key, const char *name, int name_len, const char *data, int data_len, u8 type, void *ctx) __process_deleted_xattr() argument 4192 __find_xattr(int num, struct btrfs_key *di_key, const char *name, int name_len, const char *data, int data_len, u8 type, void *vctx) __find_xattr() argument 4211 find_xattr(struct btrfs_root *root, struct btrfs_path *path, struct btrfs_key *key, const char *name, int name_len, char **data, int *data_len) find_xattr() argument 4242 __process_changed_new_xattr(int num, struct btrfs_key *di_key, const char *name, int name_len, const char *data, int data_len, u8 type, void *ctx) __process_changed_new_xattr() argument 4272 __process_changed_deleted_xattr(int num, struct btrfs_key *di_key, const char *name, int name_len, const char *data, int data_len, u8 type, void *ctx) __process_changed_deleted_xattr() argument
|
H A D | tree-log.c | 782 int name_len; drop_one_dir_item() local 790 name_len = btrfs_dir_name_len(leaf, di); drop_one_dir_item() 791 name = kmalloc(name_len, GFP_NOFS); drop_one_dir_item() 795 read_extent_buffer(leaf, name, (unsigned long)(di + 1), name_len); drop_one_dir_item() 808 ret = btrfs_unlink_inode(trans, root, dir, inode, name, name_len); drop_one_dir_item() 827 const char *name, int name_len) inode_in_dir() 834 index, name, name_len, 0); inode_in_dir() 843 di = btrfs_lookup_dir_item(NULL, root, path, dirid, name, name_len, 0); inode_in_dir() 1294 int name_len; count_inode_extrefs() local 1317 name_len = btrfs_inode_extref_name_len(leaf, extref); count_inode_extrefs() 1321 cur_offset += name_len + sizeof(*extref); count_inode_extrefs() 1342 int name_len; count_inode_refs() local 1371 name_len = btrfs_inode_ref_name_len(path->nodes[0], count_inode_refs() 1373 ptr = (unsigned long)(ref + 1) + name_len; count_inode_refs() 1554 char *name, int name_len, u8 type, insert_one_name() 1571 ret = btrfs_add_link(trans, dir, inode, name, name_len, 1, index); insert_one_name() 1585 const char *name, const int name_len, name_in_log_ref() 1593 if (backref_in_log(log_root, &search_key, dirid, name, name_len)) name_in_log_ref() 1597 search_key.offset = btrfs_extref_hash(dirid, name, name_len); name_in_log_ref() 1598 if (backref_in_log(log_root, &search_key, dirid, name, name_len)) name_in_log_ref() 1625 int name_len; replay_one_name() local 1639 name_len = btrfs_dir_name_len(eb, di); replay_one_name() 1640 name = kmalloc(name_len, GFP_NOFS); replay_one_name() 1648 name_len); replay_one_name() 1660 name, name_len, 1); replay_one_name() 1665 name_len, 1); replay_one_name() 1706 btrfs_i_size_write(dir, dir->i_size + name_len * 2); replay_one_name() 1714 if (name_in_log_ref(root->log_root, name, name_len, replay_one_name() 1723 name, name_len, log_type, &log_key); replay_one_name() 1746 int name_len; replay_one_dir_item() local 1756 name_len = btrfs_dir_name_len(eb, di); replay_one_dir_item() 1761 ptr += name_len; replay_one_dir_item() 1868 int name_len; check_item_in_log() local 1888 name_len = btrfs_dir_name_len(eb, di); check_item_in_log() 1889 name = kmalloc(name_len, GFP_NOFS); check_item_in_log() 1895 name_len); check_item_in_log() 1900 name, name_len, 0); check_item_in_log() 1906 name, name_len, 0); check_item_in_log() 1928 name, name_len); check_item_in_log() 1953 ptr += name_len; check_item_in_log() 2004 u16 name_len = btrfs_dir_name_len(path->nodes[0], di); replay_xattr_deletes() local 2006 u32 this_len = sizeof(*di) + name_len + data_len; replay_xattr_deletes() 2009 name = kmalloc(name_len, GFP_NOFS); replay_xattr_deletes() 2015 (unsigned long)(di + 1), name_len); replay_xattr_deletes() 2018 name, name_len, 0); replay_xattr_deletes() 2024 name, name_len, -1); replay_xattr_deletes() 2956 const char *name, int name_len, btrfs_del_dir_entries_in_log() 2984 name, name_len, -1); btrfs_del_dir_entries_in_log() 2991 bytes_del += name_len; btrfs_del_dir_entries_in_log() 2999 index, name, name_len, -1); btrfs_del_dir_entries_in_log() 3006 bytes_del += name_len; btrfs_del_dir_entries_in_log() 3064 const char *name, int name_len, btrfs_del_inode_ref_in_log() 3080 ret = btrfs_del_inode_ref(trans, log, name, name_len, btrfs_ino(inode), btrfs_del_inode_ref_in_log() 4357 u32 name_len = 0; btrfs_check_ref_name_override() local 4394 if (this_name_len > name_len) { btrfs_check_ref_name_override() 4402 name_len = this_name_len; btrfs_check_ref_name_override() 824 inode_in_dir(struct btrfs_root *root, struct btrfs_path *path, u64 dirid, u64 objectid, u64 index, const char *name, int name_len) inode_in_dir() argument 1550 insert_one_name(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 dirid, u64 index, char *name, int name_len, u8 type, struct btrfs_key *location) insert_one_name() argument 1584 name_in_log_ref(struct btrfs_root *log_root, const char *name, const int name_len, const u64 dirid, const u64 ino) name_in_log_ref() argument 2954 btrfs_del_dir_entries_in_log(struct btrfs_trans_handle *trans, struct btrfs_root *root, const char *name, int name_len, struct inode *dir, u64 index) btrfs_del_dir_entries_in_log() argument 3062 btrfs_del_inode_ref_in_log(struct btrfs_trans_handle *trans, struct btrfs_root *root, const char *name, int name_len, struct inode *inode, u64 dirid) btrfs_del_inode_ref_in_log() argument
|
H A D | backref.h | 58 u32 name_len, unsigned long name_off,
|
H A D | backref.c | 1349 u32 name_len, unsigned long name_off, btrfs_ref_to_path() 1367 bytes_left -= name_len; btrfs_ref_to_path() 1370 name_off, name_len); btrfs_ref_to_path() 1401 name_len = btrfs_inode_ref_name_len(eb, iref); btrfs_ref_to_path() 1711 typedef int (iterate_irefs_t)(u64 parent, u32 name_len, unsigned long name_off, 1722 u32 name_len; iterate_inode_refs() local 1759 name_len = btrfs_inode_ref_name_len(eb, iref); iterate_inode_refs() 1764 ret = iterate(parent, name_len, iterate_inode_refs() 1768 len = sizeof(*iref) + name_len; iterate_inode_refs() 1823 u32 name_len; iterate_inode_extrefs() local 1827 name_len = btrfs_inode_extref_name_len(eb, extref); iterate_inode_extrefs() 1828 ret = iterate(parent, name_len, iterate_inode_extrefs() 1871 static int inode_to_path(u64 inum, u32 name_len, unsigned long name_off, inode_to_path() argument 1885 fspath = btrfs_ref_to_path(ipath->fs_root, ipath->btrfs_path, name_len, inode_to_path() 1348 btrfs_ref_to_path(struct btrfs_root *fs_root, struct btrfs_path *path, u32 name_len, unsigned long name_off, struct extent_buffer *eb_in, u64 parent, char *dest, u32 size) btrfs_ref_to_path() argument
|
H A D | ctree.h | 691 __le16 name_len; member in struct:btrfs_inode_ref 698 __le16 name_len; member in struct:btrfs_inode_extref 753 __le16 name_len; member in struct:btrfs_dir_item 816 __le16 name_len; member in struct:btrfs_root_ref 2466 BTRFS_SETGET_FUNCS(inode_ref_name_len, struct btrfs_inode_ref, name_len, 16); 2473 name_len, 16); 2707 BTRFS_SETGET_FUNCS(root_ref_name_len, struct btrfs_root_ref, name_len, 16); 2712 BTRFS_SETGET_FUNCS(dir_name_len, struct btrfs_dir_item, name_len, 16); 2718 name_len, 16); 3702 const char *name, int name_len); 3706 const char *name, int name_len); 3739 const char *name, int name_len); 3742 int name_len, struct inode *dir, 3747 const char *name, int name_len, 3753 u64 objectid, const char *name, int name_len, 3758 const char *name, int name_len); 3766 const char *name, u16 name_len, 3771 const char *name, u16 name_len, 3779 int name_len); 3791 const char *name, int name_len, 3795 const char *name, int name_len, 3808 const char *name, int name_len, 3814 int name_len, 3889 const char *name, int name_len); 3892 const char *name, int name_len, int add_backref, u64 index); 3896 const char *name, int name_len);
|
H A D | delayed-inode.h | 103 int name_len, struct inode *dir,
|
H A D | delayed-inode.c | 1457 int name_len, struct inode *dir, btrfs_insert_delayed_dir_index() 1470 delayed_item = btrfs_alloc_delayed_item(sizeof(*dir_item) + name_len); btrfs_insert_delayed_dir_index() 1484 btrfs_set_stack_dir_name_len(dir_item, name_len); btrfs_insert_delayed_dir_index() 1486 memcpy((char *)(dir_item + 1), name, name_len); btrfs_insert_delayed_dir_index() 1502 name_len, name, delayed_node->root->objectid, btrfs_insert_delayed_dir_index() 1699 int name_len; btrfs_readdir_delayed_dir_index() local 1724 name_len = btrfs_stack_dir_name_len(di); list_for_each_entry_safe() 1729 over = !dir_emit(ctx, name, name_len, list_for_each_entry_safe() 1455 btrfs_insert_delayed_dir_index(struct btrfs_trans_handle *trans, struct btrfs_root *root, const char *name, int name_len, struct inode *dir, struct btrfs_disk_key *disk_key, u8 type, u64 index) btrfs_insert_delayed_dir_index() argument
|
H A D | inode.c | 3864 const char *name, int name_len) __btrfs_unlink_inode() 3883 name, name_len, -1); __btrfs_unlink_inode() 3917 ret = btrfs_del_inode_ref(trans, root, name, name_len, ino, __btrfs_unlink_inode() 3922 name_len, name, ino, dir_ino); __btrfs_unlink_inode() 3933 ret = btrfs_del_inode_ref_in_log(trans, root, name, name_len, __btrfs_unlink_inode() 3940 ret = btrfs_del_dir_entries_in_log(trans, root, name, name_len, __btrfs_unlink_inode() 3951 btrfs_i_size_write(dir, dir->i_size - name_len * 2); __btrfs_unlink_inode() 3963 const char *name, int name_len) btrfs_unlink_inode() 3966 ret = __btrfs_unlink_inode(trans, root, dir, inode, name, name_len); btrfs_unlink_inode() 4051 const char *name, int name_len) btrfs_unlink_subvol() 4066 name, name_len, -1); btrfs_unlink_subvol() 4087 dir_ino, &index, name, name_len); btrfs_unlink_subvol() 4094 name, name_len); btrfs_unlink_subvol() 4117 btrfs_i_size_write(dir, dir->i_size - name_len * 2); btrfs_unlink_subvol() 5667 int name_len; btrfs_real_readdir() local 5738 name_len = btrfs_dir_name_len(leaf, di); btrfs_real_readdir() 5739 if (name_len <= sizeof(tmp_name)) { btrfs_real_readdir() 5742 name_ptr = kmalloc(name_len, GFP_NOFS); btrfs_real_readdir() 5749 (unsigned long)(di + 1), name_len); btrfs_real_readdir() 5769 over = !dir_emit(ctx, name_ptr, name_len, btrfs_real_readdir() 6018 const char *name, int name_len, btrfs_new_inode() 6104 sizes[1] = name_len + sizeof(*ref); btrfs_new_inode() 6138 btrfs_set_inode_ref_name_len(path->nodes[0], ref, name_len); btrfs_new_inode() 6141 write_extent_buffer(path->nodes[0], name, ptr, name_len); btrfs_new_inode() 6195 const char *name, int name_len, int add_backref, u64 index) btrfs_add_link() 6214 parent_ino, index, name, name_len); btrfs_add_link() 6216 ret = btrfs_insert_inode_ref(trans, root, name, name_len, ino, btrfs_add_link() 6224 ret = btrfs_insert_dir_item(trans, root, name, name_len, btrfs_add_link() 6235 name_len * 2); btrfs_add_link() 6249 parent_ino, &local_index, name, name_len); btrfs_add_link() 6255 err = btrfs_del_inode_ref(trans, root, name, name_len, btrfs_add_link() 9510 int name_len; btrfs_symlink() local 9516 name_len = strlen(symname); btrfs_symlink() 9517 if (name_len > BTRFS_MAX_INLINE_DATA_SIZE(root)) btrfs_symlink() 9570 datasize = btrfs_file_extent_calc_inline_size(name_len); btrfs_symlink() 9586 btrfs_set_file_extent_ram_bytes(leaf, ei, name_len); btrfs_symlink() 9589 write_extent_buffer(leaf, symname, ptr, name_len); btrfs_symlink() 9595 inode_set_bytes(inode, name_len); btrfs_symlink() 9596 btrfs_i_size_write(inode, name_len); btrfs_symlink() 3861 __btrfs_unlink_inode(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *dir, struct inode *inode, const char *name, int name_len) __btrfs_unlink_inode() argument 3960 btrfs_unlink_inode(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *dir, struct inode *inode, const char *name, int name_len) btrfs_unlink_inode() argument 4048 btrfs_unlink_subvol(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *dir, u64 objectid, const char *name, int name_len) btrfs_unlink_subvol() argument 6015 btrfs_new_inode(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *dir, const char *name, int name_len, u64 ref_objectid, u64 objectid, umode_t mode, u64 *index) btrfs_new_inode() argument 6193 btrfs_add_link(struct btrfs_trans_handle *trans, struct inode *parent_inode, struct inode *inode, const char *name, int name_len, int add_backref, u64 index) btrfs_add_link() argument
|
/linux-4.1.27/drivers/video/fbdev/core/ |
H A D | fb_cmdline.c | 39 int name_len = strlen(name), i; fb_get_options() local 41 if (name_len && ofonly && strncmp(name, "offb", 4)) fb_get_options() 44 if (name_len && !retval) { fb_get_options() 51 if (!strncmp(name, opt, name_len) && fb_get_options() 52 opt[name_len] == ':') fb_get_options() 53 options = opt + name_len + 1; fb_get_options()
|
/linux-4.1.27/fs/cifs/ |
H A D | cifssmb.c | 793 int name_len; CIFSPOSIXDelFile() local 806 name_len = CIFSPOSIXDelFile() 809 name_len++; /* trailing null */ CIFSPOSIXDelFile() 810 name_len *= 2; CIFSPOSIXDelFile() 812 name_len = strnlen(fileName, PATH_MAX); CIFSPOSIXDelFile() 813 name_len++; /* trailing null */ CIFSPOSIXDelFile() 814 strncpy(pSMB->FileName, fileName, name_len); CIFSPOSIXDelFile() 817 params = 6 + name_len; CIFSPOSIXDelFile() 869 int name_len; CIFSSMBDelFile() local 879 name_len = cifsConvertToUTF16((__le16 *) pSMB->fileName, name, CIFSSMBDelFile() 882 name_len++; /* trailing null */ CIFSSMBDelFile() 883 name_len *= 2; CIFSSMBDelFile() 885 name_len = strnlen(name, PATH_MAX); CIFSSMBDelFile() 886 name_len++; /* trailing null */ CIFSSMBDelFile() 887 strncpy(pSMB->fileName, name, name_len); CIFSSMBDelFile() 892 inc_rfc1001_len(pSMB, name_len + 1); CIFSSMBDelFile() 893 pSMB->ByteCount = cpu_to_le16(name_len + 1); CIFSSMBDelFile() 915 int name_len; CIFSSMBRmDir() local 926 name_len = cifsConvertToUTF16((__le16 *) pSMB->DirName, name, CIFSSMBRmDir() 929 name_len++; /* trailing null */ CIFSSMBRmDir() 930 name_len *= 2; CIFSSMBRmDir() 932 name_len = strnlen(name, PATH_MAX); CIFSSMBRmDir() 933 name_len++; /* trailing null */ CIFSSMBRmDir() 934 strncpy(pSMB->DirName, name, name_len); CIFSSMBRmDir() 938 inc_rfc1001_len(pSMB, name_len + 1); CIFSSMBRmDir() 939 pSMB->ByteCount = cpu_to_le16(name_len + 1); CIFSSMBRmDir() 960 int name_len; CIFSSMBMkDir() local 971 name_len = cifsConvertToUTF16((__le16 *) pSMB->DirName, name, CIFSSMBMkDir() 974 name_len++; /* trailing null */ CIFSSMBMkDir() 975 name_len *= 2; CIFSSMBMkDir() 977 name_len = strnlen(name, PATH_MAX); CIFSSMBMkDir() 978 name_len++; /* trailing null */ CIFSSMBMkDir() 979 strncpy(pSMB->DirName, name, name_len); CIFSSMBMkDir() 983 inc_rfc1001_len(pSMB, name_len + 1); CIFSSMBMkDir() 984 pSMB->ByteCount = cpu_to_le16(name_len + 1); CIFSSMBMkDir() 1006 int name_len; CIFSPOSIXCreate() local 1021 name_len = CIFSPOSIXCreate() 1024 name_len++; /* trailing null */ CIFSPOSIXCreate() 1025 name_len *= 2; CIFSPOSIXCreate() 1027 name_len = strnlen(name, PATH_MAX); CIFSPOSIXCreate() 1028 name_len++; /* trailing null */ CIFSPOSIXCreate() 1029 strncpy(pSMB->FileName, name, name_len); CIFSPOSIXCreate() 1032 params = 6 + name_len; CIFSPOSIXCreate() 1175 int name_len; SMBLegacyOpen() local 1188 name_len = SMBLegacyOpen() 1191 name_len++; /* trailing null */ SMBLegacyOpen() 1192 name_len *= 2; SMBLegacyOpen() 1195 name_len = strnlen(fileName, PATH_MAX); SMBLegacyOpen() 1196 name_len++; /* trailing null */ SMBLegacyOpen() 1197 strncpy(pSMB->fileName, fileName, name_len); SMBLegacyOpen() 1226 count += name_len; SMBLegacyOpen() 1279 int name_len; CIFS_open() local 1302 name_len = cifsConvertToUTF16((__le16 *)(req->fileName + 1), CIFS_open() 1305 name_len++; CIFS_open() 1306 name_len *= 2; CIFS_open() 1307 req->NameLength = cpu_to_le16(name_len); CIFS_open() 1312 name_len = strnlen(path, PATH_MAX); CIFS_open() 1314 name_len++; CIFS_open() 1315 req->NameLength = cpu_to_le16(name_len); CIFS_open() 1316 strncpy(req->fileName, path, name_len); CIFS_open() 1354 count += name_len; CIFS_open() 2588 int name_len, name_len2; CIFSSMBRename() local 2605 name_len = cifsConvertToUTF16((__le16 *) pSMB->OldFileName, CIFSSMBRename() 2608 name_len++; /* trailing null */ CIFSSMBRename() 2609 name_len *= 2; CIFSSMBRename() 2610 pSMB->OldFileName[name_len] = 0x04; /* pad */ CIFSSMBRename() 2612 pSMB->OldFileName[name_len + 1] = 0x00; CIFSSMBRename() 2614 cifsConvertToUTF16((__le16 *)&pSMB->OldFileName[name_len+2], CIFSSMBRename() 2620 name_len = strnlen(from_name, PATH_MAX); CIFSSMBRename() 2621 name_len++; /* trailing null */ CIFSSMBRename() 2622 strncpy(pSMB->OldFileName, from_name, name_len); CIFSSMBRename() 2625 pSMB->OldFileName[name_len] = 0x04; /* 2nd buffer format */ CIFSSMBRename() 2626 strncpy(&pSMB->OldFileName[name_len + 1], to_name, name_len2); CIFSSMBRename() 2631 count = 1 /* 1st signature byte */ + name_len + name_len2; CIFSSMBRename() 2740 int name_len, name_len2; CIFSSMBCopy() local 2756 name_len = cifsConvertToUTF16((__le16 *) pSMB->OldFileName, CIFSSMBCopy() 2759 name_len++; /* trailing null */ CIFSSMBCopy() 2760 name_len *= 2; CIFSSMBCopy() 2761 pSMB->OldFileName[name_len] = 0x04; /* pad */ CIFSSMBCopy() 2763 pSMB->OldFileName[name_len + 1] = 0x00; CIFSSMBCopy() 2765 cifsConvertToUTF16((__le16 *)&pSMB->OldFileName[name_len+2], CIFSSMBCopy() 2770 name_len = strnlen(fromName, PATH_MAX); CIFSSMBCopy() 2771 name_len++; /* trailing null */ CIFSSMBCopy() 2772 strncpy(pSMB->OldFileName, fromName, name_len); CIFSSMBCopy() 2775 pSMB->OldFileName[name_len] = 0x04; /* 2nd buffer format */ CIFSSMBCopy() 2776 strncpy(&pSMB->OldFileName[name_len + 1], toName, name_len2); CIFSSMBCopy() 2781 count = 1 /* 1st signature byte */ + name_len + name_len2; CIFSSMBCopy() 2807 int name_len; CIFSUnixCreateSymLink() local 2821 name_len = CIFSUnixCreateSymLink() 2825 name_len++; /* trailing null */ CIFSUnixCreateSymLink() 2826 name_len *= 2; CIFSUnixCreateSymLink() 2829 name_len = strnlen(fromName, PATH_MAX); CIFSUnixCreateSymLink() 2830 name_len++; /* trailing null */ CIFSUnixCreateSymLink() 2831 strncpy(pSMB->FileName, fromName, name_len); CIFSUnixCreateSymLink() 2833 params = 6 + name_len; CIFSUnixCreateSymLink() 2897 int name_len; CIFSUnixCreateHardLink() local 2911 name_len = cifsConvertToUTF16((__le16 *) pSMB->FileName, toName, CIFSUnixCreateHardLink() 2913 name_len++; /* trailing null */ CIFSUnixCreateHardLink() 2914 name_len *= 2; CIFSUnixCreateHardLink() 2917 name_len = strnlen(toName, PATH_MAX); CIFSUnixCreateHardLink() 2918 name_len++; /* trailing null */ CIFSUnixCreateHardLink() 2919 strncpy(pSMB->FileName, toName, name_len); CIFSUnixCreateHardLink() 2921 params = 6 + name_len; CIFSUnixCreateHardLink() 2984 int name_len, name_len2; CIFSCreateHardLink() local 3005 name_len = CIFSCreateHardLink() 3008 name_len++; /* trailing null */ CIFSCreateHardLink() 3009 name_len *= 2; CIFSCreateHardLink() 3012 pSMB->OldFileName[name_len] = 0x04; CIFSCreateHardLink() 3013 pSMB->OldFileName[name_len + 1] = 0x00; /* pad */ CIFSCreateHardLink() 3015 cifsConvertToUTF16((__le16 *)&pSMB->OldFileName[name_len+2], CIFSCreateHardLink() 3021 name_len = strnlen(from_name, PATH_MAX); CIFSCreateHardLink() 3022 name_len++; /* trailing null */ CIFSCreateHardLink() 3023 strncpy(pSMB->OldFileName, from_name, name_len); CIFSCreateHardLink() 3026 pSMB->OldFileName[name_len] = 0x04; /* 2nd buffer format */ CIFSCreateHardLink() 3027 strncpy(&pSMB->OldFileName[name_len + 1], to_name, name_len2); CIFSCreateHardLink() 3032 count = 1 /* string type byte */ + name_len + name_len2; CIFSCreateHardLink() 3059 int name_len; CIFSSMBUnixQuerySymLink() local 3072 name_len = CIFSSMBUnixQuerySymLink() 3076 name_len++; /* trailing null */ CIFSSMBUnixQuerySymLink() 3077 name_len *= 2; CIFSSMBUnixQuerySymLink() 3079 name_len = strnlen(searchName, PATH_MAX); CIFSSMBUnixQuerySymLink() 3080 name_len++; /* trailing null */ CIFSSMBUnixQuerySymLink() 3081 strncpy(pSMB->FileName, searchName, name_len); CIFSSMBUnixQuerySymLink() 3084 params = 2 /* level */ + 4 /* rsrvd */ + name_len /* incl null */ ; CIFSSMBUnixQuerySymLink() 3484 int name_len; CIFSSMBGetPosixACL() local 3496 name_len = CIFSSMBGetPosixACL() 3500 name_len++; /* trailing null */ CIFSSMBGetPosixACL() 3501 name_len *= 2; CIFSSMBGetPosixACL() 3502 pSMB->FileName[name_len] = 0; CIFSSMBGetPosixACL() 3503 pSMB->FileName[name_len+1] = 0; CIFSSMBGetPosixACL() 3505 name_len = strnlen(searchName, PATH_MAX); CIFSSMBGetPosixACL() 3506 name_len++; /* trailing null */ CIFSSMBGetPosixACL() 3507 strncpy(pSMB->FileName, searchName, name_len); CIFSSMBGetPosixACL() 3510 params = 2 /* level */ + 4 /* rsrvd */ + name_len /* incl null */ ; CIFSSMBGetPosixACL() 3572 int name_len; CIFSSMBSetPosixACL() local 3584 name_len = CIFSSMBSetPosixACL() 3587 name_len++; /* trailing null */ CIFSSMBSetPosixACL() 3588 name_len *= 2; CIFSSMBSetPosixACL() 3590 name_len = strnlen(fileName, PATH_MAX); CIFSSMBSetPosixACL() 3591 name_len++; /* trailing null */ CIFSSMBSetPosixACL() 3592 strncpy(pSMB->FileName, fileName, name_len); CIFSSMBSetPosixACL() 3594 params = 6 + name_len; CIFSSMBSetPosixACL() 3981 int name_len; SMBQueryInformation() local 3991 name_len = SMBQueryInformation() 3995 name_len++; /* trailing null */ SMBQueryInformation() 3996 name_len *= 2; SMBQueryInformation() 3998 name_len = strnlen(search_name, PATH_MAX); SMBQueryInformation() 3999 name_len++; /* trailing null */ SMBQueryInformation() 4000 strncpy(pSMB->FileName, search_name, name_len); SMBQueryInformation() 4003 name_len++; /* account for buffer type byte */ SMBQueryInformation() 4004 inc_rfc1001_len(pSMB, (__u16)name_len); SMBQueryInformation() 4005 pSMB->ByteCount = cpu_to_le16(name_len); SMBQueryInformation() 4119 int name_len; CIFSSMBQPathInfo() local 4130 name_len = CIFSSMBQPathInfo() 4133 name_len++; /* trailing null */ CIFSSMBQPathInfo() 4134 name_len *= 2; CIFSSMBQPathInfo() 4136 name_len = strnlen(search_name, PATH_MAX); CIFSSMBQPathInfo() 4137 name_len++; /* trailing null */ CIFSSMBQPathInfo() 4138 strncpy(pSMB->FileName, search_name, name_len); CIFSSMBQPathInfo() 4141 params = 2 /* level */ + 4 /* reserved */ + name_len /* includes NUL */; CIFSSMBQPathInfo() 4288 int name_len; CIFSSMBUnixQPathInfo() local 4299 name_len = CIFSSMBUnixQPathInfo() 4302 name_len++; /* trailing null */ CIFSSMBUnixQPathInfo() 4303 name_len *= 2; CIFSSMBUnixQPathInfo() 4305 name_len = strnlen(searchName, PATH_MAX); CIFSSMBUnixQPathInfo() 4306 name_len++; /* trailing null */ CIFSSMBUnixQPathInfo() 4307 strncpy(pSMB->FileName, searchName, name_len); CIFSSMBUnixQPathInfo() 4310 params = 2 /* level */ + 4 /* reserved */ + name_len /* includes NUL */; CIFSSMBUnixQPathInfo() 4373 int name_len, remap; CIFSFindFirst() local 4389 name_len = CIFSFindFirst() 4395 name_len *= 2; CIFSFindFirst() 4397 pSMB->FileName[name_len] = CIFS_DIR_SEP(cifs_sb); CIFSFindFirst() 4398 pSMB->FileName[name_len+1] = 0; CIFSFindFirst() 4399 pSMB->FileName[name_len+2] = '*'; CIFSFindFirst() 4400 pSMB->FileName[name_len+3] = 0; CIFSFindFirst() 4401 name_len += 4; /* now the trailing null */ CIFSFindFirst() 4403 pSMB->FileName[name_len] = 0; CIFSFindFirst() 4404 pSMB->FileName[name_len+1] = 0; CIFSFindFirst() 4405 name_len += 2; CIFSFindFirst() 4408 name_len = strnlen(searchName, PATH_MAX); CIFSFindFirst() 4410 if (name_len > buffersize-header) CIFSFindFirst() 4412 strncpy(pSMB->FileName, searchName, name_len); CIFSFindFirst() 4414 pSMB->FileName[name_len] = CIFS_DIR_SEP(cifs_sb); CIFSFindFirst() 4415 pSMB->FileName[name_len+1] = '*'; CIFSFindFirst() 4416 pSMB->FileName[name_len+2] = 0; CIFSFindFirst() 4417 name_len += 3; CIFSFindFirst() 4421 params = 12 + name_len /* includes null */ ; CIFSFindFirst() 4526 unsigned int name_len; CIFSFindNext() local 4563 name_len = psrch_inf->resume_name_len; CIFSFindNext() 4564 params += name_len; CIFSFindNext() 4565 if (name_len < PATH_MAX) { CIFSFindNext() 4566 memcpy(pSMB->ResumeFileName, psrch_inf->presume_name, name_len); CIFSFindNext() 4567 byte_count += name_len; CIFSFindNext() 4569 pSMB->ResumeFileName[name_len] = 0; CIFSFindNext() 4570 pSMB->ResumeFileName[name_len+1] = 0; CIFSFindNext() 4691 int name_len, bytes_returned; CIFSGetSrvInodeNumber() local 4705 name_len = CIFSGetSrvInodeNumber() 4709 name_len++; /* trailing null */ CIFSGetSrvInodeNumber() 4710 name_len *= 2; CIFSGetSrvInodeNumber() 4712 name_len = strnlen(search_name, PATH_MAX); CIFSGetSrvInodeNumber() 4713 name_len++; /* trailing null */ CIFSGetSrvInodeNumber() 4714 strncpy(pSMB->FileName, search_name, name_len); CIFSGetSrvInodeNumber() 4717 params = 2 /* level */ + 4 /* rsrvd */ + name_len /* incl null */ ; CIFSGetSrvInodeNumber() 4898 int name_len; CIFSGetDFSRefer() local 4924 name_len = CIFSGetDFSRefer() 4928 name_len++; /* trailing null */ CIFSGetDFSRefer() 4929 name_len *= 2; CIFSGetDFSRefer() 4931 name_len = strnlen(search_name, PATH_MAX); CIFSGetDFSRefer() 4932 name_len++; /* trailing null */ CIFSGetDFSRefer() 4933 strncpy(pSMB->RequestFileName, search_name, name_len); CIFSGetDFSRefer() 4941 params = 2 /* level */ + name_len /*includes null */ ; CIFSGetDFSRefer() 5543 int name_len; CIFSSMBSetEOF() local 5558 name_len = CIFSSMBSetEOF() 5561 name_len++; /* trailing null */ CIFSSMBSetEOF() 5562 name_len *= 2; CIFSSMBSetEOF() 5564 name_len = strnlen(file_name, PATH_MAX); CIFSSMBSetEOF() 5565 name_len++; /* trailing null */ CIFSSMBSetEOF() 5566 strncpy(pSMB->FileName, file_name, name_len); CIFSSMBSetEOF() 5568 params = 6 + name_len; CIFSSMBSetEOF() 5836 int name_len; CIFSSMBSetPathInfo() local 5851 name_len = CIFSSMBSetPathInfo() 5854 name_len++; /* trailing null */ CIFSSMBSetPathInfo() 5855 name_len *= 2; CIFSSMBSetPathInfo() 5857 name_len = strnlen(fileName, PATH_MAX); CIFSSMBSetPathInfo() 5858 name_len++; /* trailing null */ CIFSSMBSetPathInfo() 5859 strncpy(pSMB->FileName, fileName, name_len); CIFSSMBSetPathInfo() 5862 params = 6 + name_len; CIFSSMBSetPathInfo() 5921 int name_len; 5932 name_len = 5935 name_len++; /* trailing null */ 5936 name_len *= 2; 5938 name_len = strnlen(fileName, PATH_MAX); 5939 name_len++; /* trailing null */ 5940 strncpy(pSMB->fileName, fileName, name_len); 5944 inc_rfc1001_len(pSMB, name_len + 1); 5945 pSMB->ByteCount = cpu_to_le16(name_len + 1); 6080 int name_len; CIFSSMBUnixSetPathInfo() local 6094 name_len = CIFSSMBUnixSetPathInfo() 6097 name_len++; /* trailing null */ CIFSSMBUnixSetPathInfo() 6098 name_len *= 2; CIFSSMBUnixSetPathInfo() 6100 name_len = strnlen(file_name, PATH_MAX); CIFSSMBUnixSetPathInfo() 6101 name_len++; /* trailing null */ CIFSSMBUnixSetPathInfo() 6102 strncpy(pSMB->FileName, file_name, name_len); CIFSSMBUnixSetPathInfo() 6105 params = 6 + name_len; CIFSSMBUnixSetPathInfo() 6276 unsigned int name_len; CIFSSMBQAllEAs() local 6281 /* make sure we can read name_len and value_len */ CIFSSMBQAllEAs() 6288 name_len = temp_fea->name_len; CIFSSMBQAllEAs() 6290 list_len -= name_len + 1 + value_len; CIFSSMBQAllEAs() 6298 if (ea_name_len == name_len && CIFSSMBQAllEAs() 6299 memcmp(ea_name, temp_ptr, name_len) == 0) { CIFSSMBQAllEAs() 6300 temp_ptr += name_len + 1; CIFSSMBQAllEAs() 6313 rc += (5 + 1 + name_len); CIFSSMBQAllEAs() 6317 memcpy(EAData, temp_ptr, name_len); CIFSSMBQAllEAs() 6318 EAData += name_len; CIFSSMBQAllEAs() 6330 temp_ptr += name_len + 1 + value_len; CIFSSMBQAllEAs() 6355 int name_len; CIFSSMBSetEA() local 6368 name_len = CIFSSMBSetEA() 6371 name_len++; /* trailing null */ CIFSSMBSetEA() 6372 name_len *= 2; CIFSSMBSetEA() 6374 name_len = strnlen(fileName, PATH_MAX); CIFSSMBSetEA() 6375 name_len++; /* trailing null */ CIFSSMBSetEA() 6376 strncpy(pSMB->FileName, fileName, name_len); CIFSSMBSetEA() 6379 params = 6 + name_len; CIFSSMBSetEA() 6381 /* done calculating parms using name_len of file name, CIFSSMBSetEA() 6382 now use name_len to calculate length of ea name CIFSSMBSetEA() 6385 name_len = 0; CIFSSMBSetEA() 6387 name_len = strnlen(ea_name, 255); CIFSSMBSetEA() 6389 count = sizeof(*parm_data) + ea_value_len + name_len; CIFSSMBSetEA() 6417 parm_data->list[0].name_len = (__u8)name_len; CIFSSMBSetEA() 6420 strncpy(parm_data->list[0].name, ea_name, name_len); CIFSSMBSetEA() 6421 parm_data->list[0].name[name_len] = 0; CIFSSMBSetEA() 6430 memcpy(parm_data->list[0].name+name_len+1, CIFSSMBSetEA()
|
H A D | cifspdu.h | 2588 unsigned char name_len; member in struct:gea 2599 __u8 name_len; member in struct:fea
|
/linux-4.1.27/fs/isofs/ |
H A D | joliet.c | 52 de->name_len[0] >> 1, UTF16_BIG_ENDIAN, get_joliet_filename() 56 de->name_len[0] >> 1, nls); get_joliet_filename()
|
H A D | dir.c | 19 int len = de->name_len[0]; isofs_name_translate() 58 std = sizeof(struct iso_directory_record) + de->name_len[0]; get_acorn_filename() 149 if (de_len < de->name_len[0] + do_isofs_readdir() 173 if (de->name_len[0] == 1 && de->name[0] == 0) { do_isofs_readdir() 183 if (de->name_len[0] == 1 && de->name[0] == 1) { do_isofs_readdir() 228 len = de->name_len[0]; do_isofs_readdir()
|
H A D | export.c | 91 if ((isonum_711(de->name_len) != 1) || (de->name[0] != 1)) { isofs_export_get_parent()
|
H A D | namei.c | 97 dlen = de->name_len[0]; isofs_find_entry()
|
H A D | rock.c | 55 rs->len = sizeof(struct iso_directory_record) + de->name_len[0]; setup_rock_ridge()
|
/linux-4.1.27/fs/jffs2/ |
H A D | xattr_trusted.c | 38 size_t list_size, const char *name, size_t name_len, int type) jffs2_trusted_listxattr() 40 size_t retlen = XATTR_TRUSTED_PREFIX_LEN + name_len + 1; jffs2_trusted_listxattr() 37 jffs2_trusted_listxattr(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) jffs2_trusted_listxattr() argument
|
H A D | xattr_user.c | 38 size_t list_size, const char *name, size_t name_len, int type) jffs2_user_listxattr() 40 size_t retlen = XATTR_USER_PREFIX_LEN + name_len + 1; jffs2_user_listxattr() 37 jffs2_user_listxattr(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) jffs2_user_listxattr() argument
|
H A D | security.c | 72 size_t list_size, const char *name, size_t name_len, int type) jffs2_security_listxattr() 74 size_t retlen = XATTR_SECURITY_PREFIX_LEN + name_len + 1; jffs2_security_listxattr() 71 jffs2_security_listxattr(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) jffs2_security_listxattr() argument
|
H A D | xattr.c | 66 int name_len = strlen(xname); xattr_datum_hashkey() local 68 return crc32(xprefix, xname, name_len) ^ crc32(xprefix, xvalue, xsize); xattr_datum_hashkey() 92 c->xdatum_mem_usage -= (xd->name_len + 1 + xd->value_len); unload_xattr_datum() 161 totlen = PAD(sizeof(rx) + rx.name_len + 1 + je16_to_cpu(rx.value_len)); do_verify_xattr_datum() 178 xd->name_len = rx.name_len; do_verify_xattr_datum() 215 length = xd->name_len + 1 + xd->value_len; do_load_xattr_datum() 230 data[xd->name_len] = '\0'; do_load_xattr_datum() 243 xd->xvalue = data + xd->name_len+1; do_load_xattr_datum() 299 vecs[1].iov_len = xd->name_len + 1 + xd->value_len; save_xattr_datum() 312 rx.name_len = xd->name_len; save_xattr_datum() 342 uint32_t hashkey, name_len; create_xattr_datum() local 361 name_len = strlen(xname); create_xattr_datum() 367 data = kmalloc(name_len + 1 + xsize, GFP_KERNEL); create_xattr_datum() 373 memcpy(data + name_len + 1, xvalue, xsize); create_xattr_datum() 382 xd->xvalue = data + name_len + 1; create_xattr_datum() 383 xd->name_len = name_len; create_xattr_datum() 385 xd->data_crc = crc32(0, data, xd->name_len + 1 + xd->value_len); create_xattr_datum() 398 c->xdatum_mem_usage += (xd->name_len + 1 + xd->value_len); create_xattr_datum() 1005 xd->xname, xd->name_len, xd->flags); jffs2_listxattr() 1008 xd->name_len, xd->flags); jffs2_listxattr() 1231 + xd->name_len + 1 + xd->value_len); jffs2_garbage_collect_xattr_datum()
|
H A D | xattr.h | 39 uint32_t name_len; /* length of xname */ member in struct:jffs2_xattr_datum
|
H A D | gc.c | 891 int name_len = strlen(fd->name); jffs2_garbage_collect_deletion_dirent() local 892 uint32_t name_crc = crc32(0, fd->name, name_len); jffs2_garbage_collect_deletion_dirent() 948 if (rd->nsize != name_len || !je32_to_cpu(rd->ino)) jffs2_garbage_collect_deletion_dirent() 952 if (memcmp(rd->name, fd->name, name_len)) jffs2_garbage_collect_deletion_dirent()
|
H A D | scan.c | 348 + rx->name_len + 1 + je16_to_cpu(rx->value_len)); jffs2_scan_xattr_node() 369 xd->name_len = rx->name_len; jffs2_scan_xattr_node()
|
/linux-4.1.27/tools/lib/api/fs/ |
H A D | fs.c | 122 size_t name_len = strlen(fs->name); fs__env_override() local 124 char upper_name[name_len + 5 + 1]; fs__env_override() 125 memcpy(upper_name, fs->name, name_len); fs__env_override() 126 mem_toupper(upper_name, name_len); fs__env_override() 127 strcpy(&upper_name[name_len], "_PATH"); fs__env_override()
|
/linux-4.1.27/fs/exofs/ |
H A D | dir.c | 114 if (rec_len < EXOFS_DIR_REC_LEN(p->name_len)) exofs_check_page() 138 error = "rec_len is too small for name_len"; exofs_check_page() 146 "offset=%lu, inode=0x%llu, rec_len=%d, name_len=%d\n", exofs_check_page() 149 rec_len, p->name_len); exofs_check_page() 185 if (len != de->name_len) exofs_match() 295 if (!dir_emit(ctx, de->name, de->name_len, exofs_readdir() 437 unsigned short rec_len, name_len; exofs_add_link() local 461 name_len = 0; exofs_add_link() 477 name_len = EXOFS_DIR_REC_LEN(de->name_len); exofs_add_link() 481 if (rec_len >= name_len + reclen) exofs_add_link() 502 (struct exofs_dir_entry *)((char *)de + name_len); exofs_add_link() 503 de1->rec_len = cpu_to_le16(rec_len - name_len); exofs_add_link() 504 de->rec_len = cpu_to_le16(name_len); exofs_add_link() 507 de->name_len = namelen; exofs_add_link() 596 de->name_len = 1; exofs_make_empty() 603 de->name_len = 2; exofs_make_empty() 643 if (de->name_len > 2) exofs_empty_dir() 645 if (de->name_len < 2) { exofs_empty_dir()
|
H A D | common.h | 202 u8 name_len; /* name length */ member in struct:exofs_dir_entry 221 #define EXOFS_DIR_REC_LEN(name_len) \ 222 (((name_len) + offsetof(struct exofs_dir_entry, name) + \
|
/linux-4.1.27/include/linux/ceph/ |
H A D | osdmap.h | 69 int name_len; member in struct:ceph_object_id 129 oid->name_len = len; ceph_oid_set_name() 135 BUG_ON(src->name_len > sizeof(dest->name)); ceph_oid_copy() 136 memcpy(dest->name, src->name, src->name_len); ceph_oid_copy() 137 dest->name_len = src->name_len; ceph_oid_copy()
|
H A D | osd_client.h | 90 u32 name_len; member in struct:ceph_osd_req_op::__anon11546::__anon11548
|
H A D | rados.h | 434 __le32 name_len; member in struct:ceph_osd_op::__anon11560::__anon11562
|
/linux-4.1.27/fs/adfs/ |
H A D | dir.c | 53 if (!dir_emit(ctx, obj.name, obj.name_len, adfs_readdir() 108 if (name->len != obj->name_len) adfs_match() 158 obj->name_len = 0; adfs_dir_lookup_byname() 196 const unsigned int name_len = ADFS_SB(parent->d_sb)->s_namelen; adfs_hash() local 201 if (qstr->len < name_len) adfs_hash() 208 qstr->len = i = name_len; adfs_hash()
|
H A D | dir_fplus.c | 188 obj->name_len = le32_to_cpu(bde.bigdirobnamelen); adfs_fplus_getnext() 195 dir_memcpy(dir, offset, obj->name, obj->name_len); adfs_fplus_getnext() 196 for (i = 0; i < obj->name_len; i++) adfs_fplus_getnext() 212 obj->name_len += adfs_fplus_getnext() 214 &obj->name[obj->name_len], adfs_fplus_getnext()
|
H A D | dir_f.c | 213 obj->name_len = adfs_readname(obj->name, de->dirobname, ADFS_F_NAME_LEN); adfs_dir2obj() 231 obj->name_len += adfs_dir2obj() 233 &obj->name[obj->name_len], adfs_dir2obj()
|
H A D | adfs.h | 108 unsigned int name_len; /* name length */ member in struct:object_info
|
H A D | inode.c | 362 obj.name_len = 0; adfs_write_inode()
|
H A D | super.c | 474 root_obj.name_len = 0; adfs_fill_super()
|
/linux-4.1.27/fs/notify/inotify/ |
H A D | inotify.h | 9 int name_len; member in struct:inotify_event_info
|
H A D | inotify_fsnotify.c | 50 (old->name_len == new->name_len) && event_compare() 51 (!old->name_len || !strcmp(old->name, new->name))) event_compare() 107 event->name_len = len; inotify_handle_event()
|
H A D | inotify_user.c | 131 if (!event->name_len) round_event_name_len() 133 return roundup(event->name_len + 1, sizeof(struct inotify_event)); round_event_name_len() 180 size_t name_len; copy_event_to_user() local 186 name_len = event->name_len; copy_event_to_user() 210 if (copy_to_user(buf, event->name, name_len)) copy_event_to_user() 212 buf += name_len; copy_event_to_user() 215 if (clear_user(buf, pad_name_len - name_len)) copy_event_to_user() 650 oevent->name_len = 0; inotify_new_group()
|
/linux-4.1.27/security/tomoyo/ |
H A D | realpath.c | 182 int name_len; tomoyo_get_local_path() local 187 name_len = strlen(name); tomoyo_get_local_path() 188 pos -= name_len; tomoyo_get_local_path() 191 memmove(pos, name, name_len); tomoyo_get_local_path() 198 const int name_len = strlen(name); tomoyo_get_local_path() local 199 pos -= name_len + 1; tomoyo_get_local_path() 202 memmove(pos, name, name_len); tomoyo_get_local_path() 203 pos[name_len] = ':'; tomoyo_get_local_path()
|
/linux-4.1.27/drivers/platform/goldfish/ |
H A D | pdev_bus.c | 107 u32 name_len; goldfish_new_pdev() local 116 name_len = readl(pdev_bus_base + PDEV_BUS_NAME_LEN); goldfish_new_pdev() 122 name_len + 1 + sizeof(*dev->pdev.dev.dma_mask), GFP_ATOMIC); goldfish_new_pdev() 130 dev->pdev.dev.dma_mask = (void *)(dev->pdev.name + name_len + 1); goldfish_new_pdev() 137 name[name_len] = '\0'; goldfish_new_pdev()
|
/linux-4.1.27/fs/nilfs2/ |
H A D | dir.c | 136 if (rec_len < NILFS_DIR_REC_LEN(p->name_len)) nilfs_check_page() 162 error = "rec_len is too small for name_len"; nilfs_check_page() 168 "offset=%lu, inode=%lu, rec_len=%d, name_len=%d", nilfs_check_page() 171 rec_len, p->name_len); nilfs_check_page() 212 if (len != de->name_len) nilfs_match() 302 if (!dir_emit(ctx, de->name, de->name_len, nilfs_readdir() 443 unsigned short rec_len, name_len; nilfs_add_link() local 472 name_len = 0; nilfs_add_link() 487 name_len = NILFS_DIR_REC_LEN(de->name_len); nilfs_add_link() 491 if (rec_len >= name_len + reclen) nilfs_add_link() 510 de1 = (struct nilfs_dir_entry *)((char *)de + name_len); nilfs_add_link() 511 de1->rec_len = nilfs_rec_len_to_disk(rec_len - name_len); nilfs_add_link() 512 de->rec_len = nilfs_rec_len_to_disk(name_len); nilfs_add_link() 515 de->name_len = namelen; nilfs_add_link() 596 de->name_len = 1; nilfs_make_empty() 603 de->name_len = 2; nilfs_make_empty() 646 if (de->name_len > 2) nilfs_empty_dir() 648 if (de->name_len < 2) { nilfs_empty_dir()
|
/linux-4.1.27/fs/squashfs/ |
H A D | xattr.c | 126 int name_len = strlen(name); squashfs_xattr_get() local 128 char *target = kmalloc(name_len, GFP_KERNEL); squashfs_xattr_get() 148 if (prefix == name_index && name_size == name_len) squashfs_xattr_get() 157 if (prefix == name_index && name_size == name_len && squashfs_xattr_get() 219 const char *name, size_t name_len, int type) squashfs_user_list() 246 size_t list_size, const char *name, size_t name_len, int type) squashfs_trusted_list() 276 size_t list_size, const char *name, size_t name_len, int type) squashfs_security_list() 218 squashfs_user_list(struct dentry *d, char *list, size_t list_size, const char *name, size_t name_len, int type) squashfs_user_list() argument 245 squashfs_trusted_list(struct dentry *d, char *list, size_t list_size, const char *name, size_t name_len, int type) squashfs_trusted_list() argument 275 squashfs_security_list(struct dentry *d, char *list, size_t list_size, const char *name, size_t name_len, int type) squashfs_security_list() argument
|
/linux-4.1.27/fs/ceph/ |
H A D | xattr.c | 339 const char *name, int name_len, __set_xattr() 354 c = strncmp(name, xattr->name, min(name_len, xattr->name_len)); __set_xattr() 360 if (name_len == xattr->name_len) __set_xattr() 362 else if (name_len < xattr->name_len) __set_xattr() 393 xattr->name_len = name_len; __set_xattr() 408 ci->i_xattrs.names_size -= xattr->name_len; __set_xattr() 411 ci->i_xattrs.names_size += name_len; __set_xattr() 440 int name_len = strlen(name); __get_xattr() local 447 c = strncmp(name, xattr->name, xattr->name_len); __get_xattr() 448 if (c == 0 && name_len > xattr->name_len) __get_xattr() 491 ci->i_xattrs.names_size -= xattr->name_len; __remove_xattr() 523 memcpy(dest, xattr->name, xattr->name_len); __copy_xattr_names() 524 dest[xattr->name_len] = '\0'; __copy_xattr_names() 527 xattr->name_len, ci->i_xattrs.names_size); __copy_xattr_names() 529 dest += xattr->name_len + 1; __copy_xattr_names() 550 xattr->name_len, xattr->name); __ceph_destroy_xattrs() 694 ceph_encode_32(&dest, xattr->name_len); __ceph_build_xattrs_blob() 695 memcpy(dest, xattr->name, xattr->name_len); __ceph_build_xattrs_blob() 696 dest += xattr->name_len; __ceph_build_xattrs_blob() 917 int name_len = strlen(name); __ceph_setxattr() local 937 newname = kmemdup(name, name_len + 1, GFP_NOFS); __ceph_setxattr() 959 required_blob_size = __get_required_blob_size(ci, name_len, val_len); __ceph_setxattr() 977 err = __set_xattr(ci, newname, name_len, newval, val_len, __ceph_setxattr() 338 __set_xattr(struct ceph_inode_info *ci, const char *name, int name_len, const char *val, int val_len, int flags, int update_xattr, struct ceph_inode_xattr **newxattr) __set_xattr() argument
|
H A D | super.h | 208 int name_len; member in struct:ceph_inode_xattr
|
/linux-4.1.27/fs/hfsplus/ |
H A D | xattr_trusted.c | 30 size_t list_size, const char *name, size_t name_len, int type) hfsplus_trusted_listxattr() 29 hfsplus_trusted_listxattr(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) hfsplus_trusted_listxattr() argument
|
H A D | xattr_user.c | 30 size_t list_size, const char *name, size_t name_len, int type) hfsplus_user_listxattr() 29 hfsplus_user_listxattr(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) hfsplus_user_listxattr() argument
|
H A D | xattr_security.c | 33 size_t list_size, const char *name, size_t name_len, int type) hfsplus_security_listxattr() 32 hfsplus_security_listxattr(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) hfsplus_security_listxattr() argument
|
H A D | xattr.c | 399 static int name_len(const char *xattr_name, int xattr_name_len) name_len() function 409 static int copy_name(char *buffer, const char *xattr_name, int name_len) copy_name() argument 411 int len = name_len; copy_name() 420 strncpy(buffer + offset, xattr_name, name_len); copy_name() 421 memset(buffer + offset + name_len, 0, 1); copy_name() 666 name_len(HFSPLUS_XATTR_FINDER_INFO_NAME, symbols_count); hfsplus_listxattr_finder_info() 759 res += name_len(strbuf, xattr_name_len); hfsplus_listxattr() 761 if (size < (res + name_len(strbuf, xattr_name_len))) { hfsplus_listxattr() 897 size_t list_size, const char *name, size_t name_len, int type) hfsplus_osx_listxattr() 896 hfsplus_osx_listxattr(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) hfsplus_osx_listxattr() argument
|
/linux-4.1.27/drivers/mtd/ubi/ |
H A D | debug.c | 115 pr_err("\tname_len %d\n", vol->name_len); ubi_dump_vol_info() 123 if (vol->name_len <= UBI_VOL_NAME_MAX && ubi_dump_vol_info() 124 strnlen(vol->name, vol->name_len + 1) == vol->name_len) { ubi_dump_vol_info() 140 int name_len = be16_to_cpu(r->name_len); ubi_dump_vtbl_record() local 148 pr_err("\tname_len %d\n", name_len); ubi_dump_vtbl_record() 155 if (name_len <= UBI_VOL_NAME_MAX && ubi_dump_vtbl_record() 156 strnlen(&r->name[0], name_len + 1) == name_len) { ubi_dump_vtbl_record() 213 pr_err("\tname_len %d\n", req->name_len); ubi_dump_mkvol_req()
|
H A D | vmt.c | 247 ubi->volumes[i]->name_len == req->name_len && ubi_create_volume() 277 vol->name_len = req->name_len; ubi_create_volume() 278 memcpy(vol->name, req->name, vol->name_len); ubi_create_volume() 344 vtbl_rec.name_len = cpu_to_be16(vol->name_len); ubi_create_volume() 349 memcpy(vtbl_rec.name, vol->name, vol->name_len); ubi_create_volume() 614 vol->name_len = re->new_name_len; list_for_each_entry() 704 int reserved_pebs, alignment, data_pad, vol_type, name_len, upd_marker; self_check_volume() local 723 vol->name_len < 0) { self_check_volume() 766 if (vol->name_len > UBI_VOL_NAME_MAX) { self_check_volume() 772 n = strnlen(vol->name, vol->name_len + 1); self_check_volume() 773 if (n != vol->name_len) { self_check_volume() 774 ubi_err(ubi, "bad name_len %lld", n); self_check_volume() 815 name_len = be16_to_cpu(ubi->vtbl[vol_id].name_len); self_check_volume() 825 name_len != vol->name_len || strncmp(name, vol->name, name_len)) { self_check_volume()
|
H A D | cdev.c | 608 req->name_len < 0) verify_mkvol_req() 632 if (!req->name[0] || !req->name_len) verify_mkvol_req() 635 if (req->name_len > UBI_VOL_NAME_MAX) { verify_mkvol_req() 640 n = strnlen(req->name, req->name_len + 1); verify_mkvol_req() 641 if (n != req->name_len) verify_mkvol_req() 699 if (req->ents[i].name_len < 0) rename_volumes() 701 if (req->ents[i].name_len > UBI_VOL_NAME_MAX) rename_volumes() 703 req->ents[i].name[req->ents[i].name_len] = '\0'; rename_volumes() 705 if (n != req->ents[i].name_len) rename_volumes() 729 int name_len = req->ents[i].name_len; rename_volumes() local 748 if (re->desc->vol->name_len == name_len && rename_volumes() 749 !memcmp(re->desc->vol->name, name, name_len)) { rename_volumes() 755 re->new_name_len = name_len; rename_volumes() 756 memcpy(re->new_name, name, name_len); rename_volumes() 777 if (re->new_name_len == re1->desc->vol->name_len && rename_volumes() 779 re1->desc->vol->name_len)) { rename_volumes()
|
H A D | vtbl.c | 139 vtbl_rec->name_len = cpu_to_be16(re->new_name_len); list_for_each_entry() 170 int i, n, reserved_pebs, alignment, data_pad, vol_type, name_len; vtbl_check() local 183 name_len = be16_to_cpu(vtbl[i].name_len); vtbl_check() 204 name_len < 0) { vtbl_check() 244 if (name_len > UBI_VOL_NAME_MAX) { vtbl_check() 254 if (name_len != strnlen(name, name_len + 1)) { vtbl_check() 263 int len1 = be16_to_cpu(vtbl[i].name_len); vtbl_check() 264 int len2 = be16_to_cpu(vtbl[n].name_len); vtbl_check() 551 vol->name_len = be16_to_cpu(vtbl[i].name_len); init_volumes() 553 memcpy(vol->name, vtbl[i].name, vol->name_len); init_volumes() 554 vol->name[vol->name_len] = '\0'; init_volumes() 627 vol->name_len = sizeof(UBI_LAYOUT_VOLUME_NAME) - 1; init_volumes() 628 memcpy(vol->name, UBI_LAYOUT_VOLUME_NAME, vol->name_len + 1); init_volumes()
|
H A D | kapi.c | 92 vi->name_len = vol->name_len; ubi_do_get_volume_info() 273 if (vol && len == vol->name_len && !strcmp(name, vol->name)) { ubi_open_volume_nm()
|
H A D | gluebi.c | 310 mtd->name = kmemdup(vi->name, vi->name_len + 1, GFP_KERNEL); gluebi_create()
|
H A D | ubi-media.h | 335 * @name_len: volume name length 371 __be16 name_len; member in struct:ubi_vtbl_record
|
H A D | ubi.h | 286 * @name_len: volume name length 334 int name_len; member in struct:ubi_volume
|
/linux-4.1.27/tools/perf/util/ |
H A D | build-id.c | 139 static int write_buildid(const char *name, size_t name_len, u8 *build_id, write_buildid() argument 146 len = name_len + 1; write_buildid() 159 return write_padded(fd, name, name_len + 1, len); write_buildid() 172 size_t name_len; dsos__for_each_with_build_id() local 179 name_len = pos->short_name_len + 1; dsos__for_each_with_build_id() 183 name_len = strlen(nm) + 1; dsos__for_each_with_build_id() 186 name_len = pos->long_name_len + 1; dsos__for_each_with_build_id() 189 err = write_buildid(name, name_len, pos->build_id, dsos__for_each_with_build_id()
|
/linux-4.1.27/drivers/staging/goldfish/ |
H A D | goldfish_nand.c | 304 u32 name_len; goldfish_nand_init_device() local 314 name_len = readl(base + NAND_DEV_NAME_LEN); goldfish_nand_init_device() 332 name = devm_kzalloc(&pdev->dev, name_len + 1, GFP_KERNEL); goldfish_nand_init_device() 337 result = goldfish_nand_cmd(mtd, NAND_CMD_GET_DEV_NAME, 0, name_len, goldfish_nand_init_device() 339 if (result != name_len) { goldfish_nand_init_device() 342 result, name_len); goldfish_nand_init_device() 345 ((char *)mtd->name)[name_len] = '\0'; goldfish_nand_init_device()
|
/linux-4.1.27/init/ |
H A D | initramfs.c | 157 static __initdata unsigned long body_len, name_len; variable 183 name_len = parsed[11]; parse_header() 262 next_header = this_header + N_ALIGN(name_len) + body_len; do_header() 265 if (name_len <= 0 || name_len > PATH_MAX) do_header() 271 remains = N_ALIGN(name_len) + body_len; do_header() 277 read_into(name_buf, N_ALIGN(name_len), GotName); do_header() 391 collected[N_ALIGN(name_len) + body_len] = '\0'; do_symlink() 393 sys_symlink(collected + N_ALIGN(name_len), collected); do_symlink()
|
/linux-4.1.27/fs/fat/ |
H A D | dir.c | 364 int name_len = 0, uni_len = 0; fat_parse_short() local 389 name_len = i; fat_parse_short() 401 name_len = i; fat_parse_short() 405 i = name_len; fat_parse_short() 426 name_len = i; fat_parse_short() 442 name_len = i; fat_parse_short() 446 if (name_len > 0) { fat_parse_short() 447 name_len += dotoffset; fat_parse_short() 451 name_len = fat_uni_to_x8(sb, uni_name, name, fat_parse_short() 456 return name_len; fat_parse_short() 463 int name_len, struct fat_slot_info *sinfo) fat_search_long() 511 if (fat_name_match(sbi, name, name_len, bufname, len)) fat_search_long() 520 if (fat_name_match(sbi, name, name_len, longname, len)) fat_search_long() 701 static int func(struct dir_context *ctx, const char *name, int name_len, \ 715 if (name_len >= sizeof(d1->d_name)) \ 716 name_len = sizeof(d1->d_name) - 1; \ 720 copy_to_user(d1->d_name, name, name_len) || \ 721 put_user(0, d1->d_name + name_len) || \ 722 put_user(name_len, &d1->d_reclen)) \ 462 fat_search_long(struct inode *inode, const unsigned char *name, int name_len, struct fat_slot_info *sinfo) fat_search_long() argument
|
H A D | fat.h | 294 int name_len, struct fat_slot_info *sinfo);
|
/linux-4.1.27/security/apparmor/ |
H A D | procattr.c | 39 int len = 0, mode_len = 0, ns_len = 0, name_len; aa_getprocattr() local 60 name_len = strlen(profile->base.hname); aa_getprocattr() 61 len = mode_len + ns_len + name_len + 1; /* + 1 for \n */ aa_getprocattr()
|
/linux-4.1.27/drivers/mtd/ |
H A D | cmdlinepart.c | 106 int name_len; newpart() local 148 name_len = p - name; newpart() 152 name_len = 13; /* Partition_000 */ newpart() 156 extra_mem_size += name_len + 1; newpart() 200 strlcpy(extra_mem, name, name_len + 1); newpart() 204 extra_mem += name_len + 1; newpart()
|
/linux-4.1.27/drivers/media/firewire/ |
H A D | firedtv-fw.c | 255 int name_len, i, err; node_probe() local 272 name_len = fw_csr_string(unit->directory, CSR_MODEL, node_probe() 275 if (strlen(model_names[i]) <= name_len && node_probe() 276 strncmp(name, model_names[i], name_len) == 0) node_probe()
|
/linux-4.1.27/tools/power/cpupower/utils/idle_monitor/ |
H A D | cpupower-monitor.h | 48 int name_len; member in struct:cpuidle_monitor
|
H A D | cpuidle_sysfs.c | 171 cpuidle_sysfs_monitor.name_len = strlen(cpuidle_sysfs_monitor.name); cpuidle_register()
|
H A D | hsw_ext_idle.c | 170 intel_hsw_ext_monitor.name_len = strlen(intel_hsw_ext_monitor.name); hsw_ext_register()
|
H A D | nhm_idle.c | 189 intel_nhm_monitor.name_len = strlen(intel_nhm_monitor.name); intel_nhm_register()
|
H A D | snb_idle.c | 174 intel_snb_monitor.name_len = strlen(intel_snb_monitor.name); snb_register()
|
H A D | amd_fam14h_idle.c | 310 amd_fam14h_monitor.name_len = strlen(amd_fam14h_monitor.name); amd_fam14h_register()
|
H A D | mperf_monitor.c | 313 mperf_monitor.name_len = strlen(mperf_monitor.name); mperf_register()
|
/linux-4.1.27/include/keys/ |
H A D | asymmetric-subtype.h | 29 unsigned short name_len; /* length of name */ member in struct:asymmetric_key_subtype
|
/linux-4.1.27/fs/ntfs/ |
H A D | inode.h | 63 * name_len = 0 for files and name = I30 (global constant) and 64 * name_len = 4 for directories. 68 u32 name_len; /* Attribute name length of this fake inode. */ member in struct:_ntfs_inode 254 * @name_len: length of @name in Unicode characters (0 if unnamed) 266 u32 name_len; member in struct:__anon11141 276 ntfschar *name, u32 name_len); 278 u32 name_len);
|
H A D | inode.c | 53 * @na->name and @na->name_len are then ignored. 76 if (ni->name_len != na->name_len) ntfs_test_inode() 78 if (na->name_len && memcmp(ni->name, na->name, ntfs_test_inode() 79 na->name_len * sizeof(ntfschar))) ntfs_test_inode() 95 * In that case, @na->name and @na->name_len should be set to NULL and 0, 115 ni->name_len = na->name_len; ntfs_init_locked_inode() 120 BUG_ON(na->name_len); ntfs_init_locked_inode() 134 if (na->name_len && na->name != I30) { ntfs_init_locked_inode() 138 i = na->name_len * sizeof(ntfschar); ntfs_init_locked_inode() 143 ni->name[na->name_len] = 0; ntfs_init_locked_inode() 179 na.name_len = 0; ntfs_iget() 209 * @name_len: length of @name in Unicode characters (0 if unnamed) 212 * @type, @name, and @name_len, which is present in the base mft record 228 ntfschar *name, u32 name_len) ntfs_attr_iget() 240 na.name_len = name_len; ntfs_attr_iget() 270 * @name_len: length of @name in Unicode characters 273 * and @name_len, which is present in the base mft record specified by the vfs 286 u32 name_len) ntfs_index_iget() 295 na.name_len = name_len; ntfs_index_iget() 388 * NOTE: ni->mft_no, ni->state, ni->type, ni->name, and ni->name_len are left 439 ni->name_len = 0; ntfs_new_extent_inode() 904 ni->name_len = 4; ntfs_read_locked_inode() 1022 ni->name_len = 0; ntfs_read_locked_inode() 1266 err = ntfs_attr_lookup(ni->type, ni->name, ni->name_len, ntfs_read_locked_attr_inode() 1275 ni->name_len)) { ntfs_read_locked_attr_inode() 1449 "inode (mft_no 0x%lx, type 0x%x, name_len %i). " ntfs_read_locked_attr_inode() 1451 "Run chkdsk.", err, vi->i_ino, ni->type, ni->name_len, ntfs_read_locked_attr_inode() 1532 err = ntfs_attr_lookup(AT_INDEX_ROOT, ni->name, ni->name_len, ntfs_read_locked_index_inode() 1625 err = ntfs_attr_lookup(AT_INDEX_ALLOCATION, ni->name, ni->name_len, ntfs_read_locked_index_inode() 1685 bvi = ntfs_attr_iget(base_vi, AT_BITMAP, ni->name, ni->name_len); ntfs_read_locked_index_inode() 1732 "inode (mft_no 0x%lx, name_len %i.", err, vi->i_ino, ntfs_read_locked_index_inode() 1733 ni->name_len); ntfs_read_locked_index_inode() 1802 ni->name_len = 0; ntfs_read_inode_mount() 2219 if (ni->name_len && ni->name != I30) { __ntfs_clear_inode() 2409 err = ntfs_attr_lookup(ni->type, ni->name, ni->name_len, ntfs_truncate() 227 ntfs_attr_iget(struct inode *base_vi, ATTR_TYPE type, ntfschar *name, u32 name_len) ntfs_attr_iget() argument 285 ntfs_index_iget(struct inode *base_vi, ntfschar *name, u32 name_len) ntfs_index_iget() argument
|
H A D | attrib.c | 135 a->name_length == ni->name_len && ntfs_map_runlist_nolock() 137 ni->name, ni->name_len) && ntfs_map_runlist_nolock() 166 err = ntfs_attr_lookup(ni->type, ni->name, ni->name_len, ntfs_map_runlist_nolock() 536 * @name_len: attribute name length (only needed if @name present) 566 * sensitive. When @name is present, @name_len is the @name length in Unicode 590 const u32 name_len, const IGNORE_CASE_BOOL ic, ntfs_attr_find() 628 } else if (!ntfs_are_names_equal(name, name_len, ntfs_attr_find() 633 rc = ntfs_collate_names(name, name_len, ntfs_attr_find() 647 rc = ntfs_collate_names(name, name_len, ntfs_attr_find() 811 * @name_len: attribute name length (only needed if @name present) 858 const ntfschar *name, const u32 name_len, ntfs_external_attr_find() 929 name_len, ic, vol->upcase, vol->upcase_len)) { ntfs_external_attr_find() 932 rc = ntfs_collate_names(name, name_len, al_name, ntfs_external_attr_find() 952 rc = ntfs_collate_names(name, name_len, al_name, ntfs_external_attr_find() 1107 return ntfs_attr_find(AT_END, name, name_len, ic, val, val_len, ntfs_external_attr_find() 1141 err = ntfs_attr_find(type, name, name_len, ic, val, val_len, ntfs_external_attr_find() 1152 * @name_len: attribute name length (only needed if @name present) 1188 const u32 name_len, const IGNORE_CASE_BOOL ic, ntfs_attr_lookup() 1203 return ntfs_attr_find(type, name, name_len, ic, val, val_len, ntfs_attr_lookup() 1205 return ntfs_external_attr_find(type, name, name_len, ic, lowest_vcn, ntfs_attr_lookup() 1624 err = ntfs_attr_lookup(ni->type, ni->name, ni->name_len, ntfs_attr_make_non_resident() 1793 !ni->name_len) ? "FILE": "ATTRIBUTE"); ntfs_attr_make_non_resident() 2030 err = ntfs_attr_lookup(ni->type, ni->name, ni->name_len, ntfs_attr_extend_allocation() 2330 err = ntfs_attr_lookup(ni->type, ni->name, ni->name_len, ntfs_attr_extend_allocation() 2385 if (ntfs_attr_lookup(ni->type, ni->name, ni->name_len, CASE_SENSITIVE, ntfs_attr_extend_allocation() 589 ntfs_attr_find(const ATTR_TYPE type, const ntfschar *name, const u32 name_len, const IGNORE_CASE_BOOL ic, const u8 *val, const u32 val_len, ntfs_attr_search_ctx *ctx) ntfs_attr_find() argument 857 ntfs_external_attr_find(const ATTR_TYPE type, const ntfschar *name, const u32 name_len, const IGNORE_CASE_BOOL ic, const VCN lowest_vcn, const u8 *val, const u32 val_len, ntfs_attr_search_ctx *ctx) ntfs_external_attr_find() argument 1187 ntfs_attr_lookup(const ATTR_TYPE type, const ntfschar *name, const u32 name_len, const IGNORE_CASE_BOOL ic, const VCN lowest_vcn, const u8 *val, const u32 val_len, ntfs_attr_search_ctx *ctx) ntfs_attr_lookup() argument
|
H A D | attrib.h | 74 const u32 name_len, const IGNORE_CASE_BOOL ic,
|
H A D | ntfs.h | 119 extern void ntfs_upcase_name(ntfschar *name, u32 name_len,
|
H A D | unistr.c | 206 void ntfs_upcase_name(ntfschar *name, u32 name_len, const ntfschar *upcase, ntfs_upcase_name() argument 212 for (i = 0; i < name_len; i++) ntfs_upcase_name()
|
H A D | file.c | 156 err = ntfs_attr_lookup(ni->type, ni->name, ni->name_len, ntfs_attr_extend_initialized() 200 err = ntfs_attr_lookup(ni->type, ni->name, ni->name_len, ntfs_attr_extend_initialized() 297 err = ntfs_attr_lookup(ni->type, ni->name, ni->name_len, ntfs_attr_extend_initialized() 370 BUG_ON(ni->name_len); ntfs_prepare_file_for_write() 1040 err = ntfs_attr_lookup(ni->type, ni->name, ni->name_len, ntfs_prepare_pages_for_non_resident_write() 1147 ni->name_len, CASE_SENSITIVE, ntfs_prepare_pages_for_non_resident_write() 1243 if (ntfs_attr_lookup(ni->type, ni->name, ni->name_len, ntfs_prepare_pages_for_non_resident_write() 1479 err = ntfs_attr_lookup(ni->type, ni->name, ni->name_len, ntfs_commit_pages_after_non_resident_write() 1605 err = ntfs_attr_lookup(ni->type, ni->name, ni->name_len, ntfs_commit_pages_after_write()
|
H A D | dir.c | 1030 int name_len; ntfs_filldir() local 1048 name_len = ntfs_ucstonls(vol, (ntfschar*)&ie->key.file_name.file_name, ntfs_filldir() 1051 if (name_len <= 0) { ntfs_filldir() 1069 "0x%lx, DT_%s.", name, name_len, actor->pos, mref, ntfs_filldir() 1071 if (!dir_emit(actor, name, name_len, mref, dt_type)) ntfs_filldir() 1519 na.name_len = 4; ntfs_dir_fsync()
|
H A D | mft.c | 948 na.name_len = 0; ntfs_may_write_mft_record() 1401 mftbmp_ni->name_len, CASE_SENSITIVE, rl[1].vcn, NULL, ntfs_mft_bitmap_extend_allocation_nolock() 1475 mftbmp_ni->name_len, CASE_SENSITIVE, 0, NULL, ntfs_mft_bitmap_extend_allocation_nolock() 1500 mftbmp_ni->name_len, CASE_SENSITIVE, rl[1].vcn, NULL, ntfs_mft_bitmap_extend_allocation_nolock() 1605 mftbmp_ni->name_len, CASE_SENSITIVE, 0, NULL, 0, ctx); ntfs_mft_bitmap_extend_initialized_nolock() 1658 mftbmp_ni->name_len, CASE_SENSITIVE, 0, NULL, 0, ctx)) { ntfs_mft_bitmap_extend_initialized_nolock() 1833 ret = ntfs_attr_lookup(mft_ni->type, mft_ni->name, mft_ni->name_len, ntfs_mft_data_extend_allocation_nolock() 1914 mft_ni->name_len, CASE_SENSITIVE, 0, NULL, 0, ntfs_mft_data_extend_allocation_nolock() 1938 if (ntfs_attr_lookup(mft_ni->type, mft_ni->name, mft_ni->name_len, ntfs_mft_data_extend_allocation_nolock() 2472 err = ntfs_attr_lookup(mft_ni->type, mft_ni->name, mft_ni->name_len, ntfs_mft_record_alloc() 2668 ni->name_len = 4; ntfs_mft_record_alloc() 2688 ni->name_len = 0; ntfs_mft_record_alloc()
|
H A D | aops.c | 448 BUG_ON(ni->name_len); ntfs_readpage() 492 err = ntfs_attr_lookup(ni->type, ni->name, ni->name_len, ntfs_readpage() 1398 BUG_ON(ni->name_len); ntfs_writepage() 1472 err = ntfs_attr_lookup(ni->type, ni->name, ni->name_len, ntfs_writepage()
|
H A D | index.c | 164 err = ntfs_attr_lookup(AT_INDEX_ROOT, idx_ni->name, idx_ni->name_len, ntfs_index_lookup()
|
H A D | compress.c | 532 BUG_ON(ni->name_len); ntfs_read_compressed_block()
|
/linux-4.1.27/fs/f2fs/ |
H A D | dir.c | 82 if (le16_to_cpu(de->name_len) != namelen) early_match_name() 110 * For the most part, it should be a bug when name_len is zero. find_in_block() 144 if (unlikely(!de->name_len)) find_target_dentry() 147 bit_pos += GET_DENTRY_SLOTS(le16_to_cpu(de->name_len)); find_target_dentry() 326 de->name_len = cpu_to_le16(1); do_make_empty_dir() 334 de->name_len = cpu_to_le16(2); do_make_empty_dir() 483 de->name_len = cpu_to_le16(name->len); f2fs_update_dentry() 657 int slots = GET_DENTRY_SLOTS(le16_to_cpu(dentry->name_len)); f2fs_delete_entry() 751 le16_to_cpu(de->name_len), f2fs_fill_dentries() 755 bit_pos += GET_DENTRY_SLOTS(le16_to_cpu(de->name_len)); f2fs_fill_dentries()
|
H A D | inline.c | 294 * For the most part, it should be a bug when name_len is zero. find_in_inline_dir() 462 int slots = GET_DENTRY_SLOTS(le16_to_cpu(dentry->name_len)); f2fs_delete_inline_entry()
|
/linux-4.1.27/fs/ufs/ |
H A D | dir.c | 166 error = "rec_len is too small for name_len"; ufs_check_page() 175 "offset=%lu, rec_len=%d, name_len=%d", ufs_check_page() 320 unsigned short rec_len, name_len; ufs_add_link() local 351 name_len = 0; ufs_add_link() 366 name_len = UFS_DIR_REC_LEN(ufs_get_de_namlen(sb, de)); ufs_add_link() 370 if (rec_len >= name_len + reclen) ufs_add_link() 388 (struct ufs_dir_entry *) ((char *) de + name_len); ufs_add_link() 389 de1->d_reclen = cpu_to_fs16(sb, rec_len - name_len); ufs_add_link() 390 de->d_reclen = cpu_to_fs16(sb, name_len); ufs_add_link()
|
H A D | ufs_fs.h | 283 #define UFS_DIR_REC_LEN(name_len) (((name_len) + 1 + 8 + UFS_DIR_ROUND) & ~UFS_DIR_ROUND)
|
/linux-4.1.27/net/irda/ |
H A D | iriap.c | 368 int name_len, attr_len, skb_len; iriap_getvaluebyclass_request() local 389 name_len = strlen(name); /* Up to IAS_MAX_CLASSNAME = 60 */ iriap_getvaluebyclass_request() 392 skb_len = self->max_header_size+2+name_len+1+attr_len+4; iriap_getvaluebyclass_request() 399 skb_put(tx_skb, 3+name_len+attr_len); iriap_getvaluebyclass_request() 404 frame[1] = name_len; /* Insert length of name */ iriap_getvaluebyclass_request() 405 memcpy(frame+2, name, name_len); /* Insert name */ iriap_getvaluebyclass_request() 406 frame[2+name_len] = attr_len; /* Insert length of attr */ iriap_getvaluebyclass_request() 407 memcpy(frame+3+name_len, attr, attr_len); /* Insert attr */ iriap_getvaluebyclass_request() 635 int name_len; iriap_getvaluebyclass_indication() local 649 name_len = fp[n++]; iriap_getvaluebyclass_indication() 651 IRDA_ASSERT(name_len < IAS_MAX_CLASSNAME + 1, return;); iriap_getvaluebyclass_indication() 653 memcpy(name, fp+n, name_len); n+=name_len; iriap_getvaluebyclass_indication() 654 name[name_len] = '\0'; iriap_getvaluebyclass_indication()
|
H A D | irlap_frame.c | 394 len = IRDA_MIN(discovery->name_len, skb_tailroom(tx_skb)); irlap_send_discovery_xid_frame() 468 discovery->name_len = strlen(discovery->data.info); irlap_recv_discovery_xid_rsp() 567 discovery->name_len = strlen(discovery->data.info); irlap_recv_discovery_xid_cmd()
|
H A D | irlmp.c | 859 irlmp->discovery_cmd.name_len = strlen(irlmp->discovery_cmd.data.info); irlmp_do_discovery() 1088 irlmp->discovery_rsp.name_len = strlen(irlmp->discovery_rsp.data.info); irlmp_get_discovery_response()
|
/linux-4.1.27/drivers/firmware/google/ |
H A D | gsmi.c | 110 u32 name_len; member in struct:gsmi_get_next_var_param 304 size_t name_len = ucs2_strnlen(name, GSMI_BUF_SIZE / 2); gsmi_get_variable() local 307 if (name_len >= GSMI_BUF_SIZE / 2) gsmi_get_variable() 317 memcpy(gsmi_dev.name_buf->start, name, name_len * 2); gsmi_get_variable() 362 .name_len = gsmi_dev.name_buf->length, gsmi_get_next_variable() 427 size_t name_len = ucs2_strnlen(name, GSMI_BUF_SIZE / 2); gsmi_set_variable() local 432 if (name_len >= GSMI_BUF_SIZE / 2) gsmi_set_variable() 442 memcpy(gsmi_dev.name_buf->start, name, name_len * 2); gsmi_set_variable()
|
/linux-4.1.27/include/uapi/linux/ |
H A D | iso_fs.h | 136 unsigned char name_len[2]; /* 721 */ member in struct:iso_path_table 155 unsigned char name_len [ISODCL (33, 33)]; /* 711 */ member in struct:iso_directory_record
|
H A D | gfs2_ondisk.h | 299 #define GFS2_DIRENT_SIZE(name_len) ((sizeof(struct gfs2_dirent) + (name_len) + 7) & ~7)
|
H A D | jffs2.h | 174 __u8 name_len; member in struct:jffs2_raw_xattr
|
/linux-4.1.27/sound/soc/codecs/ |
H A D | sigmadsp.c | 205 size_t name_len; sigma_fw_load_control() local 214 name_len = length - sizeof(*ctrl_chunk); sigma_fw_load_control() 215 if (name_len >= SNDRV_CTL_ELEM_ID_NAME_MAXLEN) sigma_fw_load_control() 216 name_len = SNDRV_CTL_ELEM_ID_NAME_MAXLEN - 1; sigma_fw_load_control() 219 if (!sigma_fw_validate_control_name(ctrl_chunk->name, name_len)) sigma_fw_load_control() 227 name = kzalloc(name_len + 1, GFP_KERNEL); sigma_fw_load_control() 232 memcpy(name, ctrl_chunk->name, name_len); sigma_fw_load_control() 233 name[name_len] = '\0'; sigma_fw_load_control()
|
/linux-4.1.27/crypto/asymmetric_keys/ |
H A D | public_key.c | 124 .name_len = sizeof("public_key") - 1,
|
/linux-4.1.27/usr/ |
H A D | gen_init_cpio.c | 34 unsigned int name_len = strlen(name) + 1; push_string() local 38 offset += name_len; push_string() 51 unsigned int name_len = strlen(name) + 1; push_rest() local 56 offset += name_len; push_rest() 58 tmp_ofs = name_len + 110; push_rest()
|
/linux-4.1.27/fs/ocfs2/ |
H A D | ocfs2_trace.h | 2161 TP_PROTO(void *dir, void *dentry, int name_len, const char *name, 2163 TP_ARGS(dir, dentry, name_len, name, dir_blkno, extra), 2167 __field(int, name_len) 2175 __entry->name_len = name_len; 2181 __entry->name_len, __get_str(name), 2187 TP_PROTO(void *dir, void *dentry, int name_len, const char *name, \ 2189 TP_ARGS(dir, dentry, name_len, name, dir_blkno, extra)) 2206 TP_PROTO(void *dir, void *dentry, int name_len, const char *name, 2208 TP_ARGS(dir, dentry, name_len, name, dir_blkno, dev, mode), 2212 __field(int, name_len) 2221 __entry->name_len = name_len; 2228 __entry->name_len, __get_str(name), 2234 int name_len, const char *name), 2235 TP_ARGS(ino, old_len, old_name, name_len, name), 2240 __field(int, name_len) 2247 __entry->name_len = name_len; 2252 __entry->name_len, __get_str(name)) 2542 TP_PROTO(void *dentry, int name_len, const char *name, 2544 TP_ARGS(dentry, name_len, name, fh, len, connectable), 2547 __field(int, name_len) 2555 __entry->name_len = name_len; 2561 TP_printk("%p %.*s %p %d %d", __entry->dentry, __entry->name_len,
|
H A D | xattr.c | 228 static int namevalue_size(int name_len, uint64_t value_len) namevalue_size() argument 231 return OCFS2_XATTR_SIZE(name_len) + OCFS2_XATTR_ROOT_SIZE; namevalue_size() 233 return OCFS2_XATTR_SIZE(name_len) + OCFS2_XATTR_SIZE(value_len); namevalue_size() 559 int name_len) ocfs2_xattr_name_hash() 566 for (i = 0; i < name_len; i++) { ocfs2_xattr_name_hash() 575 static int ocfs2_xattr_entry_real_size(int name_len, size_t value_len) ocfs2_xattr_entry_real_size() argument 577 return namevalue_size(name_len, value_len) + ocfs2_xattr_entry_real_size() 895 const char *name, int name_len) ocfs2_xattr_list_entry() 899 int total_len = prefix_len + name_len + 1; ocfs2_xattr_list_entry() 911 memcpy(p + prefix_len, name, name_len); ocfs2_xattr_list_entry() 912 p[prefix_len + name_len] = '\0'; ocfs2_xattr_list_entry() 1066 size_t name_len; ocfs2_xattr_find_entry() local 1072 name_len = strlen(name); ocfs2_xattr_find_entry() 1077 cmp = name_len - entry->xe_name_len; ocfs2_xattr_find_entry() 1081 name_len); ocfs2_xattr_find_entry() 1203 int ret = -ENODATA, name_offset, name_len, i; ocfs2_xattr_block_get() local 1232 name_len = OCFS2_XATTR_SIZE(xs->here->xe_name_len); ocfs2_xattr_block_get() 1249 name_offset + name_len, size); ocfs2_xattr_block_get() 1252 (xs->base + name_offset + name_len); ocfs2_xattr_block_get() 3040 int name_offset, name_len = 0; ocfs2_calc_xattr_set_need() local 3069 name_len = OCFS2_XATTR_SIZE(xe->xe_name_len); ocfs2_calc_xattr_set_need() 3077 name_len = OCFS2_XATTR_SIZE(xe->xe_name_len); ocfs2_calc_xattr_set_need() 3138 (base + name_offset + name_len); ocfs2_calc_xattr_set_need() 3747 size_t name_len = strlen(name); ocfs2_find_xe_in_bucket() local 3765 cmp = name_len - xe->xe_name_len; ocfs2_find_xe_in_bucket() 3781 if (!memcmp(name, xe_name, name_len)) { ocfs2_find_xe_in_bucket() 5768 int name_offset, name_len; ocfs2_prepare_refcount_xattr() local 5779 name_len = OCFS2_XATTR_SIZE(xe->xe_name_len); ocfs2_prepare_refcount_xattr() 5788 name_len = OCFS2_XATTR_SIZE(xe->xe_name_len); ocfs2_prepare_refcount_xattr() 5824 (base + name_offset + name_len); ocfs2_prepare_refcount_xattr() 7238 size_t name_len, int type) ocfs2_xattr_security_list() 7241 const size_t total_len = prefix_len + name_len + 1; ocfs2_xattr_security_list() 7245 memcpy(list + prefix_len, name, name_len); ocfs2_xattr_security_list() 7246 list[prefix_len + name_len] = '\0'; ocfs2_xattr_security_list() 7328 size_t name_len, int type) ocfs2_xattr_trusted_list() 7331 const size_t total_len = prefix_len + name_len + 1; ocfs2_xattr_trusted_list() 7335 memcpy(list + prefix_len, name, name_len); ocfs2_xattr_trusted_list() 7336 list[prefix_len + name_len] = '\0'; ocfs2_xattr_trusted_list() 7372 size_t name_len, int type) ocfs2_xattr_user_list() 7375 const size_t total_len = prefix_len + name_len + 1; ocfs2_xattr_user_list() 7383 memcpy(list + prefix_len, name, name_len); ocfs2_xattr_user_list() 7384 list[prefix_len + name_len] = '\0'; ocfs2_xattr_user_list() 557 ocfs2_xattr_name_hash(struct inode *inode, const char *name, int name_len) ocfs2_xattr_name_hash() argument 893 ocfs2_xattr_list_entry(char *buffer, size_t size, size_t *result, const char *prefix, const char *name, int name_len) ocfs2_xattr_list_entry() argument 7236 ocfs2_xattr_security_list(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) ocfs2_xattr_security_list() argument 7326 ocfs2_xattr_trusted_list(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) ocfs2_xattr_trusted_list() argument 7370 ocfs2_xattr_user_list(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) ocfs2_xattr_user_list() argument
|
H A D | dir.c | 328 else if (unlikely(rlen < OCFS2_DIR_REC_LEN(de->name_len))) ocfs2_check_dir_entry() 329 error_msg = "rec_len is too small for name_len"; ocfs2_check_dir_entry() 336 "offset=%lu, inode=%llu, rec_len=%d, name_len=%d\n", ocfs2_check_dir_entry() 339 de->name_len); ocfs2_check_dir_entry() 348 if (len != de->name_len) ocfs2_match() 1207 OCFS2_DIR_REC_LEN(de->name_len); ocfs2_figure_dirent_hole() 1447 de_really_used = OCFS2_DIR_REC_LEN(de->name_len); ocfs2_dirent_would_fit() 1723 OCFS2_DIR_REC_LEN(de->name_len)); __ocfs2_add_entry() 1726 OCFS2_DIR_REC_LEN(de->name_len)); __ocfs2_add_entry() 1727 de->rec_len = cpu_to_le16(OCFS2_DIR_REC_LEN(de->name_len)); __ocfs2_add_entry() 1736 de->name_len = namelen; __ocfs2_add_entry() 1820 if (!dir_emit(ctx, de->name, de->name_len, ocfs2_dir_foreach_blk_id() 1918 de->name_len, ocfs2_dir_foreach_blk_el() 2074 int name_len, loff_t pos, u64 ino, ocfs2_empty_dir_filldir() 2091 if (name_len == 1 && !strncmp(".", name, 1) && pos == 0) { ocfs2_empty_dir_filldir() 2096 if (name_len == 2 && !strncmp("..", name, 2) && ocfs2_empty_dir_filldir() 2197 de->name_len = 1; ocfs2_fill_initial_dirents() 2199 cpu_to_le16(OCFS2_DIR_REC_LEN(de->name_len)); ocfs2_fill_initial_dirents() 2206 de->name_len = 2; ocfs2_fill_initial_dirents() 2642 namelen = de->name_len; ocfs2_dx_dir_index_block() 2689 if (!de->name_len || !de->inode) ocfs2_dx_dir_index_root_block() 2692 ocfs2_dx_dir_name_hash(dir, de->name, de->name_len, &hinfo); ocfs2_dx_dir_index_root_block() 2697 de->name_len, de->name, ocfs2_dx_dir_index_root_block() 2728 if (de->name_len && de->inode) ocfs2_new_dx_should_be_inline() 3436 if (new_rec_len < (rec_len + OCFS2_DIR_REC_LEN(last_de->name_len))) ocfs2_find_dir_space_id() 2073 ocfs2_empty_dir_filldir(struct dir_context *ctx, const char *name, int name_len, loff_t pos, u64 ino, unsigned type) ocfs2_empty_dir_filldir() argument
|
H A D | ocfs2_fs.h | 418 #define OCFS2_DIR_REC_LEN(name_len) (((name_len) + OCFS2_DIR_MEMBER_LEN + \ 785 __u8 name_len; /* Name length */ member in struct:ocfs2_dir_entry 793 * crafted so that the rec_len and name_len records of an ocfs2_dir_entry are 804 __u8 db_compat_name_len; /* Always zero. Was name_len */ 823 * We also store name_len here so as to reduce the number of leaf blocks we
|
H A D | journal.c | 2000 int name_len, loff_t pos, u64 ino, ocfs2_orphan_filldir() 2007 if (name_len == 1 && !strncmp(".", name, 1)) ocfs2_orphan_filldir() 2009 if (name_len == 2 && !strncmp("..", name, 2)) ocfs2_orphan_filldir() 1999 ocfs2_orphan_filldir(struct dir_context *ctx, const char *name, int name_len, loff_t pos, u64 ino, unsigned type) ocfs2_orphan_filldir() argument
|
/linux-4.1.27/drivers/staging/lustre/lustre/llite/ |
H A D | xattr.c | 600 const size_t name_len = sizeof("lov") - 1; ll_listxattr() local 601 const size_t total_len = prefix_len + name_len + 1; ll_listxattr() 611 memcpy(buffer + prefix_len, "lov", name_len); ll_listxattr() 612 buffer[prefix_len + name_len] = '\0'; ll_listxattr()
|
/linux-4.1.27/include/net/irda/ |
H A D | discovery.h | 78 int name_len; /* Length of nickname */ member in struct:discovery_t
|
/linux-4.1.27/include/linux/ |
H A D | xattr.h | 26 const char *name, size_t name_len, int handler_flags);
|
H A D | nilfs2_fs.h | 290 * stored in intel byte order, and the name_len field could never be 297 __u8 name_len; /* Name length */ member in struct:nilfs_dir_entry 326 #define NILFS_DIR_REC_LEN(name_len) (((name_len) + 12 + NILFS_DIR_ROUND) & \
|
H A D | f2fs_fs.h | 432 __le16 name_len; /* lengh of file name */ member in struct:f2fs_dir_entry
|
/linux-4.1.27/drivers/crypto/ccp/ |
H A D | ccp-pci.c | 49 unsigned int name_len = sizeof(ccp_pci->msix[0].name) - 1; ccp_get_msix_irqs() local 62 snprintf(ccp_pci->msix[v].name, name_len, "ccp-%u", v); ccp_get_msix_irqs()
|
/linux-4.1.27/kernel/ |
H A D | params.c | 810 unsigned int name_len; param_sysfs_builtin() local 823 name_len = 0; param_sysfs_builtin() 825 name_len = dot - kp->name + 1; param_sysfs_builtin() 826 strlcpy(modname, kp->name, name_len); param_sysfs_builtin() 828 kernel_add_sysfs_param(modname, kp, name_len); param_sysfs_builtin()
|
H A D | auditsc.c | 1739 n->name_len = AUDIT_NAME_FULL; __audit_getname() 1820 n->name_len = n->name ? parent_len(n->name->name) : AUDIT_NAME_FULL; __audit_inode() 1825 n->name_len = AUDIT_NAME_FULL; __audit_inode() 1875 n->name->name, n->name_len)) { __audit_inode_child() 1893 found_parent->name_len : __audit_inode_child() 1920 found_child->name_len = AUDIT_NAME_FULL; __audit_inode_child()
|
H A D | audit.h | 80 int name_len; /* number of chars to log */ member in struct:audit_names
|
H A D | audit.c | 1744 switch (n->name_len) { audit_log_name() 1759 n->name_len); audit_log_name()
|
/linux-4.1.27/net/irda/irlan/ |
H A D | irlan_common.c | 1043 __u8 name_len; irlan_extract_param() local 1048 name_len = buf[n++]; irlan_extract_param() 1050 if (name_len > 254) { irlan_extract_param() 1051 pr_debug("%s(), name_len > 254\n", __func__); irlan_extract_param() 1056 memcpy(name, buf+n, name_len); irlan_extract_param() 1057 name[name_len] = '\0'; irlan_extract_param() 1058 n+=name_len; irlan_extract_param()
|
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/ |
H A D | obd_config.c | 94 int name_len = 0; class_find_old_param() local 101 name_len = strlen(param); class_find_old_param() 103 name_len = value - param; class_find_old_param() 106 if (strncmp(param, ptr->old_param, name_len) == 0 && class_find_old_param() 107 name_len == strlen(ptr->old_param)) class_find_old_param() 996 int name_len = 0; lustre_cfg_rename() local 1008 name_len = strlen(param); lustre_cfg_rename() 1010 name_len = value - param; lustre_cfg_rename() 1012 new_len = LUSTRE_CFG_BUFLEN(cfg, 1) + strlen(new_name) - name_len; lustre_cfg_rename()
|
/linux-4.1.27/drivers/usb/wusbcore/ |
H A D | cbaf.c | 250 size_t name_len; cbaf_send_host_info() local 259 name_len = strlen(cbaf->host_name); cbaf_send_host_info() 260 hi->HostFriendlyName_hdr.len = cpu_to_le16(name_len); cbaf_send_host_info() 261 hi_size = sizeof(*hi) + name_len; cbaf_send_host_info()
|
/linux-4.1.27/fs/ubifs/ |
H A D | xattr.c | 586 const char *name, size_t name_len, int flags) security_listxattr() 589 const size_t total_len = prefix_len + name_len + 1; security_listxattr() 593 memcpy(list + prefix_len, name, name_len); security_listxattr() 594 list[prefix_len + name_len] = '\0'; security_listxattr() 585 security_listxattr(struct dentry *d, char *list, size_t list_size, const char *name, size_t name_len, int flags) security_listxattr() argument
|
H A D | ubifs.h | 143 #define CALC_DENT_SIZE(name_len) ALIGN(UBIFS_DENT_NODE_SZ + (name_len) + 1, 8)
|
/linux-4.1.27/include/uapi/mtd/ |
H A D | ubi-user.h | 295 * @name_len: volume name length 324 __s16 name_len; member in struct:ubi_mkvol_req 350 * @name_len: name length 381 __s16 name_len; member in struct:ubi_rnvol_req::__anon13796
|
/linux-4.1.27/fs/ocfs2/dlm/ |
H A D | dlmcommon.h | 97 static inline int dlm_is_recovery_lock(const char *lock_name, int name_len) dlm_is_recovery_lock() argument 99 if (name_len == DLM_RECOVERY_LOCK_NAME_LEN && dlm_is_recovery_lock() 100 memcmp(lock_name, DLM_RECOVERY_LOCK_NAME, name_len)==0) dlm_is_recovery_lock() 723 u8 name_len; member in struct:dlm_query_join_request 734 u8 name_len; member in struct:dlm_assert_joined 742 u8 name_len; member in struct:dlm_cancel_join
|
H A D | dlmdomain.c | 839 dlm = __dlm_lookup_domain_full(query->domain, query->name_len); dlm_query_join_handler() 939 dlm = __dlm_lookup_domain_full(assert->domain, assert->name_len); dlm_assert_joined_handler() 1351 dlm = __dlm_lookup_domain_full(cancel->domain, cancel->name_len); dlm_cancel_join_handler() 1376 cancel_msg.name_len = strlen(dlm->name); dlm_send_one_join_cancel() 1377 memcpy(cancel_msg.domain, dlm->name, cancel_msg.name_len); dlm_send_one_join_cancel() 1443 join_msg.name_len = strlen(dlm->name); dlm_request_join() 1444 memcpy(join_msg.domain, dlm->name, join_msg.name_len); dlm_request_join() 1521 assert_msg.name_len = strlen(dlm->name); dlm_send_one_join_assert() 1522 memcpy(assert_msg.domain, dlm->name, assert_msg.name_len); dlm_send_one_join_assert()
|
/linux-4.1.27/fs/ncpfs/ |
H A D | ncplib_kernel.c | 354 const __u8 *name_len; ncp_extract_file_info() local 358 name_len = structure + info_struct_size; ncp_extract_file_info() 359 target->nameLen = *name_len; ncp_extract_file_info() 360 memcpy(target->entryName, name_len + 1, *name_len); ncp_extract_file_info() 361 target->entryName[*name_len] = '\0'; ncp_extract_file_info()
|
/linux-4.1.27/drivers/gpu/drm/ |
H A D | drm_ioc32.c | 79 u32 name_len; /**< Length of name buffer */ member in struct:drm_version_32 100 if (__put_user(v32.name_len, &version->name_len) compat_drm_version() 119 || __get_user(v32.name_len, &version->name_len) compat_drm_version()
|
H A D | drm_ioctl.c | 476 err = drm_copy_field(version->name, &version->name_len, drm_version()
|
/linux-4.1.27/drivers/usb/gadget/function/ |
H A D | f_fs.c | 2638 ext_prop->name_len = le16_to_cpu(desc->wPropertyNameLength); __ffs_func_bind_do_os_desc() 2640 usb_ext_prop_data_len_ptr(data, ext_prop->name_len)); __ffs_func_bind_do_os_desc() 2641 length = ext_prop->name_len + ext_prop->data_len + 14; __ffs_func_bind_do_os_desc() 2645 ext_prop->name_len; __ffs_func_bind_do_os_desc() 2651 usb_ext_prop_data_ptr(data, ext_prop->name_len), __ffs_func_bind_do_os_desc() 2665 ext_prop->name_len); __ffs_func_bind_do_os_desc() 2667 ext_prop->name_len *= 2; __ffs_func_bind_do_os_desc() 2671 ext_prop->name_len + ext_prop->data_len + 14; __ffs_func_bind_do_os_desc() 3144 int name_len, ret; ffs_set_inst_name() local 3146 name_len = strlen(name) + 1; ffs_set_inst_name() 3147 if (name_len > MAX_INST_NAME_LEN) ffs_set_inst_name() 3150 ptr = kstrndup(name, name_len, GFP_KERNEL); ffs_set_inst_name()
|
/linux-4.1.27/include/linux/mtd/ |
H A D | ubi.h | 68 * @name_len: volume name length 123 int name_len; member in struct:ubi_volume_info
|
/linux-4.1.27/net/bluetooth/ |
H A D | mgmt.c | 838 size_t name_len; create_default_scan_rsp_data() local 840 name_len = strlen(hdev->dev_name); create_default_scan_rsp_data() 841 if (name_len > 0) { create_default_scan_rsp_data() 844 if (name_len > max_len) { create_default_scan_rsp_data() 845 name_len = max_len; create_default_scan_rsp_data() 850 ptr[0] = name_len + 1; create_default_scan_rsp_data() 852 memcpy(ptr + 2, hdev->dev_name, name_len); create_default_scan_rsp_data() 854 ad_len += (name_len + 2); create_default_scan_rsp_data() 855 ptr += (name_len + 2); create_default_scan_rsp_data() 1115 size_t name_len; create_eir() local 1117 name_len = strlen(hdev->dev_name); create_eir() 1119 if (name_len > 0) { create_eir() 1121 if (name_len > 48) { create_eir() 1122 name_len = 48; create_eir() 1128 ptr[0] = name_len + 1; create_eir() 1130 memcpy(ptr + 2, hdev->dev_name, name_len); create_eir() 1132 ptr += (name_len + 2); create_eir() 7695 u32 flags, u8 *name, u8 name_len) mgmt_device_connected() 7715 if (name_len > 0) mgmt_device_connected() 7717 name, name_len); mgmt_device_connected() 8349 u8 addr_type, s8 rssi, u8 *name, u8 name_len) mgmt_remote_name() 8364 name_len); mgmt_remote_name() 7694 mgmt_device_connected(struct hci_dev *hdev, struct hci_conn *conn, u32 flags, u8 *name, u8 name_len) mgmt_device_connected() argument 8348 mgmt_remote_name(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, u8 addr_type, s8 rssi, u8 *name, u8 name_len) mgmt_remote_name() argument
|
H A D | hci_event.c | 1691 bdaddr_t *bdaddr, u8 *name, u8 name_len) hci_check_pending_name() 1704 mgmt_device_connected(hdev, conn, 0, name, name_len); hci_check_pending_name() 1727 e->data.rssi, name, name_len); hci_check_pending_name() 1690 hci_check_pending_name(struct hci_dev *hdev, struct hci_conn *conn, bdaddr_t *bdaddr, u8 *name, u8 name_len) hci_check_pending_name() argument
|
/linux-4.1.27/net/batman-adv/ |
H A D | main.c | 1231 size_t name_len = strlen(algo_name); batadv_param_set_ra() local 1233 if (name_len > 0 && algo_name[name_len - 1] == '\n') batadv_param_set_ra() 1234 algo_name[name_len - 1] = '\0'; batadv_param_set_ra()
|
/linux-4.1.27/net/ceph/ |
H A D | debugfs.c | 159 seq_printf(s, "%.*s", req->r_base_oid.name_len, osdc_show()
|
H A D | osd_client.c | 568 op->xattr.name_len = payload_len; osd_req_op_xattr_init() 716 dst->xattr.name_len = cpu_to_le32(src->xattr.name_len); osd_req_encode_op() 810 req->r_base_oid.name_len = strlen(req->r_base_oid.name); ceph_osdc_new_request() 1352 if (req->r_target_oid.name_len == 0) { __calc_request_pg() 2432 ceph_encode_32(&p, req->r_base_oid.name_len); ceph_osdc_build_request() 2433 memcpy(p, req->r_base_oid.name, req->r_base_oid.name_len); ceph_osdc_build_request() 2434 dout("oid '%.*s' len %d\n", req->r_base_oid.name_len, ceph_osdc_build_request() 2435 req->r_base_oid.name, req->r_base_oid.name_len); ceph_osdc_build_request() 2436 p += req->r_base_oid.name_len; ceph_osdc_build_request()
|
H A D | osdmap.c | 1466 oid->name_len); ceph_oloc_oid_to_pg() 1468 dout("%s '%.*s' pgid %llu.%x\n", __func__, oid->name_len, oid->name, ceph_oloc_oid_to_pg()
|
/linux-4.1.27/sound/core/ |
H A D | control.c | 1157 size_t buf_len, name_len; snd_ctl_elem_init_enum_names() local 1173 name_len = strnlen(p, buf_len); snd_ctl_elem_init_enum_names() 1174 if (name_len == 0 || name_len >= 64 || name_len == buf_len) { snd_ctl_elem_init_enum_names() 1178 p += name_len + 1; snd_ctl_elem_init_enum_names() 1179 buf_len -= name_len + 1; snd_ctl_elem_init_enum_names()
|
/linux-4.1.27/drivers/remoteproc/ |
H A D | remoteproc_core.c | 1254 int name_len = 0; rproc_alloc() local 1268 name_len = strlen(name) + strlen(template) - 2 + 1; rproc_alloc() 1270 rproc = kzalloc(sizeof(struct rproc) + len + name_len, GFP_KERNEL); rproc_alloc() 1278 snprintf(p, name_len, template, name); rproc_alloc()
|
/linux-4.1.27/drivers/usb/gadget/ |
H A D | configfs.c | 1108 ext_prop->name_len = 2 * strlen(ext_prop->name) + 2; ext_prop_make() 1111 desc->ext_prop_len += ext_prop->name_len; ext_prop_make() 1130 desc->ext_prop_len -= (ext_prop->name_len + ext_prop->data_len + 14); ext_prop_drop()
|
H A D | composite.c | 1408 ext_prop->name_len + 14; fill_ext_prop() 1414 ext_prop->name_len); fill_ext_prop()
|
/linux-4.1.27/drivers/hid/ |
H A D | hid-sony.c | 1430 size_t name_len; sony_leds_init() local 1443 name_len = strlen("::buzz#"); sony_leds_init() 1455 name_len = 0; sony_leds_init() 1462 name_len = strlen("::sony#"); sony_leds_init() 1473 name_sz = strlen(dev_name(&hdev->dev)) + name_len + 1; sony_leds_init()
|
/linux-4.1.27/net/ |
H A D | socket.c | 1828 unsigned int name_len; member in struct:used_address 1946 * used_address->name_len is initialized to UINT_MAX so that the first ___sys_sendmsg() 1950 used_address->name_len == msg_sys->msg_namelen && ___sys_sendmsg() 1952 used_address->name_len)) { ___sys_sendmsg() 1962 used_address->name_len = msg_sys->msg_namelen; ___sys_sendmsg() 1965 used_address->name_len); ___sys_sendmsg() 2027 used_address.name_len = UINT_MAX; __sys_sendmmsg()
|
/linux-4.1.27/include/net/bluetooth/ |
H A D | hci_core.h | 1356 u32 flags, u8 *name, u8 name_len); 1395 u8 addr_type, s8 rssi, u8 *name, u8 name_len);
|
/linux-4.1.27/include/linux/usb/ |
H A D | composite.h | 63 * @name_len: Extended Property unicode name length, including terminating '\0' 72 int name_len; member in struct:usb_os_desc_ext_prop
|
/linux-4.1.27/security/selinux/ss/ |
H A D | services.c | 2434 size_t name_len; security_get_bools() local 2437 name_len = strlen(sym_name(&policydb, SYM_BOOLS, i)) + 1; security_get_bools() 2440 (*names)[i] = kmalloc(sizeof(char) * name_len, GFP_ATOMIC); security_get_bools() 2444 strncpy((*names)[i], sym_name(&policydb, SYM_BOOLS, i), name_len); security_get_bools() 2445 (*names)[i][name_len - 1] = 0; security_get_bools()
|
/linux-4.1.27/fs/ |
H A D | posix_acl.c | 832 const char *name, size_t name_len, int type) posix_acl_xattr_list() 831 posix_acl_xattr_list(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) posix_acl_xattr_list() argument
|
/linux-4.1.27/drivers/pci/ |
H A D | pci-sysfs.c | 1142 int name_len = write_combine ? 13 : 10; pci_create_attr() local 1146 res_attr = kzalloc(sizeof(*res_attr) + name_len, GFP_ATOMIC); pci_create_attr()
|
/linux-4.1.27/fs/jfs/ |
H A D | jfs_dtree.c | 2978 u16 name_len; member in struct:jfs_dirent 2989 ((sizeof (struct jfs_dirent) + dirent->name_len + 1 + next_jfs_dirent() 3254 jfs_dirent->name_len = outlen; jfs_readdir() 3274 jfs_dirent->name_len += outlen; jfs_readdir() 3309 jfs_dirent->name_len, jfs_readdir()
|
/linux-4.1.27/arch/sparc/kernel/ |
H A D | mdesc.c | 52 u8 name_len; member in struct:mdesc_elem
|
/linux-4.1.27/include/uapi/drm/ |
H A D | drm.h | 132 size_t name_len; /**< Length of name buffer */ member in struct:drm_version
|
/linux-4.1.27/drivers/scsi/qla2xxx/ |
H A D | qla_gs.c | 679 ct_req->req.rsnn_nn.name_len = qla2x00_rsnn_nn() 684 cpu_to_le32(24 + 1 + ct_req->req.rsnn_nn.name_len); qla2x00_rsnn_nn()
|
H A D | qla_def.h | 2374 uint8_t name_len; member in struct:ct_sns_req::__anon9506::__anon9512
|
/linux-4.1.27/sound/pci/hda/ |
H A D | hda_generic.c | 2680 char *name, size_t name_len) get_jack_mode_name() 2685 snd_hda_get_pin_label(codec, pin, &spec->autocfg, name, name_len, &idx); get_jack_mode_name() 2686 strlcat(name, " Jack Mode", name_len); get_jack_mode_name() 2679 get_jack_mode_name(struct hda_codec *codec, hda_nid_t pin, char *name, size_t name_len) get_jack_mode_name() argument
|
/linux-4.1.27/scripts/ |
H A D | checkpatch.pl | 2857 my ($name_len) = length($1); 2860 substr($ctx, 0, $name_len + 1, '');
|
/linux-4.1.27/fs/nfs/ |
H A D | nfs4proc.c | 6140 size_t name_len, int type) nfs4_xattr_list_nfs4_acl() 6178 size_t name_len, int type) nfs4_xattr_list_nfs4_label() 6138 nfs4_xattr_list_nfs4_acl(struct dentry *dentry, char *list, size_t list_len, const char *name, size_t name_len, int type) nfs4_xattr_list_nfs4_acl() argument 6176 nfs4_xattr_list_nfs4_label(struct dentry *dentry, char *list, size_t list_len, const char *name, size_t name_len, int type) nfs4_xattr_list_nfs4_label() argument
|