Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/mtd/nand/raw/mtk_nand.c mtk_nfc_do_write_page() -> nfi_writel()

Type Parameter Key Value
PARAM_VALUE 0 nfc 4096-ptr_max
PARAM_VALUE 1 val 0,4096-4294963200
PARAM_VALUE 2 reg 8
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3808,3888,3912,3968,3984,4008,4032,4056,4216,4784,5768
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3808,3888,3912,3968,3984,4008,4032,4056,4216,4784,5768
BIT_INFO 1 val 0x0,0xfffff000
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &chip->controller->lock
HALF_LOCKED2 &chip->lock
HALF_LOCKED2 &nfc->ecc->lock

drivers/mtd/nand/raw/mtk_nand.c mtk_nfc_do_write_page() -> nfi_writel()

Type Parameter Key Value
PARAM_VALUE 0 nfc 4096-ptr_max
PARAM_VALUE 1 val 0-4294967294
PARAM_VALUE 2 reg 128
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3808,3888,3912,3968,3984,4008,4032,4056,4216,4784,5768
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3808,3888,3912,3968,3984,4008,4032,4056,4216,4784,5768
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &chip->controller->lock
HALF_LOCKED2 &chip->lock
HALF_LOCKED2 &nfc->ecc->lock

drivers/mtd/nand/raw/mtk_nand.c mtk_nfc_do_write_page() -> nfi_writel()

Type Parameter Key Value
PARAM_VALUE 0 nfc 4096-ptr_max
PARAM_VALUE 2 reg 8
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3808,3888,3912,3968,3984,4008,4032,4056,4216,4784,5768
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3808,3888,3912,3968,3984,4008,4032,4056,4216,4784,5768
BIT_INFO 1 val 0x200,0xffffffff
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 1 val 0-u32max
HALF_LOCKED2 &chip->controller->lock
HALF_LOCKED2 &chip->lock
HALF_LOCKED2 &nfc->ecc->lock

drivers/mtd/nand/raw/mtk_nand.c mtk_nfc_do_write_page() -> nfi_writel()

Type Parameter Key Value
PARAM_VALUE 0 nfc 4096-ptr_max
PARAM_VALUE 1 val 0
PARAM_VALUE 2 reg 8
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3808,3888,3912,3968,3984,4008,4032,4056,4216,4784,5768
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3808,3888,3912,3968,3984,4008,4032,4056,4216,4784,5768
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &chip->controller->lock
HALF_LOCKED2 &chip->lock
HALF_LOCKED2 &nfc->ecc->lock

drivers/mtd/nand/raw/mtk_nand.c mtk_nfc_hw_init() -> nfi_writel()

Type Parameter Key Value
PARAM_VALUE 0 nfc 4096-ptr_max
PARAM_VALUE 0 nfc->regs 4096-ptr_max
PARAM_VALUE 1 val 3
PARAM_VALUE 2 reg 4
BUF_SIZE 0 nfc->clk.nfi_clk (-1),1-s32max
BUF_SIZE 0 nfc->clk.pad_clk (-1),1-s32max
BUF_SIZE 0 nfc->controller.ops 32
BUF_SIZE 0 nfc->dev 1616
BUF_SIZE 0 nfc->ecc s32min-(-1),1-s32max
DATA_SOURCE 0 nfc $0
MEM_ZERO 0 nfc
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/mtd/nand/raw/mtk_nand.c mtk_nfc_hw_init() -> nfi_writel()

Type Parameter Key Value
PARAM_VALUE 0 nfc 4096-ptr_max
PARAM_VALUE 0 nfc->regs 4096-ptr_max
PARAM_VALUE 1 val 0
PARAM_VALUE 2 reg 16
BUF_SIZE 0 nfc->clk.nfi_clk (-1),1-s32max
BUF_SIZE 0 nfc->clk.pad_clk (-1),1-s32max
BUF_SIZE 0 nfc->controller.ops 32
BUF_SIZE 0 nfc->dev 1616
BUF_SIZE 0 nfc->ecc s32min-(-1),1-s32max
DATA_SOURCE 0 nfc $0
MEM_ZERO 0 nfc
MEM_ZERO 0 nfc->dev
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/mtd/nand/raw/mtk_nand.c mtk_nfc_hw_reset() -> nfi_writel()

Type Parameter Key Value
PARAM_VALUE 0 nfc 4096-ptr_max
PARAM_VALUE 1 val 3
PARAM_VALUE 2 reg 8
BUF_SIZE 0 nfc (-1),384,648,3728,3736,3776,3888,3912,3968,3984,4008,4056,4216,5768
BUF_SIZE 0 nfc (-1),384,648,3728,3736,3776,3888,3912,3968,3984,4008,4056,4216,5768
BUF_SIZE 0 nfc->clk.nfi_clk (-1),1-s32max
BUF_SIZE 0 nfc->clk.pad_clk (-1),1-s32max
BUF_SIZE 0 nfc->controller.ops (-1),32
BUF_SIZE 0 nfc->dev (-1),1616
BUF_SIZE 0 nfc->ecc s32min-(-1),1-s32max
DATA_SOURCE 0 nfc $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/mtd/nand/raw/mtk_nand.c mtk_nfc_hw_reset() -> nfi_writel()

