hal/rtl8192e/pci/rtl8192ee_xmit.c
static u8 check_tx_desc_resource(_adapter *padapter, int prio)
{
	struct xmit_priv	*pxmitpriv = &padapter->xmitpriv;
	struct rtw_tx_ring	*ring;

	ring = &pxmitpriv->tx_ring[prio];

	/* for now we reserve two free descriptor as a safety boundary */
	/* between the tail and the head */
	/*  */
	if ((ring->entries - ring->qlen) >= 2)
		return _TRUE;
	else {
		/* RTW_INFO("do not have enough desc for Tx\n"); */
		return _FALSE;
	}
}
/*
  * Packet should not be dequeued if there is no available descriptor
  * return: _SUCCESS if there is available descriptor
  */
Packet should not be dequeued if there is no available descriptor
return: _SUCCESS if there is available descriptor
Packet should not be dequeued if there is no available descriptor return : _SUCCESS if there is available descriptor
static u8 check_tx_desc_resource(_adapter *padapter, int prio)
{
	struct xmit_priv	*pxmitpriv = &padapter->xmitpriv;
	struct rtw_tx_ring	*ring;
	ring = &pxmitpriv->tx_ring[prio];
	if ((ring->entries - ring->qlen) >= 2)
		return _TRUE;
	else {
		return _FALSE;
	}
}
static u8 check_tx_desc_resource ( _adapter * padapter , int prio ) { struct xmit_priv * pxmitpriv = & padapter -> xmitpriv ; struct rtw_tx_ring * ring ; ring = & pxmitpriv -> tx_ring [ prio ] ; if ( ( ring -> entries - ring -> qlen ) >= 2 ) return _TRUE ; else { return _FALSE ; } }
Packet should not be dequeued if there is no available descriptor
 return: _SUCCESS if there is available descriptor
Packet should not be dequeued if there is no available descriptor return : _SUCCESS if there is available descriptor
/* for now we reserve two free descriptor as a safety boundary */ /* between the tail and the head */ /*  */ /* RTW_INFO("do not have enough desc for Tx\n"); */