Documented in 3 files:
- drivers/net/ethernet/chelsio/cxgb3/sge.c, line 273
- drivers/net/ethernet/chelsio/cxgb4/sge.c, line 303
- drivers/net/ethernet/chelsio/cxgb4vf/sge.c, line 367
Defined in 1 files as a prototype:
Defined in 1 files as a member:
Defined in 3 files as a function:
- drivers/net/ethernet/chelsio/cxgb3/sge.c, line 282 (as a function)
- drivers/net/ethernet/chelsio/cxgb4/sge.c, line 313 (as a function)
- drivers/net/ethernet/chelsio/cxgb4vf/sge.c, line 377 (as a function)
Referenced in 7 files:
- drivers/net/ethernet/chelsio/cxgb3/sge.c
- drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c, line 412
- drivers/net/ethernet/chelsio/cxgb4/sge.c
- drivers/net/ethernet/chelsio/cxgb4vf/sge.c
- drivers/net/ethernet/mellanox/mlx4/en_netdev.c, line 1623
- drivers/net/ethernet/mellanox/mlx4/en_tx.c
- drivers/net/ethernet/ti/davinci_cpdma.c
Smatch caller information:
drivers/net/ethernet/chelsio/cxgb3/sge.c reclaim_completed_tx() -> free_tx_desc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | tq | 4096-ptr_max |
| PARAM_VALUE | 2 | n | 1-64 |
| BUF_SIZE | 1 | tq | 704,1056 |
| BUF_SIZE | 1 | tq | 704,1056 |
| CAPPED_DATA | 2 | n | 1 |
| DATA_SOURCE | 0 | adapter | $0 |
| DATA_SOURCE | 1 | tq | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | adapter | unit_byte |
| HALF_LOCKED2 | &qs->tx_q->_xmit_lock | ||
| HALF_LOCKED2 | 1 | &tq->lock |
drivers/net/ethernet/chelsio/cxgb3/sge.c t3_free_qset() -> free_tx_desc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adapter | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->pdev->dev.cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 0 | adapter->sge.qs | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->sge.reg_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | *adapter->pdev->saved_config_space | 0-4294967295 |
| PARAM_VALUE | 1 | tq | 4096-ptr_max |
| PARAM_VALUE | 1 | tq->desc | 1-u64max |
| PARAM_VALUE | 1 | tq->sdesc | 1-u64max |
| BUF_SIZE | 0 | adapter | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | adapter | s32min-(-1),1-s32max |
| CAPPED_DATA | 0 | adapter | 1 |
| DATA_SOURCE | 0 | adapter | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 0 | adapter->pdev->current_state | 0-3[c] |
| HOST_DATA | 0 | adapter->pdev->devfn | 1-503[c] |
| HOST_DATA | 0 | adapter->pdev->device | 0-u16max |
| HOST_DATA | 0 | adapter->pdev->pcie_flags_reg | 0-u16max |
| UNITS | 0 | adapter | unit_byte |
| UNITS | 2 | n | unit_array_size |
drivers/net/ethernet/chelsio/cxgb4/sge.c reclaim_completed_tx() -> free_tx_desc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adapter->ptp_tx_skb->dev->nd_net.net->ipv4.fqdir->f->frag_expire | 0,663510801442193408,1753052602134376448,4007388366431105024,8876081723503042560 |
| PARAM_VALUE | 0 | adapter->ptp_tx_skb->dev->nd_net.net->ipv4.fqdir->f->qsize | 0,304,320 |
| PARAM_VALUE | 0 | adapter->ptp_tx_skb->dev->ndisc_ops->fill_addr_option | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->ptp_tx_skb->dev->ndisc_ops->parse_options | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->ptp_tx_skb->dev->ndisc_ops->update | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->ptp_tx_skb->dev->rtnl_link_ops->maxtype | 0-6,8-10,15,18,20,22,24,34,50 |
| PARAM_VALUE | 0 | adapter->ptp_tx_skb->dev->rtnl_link_ops->priv_size | 0,8,32,40,48,56,88,112,120,144,160,224,240,256,296,616,624,728,736,744,1056,1128,1336,1616,2176,2240,2272,2560,3296,3544,3552,3720,9688-u64max |
| PARAM_VALUE | 1 | tq | 4096-ptr_max |
| PARAM_VALUE | 1 | tq->stat | 4096-ptr_max |
| PARAM_VALUE | 2 | n | 1-u32max |
| BUF_SIZE | 0 | adapter->ptp_tx_skb | (-1)-s32max |
| CAPPED_DATA | 2 | n | 1 |
| DATA_SOURCE | 0 | adapter | $0 |
| DATA_SOURCE | 1 | tq | $1 |
| DATA_SOURCE | 3 | unmap | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 0 | adapter->ptp_tx_skb->csum_offset | 0-u16max |
| HOST_DATA | 0 | adapter->ptp_tx_skb->data_len | 0-2147483648[c] |
| HOST_DATA | 0 | adapter->ptp_tx_skb->len | 14-u32max[c] |
| HOST_DATA | 0 | adapter->ptp_tx_skb->prev->csum_offset | 0-u16max |
| HOST_DATA | 0 | adapter->ptp_tx_skb->prev->data_len | 0-u32max[c] |
| HOST_DATA | 0 | adapter->ptp_tx_skb->prev->len | 0-u32max[c] |
| HOST_DATA | 0 | adapter->ptp_tx_skb->prev->truesize | 0-u32max |
| HOST_DATA | 0 | adapter->ptp_tx_skb->prev->tstamp | 500000002-4294967299794967295[c] |
| HOST_DATA | 0 | adapter->ptp_tx_skb->prev->users.refs.counter | s32min-0,2-s32max |
| HOST_DATA | 0 | adapter->ptp_tx_skb->tstamp | 500000002-4294967299794967295[c] |
| HOST_DATA | 0 | *adapter->ptp_tx_skb->data | 0-255 |
| UNITS | 0 | adapter | unit_byte |
| USER_PTR | 0 | adapter->ptp_tx_skb->data | |
| HALF_LOCKED2 | &eq->txq->_xmit_lock | ||
| HALF_LOCKED2 | &q->txq->_xmit_lock | ||
| HALF_LOCKED2 | bh |
drivers/net/ethernet/chelsio/cxgb4/sge.c sge_tx_timer_cb() -> free_tx_desc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adapter | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->ptp_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | tq | 4096-ptr_max |
| PARAM_VALUE | 1 | tq->stat | 4096-ptr_max |
| PARAM_VALUE | 2 | n | 1-u32max |
| PARAM_VALUE | 3 | unmap | 0 |
| DATA_SOURCE | 2 | n | r reclaimable |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | 0 | &adapter->ptp_lock | |
| TYPE_LOCK | (struct adapter)->ptp_lock |
drivers/net/ethernet/chelsio/cxgb4/sge.c t4_free_sge_resources() -> free_tx_desc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adapter | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->fatal_err_notify_task.entry.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->mbox_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | adapter->mlist.list.prev | 6161797322780819456 |
| PARAM_VALUE | 0 | adapter->mlist.list.prev->next | 6161797322780819456 |
| PARAM_VALUE | 0 | adapter->mlist.list.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->pdev_dev->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 0 | adapter->sge.ethqsets | 1-u16max |
| PARAM_VALUE | 0 | adapter->sge.ethrxq | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->sge.ethtxq | 4096-ptr_max |
| PARAM_VALUE | 1 | tq->desc | 1-u64max |
| PARAM_VALUE | 3 | unmap | 1 |
| BUF_SIZE | 0 | adapter | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | adapter | s32min-(-1),1-s32max |
| CAPPED_DATA | 0 | adapter | 1 |
| CAPPED_DATA | 0 | adapter->params.nports | 1 |
| CAPPED_DATA | 0 | adapter->sge.ethqsets | 1 |
| DATA_SOURCE | 0 | adapter | $0 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 0 | adapter->sge.fl_pg_order | 0-19,4294967284-u32max[c] |
| HOST_DATA | 0 | adapter->sge.fl_starve_thres | 1-511[c] |
| HOST_DATA | 0 | adapter->sge.pktshift | 0-7 |
| HOST_DATA | 0 | adapter->sge.ptptxq.q.bar2_qid | 0-u16max[c] |
| HOST_DATA | 0 | adapter->t4_bar0 | 0,16-4294967280[c] |
| UNITS | 0 | adapter | unit_byte |
| UNITS | 2 | n | unit_array_size |
| LOCK2 | &etq->txq->_xmit_lock | ||
| LOCK2 | bh | ||
| HALF_LOCKED2 | global &uld_mutex | ||
| TYPE_LOCK | (struct netdev_queue)->_xmit_lock |
drivers/net/ethernet/chelsio/cxgb4/sge.c t4_free_sge_resources() -> free_tx_desc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adapter | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->fatal_err_notify_task.entry.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->mbox_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | adapter->mlist.list.prev | 6161797322780819456 |
| PARAM_VALUE | 0 | adapter->mlist.list.prev->next | 6161797322780819456 |
| PARAM_VALUE | 0 | adapter->mlist.list.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->pdev_dev->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 0 | adapter->ptp_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | adapter->sge.ctrlq | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->sge.fw_evtq.desc | 0 |
| PARAM_VALUE | 0 | adapter->sge.intrq.desc | 0 |
| PARAM_VALUE | 0 | adapter->sge.ptptxq.q.desc | 1-u64max |
| PARAM_VALUE | 1 | tq->desc | 1-u64max |
| PARAM_VALUE | 3 | unmap | 1 |
| BUF_SIZE | 0 | adapter | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | adapter | s32min-(-1),1-s32max |
| CAPPED_DATA | 0 | adapter | 1 |
| CAPPED_DATA | 0 | adapter->params.nports | 1 |
| CAPPED_DATA | 0 | adapter->sge.ethqsets | 1 |
| DATA_SOURCE | 0 | adapter | $0 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 0 | adapter->sge.fl_pg_order | 0-19,4294967284-u32max[c] |
| HOST_DATA | 0 | adapter->sge.fl_starve_thres | 1-511[c] |
| HOST_DATA | 0 | adapter->sge.pktshift | 0-7 |
| HOST_DATA | 0 | adapter->sge.ptptxq.q.bar2_qid | 0-u16max[c] |
| HOST_DATA | 0 | adapter->t4_bar0 | 0,16-4294967280[c] |
| HOST_DATA | 1 | tq->bar2_qid | 0-u16max[c] |
| UNITS | 0 | adapter | unit_byte |
| UNITS | 2 | n | unit_array_size |
| LOCK2 | bh | ||
| LOCK2 | 0 | &adapter->ptp_lock | |
| HALF_LOCKED2 | global &uld_mutex | ||
| TYPE_LOCK | (struct adapter)->ptp_lock |
drivers/net/ethernet/chelsio/cxgb4/sge.c t4_sge_free_ethofld_txq() -> free_tx_desc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adapter | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->fatal_err_notify_task.entry.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->mbox_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | adapter->mlist.list.prev | 6161797322780819456 |
| PARAM_VALUE | 0 | adapter->mlist.list.prev->next | 6161797322780819456 |
| PARAM_VALUE | 0 | adapter->mlist.list.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->sge.eohw_rxq | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->sge.eohw_txq | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->tc_mqprio | 4096-ptr_max |
| PARAM_VALUE | 1 | tq | 4096-ptr_max |
| PARAM_VALUE | 1 | tq->desc | 1-u64max |
| PARAM_VALUE | 3 | unmap | 0 |
| BUF_SIZE | 0 | adapter->sge.eohw_rxq | (-1)-62913600 |
| BUF_SIZE | 0 | adapter->sge.eohw_txq | (-1)-19398360 |
| DATA_SOURCE | 0 | adapter | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | adapter->sge.eoqsets | |
| NO_OVERFLOW_SIMPLE | 1 | tq->size | |
| UNITS | 2 | n | unit_array_size |
| LOCK2 | &adap->tc_mqprio->mqprio_mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| TYPE_LOCK | (struct cxgb4_tc_mqprio)->mqprio_mutex |
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c free_sge_txq_uld() -> free_tx_desc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adapter | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->fatal_err_notify_task.entry.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->mbox_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | adapter->mlist.list.prev | 6161797322780819456 |
| PARAM_VALUE | 0 | adapter->mlist.list.prev->next | 6161797322780819456 |
| PARAM_VALUE | 0 | adapter->mlist.list.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->pdev_dev->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 0 | adapter->pdev_dev->dma_io_tlb_mem->can_grow | 0-1 |
| PARAM_VALUE | 0 | adapter->sge.uld_txq_info | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->uld | 4096-ptr_max |
| PARAM_VALUE | 1 | tq | 4096-ptr_max |
| PARAM_VALUE | 1 | tq->desc | 1-u64max |
| PARAM_VALUE | 3 | unmap | 0 |
| BUF_SIZE | 0 | adapter | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | adapter | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | adapter | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | adapter | unit_byte |
| UNITS | 2 | n | unit_array_size |
| LOCK2 | global &uld_mutex |
drivers/net/ethernet/chelsio/cxgb4vf/sge.c reclaim_completed_tx() -> free_tx_desc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adapter->sge.ethtxq | 4096-ptr_max |
| PARAM_VALUE | 1 | tq | 4096-ptr_max |
| PARAM_VALUE | 1 | tq->stat | 4096-ptr_max |
| PARAM_VALUE | 2 | n | 1-16,2147483648-u32max |
| PARAM_VALUE | 3 | unmap | 1 |
| DATA_SOURCE | 0 | adapter | $0 |
| DATA_SOURCE | 1 | tq | $1 |
| DATA_SOURCE | 3 | unmap | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | adapter | unit_byte |
| HALF_LOCKED2 | &dev->tx_global_lock | ||
| HALF_LOCKED2 | &txq->_xmit_lock | ||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | rcu_read |
drivers/net/ethernet/chelsio/cxgb4vf/sge.c sge_tx_timer_cb() -> free_tx_desc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adapter | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->sge.ethtxq | 4096-ptr_max |
| PARAM_VALUE | 1 | tq | 4096-ptr_max |
| PARAM_VALUE | 1 | tq->stat | 4096-ptr_max |
| PARAM_VALUE | 2 | n | 0-100 |
| PARAM_VALUE | 3 | unmap | 1 |
| CAPPED_DATA | 2 | n | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &txq->txq->_xmit_lock | ||
| TYPE_LOCK | (struct netdev_queue)->_xmit_lock |
drivers/net/ethernet/chelsio/cxgb4vf/sge.c t4vf_free_sge_resources() -> free_tx_desc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adapter | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->mbox_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | adapter->mlist.list.prev | 6401626615959056384 |
| PARAM_VALUE | 0 | adapter->mlist.list.prev->next | 6401626615959056384 |
| PARAM_VALUE | 0 | adapter->mlist.list.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->pdev_dev->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 0 | adapter->sge.ethqsets | 1-u16max |
| PARAM_VALUE | 1 | tq->desc | 1-u64max |
| PARAM_VALUE | 3 | unmap | 1 |
| BUF_SIZE | 0 | adapter | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | adapter | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | adapter | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | adapter | unit_byte |
| UNITS | 2 | n | unit_array_size |
| HALF_LOCKED2 | &dev->mutex |