Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/mtd/nand/raw/fsmc_nand.c fsmc_bch8_correct_data() -> count_written_bits()

Type Parameter Key Value
PARAM_VALUE 2 max_bits 8
BUF_SIZE 0 buff (-1),1-s32max
BUF_SIZE 0 buff (-1),1-s32max
DATA_SOURCE 0 buff $2
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 *buff 0-255
USER_DATA 0 *buff 0-255
UNITS 1 size unit_byte
USER_PTR 0 buff
HALF_LOCKED2 &chip->controller->lock
HALF_LOCKED2 &chip->lock

drivers/mtd/nand/raw/fsmc_nand.c fsmc_bch8_correct_data() -> count_written_bits()

Type Parameter Key Value
PARAM_VALUE 2 max_bits 8
BUF_SIZE 0 buff (-1)-s32max
BUF_SIZE 0 buff (-1)-s32max
DATA_SOURCE 0 buff $1
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 *buff 0-255
UNITS 1 size unit_byte
HALF_LOCKED2 &chip->controller->lock
HALF_LOCKED2 &chip->lock