Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 6 files:

Smatch caller information:

drivers/firmware/efi/apple-properties.c unmarshal_key_value_pairs() -> ucs2_as_utf8()

Type Parameter Key Value
PARAM_VALUE 0 dest 4096-ptr_max
PARAM_VALUE 1 *src 1-u16max
PARAM_VALUE 2 maxlength 2-999999
BUF_SIZE 0 dest 9-17179869165
BUF_SIZE 0 dest 9-17179869165
DATA_SOURCE 0 dest r _kzalloc_noprof
NOCHECK_CALL
UNITS 1 src unit_byte
UNITS 2 maxlength unit_byte

drivers/firmware/efi/efi-pstore.c efi_pstore_read_func() -> ucs2_as_utf8()

Type Parameter Key Value
PARAM_VALUE 0 dest 6076146563791888384
PARAM_VALUE 2 maxlength 66
BUF_SIZE 0 dest 66
BUF_SIZE 1 src 1-s32max
BUF_SIZE 1 src 1-s32max
DATA_SOURCE 1 src $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &psi->read_mutex
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 _T->lock
HALF_LOCKED2 global &efivars_lock
HALF_LOCKED2 global &psinfo_lock
TYPE_LOCK (struct pstore_info)->read_mutex

fs/efivarfs/vars.c efivar_get_utf8name() -> ucs2_as_utf8()

Type Parameter Key Value
PARAM_VALUE 0 dest 16,4096-ptr_max
PARAM_VALUE 1 src 4096-ptr_max
PARAM_VALUE 2 maxlength 0-3999962,18446744073709551578,u64max
BUF_SIZE 0 dest 0-s32max,18446744071562067968-u64max
BUF_SIZE 0 dest 0-s32max,18446744071562067968-u64max
BUF_SIZE 1 src 512
BUF_SIZE 1 src 512
DATA_SOURCE 0 dest r _kmalloc_noprof
DATA_SOURCE 1 src $0
DATA_SOURCE 2 maxlength r ucs2_utf8size
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 global &efivars_lock
HALF_LOCKED2 &sb->s_umount

fs/efivarfs/vars.c efivar_validate() -> ucs2_as_utf8()

Type Parameter Key Value
PARAM_VALUE 0 dest 16,4096-ptr_max
PARAM_VALUE 1 src 4096-ptr_max
PARAM_VALUE 2 maxlength 0-3999999,u64max
BUF_SIZE 0 dest 0-u64max
BUF_SIZE 1 src 1024
BUF_SIZE 1 src 1024
DATA_SOURCE 0 dest r _kmalloc_noprof
DATA_SOURCE 1 src $1
DATA_SOURCE 2 maxlength r ucs2_utf8size
NOCHECK_CALL
ELEM_LAST 0 ==dest2 8052
LOCK2 &inode->i_rwsem
TYPE_LOCK (struct inode)->i_rwsem

drivers/net/hyperv/rndis_filter.c rndis_get_friendly_name() -> ucs2_as_utf8()

Type Parameter Key Value
PARAM_VALUE 0 dest 7148674682560528384
PARAM_VALUE 1 src 4482649120583983104
PARAM_VALUE 2 maxlength 256
BUF_SIZE 0 dest 256
BUF_SIZE 1 src 512
RX_PATH
TASK_NOT_RUNNING
UNITS 2 maxlength unit_byte
HALF_LOCKED2 global &rtnl_mutex

drivers/firmware/efi/efi.c efivar_ssdt_load() -> ucs2_as_utf8()

Type Parameter Key Value
PARAM_VALUE 0 dest 3328238836331876352
PARAM_VALUE 1 src 1-u64max
PARAM_VALUE 2 maxlength 0-15,u64max
BUF_SIZE 0 dest 16
BUF_SIZE 1 src 0-u64max
CAPPED_DATA 2 maxlength 1
NOCHECK_CALL