Documented in 1 files:

Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/net/ethernet/chelsio/cxgb3/sge.c ctrl_xmit() -> check_desc_avail()

Type Parameter Key Value
PARAM_VALUE 0 adap 4096-ptr_max
PARAM_VALUE 1 q 4096-ptr_max
PARAM_VALUE 2 skb 4096-ptr_max
PARAM_VALUE 3 ndesc 1
PARAM_VALUE 4 qid 2
BUF_SIZE 0 adap->nofail_skb (-1),32
BUF_SIZE 2 skb (-1),16,24,32,40,80
BUF_SIZE 2 skb (-1),16,24,32,40,80
DATA_SOURCE 0 adap $0
DATA_SOURCE 1 q $1
DATA_SOURCE 2 skb $2
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 2 skb->prev->len
NO_OVERFLOW_SIMPLE 2 skb->prev->tail
UNITS 0 adap unit_byte
USER_PTR 0 adap->nofail_skb->data
LOCK2 1 &q->lock
HALF_LOCKED2 bh
TYPE_LOCK (struct sge_txq)->lock

drivers/net/ethernet/chelsio/cxgb3/sge.c ofld_xmit() -> check_desc_avail()

Type Parameter Key Value
PARAM_VALUE 0 adap 4096-ptr_max
PARAM_VALUE 1 q 4096-ptr_max
PARAM_VALUE 2 skb 4096-ptr_max
PARAM_VALUE 3 ndesc 0-4
PARAM_VALUE 4 qid 1
BUF_SIZE 1 q 704
BUF_SIZE 1 q 704
BUF_SIZE 2 skb (-1),16,24,32,40,80
BUF_SIZE 2 skb (-1),16,24,32,40,80
CAPPED_DATA 3 ndesc 1
DATA_SOURCE 0 adap $0
DATA_SOURCE 1 q $1
DATA_SOURCE 2 skb $2
DATA_SOURCE 3 ndesc r calc_tx_descs_ofld
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 2 skb->prev->len
NO_OVERFLOW_SIMPLE 2 skb->prev->tail
LOCK2 1 &q->lock
HALF_LOCKED2 bh
TYPE_LOCK (struct sge_txq)->lock