Home
last modified time | relevance | path

Searched refs:name_size (Results 1 – 25 of 37) sorted by relevance

12

/linux-5.19.10/fs/squashfs/
Dxattr.c48 int name_size; in squashfs_listxattr() local
55 name_size = le16_to_cpu(entry.size); in squashfs_listxattr()
62 if (prefix_size + name_size + 1 > rest) { in squashfs_listxattr()
70 &offset, name_size); in squashfs_listxattr()
74 buffer[name_size] = '\0'; in squashfs_listxattr()
75 buffer += name_size + 1; in squashfs_listxattr()
77 rest -= prefix_size + name_size + 1; in squashfs_listxattr()
81 &offset, name_size); in squashfs_listxattr()
125 int type, prefix, name_size; in squashfs_xattr_get() local
132 name_size = le16_to_cpu(entry.size); in squashfs_xattr_get()
[all …]
/linux-5.19.10/tools/testing/selftests/kvm/
Dkvm_binary_stats_test.c41 size_desc = sizeof(*stats_desc) + header->name_size; in stats_test()
44 id = malloc(header->name_size); in stats_test()
46 ret = read(stats_fd, id, header->name_size); in stats_test()
47 TEST_ASSERT(ret == header->name_size, "Read id string"); in stats_test()
50 TEST_ASSERT(!strncmp(id, "kvm", 3) && strlen(id) < header->name_size, in stats_test()
107 TEST_ASSERT(strlen(pdesc->name) < header->name_size, in stats_test()
/linux-5.19.10/fs/ecryptfs/
Dcrypto.c1514 const char *name, size_t name_size) in ecryptfs_copy_filename() argument
1518 (*copied_name) = kmalloc((name_size + 1), GFP_KERNEL); in ecryptfs_copy_filename()
1523 memcpy((void *)(*copied_name), (void *)name, name_size); in ecryptfs_copy_filename()
1524 (*copied_name)[(name_size)] = '\0'; /* Only for convenience in ecryptfs_copy_filename()
1528 (*copied_name_size) = name_size; in ecryptfs_copy_filename()
1892 const char *name, size_t name_size) in ecryptfs_encrypt_and_encode_filename() argument
1909 filename->filename_size = name_size; in ecryptfs_encrypt_and_encode_filename()
1970 name, name_size); in ecryptfs_encrypt_and_encode_filename()
1976 static bool is_dot_dotdot(const char *name, size_t name_size) in is_dot_dotdot() argument
1978 if (name_size == 1 && name[0] == '.') in is_dot_dotdot()
[all …]
Dfile.c62 size_t name_size; in ecryptfs_filldir() local
67 rc = ecryptfs_decode_and_decrypt_filename(&name, &name_size, in ecryptfs_filldir()
88 rc = !dir_emit(buf->caller, name, name_size, ino, d_type); in ecryptfs_filldir()
Decryptfs_kernel.h553 const char *name, size_t name_size);
559 const char *name, size_t name_size);
/linux-5.19.10/fs/ceph/
Dxattr.c35 size_t name_size; /* strlen(name) + 1 (for '\0') */ member
362 .name_size = sizeof (CEPH_XATTR_NAME(_type, _name)), \
372 .name_size = sizeof (CEPH_XATTR_NAME(_type, _name)), \
380 .name_size = sizeof (CEPH_XATTR_NAME2(_type, _name, _field)), \
388 .name_size = sizeof(CEPH_XATTR_NAME(_type, _name)), \
397 .name_size = sizeof("ceph.dir.layout"),
418 .name_size = sizeof("ceph.dir.pin"),
425 .name_size = sizeof("ceph.quota"),
434 .name_size = sizeof("ceph.snap.btime"),
441 .name_size = sizeof("ceph.caps"),
[all …]
/linux-5.19.10/drivers/firmware/efi/
Defi-pstore.c364 unsigned long name_size, void *data) in efi_pstore_callback() argument
373 memcpy(entry->var.VariableName, name, name_size); in efi_pstore_callback()
384 unsigned long name_size, void *data) in efi_pstore_update_entry() argument
391 memcpy(entry->var.VariableName, name, name_size); in efi_pstore_update_entry()
Druntime-wrappers.c315 static efi_status_t virt_efi_get_next_variable(unsigned long *name_size, in virt_efi_get_next_variable() argument
323 status = efi_queue_work(EFI_GET_NEXT_VARIABLE, name_size, name, vendor, in virt_efi_get_next_variable()
Defi.c223 unsigned long name_size, void *data) in efivar_ssdt_iter() argument
228 int limit = min_t(unsigned long, EFIVAR_SSDT_NAME_MAX, name_size); in efivar_ssdt_iter()
238 memcpy(entry->var.VariableName, name, name_size); in efivar_ssdt_iter()
Defivars.c594 unsigned long name_size, void *data) in efivars_sysfs_callback() argument
602 memcpy(entry->var.VariableName, name, name_size); in efivars_sysfs_callback()
/linux-5.19.10/drivers/xen/
Defi.c142 static efi_status_t xen_efi_get_next_variable(unsigned long *name_size, in xen_efi_get_next_variable() argument
148 efi_data(op).u.get_next_variable_name.size = *name_size; in xen_efi_get_next_variable()
158 *name_size = efi_data(op).u.get_next_variable_name.size; in xen_efi_get_next_variable()
/linux-5.19.10/fs/efivarfs/
Dsuper.c107 unsigned long name_size, void *data) in efivarfs_callback() argument
123 memcpy(entry->var.VariableName, name16, name_size); in efivarfs_callback()
/linux-5.19.10/drivers/firmware/efi/test/
Defi_test.c407 unsigned long name_size, prev_name_size = 0, *ns = NULL; in efi_runtime_get_nextvariablename() local
421 if (get_user(name_size, getnextvariablename.variable_name_size)) in efi_runtime_get_nextvariablename()
423 ns = &name_size; in efi_runtime_get_nextvariablename()
424 prev_name_size = name_size; in efi_runtime_get_nextvariablename()
/linux-5.19.10/arch/riscv/kvm/
Dvm.c22 .name_size = KVM_STATS_NAME_SIZE,
/linux-5.19.10/drivers/firmware/google/
Dgsmi.c374 static efi_status_t gsmi_get_next_variable(unsigned long *name_size, in gsmi_get_next_variable() argument
387 if (*name_size != GSMI_BUF_SIZE) in gsmi_get_next_variable()
400 memcpy(gsmi_dev.name_buf->start, name, *name_size); in gsmi_get_next_variable()
419 *name_size = ucs2_strnlen(name, GSMI_BUF_SIZE / 2) * 2; in gsmi_get_next_variable()
/linux-5.19.10/fs/ntfs/
Ddir.c197 int name_size = sizeof(ntfs_name); in ntfs_lookup_inode_by_name() local
214 name_size += len * sizeof(ntfschar); in ntfs_lookup_inode_by_name()
215 name = kmalloc(name_size, GFP_NOFS); in ntfs_lookup_inode_by_name()
457 int name_size = sizeof(ntfs_name); in ntfs_lookup_inode_by_name() local
476 name_size += len * sizeof(ntfschar); in ntfs_lookup_inode_by_name()
477 name = kmalloc(name_size, GFP_NOFS); in ntfs_lookup_inode_by_name()
/linux-5.19.10/arch/x86/platform/efi/
Defi_64.c669 efi_thunk_get_next_variable(unsigned long *name_size, in efi_thunk_get_next_variable() argument
683 phys_name_size = virt_to_phys_or_null(name_size); in efi_thunk_get_next_variable()
685 phys_name = virt_to_phys_or_null_size(name, *name_size); in efi_thunk_get_next_variable()
/linux-5.19.10/fs/befs/
Dbefs_fs_types.h170 fs16 name_size; member
/linux-5.19.10/drivers/char/
Dvirtio_console.c1568 size_t name_size; in handle_control_message() local
1665 name_size = buf->len - buf->offset - sizeof(*cpkt) + 1; in handle_control_message()
1667 port->name = kmalloc(name_size, GFP_KERNEL); in handle_control_message()
1674 name_size - 1); in handle_control_message()
1675 port->name[name_size - 1] = 0; in handle_control_message()
/linux-5.19.10/drivers/gpu/drm/amd/amdgpu/
Datom.c1311 int name_size; in atom_get_vbios_name() local
1345 name_size = strnlen(c_ptr, STRLEN_LONG - 1); in atom_get_vbios_name()
1346 memcpy(ctx->name, c_ptr, name_size); in atom_get_vbios_name()
1347 back = ctx->name + name_size; in atom_get_vbios_name()
/linux-5.19.10/fs/jfs/
Dxattr.c95 static inline int name_size(struct jfs_ea *ea) in name_size() function
881 size += name_size(ea) + 1; in jfs_listxattr()
/linux-5.19.10/arch/arm64/kvm/
Dguest.c36 .name_size = KVM_STATS_NAME_SIZE,
56 .name_size = KVM_STATS_NAME_SIZE,
/linux-5.19.10/fs/ocfs2/
Dxattr.c1527 int name_size = OCFS2_XATTR_SIZE(loc->xl_entry->xe_name_len); in ocfs2_xa_fill_value_buf() local
1532 (name_size + OCFS2_XATTR_ROOT_SIZE)); in ocfs2_xa_fill_value_buf()
1538 name_size); in ocfs2_xa_fill_value_buf()
2047 int name_size = OCFS2_XATTR_SIZE(loc->xl_entry->xe_name_len); in ocfs2_xa_install_value_root() local
2052 memcpy(nameval_buf + name_size, &def_xv, OCFS2_XATTR_ROOT_SIZE); in ocfs2_xa_install_value_root()
2065 int name_size = OCFS2_XATTR_SIZE(xi->xi_name_len); in ocfs2_xa_reuse_entry() local
2072 name_size); in ocfs2_xa_reuse_entry()
2077 memset(nameval_buf + name_size, 0, in ocfs2_xa_reuse_entry()
2078 namevalue_size_xe(loc->xl_entry) - name_size); in ocfs2_xa_reuse_entry()
2088 memset(nameval_buf + name_size, 0, in ocfs2_xa_reuse_entry()
[all …]
/linux-5.19.10/arch/powerpc/kvm/
Dbook3s.c48 .name_size = KVM_STATS_NAME_SIZE,
90 .name_size = KVM_STATS_NAME_SIZE,
/linux-5.19.10/fs/ntfs3/
Dfrecord.c1391 u32 name_size = ALIGN(name_len * sizeof(short), 8); in ni_insert_nonresident() local
1393 u32 run_off = name_off + name_size; in ni_insert_nonresident()
1461 u32 name_size = ALIGN(name_len * sizeof(short), 8); in ni_insert_resident() local
1462 u32 asize = SIZEOF_RESIDENT + name_size + ALIGN(data_size, 8); in ni_insert_resident()
1474 attr->res.data_off = cpu_to_le16(SIZEOF_RESIDENT + name_size); in ni_insert_resident()

12