Defined in 1 files as a macro:
Defined in 1 files as a function:
Referenced in 19 files:
- drivers/dma/ste_dma40.c, line 947
- drivers/firewire/ohci.c
- drivers/iommu/omap-iommu.c, line 465
- drivers/iommu/tegra-smmu.c
- drivers/media/platform/ti/omap3isp/ispstat.c, line 82
- drivers/net/ethernet/freescale/enetc/enetc.c
- drivers/net/ethernet/freescale/gianfar.c, line 2361
- drivers/net/ethernet/intel/fm10k/fm10k_main.c, line 198
- drivers/net/ethernet/intel/i40e/i40e_txrx.c, line 1696
- drivers/net/ethernet/intel/igb/igb_main.c, line 9236
- drivers/net/ethernet/intel/igc/igc_main.c, line 2275
- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c, line 1809
- drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c, line 697
- drivers/net/ethernet/mellanox/mlx4/en_tx.c, line 1175
- drivers/net/ethernet/meta/fbnic/fbnic_txrx.c, line 1103
- drivers/net/ethernet/micrel/ks8842.c, line 443
- drivers/net/ethernet/mscc/ocelot_fdma.c, line 309
- drivers/net/ethernet/wangxun/libwx/wx_lib.c, line 335
- drivers/virtio/virtio_ring.c, line 3985
Smatch caller information:
drivers/net/ethernet/freescale/enetc/enetc.c enetc_put_rx_buff() -> dma_sync_single_range_for_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | rcu_read |
drivers/net/ethernet/freescale/enetc/enetc.c enetc_recycle_xdp_tx_buff() -> dma_sync_single_range_for_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 3 | size | 1472 |
| NOCHECK_CALL |
drivers/virtio/virtio_ring.c virtqueue_map_sync_single_range_for_device() -> dma_sync_single_range_for_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 1 | addr | $1 |
| DATA_SOURCE | 2 | offset | $2 |
| DATA_SOURCE | 3 | size | $3 |
| DATA_SOURCE | 4 | dir | $4 |
| NOCHECK_CALL |
drivers/net/ethernet/micrel/ks8842.c ks8842_tx_frame_dma() -> dma_sync_single_range_for_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | offset | 0 |
| PARAM_VALUE | 3 | size | 0-u32max |
| PARAM_VALUE | 4 | dir | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 3 | size | 0-u32max[c] |
| UNITS | 0 | dev | unit_byte |
| UNITS | 1 | addr | unit_byte |
| UNITS | 3 | size | unit_byte |
| HALF_LOCKED2 | &netdev->tx_global_lock | ||
| HALF_LOCKED2 | &txq->_xmit_lock | ||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | rcu_read |
drivers/net/ethernet/intel/igc/igc_main.c igc_alloc_rx_buffers() -> dma_sync_single_range_for_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 3 | size | 1664,2048,3072 |
| PARAM_VALUE | 4 | dir | 2 |
| DATA_SOURCE | 3 | size | r igc_rx_bufsz |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/net/ethernet/intel/fm10k/fm10k_main.c fm10k_reuse_rx_page() -> dma_sync_single_range_for_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dma_mask | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->flags | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->iommu->pci_32bit_workaround | 0-1 |
| PARAM_VALUE | 3 | size | 2048 |
| PARAM_VALUE | 4 | dir | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | rcu_read |
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c ixgbe_alloc_rx_buffers() -> dma_sync_single_range_for_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 3 | size | 1536,2048,3072 |
| PARAM_VALUE | 4 | dir | 2 |
| BUF_SIZE | 0 | dev | (-1),1616 |
| BUF_SIZE | 0 | dev | (-1),1616 |
| DATA_SOURCE | 3 | size | r ixgbe_rx_bufsz |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/net/ethernet/intel/igb/igb_main.c igb_alloc_rx_buffers() -> dma_sync_single_range_for_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 3 | size | 1536,2048,3072 |
| PARAM_VALUE | 4 | dir | 2 |
| BUF_SIZE | 0 | dev | (-1),1616 |
| BUF_SIZE | 0 | dev | (-1),1616 |
| DATA_SOURCE | 3 | size | r igb_rx_bufsz |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/net/ethernet/mellanox/mlx4/en_tx.c mlx4_en_xmit_frame() -> dma_sync_single_range_for_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev->flags | 4096-ptr_max |
| PARAM_VALUE | 4 | dir | 1 |
| DATA_SOURCE | 1 | addr | r page_pool_get_dma_addr |
| DATA_SOURCE | 3 | size | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | offset | unit_byte |
| UNITS | 3 | size | unit_byte |
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | rcu_read |
drivers/firewire/ohci.c queue_iso_buffer_fill() -> dma_sync_single_range_for_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev->cma_area->available_count | 0-s64max |
| PARAM_VALUE | 2 | offset | 0-4095 |
| PARAM_VALUE | 3 | size | 0-4096 |
| PARAM_VALUE | 4 | dir | 2 |
| BIT_INFO | 2 | offset | 0x0,0xffc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 3 | size | 0-4095 |
| UNITS | 1 | addr | unit_byte |
| UNITS | 2 | offset | unit_byte |
| UNITS | 3 | size | unit_byte |
| LOCK2 | &ctx->context.ohci->lock | ||
| LOCK2 | irq | ||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| TYPE_LOCK | (struct fw_ohci)->lock |
drivers/firewire/ohci.c queue_iso_packet_per_buffer() -> dma_sync_single_range_for_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | offset | 0-4095 |
| PARAM_VALUE | 3 | size | 0-u16max,18446744073709547520-u64max |
| PARAM_VALUE | 4 | dir | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 2 | offset | 1-4094[c] |
| USER_DATA | 3 | size | 0-u16max,18446744073709547521-u64max |
| UNITS | 1 | addr | unit_byte |
| UNITS | 2 | offset | unit_byte |
| UNITS | 3 | size | unit_byte |
| LOCK2 | &ctx->context.ohci->lock | ||
| LOCK2 | irq | ||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| TYPE_LOCK | (struct fw_ohci)->lock |
drivers/firewire/ohci.c queue_iso_transmit() -> dma_sync_single_range_for_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev->cma_area->alloc_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->cma_area->alloc_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->cma_area->available_count | 0-s64max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dma_io_tlb_pools.next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dma_io_tlb_pools.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dma_mem->spinlock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->dma_uses_io_tlb | 1 |
| PARAM_VALUE | 2 | offset | 0-4095 |
| PARAM_VALUE | 3 | size | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 4 | dir | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 3 | size | unit_byte |
| LOCK2 | &ctx->context.ohci->lock | ||
| LOCK2 | irq | ||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| TYPE_LOCK | (struct fw_ohci)->lock |
drivers/iommu/omap-iommu.c flush_iopte_range() -> dma_sync_single_range_for_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 2 | offset | 0-16380 |
| PARAM_VALUE | 3 | size | 4,64 |
| PARAM_VALUE | 4 | dir | 1 |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | addr | $1 |
| DATA_SOURCE | 2 | offset | $2 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &obj->page_table_lock | ||
| TYPE_LOCK | (struct omap_iommu)->page_table_lock |
drivers/net/ethernet/wangxun/libwx/wx_lib.c wx_alloc_rx_buffers() -> dma_sync_single_range_for_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 4 | dir | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/net/ethernet/meta/fbnic/fbnic_txrx.c fbnic_pkt_tx() -> dma_sync_single_range_for_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | offset | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 3 | size | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 4 | dir | 0 |
| DATA_SOURCE | 1 | addr | r page_pool_get_dma_addr |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | offset | unit_byte |
| UNITS | 3 | size | unit_byte |
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | rcu_read |
drivers/net/ethernet/mscc/ocelot_fdma.c ocelot_fdma_reuse_rx_page() -> dma_sync_single_range_for_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dma_mask | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->flags | 4096-ptr_max |
| PARAM_VALUE | 3 | size | 2048 |
| PARAM_VALUE | 4 | dir | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | rcu_read |
drivers/net/ethernet/freescale/gianfar.c gfar_reuse_rx_page() -> dma_sync_single_range_for_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dma_mask | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->flags | 4096-ptr_max |
| PARAM_VALUE | 3 | size | 2048 |
| PARAM_VALUE | 4 | dir | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | rcu_read |
drivers/net/ethernet/intel/i40e/i40e_txrx.c i40e_alloc_rx_buffers() -> dma_sync_single_range_for_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 4 | dir | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | addr | unit_byte |
| UNITS | 2 | offset | unit_byte |
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c ixgbevf_alloc_rx_buffers() -> dma_sync_single_range_for_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 3 | size | 1664,2048,3072 |
| PARAM_VALUE | 4 | dir | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/media/platform/ti/omap3isp/ispstat.c __isp_stat_buf_sync_magic() -> __isp_stat_buf_sync_magic param 4()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | offset | 0 |
| PARAM_VALUE | 3 | size | 16 |
| PARAM_VALUE | 4 | dir | 0,2 |
| DATA_SOURCE | 4 | dir | $3 |
| HARD_MAX | 4 | dir | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &stat->isp->stat_lock | ||
| HALF_LOCKED2 | &stat->ioctl_lock | ||
| HALF_LOCKED2 | irqflags | ||
| TYPE_LOCK | (struct isp_device)->stat_lock |
drivers/media/platform/ti/omap3isp/ispstat.c __isp_stat_buf_sync_magic() -> __isp_stat_buf_sync_magic param 4()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | offset | 0-4095 |
| PARAM_VALUE | 3 | size | 16 |
| PARAM_VALUE | 4 | dir | 0,2 |
| CAPPED_DATA | 4 | dir | 1 |
| DATA_SOURCE | 4 | dir | $3 |
| HARD_MAX | 4 | dir | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &stat->isp->stat_lock | ||
| HALF_LOCKED2 | &stat->ioctl_lock | ||
| HALF_LOCKED2 | irqflags | ||
| TYPE_LOCK | (struct isp_device)->stat_lock |