| /linux/drivers/firmware/efi/stmm/ |
| H A D | tee_stmm_efi.c | 240 static efi_status_t get_property_int(u16 *name, size_t name_size, in get_property_int() argument 250 payload_size = sizeof(*smm_property) + name_size; in get_property_int() 261 smm_property->name_size = name_size; in get_property_int() 262 memcpy(smm_property->name, name, name_size); in get_property_int() 290 size_t name_size; in tee_get_variable() local 298 name_size = (ucs2_strnlen(name, EFI_VAR_NAME_LEN) + 1) * sizeof(u16); in tee_get_variable() 299 if (name_size > max_payload_size - MM_VARIABLE_ACCESS_HEADER_SIZE) in tee_get_variable() 304 if (name_size + tmp_dsize > in tee_get_variable() 307 name_size; in tee_get_variable() 310 payload_size = MM_VARIABLE_ACCESS_HEADER_SIZE + name_size + tmp_dsize; in tee_get_variable() [all …]
|
| /linux/fs/squashfs/ |
| H A D | xattr.c | 48 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/tools/testing/selftests/kvm/ |
| H A D | kvm_binary_stats_test.c | 41 id = malloc(header.name_size); in stats_test() 44 ret = pread(stats_fd, id, header.name_size, sizeof(header)); in stats_test() 45 TEST_ASSERT(ret == header.name_size, in stats_test() 47 header.name_size, ret); in stats_test() 50 TEST_ASSERT(!strncmp(id, "kvm", 3) && strlen(id) < header.name_size, in stats_test() 82 TEST_ASSERT(strlen(pdesc->name) < header.name_size, in stats_test()
|
| /linux/fs/ceph/ |
| H A D | xattr.c | 35 size_t name_size; /* strlen(name) + 1 (for '\0') */ member 379 .name_size = sizeof (CEPH_XATTR_NAME(_type, _name)), \ 389 .name_size = sizeof (CEPH_XATTR_NAME(_type, _name)), \ 397 .name_size = sizeof (CEPH_XATTR_NAME2(_type, _name, _field)), \ 405 .name_size = sizeof(CEPH_XATTR_NAME(_type, _name)), \ 414 .name_size = sizeof("ceph.dir.layout"), 435 .name_size = sizeof("ceph.dir.pin"), 442 .name_size = sizeof("ceph.quota"), 451 .name_size = sizeof("ceph.snap.btime"), 458 .name_size = sizeof("ceph.caps"), [all …]
|
| /linux/fs/efivarfs/ |
| H A D | super.c | 236 unsigned long name_size, efi_guid_t vendor, in efivarfs_create_dentry() argument 260 memcpy(entry->var.VariableName, name16, name_size); in efivarfs_create_dentry() 292 unsigned long name_size, void *data) in efivarfs_callback() argument 304 return efivarfs_create_dentry(sb, name16, name_size, vendor, name); in efivarfs_callback() 408 unsigned long name_size, void *data) in efivarfs_check_missing() argument 431 return efivarfs_create_dentry(sb, name16, name_size, vendor, name); in efivarfs_check_missing()
|
| /linux/drivers/firmware/efi/ |
| H A D | efi.c | 201 unsigned long name_size; in generic_ops_supported() local 206 name_size = sizeof(name); in generic_ops_supported() 210 status = efi.get_next_variable(&name_size, &name, &guid); in generic_ops_supported() 274 unsigned long name_size = 256; in efivar_ssdt_load() local 283 name = kzalloc(name_size, GFP_KERNEL); in efivar_ssdt_load() 293 status = efi.get_next_variable(&name_size, name, &guid); in efivar_ssdt_load() 298 krealloc(name, name_size, GFP_KERNEL); in efivar_ssdt_load() 307 limit = min(EFIVAR_SSDT_NAME_MAX, name_size); in efivar_ssdt_load()
|
| H A D | vars.c | 196 efi_status_t efivar_get_next_variable(unsigned long *name_size, in efivar_get_next_variable() argument 199 return __efivars->ops->get_next_variable(name_size, name, vendor); in efivar_get_next_variable()
|
| /linux/drivers/xen/ |
| H A D | efi.c | 143 static efi_status_t xen_efi_get_next_variable(unsigned long *name_size, in xen_efi_get_next_variable() argument 149 efi_data(op).u.get_next_variable_name.size = *name_size; in xen_efi_get_next_variable() 159 *name_size = efi_data(op).u.get_next_variable_name.size; in xen_efi_get_next_variable()
|
| /linux/drivers/firmware/efi/test/ |
| H A D | efi_test.c | 411 unsigned long name_size, prev_name_size = 0, *ns = NULL; in efi_runtime_get_nextvariablename() local 425 if (get_user(name_size, getnextvariablename.variable_name_size)) in efi_runtime_get_nextvariablename() 427 ns = &name_size; in efi_runtime_get_nextvariablename() 428 prev_name_size = name_size; in efi_runtime_get_nextvariablename()
|
| /linux/drivers/firmware/google/ |
| H A D | gsmi.c | 375 static efi_status_t gsmi_get_next_variable(unsigned long *name_size, in gsmi_get_next_variable() argument 388 if (*name_size != GSMI_BUF_SIZE) in gsmi_get_next_variable() 401 memcpy(gsmi_dev.name_buf->start, name, *name_size); in gsmi_get_next_variable() 420 *name_size = ucs2_strnlen(name, GSMI_BUF_SIZE / 2) * 2; in gsmi_get_next_variable()
|
| /linux/fs/ntfs/ |
| H A D | dir.c | 204 int name_size = sizeof(struct ntfs_name); in ntfs_lookup_inode_by_name() local 216 name_size += len * sizeof(__le16); in ntfs_lookup_inode_by_name() 217 name = kmalloc(name_size, GFP_NOFS); in ntfs_lookup_inode_by_name() 475 int name_size = sizeof(struct ntfs_name); in ntfs_lookup_inode_by_name() local 488 name_size += len * sizeof(__le16); in ntfs_lookup_inode_by_name() 489 name = kmalloc(name_size, GFP_NOFS); in ntfs_lookup_inode_by_name()
|
| /linux/fs/smb/client/ |
| H A D | reparse.c | 618 u8 name_size = SMB2_WSL_XATTR_NAME_LEN + 1; in wsl_set_xattrs() local 629 xattrs[i].next = ALIGN(sizeof(*ea) + name_size + in wsl_set_xattrs() 644 ea->ea_name_length = name_size - 1; in wsl_set_xattrs() 646 memcpy(ea->ea_data, xattrs[i].name, name_size); in wsl_set_xattrs() 647 memcpy(&ea->ea_data[name_size], in wsl_set_xattrs()
|
| /linux/fs/befs/ |
| H A D | befs_fs_types.h | 170 fs16 name_size; member
|
| /linux/arch/loongarch/kvm/ |
| H A D | vm.c | 20 .name_size = KVM_STATS_NAME_SIZE,
|
| /linux/fs/ecryptfs/ |
| H A D | ecryptfs_kernel.h | 545 const char *name, size_t name_size); 550 const char *name, size_t name_size);
|
| /linux/arch/riscv/kvm/ |
| H A D | vm.c | 23 .name_size = KVM_STATS_NAME_SIZE,
|
| /linux/drivers/char/tpm/ |
| H A D | tpm2-sessions.c | 147 static int name_size(const u8 *name) in name_size() function 204 name_size_alg = name_size(&buf.data[offset]); in tpm2_read_public() 701 ret = name_size(auth->name[i]); in tpm_buf_fill_hmac_session()
|
| /linux/drivers/char/ |
| H A D | virtio_console.c | 1529 size_t name_size; in handle_control_message() local 1627 name_size = buf->len - buf->offset - sizeof(*cpkt) + 1; in handle_control_message() 1629 port->name = kmalloc(name_size, GFP_KERNEL); in handle_control_message() 1636 name_size); in handle_control_message()
|
| /linux/fs/jfs/ |
| H A D | xattr.c | 95 static inline int name_size(struct jfs_ea *ea) in name_size() function 905 size += name_size(ea) + 1; in jfs_listxattr()
|
| /linux/arch/arm64/kvm/ |
| H A D | guest.c | 37 .name_size = KVM_STATS_NAME_SIZE, 57 .name_size = KVM_STATS_NAME_SIZE,
|
| /linux/include/linux/ |
| H A D | efi.h | 291 typedef efi_status_t efi_get_next_variable_t (unsigned long *name_size, efi_char16_t *name, 1076 efi_status_t efivar_get_next_variable(unsigned long *name_size,
|
| /linux/arch/powerpc/kvm/ |
| H A D | book3s.c | 48 .name_size = KVM_STATS_NAME_SIZE, 90 .name_size = KVM_STATS_NAME_SIZE,
|
| /linux/kernel/module/ |
| H A D | main.c | 2254 size_t name_size; in elf_validity_cache_index_versions() local 2285 name_size = strnlen(name, remaining_len) + 1; in elf_validity_cache_index_versions() 2286 if (name_size > remaining_len) { in elf_validity_cache_index_versions() 2290 remaining_len -= name_size; in elf_validity_cache_index_versions() 2291 name += name_size; in elf_validity_cache_index_versions()
|
| /linux/arch/mips/kvm/ |
| H A D | mips.c | 46 .name_size = KVM_STATS_NAME_SIZE, 88 .name_size = KVM_STATS_NAME_SIZE,
|
| /linux/sound/usb/ |
| H A D | mixer.c | 1986 bool is_input, char *name, int name_size) in get_connector_control_name() 1988 int name_len = get_term_name(mixer->chip, term, name, name_size, 0); in get_connector_control_name() 1991 strscpy(name, "Unknown", name_size); in get_connector_control_name() 1999 strlcat(name, " - Input Jack", name_size); in connector_mixer_resume() 2001 strlcat(name, " - Output Jack", name_size); in connector_mixer_resume() 1976 get_connector_control_name(struct usb_mixer_interface * mixer,struct usb_audio_term * term,bool is_input,char * name,int name_size) get_connector_control_name() argument
|