Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 22 files:
- drivers/acpi/device_sysfs.c, line 486
- drivers/hid/hid-cp2112.c, line 1030
- drivers/hv/hv_kvp.c
- drivers/hwmon/hp-wmi-sensors.c, line 439
- drivers/net/fjes/fjes_main.c, line 52
- drivers/pci/pci-label.c, line 146
- drivers/platform/wmi/string.c, line 44
- drivers/platform/x86/hp/hp-bioscfg/bioscfg.c, line 94
- drivers/ufs/core/ufshcd.c, line 3941
- drivers/usb/core/message.c, line 1051
- drivers/usb/gadget/configfs.c, line 1180
- fs/exfat/nls.c, line 487
- fs/f2fs/file.c, line 3755
- fs/fat/dir.c, line 213
- fs/isofs/joliet.c, line 50
- fs/nls/nls_base.c, line 244
- fs/ntfs/unistr.c, line 343
- fs/ntfs3/dir.c, line 35
- fs/ntfs3/super.c, line 1348
- fs/smb/client/cifs_unicode.c, line 129
- fs/smb/client/reparse.c, line 569
- fs/smb/server/unicode.c, line 83
Smatch caller information:
drivers/ufs/core/ufshcd.c ufshcd_read_string_desc() -> utf16s_to_utf8s()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | inlen | 1-126 |
| PARAM_VALUE | 2 | endian | 2 |
| PARAM_VALUE | 3 | s | 4096-ptr_max |
| PARAM_VALUE | 4 | maxout | 3-378 |
| BUF_SIZE | 0 | pwcs | 253 |
| BUF_SIZE | 3 | s | 4-379 |
| BUF_SIZE | 3 | s | 4-379 |
| DATA_SOURCE | 3 | s | r _kzalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &hba->host_sem | ||
| HALF_LOCKED2 | &of->mutex | ||
| TYPE_LOCK | (struct ufs_hba)->host_sem |
fs/smb/client/reparse.c wsl_set_reparse_buf() -> utf16s_to_utf8s()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pwcs | 16,4096-ptr_max |
| PARAM_VALUE | 1 | inlen | 0-2000000 |
| PARAM_VALUE | 2 | endian | 1 |
| PARAM_VALUE | 4 | maxout | 0-3999988 |
| BUF_SIZE | 0 | pwcs | s32min-s32max |
| BUF_SIZE | 3 | s | 0-6000000 |
| DATA_SOURCE | 0 | pwcs | r cifs_strndup_to_utf16 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 4 | maxout | unit_byte |
drivers/usb/core/message.c usb_string() -> utf16s_to_utf8s()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pwcs | 4096-ptr_max |
| PARAM_VALUE | 0 | *pwcs | 0-255 |
| PARAM_VALUE | 1 | inlen | 0-126 |
| PARAM_VALUE | 2 | endian | 1 |
| PARAM_VALUE | 3 | s | 4096-ptr_max |
| BUF_SIZE | 0 | pwcs | 254 |
| BUF_SIZE | 3 | s | (-1)-s32max |
| BUF_SIZE | 3 | s | (-1)-s32max |
| CAPPED_DATA | 1 | inlen | 1 |
| DATA_SOURCE | 3 | s | $2 |
| DATA_SOURCE | 4 | maxout | $3 [m] |
| TERMINATED | 3 | s | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 3 | s | unit_byte |
| UNITS | 4 | maxout | unit_byte |
| HALF_LOCKED2 | &hdev->driver_input_lock | ||
| HALF_LOCKED2 | &hiddev->existancelock |
fs/exfat/nls.c exfat_utf16_to_utf8() -> utf16s_to_utf8s()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | inlen | 255 |
| PARAM_VALUE | 2 | endian | 0 |
| BUF_SIZE | 0 | pwcs | 516 |
| BUF_SIZE | 0 | pwcs | 516 |
| BUF_SIZE | 3 | s | 256,4096 |
| BUF_SIZE | 3 | s | 256,4096 |
| DATA_SOURCE | 3 | s | $2 |
| DATA_SOURCE | 4 | maxout | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 4 | maxout | unit_byte |
fs/ntfs/unistr.c ntfs_ucstonls() -> utf16s_to_utf8s()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pwcs | 1-u64max |
| PARAM_VALUE | 2 | endian | 1 |
| PARAM_VALUE | 3 | s | 1-u64max |
| PARAM_VALUE | 4 | maxout | (-1)-3999999 |
| BUF_SIZE | 3 | s | 0-s32max,18446744071562067968-u64max |
| BUF_SIZE | 3 | s | 0-s32max,18446744071562067968-u64max |
| DATA_SOURCE | 0 | pwcs | $1 |
| DATA_SOURCE | 1 | inlen | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | pwcs | unit_byte |
| ELEM_LAST | 3 | ==s4 | 8052 |
| HALF_LOCKED2 | &ndir->mrec_lock |
drivers/pci/pci-label.c dsm_label_utf16s_to_utf8s() -> utf16s_to_utf8s()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | endian | 1 |
| PARAM_VALUE | 3 | s | 1-u64max |
| PARAM_VALUE | 4 | maxout | 4095 |
| DATA_SOURCE | 3 | s | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 4 | maxout | unit_byte |
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
fs/smb/server/unicode.c cifs_mapchar() -> utf16s_to_utf8s()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pwcs | 4096-ptr_max |
| PARAM_VALUE | 1 | inlen | 3 |
| PARAM_VALUE | 2 | endian | 1 |
| PARAM_VALUE | 3 | s | 4096-ptr_max |
| PARAM_VALUE | 4 | maxout | 6 |
| BUF_SIZE | 0 | pwcs | 6 |
| BUF_SIZE | 0 | pwcs | 6 |
| BUF_SIZE | 3 | s | (-1),6 |
| BUF_SIZE | 3 | s | (-1),6 |
| DATA_SOURCE | 0 | pwcs | $1 |
| DATA_SOURCE | 3 | s | $0 |
| HALF_LOCKED2 | &conn->srv_mutex | ||
| HALF_LOCKED2 | &pool->lock |
drivers/usb/gadget/configfs.c os_desc_qw_sign_show() -> utf16s_to_utf8s()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | inlen | 7 |
| PARAM_VALUE | 2 | endian | 1 |
| PARAM_VALUE | 3 | s | 1-u64max |
| PARAM_VALUE | 4 | maxout | 4095 |
| BUF_SIZE | 0 | pwcs | 14 |
| BUF_SIZE | 3 | s | (-1),4096 |
| BUF_SIZE | 3 | s | (-1),4096 |
| DATA_SOURCE | 3 | s | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 4 | maxout | unit_byte |
| LOCK2 | &buffer->mutex | ||
| LOCK2 | &frag->frag_sem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct configfs_buffer)->mutex | ||
| TYPE_LOCK | (struct configfs_fragment)->frag_sem |
fs/smb/client/cifs_unicode.c cifs_mapchar() -> utf16s_to_utf8s()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pwcs | 4096-ptr_max |
| PARAM_VALUE | 1 | inlen | 3 |
| PARAM_VALUE | 2 | endian | 1 |
| PARAM_VALUE | 3 | s | 4096-ptr_max |
| PARAM_VALUE | 4 | maxout | 6 |
| BUF_SIZE | 0 | pwcs | 6 |
| BUF_SIZE | 0 | pwcs | 6 |
| BUF_SIZE | 3 | s | (-1),6 |
| BUF_SIZE | 3 | s | (-1),6 |
| DATA_SOURCE | 0 | pwcs | $1 |
| DATA_SOURCE | 3 | s | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/hid/hid-cp2112.c pstr_show() -> utf16s_to_utf8s()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | inlen | 0-126,255 |
| PARAM_VALUE | 2 | endian | 1 |
| PARAM_VALUE | 3 | s | 1-u64max |
| PARAM_VALUE | 4 | maxout | 4095 |
| BUF_SIZE | 0 | pwcs | 60 |
| CAPPED_DATA | 1 | inlen | 1 |
| DATA_SOURCE | 3 | s | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 4 | maxout | unit_byte |
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
fs/isofs/joliet.c get_joliet_filename() -> utf16s_to_utf8s()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | inlen | 0-127 |
| PARAM_VALUE | 2 | endian | 2 |
| PARAM_VALUE | 3 | s | 4096-ptr_max |
| PARAM_VALUE | 4 | maxout | 4096 |
| BUF_SIZE | 3 | s | 1024 |
| BUF_SIZE | 3 | s | 1024 |
| DATA_SOURCE | 3 | s | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 4 | maxout | unit_byte |
drivers/net/fjes/fjes_main.c is_extended_socket_device() -> utf16s_to_utf8s()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | endian | 1 |
| PARAM_VALUE | 3 | s | 7217237532608143360 |
| PARAM_VALUE | 4 | maxout | 16 |
| BUF_SIZE | 3 | s | 17 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 4 | maxout | unit_byte |
drivers/platform/wmi/string.c wmi_string_to_utf8s() -> utf16s_to_utf8s()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | inlen | 0-s16max |
| PARAM_VALUE | 2 | endian | 1 |
| PARAM_VALUE | 3 | s | 1-u64max |
| BUF_SIZE | 0 | pwcs | 10,12 |
| BUF_SIZE | 3 | s | (-1),6-7 |
| BUF_SIZE | 3 | s | (-1),6-7 |
| DATA_SOURCE | 3 | s | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 4 | maxout | unit_byte |
| HALF_LOCKED2 | &of->mutex |
drivers/hv/hv_kvp.c kvp_send_key() -> utf16s_to_utf8s()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | endian | 1 |
| PARAM_VALUE | 4 | maxout | 2047 |
| BUF_SIZE | 0 | pwcs | 2048 |
| BUF_SIZE | 3 | s | 2048 |
| HALF_LOCKED2 | &pool->lock |
drivers/hv/hv_kvp.c kvp_send_key() -> utf16s_to_utf8s()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | endian | 1 |
| PARAM_VALUE | 4 | maxout | 511 |
| BUF_SIZE | 0 | pwcs | 512 |
| BUF_SIZE | 3 | s | 512 |
| HALF_LOCKED2 | &pool->lock |
drivers/hv/hv_kvp.c kvp_send_key() -> utf16s_to_utf8s()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | endian | 1 |
| PARAM_VALUE | 4 | maxout | 511 |
| BUF_SIZE | 0 | pwcs | 512 |
| BUF_SIZE | 3 | s | 512 |
| HALF_LOCKED2 | &pool->lock |
drivers/hv/hv_kvp.c kvp_send_key() -> utf16s_to_utf8s()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | endian | 1 |
| PARAM_VALUE | 4 | maxout | 511 |
| BUF_SIZE | 0 | pwcs | 512 |
| BUF_SIZE | 3 | s | 512 |
| HALF_LOCKED2 | &pool->lock |
drivers/hv/hv_kvp.c process_ib_ipinfo() -> utf16s_to_utf8s()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | inlen | 1024 |
| PARAM_VALUE | 2 | endian | 1 |
| PARAM_VALUE | 4 | maxout | 1024 |
| BUF_SIZE | 0 | pwcs | 2048 |
| BUF_SIZE | 3 | s | 2048 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
drivers/hv/hv_kvp.c process_ib_ipinfo() -> utf16s_to_utf8s()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | inlen | 1024 |
| PARAM_VALUE | 2 | endian | 1 |
| PARAM_VALUE | 4 | maxout | 1024 |
| BUF_SIZE | 0 | pwcs | 2048 |
| BUF_SIZE | 3 | s | 2048 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
drivers/hv/hv_kvp.c process_ib_ipinfo() -> utf16s_to_utf8s()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | inlen | 512 |
| PARAM_VALUE | 2 | endian | 1 |
| PARAM_VALUE | 4 | maxout | 512 |
| BUF_SIZE | 0 | pwcs | 1024 |
| BUF_SIZE | 3 | s | 1024 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
drivers/hv/hv_kvp.c process_ib_ipinfo() -> utf16s_to_utf8s()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | inlen | 1024 |
| PARAM_VALUE | 2 | endian | 1 |
| PARAM_VALUE | 4 | maxout | 1024 |
| BUF_SIZE | 0 | pwcs | 2048 |
| BUF_SIZE | 3 | s | 2048 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
drivers/hv/hv_kvp.c process_ib_ipinfo() -> utf16s_to_utf8s()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | inlen | 128 |
| PARAM_VALUE | 2 | endian | 1 |
| PARAM_VALUE | 4 | maxout | 128 |
| BUF_SIZE | 0 | pwcs | 256 |
| BUF_SIZE | 3 | s | 256 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
fs/ntfs3/dir.c ntfs_utf16_to_nls() -> utf16s_to_utf8s()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | endian | 1 |
| PARAM_VALUE | 3 | s | 4096-ptr_max |
| PARAM_VALUE | 4 | maxout | 4095 |
| BUF_SIZE | 3 | s | 0,4096 |
| BUF_SIZE | 3 | s | 0,4096 |
| CAPPED_DATA | 3 | s | 1 |
| DATA_SOURCE | 0 | pwcs | $1 |
| DATA_SOURCE | 1 | inlen | $2 |
| DATA_SOURCE | 3 | s | $3 |
| DATA_SOURCE | 4 | maxout | $4 [m] |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | *pwcs | 0-u16max |
| USER_DATA | 1 | inlen | 0-s16max |
| UNITS | 0 | pwcs | unit_byte |
| UNITS | 4 | maxout | unit_byte |
| USER_PTR | 0 | pwcs | |
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &ni->ni_lock |
fs/fat/dir.c fat_uni_to_x8() -> utf16s_to_utf8s()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pwcs | 4096-ptr_max |
| PARAM_VALUE | 1 | inlen | 261 |
| PARAM_VALUE | 2 | endian | 0 |
| PARAM_VALUE | 4 | maxout | 73,3574 |
| BUF_SIZE | 0 | pwcs | (-1),28 |
| BUF_SIZE | 0 | pwcs | (-1),28 |
| BUF_SIZE | 3 | s | (-1),73 |
| BUF_SIZE | 3 | s | (-1),73 |
| DATA_SOURCE | 0 | pwcs | $1 |
| DATA_SOURCE | 3 | s | $2 |
| DATA_SOURCE | 4 | maxout | $3 |
| HARD_MAX | 4 | maxout | 3574 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &sbi->s_lock |
fs/f2fs/file.c f2fs_ioc_getfslabel() -> utf16s_to_utf8s()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | inlen | 512 |
| PARAM_VALUE | 2 | endian | 1 |
| PARAM_VALUE | 3 | s | 4096-ptr_max |
| PARAM_VALUE | 4 | maxout | 512 |
| BUF_SIZE | 0 | pwcs | 1024 |
| BUF_SIZE | 3 | s | 512 |
| BUF_SIZE | 3 | s | 512 |
| DATA_SOURCE | 3 | s | r f2fs_kzalloc |
| UNITS | 1 | inlen | unit_array_size |
| LOCK2 | &sbi->sb_lock.internal_rwsem | ||
| TYPE_LOCK | (struct f2fs_rwsem)->internal_rwsem |
drivers/acpi/device_sysfs.c description_show() -> utf16s_to_utf8s()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | endian | 1 |
| PARAM_VALUE | 3 | s | 1-u64max |
| PARAM_VALUE | 4 | maxout | 4095 |
| CAPPED_DATA | 3 | s | 1 |
| DATA_SOURCE | 3 | s | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 4 | maxout | unit_byte |
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/hwmon/hp-wmi-sensors.c convert_raw_wmi_string() -> utf16s_to_utf8s()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | inlen | 0-s16max |
| PARAM_VALUE | 2 | endian | 1 |
| PARAM_VALUE | 3 | s | 4096-ptr_max |
| PARAM_VALUE | 4 | maxout | 0-127 |
| BUF_SIZE | 3 | s | 1-128 |
| BUF_SIZE | 3 | s | 1-128 |
| CAPPED_DATA | 4 | maxout | 1 |
| DATA_SOURCE | 3 | s | r _kmalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| ELEM_LAST | 3 | ==s4 | 8052 |
| HALF_LOCKED2 | &state->lock |
drivers/platform/x86/hp/hp-bioscfg/bioscfg.c hp_get_string_from_buffer() -> utf16s_to_utf8s()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | endian | 0 |
| PARAM_VALUE | 4 | maxout | (-1)-s16max |
| BUF_SIZE | 3 | s | 1,64,512 |
| BUF_SIZE | 3 | s | 1,64,512 |
| CAPPED_DATA | 1 | inlen | 1 |
| CAPPED_DATA | 4 | maxout | 1 |
| DATA_SOURCE | 3 | s | $2 |
| NOCHECK_CALL | |||
| UNITS | 1 | inlen | unit_byte |
| UNITS | 4 | maxout | unit_byte |
| LOCK2 | global &bioscfg_drv.mutex | ||
| TYPE_LOCK | (struct bioscfg_priv)->mutex |