Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 5 files:

Smatch caller information:

drivers/mtd/nand/ecc-sw-hamming.c nand_ecc_sw_hamming_prepare_io_req() -> nand_ecc_tweak_req()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 1 req 4096-ptr_max
PARAM_VALUE 1 req->datalen 1-u32max
PARAM_VALUE 1 req->mode s32min-1,3-s32max
BUF_SIZE 1 req->databuf.in (-1)-s32max
BUF_SIZE 1 req->oobbuf.in (-1),2
BUF_SIZE 1 req->oobbuf.out (-1),2
DATA_SOURCE 1 req $1
NOSPEC 1 req->datalen
NOSPEC 1 req->ooblen
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 1 req->datalen 1-u32max[c]
HOST_DATA 1 req->dataoffs 0-4294967294[c]
HOST_DATA 1 req->pos.eraseblock 0-4294967294[c]
HOST_DATA 1 req->pos.lun 0-4294967294[c]
HOST_DATA 1 req->pos.page 0-u32max[c]
HOST_DATA 1 req->pos.plane 0-4294967294[c]
HOST_DATA 1 req->pos.target 0-4294967294[c]
USER_DATA 1 req->datalen 1-u32max[c]
USER_DATA 1 req->dataoffs 0-4294967294[c]
USER_DATA 1 req->mode 0-1,3-255
USER_DATA 1 req->ooblen 0-s32max[c]
USER_DATA 1 req->ooboffs 0-u32max[c]
USER_DATA 1 req->pos.page 0-u32max[c]
USER_PTR 1 req->databuf.in
USER_PTR 1 req->oobbuf.in

drivers/mtd/nand/ecc-mxic.c mxic_ecc_prepare_io_req_external() -> nand_ecc_tweak_req()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 1 req 4096-ptr_max
PARAM_VALUE 1 req->mode s32min-1,3-s32max
BUF_SIZE 1 req->databuf.in (-1)-s32max
BUF_SIZE 1 req->oobbuf.in (-1),2
BUF_SIZE 1 req->oobbuf.out (-1),2
DATA_SOURCE 1 req $1
NOSPEC 1 req->datalen
NOSPEC 1 req->ooblen
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 1 req->datalen 0-u32max[c]
HOST_DATA 1 req->dataoffs 0-4294967294[c]
HOST_DATA 1 req->pos.eraseblock 0-4294967294[c]
HOST_DATA 1 req->pos.lun 0-4294967294[c]
HOST_DATA 1 req->pos.page 0-u32max[c]
HOST_DATA 1 req->pos.plane 0-4294967294[c]
HOST_DATA 1 req->pos.target 0-4294967294[c]
USER_DATA 1 req->datalen 0-u32max[c]
USER_DATA 1 req->dataoffs 0-4294967294[c]
USER_DATA 1 req->mode 0-1,3-255
USER_DATA 1 req->ooblen 0-s32max[c]
USER_DATA 1 req->ooboffs 0-u32max[c]
USER_DATA 1 req->pos.page 0-u32max[c]
USER_PTR 1 req->databuf.in
USER_PTR 1 req->oobbuf.in

drivers/mtd/nand/ecc-mxic.c mxic_ecc_prepare_io_req_pipelined() -> nand_ecc_tweak_req()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 1 req 4096-ptr_max
PARAM_VALUE 1 req->mode s32min-1,3-s32max
BUF_SIZE 1 req->databuf.in (-1)-s32max
BUF_SIZE 1 req->oobbuf.in (-1),2
BUF_SIZE 1 req->oobbuf.out (-1),2
DATA_SOURCE 1 req $1
NOSPEC 1 req->datalen
NOSPEC 1 req->ooblen
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 1 req->datalen 0-u32max[c]
HOST_DATA 1 req->dataoffs 0-4294967294[c]
HOST_DATA 1 req->pos.eraseblock 0-4294967294[c]
HOST_DATA 1 req->pos.lun 0-4294967294[c]
HOST_DATA 1 req->pos.page 0-u32max[c]
HOST_DATA 1 req->pos.plane 0-4294967294[c]
HOST_DATA 1 req->pos.target 0-4294967294[c]
USER_DATA 1 req->datalen 0-u32max[c]
USER_DATA 1 req->dataoffs 0-4294967294[c]
USER_DATA 1 req->mode 0-1,3-255
USER_DATA 1 req->ooblen 0-s32max[c]
USER_DATA 1 req->ooboffs 0-u32max[c]
USER_DATA 1 req->pos.page 0-u32max[c]
USER_PTR 1 req->databuf.in
USER_PTR 1 req->oobbuf.in

drivers/mtd/nand/ecc-realtek.c rtl_ecc_prepare_io_req() -> nand_ecc_tweak_req()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 1 req 4096-ptr_max
PARAM_VALUE 1 req->mode s32min-1,3-s32max
BUF_SIZE 1 req->databuf.in (-1)-s32max
BUF_SIZE 1 req->oobbuf.in (-1),2
BUF_SIZE 1 req->oobbuf.out (-1),2
DATA_SOURCE 1 req $1
NOSPEC 1 req->datalen
NOSPEC 1 req->ooblen
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 1 req->datalen 0-u32max[c]
HOST_DATA 1 req->dataoffs 0-4294967294[c]
HOST_DATA 1 req->pos.eraseblock 0-4294967294[c]
HOST_DATA 1 req->pos.lun 0-4294967294[c]
HOST_DATA 1 req->pos.page 0-u32max[c]
HOST_DATA 1 req->pos.plane 0-4294967294[c]
HOST_DATA 1 req->pos.target 0-4294967294[c]
USER_DATA 1 req->datalen 0-u32max[c]
USER_DATA 1 req->dataoffs 0-4294967294[c]
USER_DATA 1 req->mode 0-1,3-255
USER_DATA 1 req->ooblen 0-s32max[c]
USER_DATA 1 req->ooboffs 0-u32max[c]
USER_DATA 1 req->pos.page 0-u32max[c]
USER_PTR 1 req->databuf.in
USER_PTR 1 req->oobbuf.in

drivers/mtd/nand/ecc-sw-bch.c nand_ecc_sw_bch_prepare_io_req() -> nand_ecc_tweak_req()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 1 req 4096-ptr_max
PARAM_VALUE 1 req->datalen 1-u32max
PARAM_VALUE 1 req->mode s32min-1,3-s32max
BUF_SIZE 1 req->databuf.in (-1)-s32max
BUF_SIZE 1 req->oobbuf.in (-1),2
BUF_SIZE 1 req->oobbuf.out (-1),2
DATA_SOURCE 1 req $1
NOSPEC 1 req->datalen
NOSPEC 1 req->ooblen
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 1 req->datalen 1-u32max[c]
HOST_DATA 1 req->dataoffs 0-4294967294[c]
HOST_DATA 1 req->pos.eraseblock 0-4294967294[c]
HOST_DATA 1 req->pos.lun 0-4294967294[c]
HOST_DATA 1 req->pos.page 0-u32max[c]
HOST_DATA 1 req->pos.plane 0-4294967294[c]
HOST_DATA 1 req->pos.target 0-4294967294[c]
USER_DATA 1 req->datalen 1-u32max[c]
USER_DATA 1 req->dataoffs 0-4294967294[c]
USER_DATA 1 req->mode 0-1,3-255
USER_DATA 1 req->ooblen 0-s32max[c]
USER_DATA 1 req->ooboffs 0-u32max[c]
USER_DATA 1 req->pos.page 0-u32max[c]
USER_PTR 1 req->databuf.in
USER_PTR 1 req->oobbuf.in