Defined in 3 files as a function:
- fs/befs/endian.h, line 52 (as a function)
- fs/qnx6/qnx6.h, line 110 (as a function)
- fs/ufs/swab.h, line 81 (as a function)
Referenced in 10 files:
- fs/befs/btree.c
- fs/befs/datastream.c
- fs/befs/debug.c
- fs/qnx6/dir.c
- fs/qnx6/inode.c, line 549
- fs/ufs/cylinder.c
- fs/ufs/dir.c
- fs/ufs/inode.c
- fs/ufs/super.c
- fs/ufs/util.h
Smatch caller information:
fs/ufs/super.c ufs_print_cylinder_stuff() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| PARAM_VALUE | 0 | sbi->s_bdev | 4096-ptr_max |
| PARAM_VALUE | 0 | sbi->s_bdev->bd_mapping | 4096-ptr_max |
| PARAM_VALUE | 0 | sbi->s_bdev->bd_mapping->host->i_sb->s_cop->inode_info_offs | 1632,1720,1808,2632,2648,2712 |
| PARAM_VALUE | 0 | sbi->s_bdev->bd_mapping->i_private_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | sbi->s_bdev_file->f_mapping->host->i_mapping->invalidate_lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | sbi->s_bdev_file->f_mapping->host->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | sbi->s_bdev_file->f_mapping->host->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | sbi->s_bdi->wb_switch_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | sbi->s_bdi->wb_switch_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | sbi->s_fs_info | 4096-ptr_max |
| PARAM_VALUE | 0 | sbi->s_op->sync_fs | 0,4096-ptr_max |
| BUF_SIZE | 0 | sbi | (-1),2880 |
| BUF_SIZE | 0 | sbi | (-1),2880 |
| BUF_SIZE | 0 | sbi->s_export_op | (-1),80 |
| BUF_SIZE | 0 | sbi->s_fs_info | (-1),568 |
| BUF_SIZE | 0 | sbi->s_op | (-1),224 |
| BUF_SIZE | 0 | sbi->s_root | (-1)-s32max |
| CAPPED_DATA | 0 | sbi | 1 |
| DATA_SOURCE | 0 | sbi | $0 |
| STR_LEN | 0 | sbi | (-1),8 |
| STR_LEN | 0 | sbi | (-1),8 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | sbi->s_flags | 0-2147486721[c] |
| NO_OVERFLOW_SIMPLE | 0 | sbi->s_root->d_inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | sbi->s_root->d_inode->i_size | |
| UNITS | 0 | sbi | unit_byte |
| HALF_LOCKED2 | &fc->uapi_mutex |
fs/ufs/super.c ufs_print_cylinder_stuff() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| PARAM_VALUE | 0 | sbi->s_bdev | 4096-ptr_max |
| PARAM_VALUE | 0 | sbi->s_bdev->bd_mapping | 4096-ptr_max |
| PARAM_VALUE | 0 | sbi->s_bdev->bd_mapping->host->i_sb->s_cop->inode_info_offs | 1632,1720,1808,2632,2648,2712 |
| PARAM_VALUE | 0 | sbi->s_bdev->bd_mapping->i_private_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | sbi->s_bdev_file->f_mapping->host->i_mapping->invalidate_lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | sbi->s_bdev_file->f_mapping->host->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | sbi->s_bdev_file->f_mapping->host->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | sbi->s_bdi->wb_switch_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | sbi->s_bdi->wb_switch_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | sbi->s_fs_info | 4096-ptr_max |
| PARAM_VALUE | 0 | sbi->s_op->sync_fs | 0,4096-ptr_max |
| BUF_SIZE | 0 | sbi | (-1),2880 |
| BUF_SIZE | 0 | sbi | (-1),2880 |
| BUF_SIZE | 0 | sbi->s_export_op | (-1),80 |
| BUF_SIZE | 0 | sbi->s_fs_info | (-1),568 |
| BUF_SIZE | 0 | sbi->s_op | (-1),224 |
| BUF_SIZE | 0 | sbi->s_root | (-1)-s32max |
| CAPPED_DATA | 0 | sbi | 1 |
| DATA_SOURCE | 0 | sbi | $0 |
| STR_LEN | 0 | sbi | (-1),8 |
| STR_LEN | 0 | sbi | (-1),8 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | sbi->s_flags | 0-2147486721[c] |
| NO_OVERFLOW_SIMPLE | 0 | sbi->s_root->d_inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | sbi->s_root->d_inode->i_size | |
| UNITS | 0 | sbi | unit_byte |
| HALF_LOCKED2 | &fc->uapi_mutex |
fs/ufs/dir.c ufs_add_link() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| PARAM_VALUE | 1 | n | 1-u16max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
fs/ufs/dir.c ufs_check_folio() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
fs/ufs/dir.c ufs_delete_entry() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
| HALF_LOCKED2 | &target->i_rwsem |
fs/ufs/dir.c ufs_delete_entry() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
| HALF_LOCKED2 | &target->i_rwsem |
fs/ufs/dir.c ufs_get_de_namlen() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| DATA_SOURCE | 0 | sbi | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
| UNITS | 1 | n | unit_byte |
fs/ufs/dir.c ufs_make_empty() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| PARAM_VALUE | 1 | n | 12 |
| DATA_SOURCE | 1 | n | r cpu_to_fs16 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
| HALF_LOCKED2 | &dentry->d_lockref.lock |
fs/ufs/dir.c ufs_next_entry() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | sbi | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
fs/ufs/dir.c ufs_readdir() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
| HALF_LOCKED2 | &dir_fp->readdir_lock | ||
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/ufs/dir.c ufs_set_link() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
| HALF_LOCKED2 | &source->i_rwsem | ||
| HALF_LOCKED2 | &target->i_rwsem |
fs/befs/debug.c befs_dump_index_node() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| DATA_SOURCE | 0 | sbi | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
| HALF_LOCKED2 | &inode->i_rwsem |
fs/befs/debug.c befs_dump_index_node() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| DATA_SOURCE | 0 | sbi | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
| HALF_LOCKED2 | &inode->i_rwsem |
fs/befs/btree.c befs_bt_get_key() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| DATA_SOURCE | 0 | sbi | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
fs/befs/btree.c befs_bt_get_key() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| DATA_SOURCE | 0 | sbi | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
fs/befs/btree.c befs_bt_read_node() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| PARAM_VALUE | 0 | sbi->s_bdev->bd_mapping->i_private_lock.rlock.dep_map->name | 0-255 |
| DATA_SOURCE | 0 | sbi | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
| HALF_LOCKED2 | &inode->i_rwsem |
fs/befs/btree.c befs_bt_read_node() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| PARAM_VALUE | 0 | sbi->s_bdev->bd_mapping->i_private_lock.rlock.dep_map->name | 0-255 |
| DATA_SOURCE | 0 | sbi | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
| HALF_LOCKED2 | &inode->i_rwsem |
fs/ufs/cylinder.c ufs_read_cylinder() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| PARAM_VALUE | 0 | sbi->s_fs_info | 4096-ptr_max |
| DATA_SOURCE | 0 | sbi | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | sbi->s_blocksize | |
| UNITS | 0 | sbi | unit_byte |
| HALF_LOCKED2 | &sbi->s_lock |
fs/ufs/cylinder.c ufs_read_cylinder() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| PARAM_VALUE | 0 | sbi->s_fs_info | 4096-ptr_max |
| DATA_SOURCE | 0 | sbi | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | sbi->s_blocksize | |
| UNITS | 0 | sbi | unit_byte |
| HALF_LOCKED2 | &sbi->s_lock |
fs/ufs/inode.c ufs1_read_inode() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | sbi | (-1),2880 |
| BUF_SIZE | 0 | sbi | (-1),2880 |
| STR_LEN | 0 | sbi | (-1),8 |
| STR_LEN | 0 | sbi | (-1),8 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | sbi->s_flags | 0-u64max[c] |
| NO_OVERFLOW_SIMPLE | 0 | sbi->s_blocksize | |
| NO_OVERFLOW_SIMPLE | 0 | sbi->s_blocksize_bits | |
| UNITS | 0 | sbi | unit_byte |
fs/ufs/inode.c ufs1_read_inode() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| BUF_SIZE | 0 | sbi | (-1),2880 |
| BUF_SIZE | 0 | sbi | (-1),2880 |
| STR_LEN | 0 | sbi | (-1),8 |
| STR_LEN | 0 | sbi | (-1),8 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | sbi->s_flags | 0-u64max[c] |
| NO_OVERFLOW_SIMPLE | 0 | sbi->s_blocksize | |
| NO_OVERFLOW_SIMPLE | 0 | sbi->s_blocksize_bits | |
| UNITS | 0 | sbi | unit_byte |
fs/ufs/inode.c ufs2_read_inode() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | sbi | (-1),2880 |
| BUF_SIZE | 0 | sbi | (-1),2880 |
| STR_LEN | 0 | sbi | (-1),8 |
| STR_LEN | 0 | sbi | (-1),8 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | sbi->s_flags | 0-u64max[c] |
| NO_OVERFLOW_SIMPLE | 0 | sbi->s_blocksize | |
| NO_OVERFLOW_SIMPLE | 0 | sbi->s_blocksize_bits | |
| UNITS | 0 | sbi | unit_byte |
fs/ufs/inode.c ufs2_read_inode() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| BUF_SIZE | 0 | sbi | (-1),2880 |
| BUF_SIZE | 0 | sbi | (-1),2880 |
| STR_LEN | 0 | sbi | (-1),8 |
| STR_LEN | 0 | sbi | (-1),8 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | sbi->s_flags | 0-u64max[c] |
| NO_OVERFLOW_SIMPLE | 0 | sbi->s_blocksize | |
| NO_OVERFLOW_SIMPLE | 0 | sbi->s_blocksize_bits | |
| UNITS | 0 | sbi | unit_byte |
fs/ufs/inode.c ufs_get_inode_gid() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| PARAM_VALUE | 1 | n | 0-65534 |
| DATA_SOURCE | 0 | sbi | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | sbi->s_blocksize | |
| NO_OVERFLOW_SIMPLE | 0 | sbi->s_blocksize_bits | |
| UNITS | 0 | sbi | unit_byte |
fs/ufs/inode.c ufs_get_inode_uid() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| PARAM_VALUE | 1 | n | 0-65534 |
| DATA_SOURCE | 0 | sbi | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | sbi->s_blocksize | |
| NO_OVERFLOW_SIMPLE | 0 | sbi->s_blocksize_bits | |
| UNITS | 0 | sbi | unit_byte |
fs/qnx6/dir.c qnx6_dir_longfilename() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| PARAM_VALUE | 0 | sbi->longfile | 4096-ptr_max |
| PARAM_VALUE | 0 | sbi->longfile->i_mapping | 4096-ptr_max |
| BUF_SIZE | 0 | sbi | 1-s32max |
| BUF_SIZE | 0 | sbi | 1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
| HALF_LOCKED2 | &dir_fp->readdir_lock | ||
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/qnx6/dir.c qnx6_long_match() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| PARAM_VALUE | 0 | sbi->longfile | 4096-ptr_max |
| PARAM_VALUE | 0 | sbi->longfile->i_mapping | 4096-ptr_max |
| BUF_SIZE | 0 | sbi | 1-s32max |
| BUF_SIZE | 0 | sbi | 1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
| HALF_LOCKED2 | &dir->d_inode->i_rwsem |
fs/qnx6/inode.c qnx6_iget() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| PARAM_VALUE | 0 | sbi->inodes | 4096-ptr_max |
| PARAM_VALUE | 0 | sbi->inodes->i_mapping | 4096-ptr_max |
| BUF_SIZE | 0 | sbi | (-1),56 |
| BUF_SIZE | 0 | sbi | (-1),56 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
fs/befs/datastream.c befs_find_brun_indirect() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| PARAM_VALUE | 0 | sbi->s_bdev | 4096-ptr_max |
| PARAM_VALUE | 0 | sbi->s_bdev->bd_mapping | 4096-ptr_max |
| PARAM_VALUE | 0 | sbi->s_bdev->bd_mapping->i_private_lock.rlock.dep_map->name | 0-255 |
| DATA_SOURCE | 0 | sbi | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
fs/befs/datastream.c befs_find_brun_indirect() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| PARAM_VALUE | 0 | sbi->s_bdev | 4096-ptr_max |
| PARAM_VALUE | 0 | sbi->s_bdev->bd_mapping | 4096-ptr_max |
| PARAM_VALUE | 0 | sbi->s_bdev->bd_mapping->i_private_lock.rlock.dep_map->name | 0-255 |
| DATA_SOURCE | 0 | sbi | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
fs/befs/datastream.c befs_find_brun_indirect() -> fs16_to_cpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| PARAM_VALUE | 0 | sbi->s_bdev | 4096-ptr_max |
| PARAM_VALUE | 0 | sbi->s_bdev->bd_mapping | 4096-ptr_max |
| PARAM_VALUE | 0 | sbi->s_bdev->bd_mapping->i_private_lock.rlock.dep_map->name | 0-255 |
| DATA_SOURCE | 0 | sbi | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |