Defined in 1 files as a prototype:
Defined in 3 files as a macro:
- arch/arm64/include/asm/io.h, line 209 (as a macro)
- arch/s390/include/asm/io.h, line 82 (as a macro)
- arch/x86/include/asm/io.h, line 224 (as a macro)
Defined in 4 files as a function:
- arch/arm64/include/asm/io.h, line 199 (as a function)
- arch/s390/include/asm/io.h, line 77 (as a function)
- arch/x86/include/asm/io.h, line 217 (as a function)
- lib/iomap_copy.c, line 20 (as a function)
Referenced in 22 files:
- drivers/firmware/arm_scmi/shmem.c, line 58
- drivers/firmware/samsung/exynos-acpm.c, line 501
- drivers/infiniband/hw/bng_re/bng_fw.c, line 670
- drivers/infiniband/hw/bnxt_re/qplib_rcfw.c, line 1156
- drivers/mailbox/mtk-vcp-mailbox.c, line 77
- drivers/media/platform/rockchip/rkvdec/rkvdec.c, line 1141
- drivers/mtd/nand/raw/mxc_nand.c, line 222
- drivers/net/ethernet/broadcom/bnge/bnge_hwrm.c, line 327
- drivers/net/ethernet/broadcom/bnxt/bnxt.c, line 642
- drivers/net/ethernet/broadcom/bnxt/bnxt_hwrm.c, line 531
- drivers/net/wireless/ralink/rt2x00/rt2x00mmio.h, line 46
- drivers/remoteproc/mtk_scp_ipi.c, line 100
- drivers/rpmsg/qcom_glink_rpm.c
- drivers/rpmsg/qcom_smd.c, line 472
- drivers/scsi/lpfc/lpfc_compat.h, line 88
- drivers/soc/qcom/qcom_aoss.c, line 252
- drivers/soc/qcom/spm.c, line 532
- drivers/spi/spi-hisi-sfc-v3xx.c, line 245
- include/linux/io.h, line 17
- lib/iomap_copy.c
- sound/soc/intel/atom/sst/sst_loader.c, line 37
- sound/soc/sof/iomem-utils.c, line 95
Smatch caller information:
drivers/remoteproc/mtk_scp_ipi.c scp_memcpy_aligned() -> __iowrite32_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | to | 4096-ptr_max |
| PARAM_VALUE | 1 | from | 4096-ptr_max |
| PARAM_VALUE | 2 | count | 0-u32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | to | unit_byte |
| UNITS | 1 | from | unit_byte |
| USER_PTR | 1 | from | |
| HALF_LOCKED2 | &rproc->lock | ||
| HALF_LOCKED2 | &scp->send_lock |
drivers/soc/qcom/spm.c spm_dev_probe() -> __iowrite32_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | count | 16 |
| BUF_SIZE | 1 | from | 64 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
sound/soc/intel/atom/sst/sst_loader.c memcpy32_toio() -> __iowrite32_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | count | 0-s32max,18446744071562067968-u64max |
| BUF_SIZE | 1 | from | (-1),1-s32max |
| BUF_SIZE | 1 | from | (-1),1-s32max |
| DATA_SOURCE | 0 | to | $0 |
| DATA_SOURCE | 1 | from | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | from | unit_byte |
drivers/soc/qcom/qcom_aoss.c qmp_send() -> __iowrite32_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | from | 1935118496829624320 |
| PARAM_VALUE | 1 | *from | 0-255 |
| PARAM_VALUE | 2 | count | 16 |
| BUF_SIZE | 1 | from | 64 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | to | unit_byte |
| LOCK2 | &qmp->tx_lock | ||
| HALF_LOCKED2 | &cdev->lock | ||
| HALF_LOCKED2 | &s->lock | ||
| TYPE_LOCK | (struct qmp)->tx_lock |
drivers/rpmsg/qcom_smd.c smd_copy_to_fifo() -> __iowrite32_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | count | 0-4611686018427387903 |
| BUF_SIZE | 1 | from | (-1),20 |
| BUF_SIZE | 1 | from | (-1),20 |
| CAPPED_DATA | 2 | count | 1 |
| DATA_SOURCE | 0 | to | $0 |
| DATA_SOURCE | 1 | from | $1 |
| PREEMPT_ADD | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 2 | count | 0-536870911[c] |
| USER_DATA | 2 | count | 0-1000000[c] |
| UNITS | 0 | to | unit_byte |
| UNITS | 1 | from | unit_byte |
| USER_PTR | 1 | from | |
| LOCK2 | &channel->tx_lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | &eptdev->ept_lock | ||
| TYPE_LOCK | (struct qcom_smd_channel)->tx_lock |
drivers/net/ethernet/broadcom/bnxt/bnxt.c bnxt_start_xmit() -> __iowrite32_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | to | 4096-ptr_max |
| PARAM_VALUE | 2 | count | 2-1073741800 |
| CAPPED_DATA | 2 | count | 1 |
| BIT_INFO | 2 | count | 0x0,0x3ffffffe |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 2 | count | 2-536870888[c] |
| HALF_LOCKED2 | &dev->tx_global_lock | ||
| HALF_LOCKED2 | &txq->_xmit_lock | ||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | rcu_read |
drivers/rpmsg/qcom_glink_rpm.c glink_rpm_tx_write_one() -> __iowrite32_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | to | 4096-ptr_max |
| PARAM_VALUE | 1 | from | 0,4096-ptr_max |
| PARAM_VALUE | 2 | count | 0-4611686018427387903 |
| BUF_SIZE | 1 | from | (-1),8,16,40 |
| BUF_SIZE | 1 | from | (-1),8,16,40 |
| CAPPED_DATA | 2 | count | 1 |
| DATA_SOURCE | 1 | from | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 2 | count | 0-536870911[c] |
| USER_DATA | 2 | count | 0-536870911[c] |
| USER_PTR | 1 | from | |
| LOCK2 | &glink->tx_lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | &channel->intent_req_lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct qcom_glink)->tx_lock |
drivers/rpmsg/qcom_glink_rpm.c glink_rpm_tx_write_one() -> __iowrite32_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| CAPPED_DATA | 2 | count | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 2 | count | 0-4611686018427387903[c] |
| USER_DATA | 2 | count | 0-4611686018427387903[c] |
| USER_PTR | 1 | from | |
| LOCK2 | &glink->tx_lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | &channel->intent_req_lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct qcom_glink)->tx_lock |
drivers/infiniband/hw/bng_re/bng_fw.c bng_re_start_rcfw() -> __iowrite32_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | from | 1913620382821732352 |
| PARAM_VALUE | 2 | count | 4 |
| BUF_SIZE | 1 | from | 16 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/mailbox/mtk-vcp-mailbox.c mtk_vcp_mbox_send_data() -> __iowrite32_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | to | 4096-ptr_max |
| PARAM_VALUE | 1 | from | 1-u64max |
| BUF_SIZE | 1 | from | 256 |
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &chan->lock | ||
| LOCK2 | irq | ||
| TYPE_LOCK | (struct mbox_chan)->lock |
drivers/infiniband/hw/bnxt_re/qplib_rcfw.c bnxt_qplib_start_rcfw() -> __iowrite32_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | from | 9022570221675069440 |
| PARAM_VALUE | 2 | count | 4 |
| BUF_SIZE | 1 | from | 16 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | global &bnxt_re_mutex |
drivers/net/wireless/ralink/rt2x00/rt61pci.c rt2x00mmio_register_multiwrite() -> __iowrite32_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | to | 4096-ptr_max |
| PARAM_VALUE | 2 | count | 0-1073741823 |
| BUF_SIZE | 1 | from | (-1),1-s32max |
| BUF_SIZE | 1 | from | (-1),1-s32max |
| DATA_SOURCE | 1 | from | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | from | unit_byte |
drivers/net/wireless/ralink/rt2x00/rt2800pci.c rt2x00mmio_register_multiwrite() -> __iowrite32_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | to | 4096-ptr_max |
| PARAM_VALUE | 2 | count | 0-1073741823 |
| BUF_SIZE | 1 | from | 1-s32max |
| BUF_SIZE | 1 | from | 1-s32max |
| DATA_SOURCE | 1 | from | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
sound/soc/sof/iomem-utils.c sof_block_write() -> __iowrite32_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | to | 4096-ptr_max |
| PARAM_VALUE | 2 | count | 0-s32max,18446744071562067968-u64max |
| BUF_SIZE | 1 | from | (-1),1-s32max |
| BUF_SIZE | 1 | from | (-1),1-s32max |
| DATA_SOURCE | 1 | from | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | _T->lock |
drivers/net/wireless/ralink/rt2x00/rt2400pci.c rt2x00mmio_register_multiwrite() -> __iowrite32_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | to | 4096-ptr_max |
| PARAM_VALUE | 2 | count | 2 |
| BUF_SIZE | 1 | from | 8 |
| BUF_SIZE | 1 | from | 8 |
| DATA_SOURCE | 1 | from | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/net/wireless/ralink/rt2x00/rt2500pci.c rt2x00mmio_register_multiwrite() -> __iowrite32_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | to | 4096-ptr_max |
| PARAM_VALUE | 2 | count | 2 |
| BUF_SIZE | 1 | from | 8 |
| BUF_SIZE | 1 | from | 8 |
| DATA_SOURCE | 1 | from | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/scsi/lpfc/lpfc_mbox.c lpfc_memcpy_to_slim() -> __iowrite32_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | from | 7952529801946472448 |
| PARAM_VALUE | 2 | count | 2 |
| BUF_SIZE | 1 | from | 8 |
| BUF_SIZE | 1 | from | 8 |
| DATA_SOURCE | 0 | to | $0 |
| DATA_SOURCE | 1 | from | $1 |
| MEM_ZERO | 1 | from | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/spi/spi-hisi-sfc-v3xx.c hisi_sfc_v3xx_write_databuf() -> __iowrite32_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | to | 4096-ptr_max |
| PARAM_VALUE | 2 | count | 0-s32max,18446744071562067968-u64max |
| BUF_SIZE | 1 | from | (-1)-s32max |
| DATA_SOURCE | 1 | from | $1 |
| BIT_INFO | 1 | from | 0x0,0xfffffffffffffffc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | from | unit_byte |
| USER_PTR | 1 | from | |
| LOCK2 | &mem->spi->controller->bus_lock_mutex | ||
| LOCK2 | &mem->spi->controller->io_mutex | ||
| HALF_LOCKED2 | &at25->lock | ||
| HALF_LOCKED2 | &master->master.chrdev_lock | ||
| HALF_LOCKED2 | &spinand->lock | ||
| HALF_LOCKED2 | _T->lock | ||
| TYPE_LOCK | (struct spi_controller)->bus_lock_mutex | ||
| TYPE_LOCK | (struct spi_controller)->io_mutex |
drivers/scsi/lpfc/lpfc_sli.c lpfc_memcpy_to_slim() -> __iowrite32_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | to | $0 |
| DATA_SOURCE | 1 | from | $1 |
| NOCHECK_CALL |
drivers/firmware/samsung/exynos-acpm.c acpm_do_xfer() -> __iowrite32_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | to | 4096-ptr_max |
| PARAM_VALUE | 1 | from | 1-u64max |
| PARAM_VALUE | 2 | count | 4 |
| BUF_SIZE | 1 | from | 16 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | count | unit_array_size |
| LOCK2 | _T->lock |
drivers/firmware/arm_scmi/shmem.c shmem_memcpy_toio32() -> __iowrite32_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | to | $0 |
| DATA_SOURCE | 1 | from | $1 |
| NOCHECK_CALL |
drivers/net/ethernet/broadcom/bnxt/bnxt_hwrm.c __hwrm_send() -> __iowrite32_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | from | 4096-ptr_max |
| PARAM_VALUE | 2 | count | 0-16383 |
| BUF_SIZE | 1 | from | (-1),16 |
| CAPPED_DATA | 2 | count | 1 |
| NOCHECK_CALL | |||
| LOCK2 | &bp->hwrm_cmd_lock | ||
| TYPE_LOCK | (struct bnxt)->hwrm_cmd_lock |
drivers/net/ethernet/broadcom/bnge/bnge_hwrm.c __hwrm_send_ctx() -> __iowrite32_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | from | 4096-ptr_max |
| PARAM_VALUE | 2 | count | 0-16383 |
| CAPPED_DATA | 2 | count | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &bd->hwrm_cmd_lock | ||
| TYPE_LOCK | (struct bnge_dev)->hwrm_cmd_lock |
drivers/mtd/nand/raw/mxc_nand.c memcpy32_toio() -> __iowrite32_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | count | 0-s32max,18446744071562067968-u64max |
| BUF_SIZE | 1 | from | s32min-(-1),1-s32max |
| BUF_SIZE | 1 | from | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | to | $0 |
| DATA_SOURCE | 1 | from | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | from | unit_byte |