NET: Rename XYZ_uiptxpoll to just XYZ_txpoll
This commit is contained in:
parent
a2507acab8
commit
313982ba18
@ -359,7 +359,7 @@ static inline void c5471_incrxcpu(struct c5471_driver_s *c5471);
|
||||
/* Common TX logic */
|
||||
|
||||
static int c5471_transmit(struct c5471_driver_s *c5471);
|
||||
static int c5471_uiptxpoll(struct net_driver_s *dev);
|
||||
static int c5471_txpoll(struct net_driver_s *dev);
|
||||
|
||||
/* Interrupt handling */
|
||||
|
||||
@ -954,7 +954,7 @@ static int c5471_transmit(struct c5471_driver_s *c5471)
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Function: c5471_uiptxpoll
|
||||
* Function: c5471_txpoll
|
||||
*
|
||||
* Description:
|
||||
* The transmitter is available, check if uIP has any outgoing packets ready
|
||||
@ -974,7 +974,7 @@ static int c5471_transmit(struct c5471_driver_s *c5471)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int c5471_uiptxpoll(struct net_driver_s *dev)
|
||||
static int c5471_txpoll(struct net_driver_s *dev)
|
||||
{
|
||||
struct c5471_driver_s *c5471 = (struct c5471_driver_s *)dev->d_private;
|
||||
|
||||
@ -1403,7 +1403,7 @@ static void c5471_txdone(struct c5471_driver_s *c5471)
|
||||
|
||||
/* Then poll uIP for new XMIT data */
|
||||
|
||||
(void)devif_poll(&c5471->c_dev, c5471_uiptxpoll);
|
||||
(void)devif_poll(&c5471->c_dev, c5471_txpoll);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
@ -1522,7 +1522,7 @@ static void c5471_txtimeout(int argc, uint32_t arg, ...)
|
||||
|
||||
/* Then poll uIP for new XMIT data */
|
||||
|
||||
(void)devif_poll(&c5471->c_dev, c5471_uiptxpoll);
|
||||
(void)devif_poll(&c5471->c_dev, c5471_txpoll);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
@ -1554,7 +1554,7 @@ static void c5471_polltimer(int argc, uint32_t arg, ...)
|
||||
{
|
||||
/* If so, update TCP timing states and poll uIP for new XMIT data */
|
||||
|
||||
(void)devif_timer(&c5471->c_dev, c5471_uiptxpoll, C5471_POLLHSEC);
|
||||
(void)devif_timer(&c5471->c_dev, c5471_txpoll, C5471_POLLHSEC);
|
||||
}
|
||||
|
||||
/* Setup the watchdog poll timer again */
|
||||
@ -1715,7 +1715,7 @@ static int c5471_txavail(struct net_driver_s *dev)
|
||||
{
|
||||
/* If so, then poll uIP for new XMIT data */
|
||||
|
||||
(void)devif_poll(&c5471->c_dev, c5471_uiptxpoll);
|
||||
(void)devif_poll(&c5471->c_dev, c5471_txpoll);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -224,7 +224,7 @@ static inline uint16_t kinesis_swap16(uint16_t value);
|
||||
|
||||
static bool kinetics_txringfull(FAR struct kinetis_driver_s *priv);
|
||||
static int kinetis_transmit(FAR struct kinetis_driver_s *priv);
|
||||
static int kinetis_uiptxpoll(struct net_driver_s *dev);
|
||||
static int kinetis_txpoll(struct net_driver_s *dev);
|
||||
|
||||
/* Interrupt handling */
|
||||
|
||||
@ -411,7 +411,7 @@ static int kinetis_transmit(FAR struct kinetis_driver_s *priv)
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Function: kinetis_uiptxpoll
|
||||
* Function: kinetis_txpoll
|
||||
*
|
||||
* Description:
|
||||
* The transmitter is available, check if uIP has any outgoing packets ready
|
||||
@ -434,7 +434,7 @@ static int kinetis_transmit(FAR struct kinetis_driver_s *priv)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int kinetis_uiptxpoll(struct net_driver_s *dev)
|
||||
static int kinetis_txpoll(struct net_driver_s *dev)
|
||||
{
|
||||
FAR struct kinetis_driver_s *priv = (FAR struct kinetis_driver_s *)dev->d_private;
|
||||
|
||||
@ -609,7 +609,7 @@ static void kinetis_txdone(FAR struct kinetis_driver_s *priv)
|
||||
* data
|
||||
*/
|
||||
|
||||
(void)devif_poll(&priv->dev, kinetis_uiptxpoll);
|
||||
(void)devif_poll(&priv->dev, kinetis_txpoll);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
@ -722,7 +722,7 @@ static void kinetis_txtimeout(int argc, uint32_t arg, ...)
|
||||
|
||||
/* Then poll uIP for new XMIT data */
|
||||
|
||||
(void)devif_poll(&priv->dev, kinetis_uiptxpoll);
|
||||
(void)devif_poll(&priv->dev, kinetis_txpoll);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
@ -758,7 +758,7 @@ static void kinetis_polltimer(int argc, uint32_t arg, ...)
|
||||
* we will missing TCP time state updates?
|
||||
*/
|
||||
|
||||
(void)devif_timer(&priv->dev, kinetis_uiptxpoll, KINETIS_POLLHSEC);
|
||||
(void)devif_timer(&priv->dev, kinetis_txpoll, KINETIS_POLLHSEC);
|
||||
}
|
||||
|
||||
/* Setup the watchdog poll timer again in any case */
|
||||
@ -973,7 +973,7 @@ static int kinetis_txavail(struct net_driver_s *dev)
|
||||
* XMIT data.
|
||||
*/
|
||||
|
||||
(void)devif_poll(&priv->dev, kinetis_uiptxpoll);
|
||||
(void)devif_poll(&priv->dev, kinetis_txpoll);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -325,7 +325,7 @@ static void lpc17_putreg(uint32_t val, uint32_t addr);
|
||||
|
||||
static int lpc17_txdesc(struct lpc17_driver_s *priv);
|
||||
static int lpc17_transmit(struct lpc17_driver_s *priv);
|
||||
static int lpc17_uiptxpoll(struct net_driver_s *dev);
|
||||
static int lpc17_txpoll(struct net_driver_s *dev);
|
||||
|
||||
/* Interrupt handling */
|
||||
|
||||
@ -643,7 +643,7 @@ static int lpc17_transmit(struct lpc17_driver_s *priv)
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Function: lpc17_uiptxpoll
|
||||
* Function: lpc17_txpoll
|
||||
*
|
||||
* Description:
|
||||
* The transmitter is available, check if uIP has any outgoing packets ready
|
||||
@ -666,7 +666,7 @@ static int lpc17_transmit(struct lpc17_driver_s *priv)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int lpc17_uiptxpoll(struct net_driver_s *dev)
|
||||
static int lpc17_txpoll(struct net_driver_s *dev)
|
||||
{
|
||||
struct lpc17_driver_s *priv = (struct lpc17_driver_s *)dev->d_private;
|
||||
int ret = OK;
|
||||
@ -977,7 +977,7 @@ static void lpc17_txdone(struct lpc17_driver_s *priv)
|
||||
|
||||
else
|
||||
{
|
||||
(void)devif_poll(&priv->lp_dev, lpc17_uiptxpoll);
|
||||
(void)devif_poll(&priv->lp_dev, lpc17_txpoll);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1188,7 +1188,7 @@ static void lpc17_txtimeout(int argc, uint32_t arg, ...)
|
||||
|
||||
/* Then poll uIP for new XMIT data */
|
||||
|
||||
(void)devif_poll(&priv->lp_dev, lpc17_uiptxpoll);
|
||||
(void)devif_poll(&priv->lp_dev, lpc17_txpoll);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1225,7 +1225,7 @@ static void lpc17_polltimer(int argc, uint32_t arg, ...)
|
||||
* we will missing TCP time state updates?
|
||||
*/
|
||||
|
||||
(void)devif_timer(&priv->lp_dev, lpc17_uiptxpoll, LPC17_POLLHSEC);
|
||||
(void)devif_timer(&priv->lp_dev, lpc17_txpoll, LPC17_POLLHSEC);
|
||||
}
|
||||
|
||||
/* Setup the watchdog poll timer again */
|
||||
@ -1482,7 +1482,7 @@ static int lpc17_txavail(struct net_driver_s *dev)
|
||||
{
|
||||
/* If so, then poll uIP for new XMIT data */
|
||||
|
||||
(void)devif_poll(&priv->lp_dev, lpc17_uiptxpoll);
|
||||
(void)devif_poll(&priv->lp_dev, lpc17_txpoll);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -345,7 +345,7 @@ static void sam_buffer_free(struct sam_emac_s *priv);
|
||||
/* Common TX logic */
|
||||
|
||||
static int sam_transmit(struct sam_emac_s *priv);
|
||||
static int sam_uiptxpoll(struct net_driver_s *dev);
|
||||
static int sam_txpoll(struct net_driver_s *dev);
|
||||
static void sam_dopoll(struct sam_emac_s *priv);
|
||||
|
||||
/* Interrupt handling */
|
||||
@ -785,7 +785,7 @@ static int sam_transmit(struct sam_emac_s *priv)
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Function: sam_uiptxpoll
|
||||
* Function: sam_txpoll
|
||||
*
|
||||
* Description:
|
||||
* The transmitter is available, check if uIP has any outgoing packets ready
|
||||
@ -808,7 +808,7 @@ static int sam_transmit(struct sam_emac_s *priv)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int sam_uiptxpoll(struct net_driver_s *dev)
|
||||
static int sam_txpoll(struct net_driver_s *dev)
|
||||
{
|
||||
struct sam_emac_s *priv = (struct sam_emac_s *)dev->d_private;
|
||||
|
||||
@ -873,7 +873,7 @@ static void sam_dopoll(struct sam_emac_s *priv)
|
||||
{
|
||||
/* If we have the descriptor, then poll uIP for new XMIT data. */
|
||||
|
||||
(void)devif_poll(dev, sam_uiptxpoll);
|
||||
(void)devif_poll(dev, sam_txpoll);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1517,7 +1517,7 @@ static void sam_polltimer(int argc, uint32_t arg, ...)
|
||||
{
|
||||
/* Update TCP timing states and poll uIP for new XMIT data. */
|
||||
|
||||
(void)devif_timer(dev, sam_uiptxpoll, SAM_POLLHSEC);
|
||||
(void)devif_timer(dev, sam_txpoll, SAM_POLLHSEC);
|
||||
}
|
||||
|
||||
/* Setup the watchdog poll timer again */
|
||||
|
@ -350,7 +350,7 @@ static void sam_buffer_free(struct sam_emac_s *priv);
|
||||
/* Common TX logic */
|
||||
|
||||
static int sam_transmit(struct sam_emac_s *priv);
|
||||
static int sam_uiptxpoll(struct net_driver_s *dev);
|
||||
static int sam_txpoll(struct net_driver_s *dev);
|
||||
static void sam_dopoll(struct sam_emac_s *priv);
|
||||
|
||||
/* Interrupt handling */
|
||||
@ -795,7 +795,7 @@ static int sam_transmit(struct sam_emac_s *priv)
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Function: sam_uiptxpoll
|
||||
* Function: sam_txpoll
|
||||
*
|
||||
* Description:
|
||||
* The transmitter is available, check if uIP has any outgoing packets ready
|
||||
@ -818,7 +818,7 @@ static int sam_transmit(struct sam_emac_s *priv)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int sam_uiptxpoll(struct net_driver_s *dev)
|
||||
static int sam_txpoll(struct net_driver_s *dev)
|
||||
{
|
||||
struct sam_emac_s *priv = (struct sam_emac_s *)dev->d_private;
|
||||
|
||||
@ -883,7 +883,7 @@ static void sam_dopoll(struct sam_emac_s *priv)
|
||||
{
|
||||
/* If we have the descriptor, then poll uIP for new XMIT data. */
|
||||
|
||||
(void)devif_poll(dev, sam_uiptxpoll);
|
||||
(void)devif_poll(dev, sam_txpoll);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1558,7 +1558,7 @@ static void sam_polltimer(int argc, uint32_t arg, ...)
|
||||
{
|
||||
/* Update TCP timing states and poll uIP for new XMIT data. */
|
||||
|
||||
(void)devif_timer(dev, sam_uiptxpoll, SAM_POLLHSEC);
|
||||
(void)devif_timer(dev, sam_txpoll, SAM_POLLHSEC);
|
||||
}
|
||||
|
||||
/* Setup the watchdog poll timer again */
|
||||
|
@ -451,7 +451,7 @@ static void sam_buffer_free(struct sam_emac_s *priv);
|
||||
/* Common TX logic */
|
||||
|
||||
static int sam_transmit(struct sam_emac_s *priv);
|
||||
static int sam_uiptxpoll(struct net_driver_s *dev);
|
||||
static int sam_txpoll(struct net_driver_s *dev);
|
||||
static void sam_dopoll(struct sam_emac_s *priv);
|
||||
|
||||
/* Interrupt handling */
|
||||
@ -1117,7 +1117,7 @@ static int sam_transmit(struct sam_emac_s *priv)
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Function: sam_uiptxpoll
|
||||
* Function: sam_txpoll
|
||||
*
|
||||
* Description:
|
||||
* The transmitter is available, check if uIP has any outgoing packets ready
|
||||
@ -1140,7 +1140,7 @@ static int sam_transmit(struct sam_emac_s *priv)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int sam_uiptxpoll(struct net_driver_s *dev)
|
||||
static int sam_txpoll(struct net_driver_s *dev)
|
||||
{
|
||||
struct sam_emac_s *priv = (struct sam_emac_s *)dev->d_private;
|
||||
|
||||
@ -1205,7 +1205,7 @@ static void sam_dopoll(struct sam_emac_s *priv)
|
||||
{
|
||||
/* If we have the descriptor, then poll uIP for new XMIT data. */
|
||||
|
||||
(void)devif_poll(dev, sam_uiptxpoll);
|
||||
(void)devif_poll(dev, sam_txpoll);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1910,7 +1910,7 @@ static void sam_polltimer(int argc, uint32_t arg, ...)
|
||||
{
|
||||
/* Update TCP timing states and poll uIP for new XMIT data. */
|
||||
|
||||
(void)devif_timer(dev, sam_uiptxpoll, SAM_POLLHSEC);
|
||||
(void)devif_timer(dev, sam_txpoll, SAM_POLLHSEC);
|
||||
}
|
||||
|
||||
/* Setup the watchdog poll timer again */
|
||||
|
@ -275,7 +275,7 @@ static void sam_buffer_free(struct sam_gmac_s *priv);
|
||||
/* Common TX logic */
|
||||
|
||||
static int sam_transmit(struct sam_gmac_s *priv);
|
||||
static int sam_uiptxpoll(struct net_driver_s *dev);
|
||||
static int sam_txpoll(struct net_driver_s *dev);
|
||||
static void sam_dopoll(struct sam_gmac_s *priv);
|
||||
|
||||
/* Interrupt handling */
|
||||
@ -727,7 +727,7 @@ static int sam_transmit(struct sam_gmac_s *priv)
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Function: sam_uiptxpoll
|
||||
* Function: sam_txpoll
|
||||
*
|
||||
* Description:
|
||||
* The transmitter is available, check if uIP has any outgoing packets ready
|
||||
@ -750,7 +750,7 @@ static int sam_transmit(struct sam_gmac_s *priv)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int sam_uiptxpoll(struct net_driver_s *dev)
|
||||
static int sam_txpoll(struct net_driver_s *dev)
|
||||
{
|
||||
struct sam_gmac_s *priv = (struct sam_gmac_s *)dev->d_private;
|
||||
|
||||
@ -815,7 +815,7 @@ static void sam_dopoll(struct sam_gmac_s *priv)
|
||||
{
|
||||
/* If we have the descriptor, then poll uIP for new XMIT data. */
|
||||
|
||||
(void)devif_poll(dev, sam_uiptxpoll);
|
||||
(void)devif_poll(dev, sam_txpoll);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1510,7 +1510,7 @@ static void sam_polltimer(int argc, uint32_t arg, ...)
|
||||
{
|
||||
/* Update TCP timing states and poll uIP for new XMIT data. */
|
||||
|
||||
(void)devif_timer(dev, sam_uiptxpoll, SAM_POLLHSEC);
|
||||
(void)devif_timer(dev, sam_txpoll, SAM_POLLHSEC);
|
||||
}
|
||||
|
||||
/* Setup the watchdog poll timer again */
|
||||
|
@ -627,7 +627,7 @@ static inline bool stm32_isfreebuffer(FAR struct stm32_ethmac_s *priv);
|
||||
/* Common TX logic */
|
||||
|
||||
static int stm32_transmit(FAR struct stm32_ethmac_s *priv);
|
||||
static int stm32_uiptxpoll(struct net_driver_s *dev);
|
||||
static int stm32_txpoll(struct net_driver_s *dev);
|
||||
static void stm32_dopoll(FAR struct stm32_ethmac_s *priv);
|
||||
|
||||
/* Interrupt handling */
|
||||
@ -1136,7 +1136,7 @@ static int stm32_transmit(FAR struct stm32_ethmac_s *priv)
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Function: stm32_uiptxpoll
|
||||
* Function: stm32_txpoll
|
||||
*
|
||||
* Description:
|
||||
* The transmitter is available, check if uIP has any outgoing packets ready
|
||||
@ -1159,7 +1159,7 @@ static int stm32_transmit(FAR struct stm32_ethmac_s *priv)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int stm32_uiptxpoll(struct net_driver_s *dev)
|
||||
static int stm32_txpoll(struct net_driver_s *dev)
|
||||
{
|
||||
FAR struct stm32_ethmac_s *priv = (FAR struct stm32_ethmac_s *)dev->d_private;
|
||||
|
||||
@ -1266,7 +1266,7 @@ static void stm32_dopoll(FAR struct stm32_ethmac_s *priv)
|
||||
|
||||
if (dev->d_buf)
|
||||
{
|
||||
(void)devif_poll(dev, stm32_uiptxpoll);
|
||||
(void)devif_poll(dev, stm32_txpoll);
|
||||
|
||||
/* We will, most likely end up with a buffer to be freed. But it
|
||||
* might not be the same one that we allocated above.
|
||||
@ -1994,7 +1994,7 @@ static void stm32_polltimer(int argc, uint32_t arg, ...)
|
||||
/* Update TCP timing states and poll uIP for new XMIT data.
|
||||
*/
|
||||
|
||||
(void)devif_timer(dev, stm32_uiptxpoll, STM32_POLLHSEC);
|
||||
(void)devif_timer(dev, stm32_txpoll, STM32_POLLHSEC);
|
||||
|
||||
/* We will, most likely end up with a buffer to be freed. But it
|
||||
* might not be the same one that we allocated above.
|
||||
|
@ -238,7 +238,7 @@ static uint16_t tiva_phyread(struct tiva_driver_s *priv, int regaddr);
|
||||
/* Common TX logic */
|
||||
|
||||
static int tiva_transmit(struct tiva_driver_s *priv);
|
||||
static int tiva_uiptxpoll(struct net_driver_s *dev);
|
||||
static int tiva_txpoll(struct net_driver_s *dev);
|
||||
|
||||
/* Interrupt handling */
|
||||
|
||||
@ -573,7 +573,7 @@ static int tiva_transmit(struct tiva_driver_s *priv)
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Function: tiva_uiptxpoll
|
||||
* Function: tiva_txpoll
|
||||
*
|
||||
* Description:
|
||||
* The transmitter is available, check if uIP has any outgoing packets ready
|
||||
@ -593,7 +593,7 @@ static int tiva_transmit(struct tiva_driver_s *priv)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int tiva_uiptxpoll(struct net_driver_s *dev)
|
||||
static int tiva_txpoll(struct net_driver_s *dev)
|
||||
{
|
||||
struct tiva_driver_s *priv = (struct tiva_driver_s *)dev->d_private;
|
||||
int ret = OK;
|
||||
@ -839,7 +839,7 @@ static void tiva_txdone(struct tiva_driver_s *priv)
|
||||
|
||||
/* Then poll uIP for new XMIT data */
|
||||
|
||||
(void)devif_poll(&priv->ld_dev, tiva_uiptxpoll);
|
||||
(void)devif_poll(&priv->ld_dev, tiva_txpoll);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
@ -963,7 +963,7 @@ static void tiva_txtimeout(int argc, uint32_t arg, ...)
|
||||
|
||||
/* Then poll uIP for new XMIT data */
|
||||
|
||||
(void)devif_poll(&priv->ld_dev, tiva_uiptxpoll);
|
||||
(void)devif_poll(&priv->ld_dev, tiva_txpoll);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
@ -999,7 +999,7 @@ static void tiva_polltimer(int argc, uint32_t arg, ...)
|
||||
{
|
||||
/* If so, update TCP timing states and poll uIP for new XMIT data */
|
||||
|
||||
(void)devif_timer(&priv->ld_dev, tiva_uiptxpoll, TIVA_POLLHSEC);
|
||||
(void)devif_timer(&priv->ld_dev, tiva_txpoll, TIVA_POLLHSEC);
|
||||
|
||||
/* Setup the watchdog poll timer again */
|
||||
|
||||
@ -1285,7 +1285,7 @@ static int tiva_txavail(struct net_driver_s *dev)
|
||||
* for new Tx data
|
||||
*/
|
||||
|
||||
(void)devif_poll(&priv->ld_dev, tiva_uiptxpoll);
|
||||
(void)devif_poll(&priv->ld_dev, tiva_txpoll);
|
||||
}
|
||||
|
||||
irqrestore(flags);
|
||||
|
@ -112,7 +112,7 @@ static struct emac_driver_s g_emac[CONFIG_HCS12_NINTERFACES];
|
||||
/* Common TX logic */
|
||||
|
||||
static int emac_transmit(FAR struct emac_driver_s *priv);
|
||||
static int emac_uiptxpoll(struct net_driver_s *dev);
|
||||
static int emac_txpoll(struct net_driver_s *dev);
|
||||
|
||||
/* Interrupt handling */
|
||||
|
||||
@ -179,7 +179,7 @@ static int emac_transmit(FAR struct emac_driver_s *priv)
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Function: emac_uiptxpoll
|
||||
* Function: emac_txpoll
|
||||
*
|
||||
* Description:
|
||||
* The transmitter is available, check if uIP has any outgoing packets ready
|
||||
@ -202,7 +202,7 @@ static int emac_transmit(FAR struct emac_driver_s *priv)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int emac_uiptxpoll(struct net_driver_s *dev)
|
||||
static int emac_txpoll(struct net_driver_s *dev)
|
||||
{
|
||||
FAR struct emac_driver_s *priv = (FAR struct emac_driver_s *)dev->d_private;
|
||||
|
||||
@ -323,7 +323,7 @@ static void emac_txdone(FAR struct emac_driver_s *priv)
|
||||
|
||||
/* Then poll uIP for new XMIT data */
|
||||
|
||||
(void)devif_poll(&priv->d_dev, emac_uiptxpoll);
|
||||
(void)devif_poll(&priv->d_dev, emac_txpoll);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
@ -394,7 +394,7 @@ static void emac_txtimeout(int argc, uint32_t arg, ...)
|
||||
|
||||
/* Then poll uIP for new XMIT data */
|
||||
|
||||
(void)devif_poll(&priv->d_dev, emac_uiptxpoll);
|
||||
(void)devif_poll(&priv->d_dev, emac_txpoll);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
@ -428,7 +428,7 @@ static void emac_polltimer(int argc, uint32_t arg, ...)
|
||||
* we will missing TCP time state updates?
|
||||
*/
|
||||
|
||||
(void)devif_timer(&priv->d_dev, emac_uiptxpoll, HCS12_POLLHSEC);
|
||||
(void)devif_timer(&priv->d_dev, emac_txpoll, HCS12_POLLHSEC);
|
||||
|
||||
/* Setup the watchdog poll timer again */
|
||||
|
||||
@ -554,7 +554,7 @@ static int emac_txavail(struct net_driver_s *dev)
|
||||
|
||||
/* If so, then poll uIP for new XMIT data */
|
||||
|
||||
(void)devif_poll(&priv->d_dev, emac_uiptxpoll);
|
||||
(void)devif_poll(&priv->d_dev, emac_txpoll);
|
||||
}
|
||||
|
||||
irqrestore(flags);
|
||||
|
@ -410,7 +410,7 @@ static struct pic32mx_rxdesc_s *pic32mx_rxdesc(struct pic32mx_driver_s *priv);
|
||||
/* Common TX logic */
|
||||
|
||||
static int pic32mx_transmit(struct pic32mx_driver_s *priv);
|
||||
static int pic32mx_uiptxpoll(struct net_driver_s *dev);
|
||||
static int pic32mx_txpoll(struct net_driver_s *dev);
|
||||
static void pic32mx_poll(struct pic32mx_driver_s *priv);
|
||||
static void pic32mx_timerpoll(struct pic32mx_driver_s *priv);
|
||||
|
||||
@ -1109,7 +1109,7 @@ static int pic32mx_transmit(struct pic32mx_driver_s *priv)
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Function: pic32mx_uiptxpoll
|
||||
* Function: pic32mx_txpoll
|
||||
*
|
||||
* Description:
|
||||
* The transmitter is available, check if uIP has any outgoing packets ready
|
||||
@ -1132,7 +1132,7 @@ static int pic32mx_transmit(struct pic32mx_driver_s *priv)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int pic32mx_uiptxpoll(struct net_driver_s *dev)
|
||||
static int pic32mx_txpoll(struct net_driver_s *dev)
|
||||
{
|
||||
struct pic32mx_driver_s *priv = (struct pic32mx_driver_s *)dev->d_private;
|
||||
int ret = OK;
|
||||
@ -1212,7 +1212,7 @@ static void pic32mx_poll(struct pic32mx_driver_s *priv)
|
||||
/* And perform the poll */
|
||||
|
||||
priv->pd_polling = true;
|
||||
(void)devif_poll(&priv->pd_dev, pic32mx_uiptxpoll);
|
||||
(void)devif_poll(&priv->pd_dev, pic32mx_txpoll);
|
||||
|
||||
/* Free any buffer left attached after the poll */
|
||||
|
||||
@ -1258,7 +1258,7 @@ static void pic32mx_timerpoll(struct pic32mx_driver_s *priv)
|
||||
/* And perform the poll */
|
||||
|
||||
priv->pd_polling = true;
|
||||
(void)devif_timer(&priv->pd_dev, pic32mx_uiptxpoll, PIC32MX_POLLHSEC);
|
||||
(void)devif_timer(&priv->pd_dev, pic32mx_txpoll, PIC32MX_POLLHSEC);
|
||||
|
||||
/* Free any buffer left attached after the poll */
|
||||
|
||||
|
@ -115,7 +115,7 @@ static inline int up_comparemac(uint8_t *paddr1, struct ether_addr *paddr2)
|
||||
}
|
||||
#endif
|
||||
|
||||
static int sim_uiptxpoll(struct net_driver_s *dev)
|
||||
static int sim_txpoll(struct net_driver_s *dev)
|
||||
{
|
||||
/* If the polling resulted in data that should be sent out on the network,
|
||||
* the field d_len is set to a value > 0.
|
||||
@ -202,7 +202,7 @@ void uipdriver_loop(void)
|
||||
else if (timer_expired(&g_periodic_timer))
|
||||
{
|
||||
timer_reset(&g_periodic_timer);
|
||||
devif_timer(&g_sim_dev, sim_uiptxpoll, 1);
|
||||
devif_timer(&g_sim_dev, sim_txpoll, 1);
|
||||
}
|
||||
sched_unlock();
|
||||
}
|
||||
|
@ -355,7 +355,7 @@ static void ez80emac_machash(FAR uint8_t *mac, int *ndx, int *bitno)
|
||||
/* TX/RX logic */
|
||||
|
||||
static int ez80emac_transmit(struct ez80emac_driver_s *priv);
|
||||
static int ez80emac_uiptxpoll(struct net_driver_s *dev);
|
||||
static int ez80emac_txpoll(struct net_driver_s *dev);
|
||||
|
||||
static inline FAR struct ez80emac_desc_s *ez80emac_rwp(void);
|
||||
static inline FAR struct ez80emac_desc_s *ez80emac_rrp(void);
|
||||
@ -1044,7 +1044,7 @@ static int ez80emac_transmit(struct ez80emac_driver_s *priv)
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Function: ez80emac_uiptxpoll
|
||||
* Function: ez80emac_txpoll
|
||||
*
|
||||
* Description:
|
||||
* The transmitter is available, check if uIP has any outgoing packets ready
|
||||
@ -1064,7 +1064,7 @@ static int ez80emac_transmit(struct ez80emac_driver_s *priv)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int ez80emac_uiptxpoll(struct net_driver_s *dev)
|
||||
static int ez80emac_txpoll(struct net_driver_s *dev)
|
||||
{
|
||||
struct ez80emac_driver_s *priv = (struct ez80emac_driver_s *)dev->d_private;
|
||||
int ret = 0;
|
||||
@ -1578,7 +1578,7 @@ static void ez80emac_txtimeout(int argc, uint32_t arg, ...)
|
||||
|
||||
/* Then poll uIP for new XMIT data */
|
||||
|
||||
(void)devif_poll(&priv->dev, ez80emac_uiptxpoll);
|
||||
(void)devif_poll(&priv->dev, ez80emac_txpoll);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
@ -1604,7 +1604,7 @@ static void ez80emac_polltimer(int argc, uint32_t arg, ...)
|
||||
|
||||
/* Poll uIP for new XMIT data */
|
||||
|
||||
(void)devif_timer(&priv->dev, ez80emac_uiptxpoll, EMAC_POLLHSEC);
|
||||
(void)devif_timer(&priv->dev, ez80emac_txpoll, EMAC_POLLHSEC);
|
||||
|
||||
/* Setup the watchdog poll timer again */
|
||||
|
||||
@ -1791,7 +1791,7 @@ static int ez80emac_txavail(struct net_driver_s *dev)
|
||||
|
||||
/* If so, then poll uIP for new XMIT data */
|
||||
|
||||
(void)devif_poll(&priv->dev, ez80emac_uiptxpoll);
|
||||
(void)devif_poll(&priv->dev, ez80emac_txpoll);
|
||||
}
|
||||
|
||||
irqrestore(flags);
|
||||
|
Loading…
x
Reference in New Issue
Block a user