Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 6 files:

Smatch caller information:

fs/fat/dir.c fat_alloc_new_dir() -> fat_time_unix2fat()

Type Parameter Key Value
PARAM_VALUE 0 sbi 4096-ptr_max
PARAM_VALUE 1 ts 3012421963911872512,7818478111328350208
PARAM_VALUE 2 time 8722735482764664832
PARAM_VALUE 3 date 2373259045879263232
PARAM_VALUE 4 time_cs 6468533501677674496
BUF_SIZE 0 sbi 1-s32max
BUF_SIZE 0 sbi 1-s32max
DATA_SOURCE 1 ts $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 sbi unit_byte
HALF_LOCKED2 &dentry->d_lockref.lock

fs/fat/fat_test.c fat_time_unix2fat_clamp_test() -> fat_time_unix2fat()

Type Parameter Key Value
PARAM_VALUE 0 sbi 3718498797823459328
PARAM_VALUE 0 sbi->options.tz_set 1
PARAM_VALUE 1 ts 4096-ptr_max
PARAM_VALUE 2 time 2812861795011526656
PARAM_VALUE 3 date 4641322051170029568
PARAM_VALUE 4 time_cs 3780737003543478272
MEM_ZERO 0 sbi
NOCHECK_CALL

fs/fat/fat_test.c fat_time_unix2fat_no_csec_test() -> fat_time_unix2fat()

Type Parameter Key Value
PARAM_VALUE 0 sbi 5577218470200193024
PARAM_VALUE 0 sbi->options.time_offset 0
PARAM_VALUE 0 sbi->options.tz_set 1
PARAM_VALUE 1 ts 6041453968648359936
PARAM_VALUE 1 ts->tv_nsec 0
PARAM_VALUE 1 ts->tv_sec 946684799
PARAM_VALUE 2 time 796515743610519552
PARAM_VALUE 3 date 1459701318489358336
PARAM_VALUE 4 time_cs 0
MEM_ZERO 0 sbi
NOCHECK_CALL

fs/fat/fat_test.c fat_time_unix2fat_test() -> fat_time_unix2fat()

Type Parameter Key Value
PARAM_VALUE 0 sbi 5405537413475291136
PARAM_VALUE 0 sbi->options.tz_set 1
PARAM_VALUE 1 ts 4096-ptr_max
PARAM_VALUE 2 time 3497774091979849728
PARAM_VALUE 3 date 4812992866766508032
PARAM_VALUE 4 time_cs 1732938882884866048
MEM_ZERO 0 sbi
NOCHECK_CALL

fs/fat/inode.c __fat_write_inode() -> fat_time_unix2fat()

Type Parameter Key Value
PARAM_VALUE 0 sbi 4096-ptr_max
PARAM_VALUE 1 ts 1102929267071787008
PARAM_VALUE 2 time 4096-ptr_max
PARAM_VALUE 3 date 4096-ptr_max
PARAM_VALUE 4 time_cs 0
BUF_SIZE 0 sbi 1-s32max
BUF_SIZE 0 sbi 1-s32max
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 sbi unit_byte
LOCK2 0 &sbi->inode_hash_lock
HALF_LOCKED2 &inode->i_rwsem
TYPE_LOCK (struct msdos_sb_info)->inode_hash_lock

fs/fat/inode.c __fat_write_inode() -> fat_time_unix2fat()

Type Parameter Key Value
PARAM_VALUE 0 sbi 4096-ptr_max
PARAM_VALUE 1 ts 5020370578973642752
PARAM_VALUE 2 time 1940444348167856128
PARAM_VALUE 3 date 4096-ptr_max
PARAM_VALUE 4 time_cs 0
BUF_SIZE 0 sbi 1-s32max
BUF_SIZE 0 sbi 1-s32max
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 sbi unit_byte
LOCK2 0 &sbi->inode_hash_lock
HALF_LOCKED2 &inode->i_rwsem
TYPE_LOCK (struct msdos_sb_info)->inode_hash_lock

fs/fat/inode.c __fat_write_inode() -> fat_time_unix2fat()

Type Parameter Key Value
PARAM_VALUE 0 sbi 4096-ptr_max
PARAM_VALUE 1 ts 4096-ptr_max
PARAM_VALUE 2 time 4096-ptr_max
PARAM_VALUE 3 date 4096-ptr_max
PARAM_VALUE 4 time_cs 4096-ptr_max
BUF_SIZE 0 sbi 1-s32max
BUF_SIZE 0 sbi 1-s32max
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 sbi unit_byte
LOCK2 0 &sbi->inode_hash_lock
HALF_LOCKED2 &inode->i_rwsem
TYPE_LOCK (struct msdos_sb_info)->inode_hash_lock

fs/fat/namei_vfat.c vfat_build_slots() -> fat_time_unix2fat()

Type Parameter Key Value
PARAM_VALUE 0 sbi 4096-ptr_max
PARAM_VALUE 1 ts 6864150429370515456,6945982164609769472,7818478111328350208
PARAM_VALUE 2 time 3708268295270019072
PARAM_VALUE 3 date 189819243787972608
PARAM_VALUE 4 time_cs 2359154024341032960
BUF_SIZE 0 sbi 1-s32max
BUF_SIZE 0 sbi 1-s32max
DATA_SOURCE 1 ts $5
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 sbi unit_byte

fs/fat/namei_msdos.c msdos_add_entry() -> fat_time_unix2fat()

Type Parameter Key Value
PARAM_VALUE 1 ts 2015590610654015488,3012421963911872512,6405479511074828288
PARAM_VALUE 2 time 2360330625807450112
PARAM_VALUE 3 date 7405481627946885120
PARAM_VALUE 4 time_cs 0
BUF_SIZE 0 sbi 1-s32max
BUF_SIZE 0 sbi 1-s32max
DATA_SOURCE 1 ts $5
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 sbi unit_byte