Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/md/dm-integrity.c crypt_journal() -> rw_section_mac()

Type Parameter Key Value
PARAM_VALUE 0 ic 4096-ptr_max
PARAM_VALUE 0 ic->journal_io 1-u64max
PARAM_VALUE 0 ic->journal_xor 0
PARAM_VALUE 0 ic->sb->salt 0-255
PARAM_VALUE 2 wr 1
BUF_SIZE 0 ic (-1),16,40-s32max
BUF_SIZE 0 ic (-1),16,40-s32max
DATA_SOURCE 0 ic $0
DATA_SOURCE 1 section $2 [m]
NOCHECK_CALL
UNITS 1 section unit_array_size

drivers/md/dm-integrity.c do_journal_write() -> rw_section_mac()

Type Parameter Key Value
PARAM_VALUE 0 ic 4096-ptr_max
PARAM_VALUE 0 ic->failed 0-s32max
PARAM_VALUE 0 ic->journal_sections 1-u32max
PARAM_VALUE 0 ic->journal_uptodate 0
PARAM_VALUE 0 ic->mode 0-81,83-255
PARAM_VALUE 0 ic->sb 4096-ptr_max
PARAM_VALUE 0 ic->sb->salt 0-255
PARAM_VALUE 0 ic->wrote_to_journal 0
PARAM_VALUE 2 wr 0
BUF_SIZE 0 ic 16,40-s32max
BUF_SIZE 0 ic 16,40-s32max
CAPPED_DATA 0 ic->journal_sections 1
CAPPED_DATA 0 ic->provided_data_sectors 1
DATA_SOURCE 0 ic $0
NOCHECK_CALL
UNITS 1 section unit_array_size
LOCK2 &md->suspend_lock
TYPE_LOCK (struct mapped_device)->suspend_lock

drivers/md/dm-integrity.c write_journal() -> rw_section_mac()

Type Parameter Key Value
PARAM_VALUE 0 ic 4096-ptr_max
PARAM_VALUE 0 ic->journal_io 0
PARAM_VALUE 0 ic->sb->salt 0-255
PARAM_VALUE 2 wr 1
BUF_SIZE 0 ic (-1),16,40-s32max
BUF_SIZE 0 ic (-1),16,40-s32max
CAPPED_DATA 0 ic->journal_section_entries 1
CAPPED_DATA 0 ic->journal_section_sectors 1
CAPPED_DATA 0 ic->journal_sections 1
DATA_SOURCE 0 ic $0
NOCHECK_CALL

drivers/md/dm-integrity.c write_journal() -> rw_section_mac()

Type Parameter Key Value
PARAM_VALUE 0 ic 4096-ptr_max
PARAM_VALUE 0 ic->journal_io 0
PARAM_VALUE 0 ic->journal_sections 0-4294967294
PARAM_VALUE 0 ic->sb->salt 0-255
PARAM_VALUE 2 wr 1
BUF_SIZE 0 ic (-1),16,40-s32max
BUF_SIZE 0 ic (-1),16,40-s32max
CAPPED_DATA 0 ic->journal_section_entries 1
CAPPED_DATA 0 ic->journal_section_sectors 1
CAPPED_DATA 0 ic->journal_sections 1
DATA_SOURCE 0 ic $0
NOCHECK_CALL

drivers/md/dm-integrity.c write_journal() -> rw_section_mac()

Type Parameter Key Value
PARAM_VALUE 0 ic 4096-ptr_max
PARAM_VALUE 0 ic->journal_io 0
PARAM_VALUE 0 ic->journal_sections 0-4294967294
PARAM_VALUE 0 ic->sb->salt 0-255
PARAM_VALUE 2 wr 1
BUF_SIZE 0 ic (-1),16,40-s32max
BUF_SIZE 0 ic (-1),16,40-s32max
CAPPED_DATA 0 ic->journal_section_entries 1
CAPPED_DATA 0 ic->journal_section_sectors 1
CAPPED_DATA 0 ic->journal_sections 1
CAPPED_DATA 1 section 1
DATA_SOURCE 0 ic $0
NOCHECK_CALL
UNITS 1 section unit_array_size

drivers/md/dm-integrity.c xor_journal() -> rw_section_mac()

Type Parameter Key Value
PARAM_VALUE 0 ic 4096-ptr_max
PARAM_VALUE 0 ic->journal_io 1-u64max
PARAM_VALUE 0 ic->journal_section_sectors 1-u16max
PARAM_VALUE 0 ic->journal_sections 1-u32max
PARAM_VALUE 0 ic->journal_xor 1-u64max
PARAM_VALUE 0 ic->sb->salt 0-255
PARAM_VALUE 2 wr 1
BUF_SIZE 0 ic (-1),16,40-s32max
BUF_SIZE 0 ic (-1),16,40-s32max
DATA_SOURCE 0 ic $0
DATA_SOURCE 1 section $2 [m]
PARAM_COMPARE 0 ic->journal_sections >= $1
PARAM_COMPARE 1 section <= $0->journal_sections
NOCHECK_CALL
UNITS 1 section unit_array_size