Type Parameter Key Value
PARAM_VALUE 0 nfc 4096-ptr_max
PARAM_VALUE 1 val 3
PARAM_VALUE 2 reg 8
BUF_SIZE 0 nfc (-1),384,648,3728,3736,3776,3888,3912,3968,3984,4008,4056,4216,5768
BUF_SIZE 0 nfc (-1),384,648,3728,3736,3776,3888,3912,3968,3984,4008,4056,4216,5768
BUF_SIZE 0 nfc->clk.nfi_clk (-1),1-s32max
BUF_SIZE 0 nfc->clk.pad_clk (-1),1-s32max
BUF_SIZE 0 nfc->controller.ops (-1),32
BUF_SIZE 0 nfc->dev (-1),1616
BUF_SIZE 0 nfc->ecc s32min-(-1),1-s32max
DATA_SOURCE 0 nfc $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/mtd/nand/raw/mtk_nand.c mtk_nfc_hw_runtime_config() -> nfi_writel()

Type Parameter Key Value
PARAM_VALUE 0 nfc 4096-ptr_max
PARAM_VALUE 2 reg 4
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3808,3888,3912,3968,3984,4008,4032,4056,4216,4784,5768
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3808,3888,3912,3968,3984,4008,4032,4056,4216,4784,5768
CAPPED_DATA 0 nfc->caps->num_spare_size 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &nand->controller->lock
HALF_LOCKED2 &nand->lock

drivers/mtd/nand/raw/mtk_nand.c mtk_nfc_read_byte() -> nfi_writel()

Type Parameter Key Value
PARAM_VALUE 0 nfc 4096-ptr_max
PARAM_VALUE 1 val 256,4352-1044736
PARAM_VALUE 2 reg 8
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3808,3888,3912,3968,3984,4008,4032,4056,4216,4784,5768
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3808,3888,3912,3968,3984,4008,4032,4056,4216,4784,5768
BIT_INFO 1 val 0x100,0x100
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &chip->controller->lock
HALF_LOCKED2 &chip->lock

drivers/mtd/nand/raw/mtk_nand.c mtk_nfc_read_subpage() -> nfi_writel()

Type Parameter Key Value
PARAM_VALUE 0 nfc 4096-ptr_max
PARAM_VALUE 1 val 0,4096-4294963200
PARAM_VALUE 2 reg 8
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3808,3888,3912,3968,3984,4008,4032,4056,4216,4784,5768
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3808,3888,3912,3968,3984,4008,4032,4056,4216,4784,5768
BIT_INFO 1 val 0x0,0xfffff000
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &chip->controller->lock
HALF_LOCKED2 &chip->lock
HALF_LOCKED2 0 &nfc->ecc->lock

drivers/mtd/nand/raw/mtk_nand.c mtk_nfc_read_subpage() -> nfi_writel()

Type Parameter Key Value
PARAM_VALUE 0 nfc 4096-ptr_max
PARAM_VALUE 1 val 0-4294967294
PARAM_VALUE 2 reg 128
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3808,3888,3912,3968,3984,4008,4032,4056,4216,4784,5768
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3808,3888,3912,3968,3984,4008,4032,4056,4216,4784,5768
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &chip->controller->lock
HALF_LOCKED2 &chip->lock
HALF_LOCKED2 0 &nfc->ecc->lock

drivers/mtd/nand/raw/mtk_nand.c mtk_nfc_read_subpage() -> nfi_writel()

Type Parameter Key Value
PARAM_VALUE 0 nfc 4096-ptr_max
PARAM_VALUE 2 reg 8
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3808,3888,3912,3968,3984,4008,4032,4056,4216,4784,5768
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3808,3888,3912,3968,3984,4008,4032,4056,4216,4784,5768
BIT_INFO 1 val 0x100,0xffffffff
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 1 val 0-u32max
HALF_LOCKED2 &chip->controller->lock
HALF_LOCKED2 &chip->lock
HALF_LOCKED2 0 &nfc->ecc->lock

drivers/mtd/nand/raw/mtk_nand.c mtk_nfc_read_subpage() -> nfi_writel()

Type Parameter Key Value
PARAM_VALUE 0 nfc 4096-ptr_max
PARAM_VALUE 1 val 0
PARAM_VALUE 2 reg 8
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3808,3888,3912,3968,3984,4008,4032,4056,4216,4784,5768
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3808,3888,3912,3968,3984,4008,4032,4056,4216,4784,5768
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &chip->controller->lock
HALF_LOCKED2 &chip->lock

