Defined in 2 files as a function:

Referenced in 11 files:

Smatch caller information:

drivers/net/ethernet/google/gve/gve_rx.c gve_xsk_pool_redirect() -> xsk_buff_alloc()

Type Parameter Key Value
PARAM_VALUE 0 pool 4096-ptr_max
PARAM_VALUE 0 pool->fq->cached_cons 0-4294967295
PARAM_VALUE 0 pool->fq->cached_prod 0-4294967295
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 bh
HALF_LOCKED2 rcu_read

drivers/net/ethernet/intel/igc/igc_main.c igc_alloc_rx_buffers_zc() -> xsk_buff_alloc()

Type Parameter Key Value
PARAM_VALUE 0 pool 1-u64max
RX_PATH
TASK_NOT_RUNNING

drivers/net/ethernet/stmicro/stmmac/stmmac_main.c stmmac_alloc_rx_buffers_zc() -> xsk_buff_alloc()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/net/ethernet/stmicro/stmmac/stmmac_main.c stmmac_rx_refill_zc() -> xsk_buff_alloc()

Type Parameter Key Value
RX_PATH

drivers/net/ethernet/mellanox/mlx5/core/en/xsk/rx.c mlx5e_xsk_alloc_rx_mpwqe() -> xsk_buff_alloc()

Type Parameter Key Value
PARAM_VALUE 0 pool 4096-ptr_max
PARAM_VALUE 0 pool->fq->cached_cons 0-4294967295
PARAM_VALUE 0 pool->fq->cached_prod 0-4294967295
PARAM_VALUE 0 pool->fq->ring->consumer 0-4294967295
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 pool->free_list_cnt
LOCK2 rcu_read
HALF_LOCKED2 bh

drivers/net/ethernet/mellanox/mlx5/core/en/xsk/rx.c mlx5e_xsk_alloc_rx_wqes() -> xsk_buff_alloc()

Type Parameter Key Value
PARAM_VALUE 0 pool 1-u64max
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read
HALF_LOCKED2 bh

drivers/net/ethernet/google/gve/gve_buffer_mgmt_dqo.c gve_alloc_buffer() -> xsk_buff_alloc()

Type Parameter Key Value
PARAM_VALUE 0 pool 1-u64max
RX_PATH
TASK_NOT_RUNNING

net/xdp/xsk.c __xsk_rcv() -> xsk_buff_alloc()

Type Parameter Key Value
PARAM_VALUE 0 pool 4096-ptr_max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 bh
HALF_LOCKED2 rcu_read
HALF_LOCKED2 0 &pool->rx_lock

net/xdp/xsk.c __xsk_rcv() -> xsk_buff_alloc()

Type Parameter Key Value
PARAM_VALUE 0 pool 4096-ptr_max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 bh
HALF_LOCKED2 rcu_read
HALF_LOCKED2 0 &pool->rx_lock

drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c ixgbe_alloc_rx_buffers_zc() -> xsk_buff_alloc()

Type Parameter Key Value
PARAM_VALUE 0 pool 1-u64max
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 pool->fq->ring->consumer

drivers/net/ethernet/freescale/fec_main.c fec_alloc_new_rxq_xsk() -> xsk_buff_alloc()

Type Parameter Key Value
PARAM_VALUE 0 pool 4096-ptr_max
PARAM_VALUE 0 pool->dma_pages 16,4096-ptr_max
PARAM_VALUE 0 pool->umem 4096-ptr_max
PARAM_VALUE 0 pool->umem->xsk_dma_list.next 4096-ptr_max
PARAM_VALUE 0 pool->umem->xsk_dma_list.next->next 4096-ptr_max
PARAM_VALUE 0 pool->umem->xsk_dma_list.next->prev 4096-ptr_max
BUF_SIZE 0 pool (-1),512-s32max
BUF_SIZE 0 pool (-1),512-s32max
DATA_SOURCE 0 pool $2
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 pool->dma_pages_cnt
NO_OVERFLOW_SIMPLE 0 pool->free_heads_cnt
NO_OVERFLOW_SIMPLE 0 pool->heads_cnt
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &xs->mutex
HALF_LOCKED2 global &rtnl_mutex

drivers/net/ethernet/freescale/fec_main.c fec_alloc_rxq_buffers_zc() -> xsk_buff_alloc()

Type Parameter Key Value
PARAM_VALUE 0 pool 1-u64max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &ndev->ethtool->rss_lock
HALF_LOCKED2 &ndev->lock

drivers/net/ethernet/freescale/fec_main.c fec_enet_update_cbd_zc() -> xsk_buff_alloc()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 bh
HALF_LOCKED2 rcu_read

drivers/net/ethernet/netronome/nfp/nfp_net_xsk.c nfp_net_xsk_rx_ring_fill_freelist() -> xsk_buff_alloc()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/net/ethernet/marvell/octeontx2/nic/otx2_xsk.c otx2_xsk_pool_alloc_buf() -> xsk_buff_alloc()

Type Parameter Key Value
PARAM_VALUE 0 pool 1-u64max
PARAM_VALUE 0 pool->fq->cached_cons 0-4294967295
PARAM_VALUE 0 pool->fq->cached_prod 0-4294967295
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pfvf->mbox.lock
HALF_LOCKED2 &pfvf->qos.qos_lock
HALF_LOCKED2 bh