drivers/mtd/nand/raw/mtk_nand.c mtk_nfc_select_target() -> nfi_writel()

Type Parameter Key Value
PARAM_VALUE 1 val 0-1
PARAM_VALUE 2 reg 144
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3808,3888,3912,3968,3984,4008,4032,4056,4216,4784,5768
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3808,3888,3912,3968,3984,4008,4032,4056,4216,4784,5768
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &nand->controller->lock
HALF_LOCKED2 &nand->lock

drivers/mtd/nand/raw/mtk_nand.c mtk_nfc_send_address() -> nfi_writel()

Type Parameter Key Value
PARAM_VALUE 0 nfc 4096-ptr_max
PARAM_VALUE 1 val 0-255
PARAM_VALUE 2 reg 52
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3888,3912,3968,3984,4008,4056,4216,5768
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3888,3912,3968,3984,4008,4056,4216,5768
DATA_SOURCE 0 nfc $0
DATA_SOURCE 1 val $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &chip->controller->lock
HALF_LOCKED2 &chip->lock

drivers/mtd/nand/raw/mtk_nand.c mtk_nfc_send_address() -> nfi_writel()

Type Parameter Key Value
PARAM_VALUE 0 nfc 4096-ptr_max
PARAM_VALUE 1 val 0
PARAM_VALUE 2 reg 56
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3888,3912,3968,3984,4008,4056,4216,5768
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3888,3912,3968,3984,4008,4056,4216,5768
DATA_SOURCE 0 nfc $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &chip->controller->lock
HALF_LOCKED2 &chip->lock

drivers/mtd/nand/raw/mtk_nand.c mtk_nfc_send_command() -> nfi_writel()

Type Parameter Key Value
PARAM_VALUE 0 nfc 4096-ptr_max
PARAM_VALUE 2 reg 32
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3888,3912,3968,3984,4008,4056,4216,5768
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3888,3912,3968,3984,4008,4056,4216,5768
DATA_SOURCE 0 nfc $0
DATA_SOURCE 1 val $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &chip->controller->lock
HALF_LOCKED2 &chip->lock

drivers/mtd/nand/raw/mtk_nand.c mtk_nfc_setup_interface() -> nfi_writel()

Type Parameter Key Value
PARAM_VALUE 0 nfc 4096-ptr_max
PARAM_VALUE 2 reg 544
BUF_SIZE 0 nfc (-1),4008
BUF_SIZE 0 nfc (-1),4008
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 1 val 0-u32max[c]
HALF_LOCKED2 &chip->controller->lock
HALF_LOCKED2 &chip->lock

drivers/mtd/nand/raw/mtk_nand.c mtk_nfc_setup_interface() -> nfi_writel()

Type Parameter Key Value
PARAM_VALUE 0 nfc 4096-ptr_max
PARAM_VALUE 2 reg 12
BUF_SIZE 0 nfc (-1),4008
BUF_SIZE 0 nfc (-1),4008
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &chip->controller->lock
HALF_LOCKED2 &chip->lock

drivers/mtd/nand/raw/mtk_nand.c mtk_nfc_write_byte() -> nfi_writel()

Type Parameter Key Value
PARAM_VALUE 0 nfc 4096-ptr_max
PARAM_VALUE 1 val 512,4608-1044992
PARAM_VALUE 2 reg 8
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3808,3888,3912,3968,3984,4008,4032,4056,4216,4784,5768
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3808,3888,3912,3968,3984,4008,4032,4056,4216,4784,5768
BIT_INFO 1 val 0x200,0x200
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &chip->controller->lock
HALF_LOCKED2 &chip->lock

drivers/mtd/nand/raw/mtk_nand.c mtk_nfc_write_fdm() -> nfi_writel()

Type Parameter Key Value
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3808,3888,3912,3968,3984,4008,4032,4056,4216,4784,5768
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3808,3888,3912,3968,3984,4008,4032,4056,4216,4784,5768
CAPPED_DATA 2 reg 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &nfc->ecc->lock
HALF_LOCKED2 &chip->controller->lock
HALF_LOCKED2 &chip->lock
TYPE_LOCK (struct mtk_ecc)->lock

drivers/mtd/nand/raw/mtk_nand.c mtk_nfc_write_fdm() -> nfi_writel()

Type Parameter Key Value
PARAM_VALUE 0 nfc 4096-ptr_max
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3808,3888,3912,3968,3984,4008,4032,4056,4216,4784,5768
BUF_SIZE 0 nfc 384,648,3728,3736,3776,3808,3888,3912,3968,3984,4008,4032,4056,4216,4784,5768
CAPPED_DATA 2 reg 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &nfc->ecc->lock
HALF_LOCKED2 &chip->controller->lock
HALF_LOCKED2 &chip->lock
TYPE_LOCK (struct mtk_ecc)->lock