Rename uip_poll->devif_poll and uip_timer->devif_timer
This commit is contained in:
parent
ade8807a61
commit
621ec21bfd
|
@ -958,7 +958,7 @@ static int c5471_transmit(struct c5471_driver_s *c5471)
|
|||
*
|
||||
* Description:
|
||||
* The transmitter is available, check if uIP has any outgoing packets ready
|
||||
* to send. This is a callback from uip_poll(). uip_poll() may be called:
|
||||
* to send. This is a callback from devif_poll(). devif_poll() may be called:
|
||||
*
|
||||
* 1. When the preceding TX packet send is complete,
|
||||
* 2. When the preceding TX packet send timesout and the interface is reset
|
||||
|
@ -1403,7 +1403,7 @@ static void c5471_txdone(struct c5471_driver_s *c5471)
|
|||
|
||||
/* Then poll uIP for new XMIT data */
|
||||
|
||||
(void)uip_poll(&c5471->c_dev, c5471_uiptxpoll);
|
||||
(void)devif_poll(&c5471->c_dev, c5471_uiptxpoll);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -1522,7 +1522,7 @@ static void c5471_txtimeout(int argc, uint32_t arg, ...)
|
|||
|
||||
/* Then poll uIP for new XMIT data */
|
||||
|
||||
(void)uip_poll(&c5471->c_dev, c5471_uiptxpoll);
|
||||
(void)devif_poll(&c5471->c_dev, c5471_uiptxpoll);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -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)uip_timer(&c5471->c_dev, c5471_uiptxpoll, C5471_POLLHSEC);
|
||||
(void)devif_timer(&c5471->c_dev, c5471_uiptxpoll, 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)uip_poll(&c5471->c_dev, c5471_uiptxpoll);
|
||||
(void)devif_poll(&c5471->c_dev, c5471_uiptxpoll);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -415,7 +415,7 @@ static int kinetis_transmit(FAR struct kinetis_driver_s *priv)
|
|||
*
|
||||
* Description:
|
||||
* The transmitter is available, check if uIP has any outgoing packets ready
|
||||
* to send. This is a callback from uip_poll(). uip_poll() may be called:
|
||||
* to send. This is a callback from devif_poll(). devif_poll() may be called:
|
||||
*
|
||||
* 1. When the preceding TX packet send is complete,
|
||||
* 2. When the preceding TX packet send timesout and the interface is reset
|
||||
|
@ -609,7 +609,7 @@ static void kinetis_txdone(FAR struct kinetis_driver_s *priv)
|
|||
* data
|
||||
*/
|
||||
|
||||
(void)uip_poll(&priv->dev, kinetis_uiptxpoll);
|
||||
(void)devif_poll(&priv->dev, kinetis_uiptxpoll);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -722,7 +722,7 @@ static void kinetis_txtimeout(int argc, uint32_t arg, ...)
|
|||
|
||||
/* Then poll uIP for new XMIT data */
|
||||
|
||||
(void)uip_poll(&priv->dev, kinetis_uiptxpoll);
|
||||
(void)devif_poll(&priv->dev, kinetis_uiptxpoll);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -758,7 +758,7 @@ static void kinetis_polltimer(int argc, uint32_t arg, ...)
|
|||
* we will missing TCP time state updates?
|
||||
*/
|
||||
|
||||
(void)uip_timer(&priv->dev, kinetis_uiptxpoll, KINETIS_POLLHSEC);
|
||||
(void)devif_timer(&priv->dev, kinetis_uiptxpoll, 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)uip_poll(&priv->dev, kinetis_uiptxpoll);
|
||||
(void)devif_poll(&priv->dev, kinetis_uiptxpoll);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -647,7 +647,7 @@ static int lpc17_transmit(struct lpc17_driver_s *priv)
|
|||
*
|
||||
* Description:
|
||||
* The transmitter is available, check if uIP has any outgoing packets ready
|
||||
* to send. This is a callback from uip_poll(). uip_poll() may be called:
|
||||
* to send. This is a callback from devif_poll(). devif_poll() may be called:
|
||||
*
|
||||
* 1. When the preceding TX packet send is complete,
|
||||
* 2. When the preceding TX packet send timesout and the interface is reset
|
||||
|
@ -977,7 +977,7 @@ static void lpc17_txdone(struct lpc17_driver_s *priv)
|
|||
|
||||
else
|
||||
{
|
||||
(void)uip_poll(&priv->lp_dev, lpc17_uiptxpoll);
|
||||
(void)devif_poll(&priv->lp_dev, lpc17_uiptxpoll);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1188,7 +1188,7 @@ static void lpc17_txtimeout(int argc, uint32_t arg, ...)
|
|||
|
||||
/* Then poll uIP for new XMIT data */
|
||||
|
||||
(void)uip_poll(&priv->lp_dev, lpc17_uiptxpoll);
|
||||
(void)devif_poll(&priv->lp_dev, lpc17_uiptxpoll);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1225,7 +1225,7 @@ static void lpc17_polltimer(int argc, uint32_t arg, ...)
|
|||
* we will missing TCP time state updates?
|
||||
*/
|
||||
|
||||
(void)uip_timer(&priv->lp_dev, lpc17_uiptxpoll, LPC17_POLLHSEC);
|
||||
(void)devif_timer(&priv->lp_dev, lpc17_uiptxpoll, 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)uip_poll(&priv->lp_dev, lpc17_uiptxpoll);
|
||||
(void)devif_poll(&priv->lp_dev, lpc17_uiptxpoll);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -789,7 +789,7 @@ static int sam_transmit(struct sam_emac_s *priv)
|
|||
*
|
||||
* Description:
|
||||
* The transmitter is available, check if uIP has any outgoing packets ready
|
||||
* to send. This is a callback from uip_poll(). uip_poll() may be called:
|
||||
* to send. This is a callback from devif_poll(). devif_poll() may be called:
|
||||
*
|
||||
* 1. When the preceding TX packet send is complete,
|
||||
* 2. When the preceding TX packet send timesout and the interface is reset
|
||||
|
@ -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)uip_poll(dev, sam_uiptxpoll);
|
||||
(void)devif_poll(dev, sam_uiptxpoll);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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)uip_timer(dev, sam_uiptxpoll, SAM_POLLHSEC);
|
||||
(void)devif_timer(dev, sam_uiptxpoll, SAM_POLLHSEC);
|
||||
}
|
||||
|
||||
/* Setup the watchdog poll timer again */
|
||||
|
|
|
@ -799,7 +799,7 @@ static int sam_transmit(struct sam_emac_s *priv)
|
|||
*
|
||||
* Description:
|
||||
* The transmitter is available, check if uIP has any outgoing packets ready
|
||||
* to send. This is a callback from uip_poll(). uip_poll() may be called:
|
||||
* to send. This is a callback from devif_poll(). devif_poll() may be called:
|
||||
*
|
||||
* 1. When the preceding TX packet send is complete,
|
||||
* 2. When the preceding TX packet send timesout and the interface is reset
|
||||
|
@ -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)uip_poll(dev, sam_uiptxpoll);
|
||||
(void)devif_poll(dev, sam_uiptxpoll);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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)uip_timer(dev, sam_uiptxpoll, SAM_POLLHSEC);
|
||||
(void)devif_timer(dev, sam_uiptxpoll, SAM_POLLHSEC);
|
||||
}
|
||||
|
||||
/* Setup the watchdog poll timer again */
|
||||
|
|
|
@ -1114,7 +1114,7 @@ static int sam_transmit(struct sam_emac_s *priv)
|
|||
*
|
||||
* Description:
|
||||
* The transmitter is available, check if uIP has any outgoing packets ready
|
||||
* to send. This is a callback from uip_poll(). uip_poll() may be called:
|
||||
* to send. This is a callback from devif_poll(). devif_poll() may be called:
|
||||
*
|
||||
* 1. When the preceding TX packet send is complete,
|
||||
* 2. When the preceding TX packet send timesout and the interface is reset
|
||||
|
@ -1198,7 +1198,7 @@ static void sam_dopoll(struct sam_emac_s *priv)
|
|||
{
|
||||
/* If we have the descriptor, then poll uIP for new XMIT data. */
|
||||
|
||||
(void)uip_poll(dev, sam_uiptxpoll);
|
||||
(void)devif_poll(dev, sam_uiptxpoll);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1903,7 +1903,7 @@ static void sam_polltimer(int argc, uint32_t arg, ...)
|
|||
{
|
||||
/* Update TCP timing states and poll uIP for new XMIT data. */
|
||||
|
||||
(void)uip_timer(dev, sam_uiptxpoll, SAM_POLLHSEC);
|
||||
(void)devif_timer(dev, sam_uiptxpoll, SAM_POLLHSEC);
|
||||
}
|
||||
|
||||
/* Setup the watchdog poll timer again */
|
||||
|
|
|
@ -731,7 +731,7 @@ static int sam_transmit(struct sam_gmac_s *priv)
|
|||
*
|
||||
* Description:
|
||||
* The transmitter is available, check if uIP has any outgoing packets ready
|
||||
* to send. This is a callback from uip_poll(). uip_poll() may be called:
|
||||
* to send. This is a callback from devif_poll(). devif_poll() may be called:
|
||||
*
|
||||
* 1. When the preceding TX packet send is complete,
|
||||
* 2. When the preceding TX packet send timesout and the interface is reset
|
||||
|
@ -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)uip_poll(dev, sam_uiptxpoll);
|
||||
(void)devif_poll(dev, sam_uiptxpoll);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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)uip_timer(dev, sam_uiptxpoll, SAM_POLLHSEC);
|
||||
(void)devif_timer(dev, sam_uiptxpoll, SAM_POLLHSEC);
|
||||
}
|
||||
|
||||
/* Setup the watchdog poll timer again */
|
||||
|
|
|
@ -1140,7 +1140,7 @@ static int stm32_transmit(FAR struct stm32_ethmac_s *priv)
|
|||
*
|
||||
* Description:
|
||||
* The transmitter is available, check if uIP has any outgoing packets ready
|
||||
* to send. This is a callback from uip_poll(). uip_poll() may be called:
|
||||
* to send. This is a callback from devif_poll(). devif_poll() may be called:
|
||||
*
|
||||
* 1. When the preceding TX packet send is complete,
|
||||
* 2. When the preceding TX packet send timesout and the interface is reset
|
||||
|
@ -1266,7 +1266,7 @@ static void stm32_dopoll(FAR struct stm32_ethmac_s *priv)
|
|||
|
||||
if (dev->d_buf)
|
||||
{
|
||||
(void)uip_poll(dev, stm32_uiptxpoll);
|
||||
(void)devif_poll(dev, stm32_uiptxpoll);
|
||||
|
||||
/* 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)uip_timer(dev, stm32_uiptxpoll, STM32_POLLHSEC);
|
||||
(void)devif_timer(dev, stm32_uiptxpoll, 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.
|
||||
|
|
|
@ -577,7 +577,7 @@ static int tiva_transmit(struct tiva_driver_s *priv)
|
|||
*
|
||||
* Description:
|
||||
* The transmitter is available, check if uIP has any outgoing packets ready
|
||||
* to send. This is a callback from uip_poll(). uip_poll() may be called:
|
||||
* to send. This is a callback from devif_poll(). devif_poll() may be called:
|
||||
*
|
||||
* 1. When the preceding TX packet send is complete,
|
||||
* 2. When the preceding TX packet send timesout and the interface is reset
|
||||
|
@ -839,7 +839,7 @@ static void tiva_txdone(struct tiva_driver_s *priv)
|
|||
|
||||
/* Then poll uIP for new XMIT data */
|
||||
|
||||
(void)uip_poll(&priv->ld_dev, tiva_uiptxpoll);
|
||||
(void)devif_poll(&priv->ld_dev, tiva_uiptxpoll);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -963,7 +963,7 @@ static void tiva_txtimeout(int argc, uint32_t arg, ...)
|
|||
|
||||
/* Then poll uIP for new XMIT data */
|
||||
|
||||
(void)uip_poll(&priv->ld_dev, tiva_uiptxpoll);
|
||||
(void)devif_poll(&priv->ld_dev, tiva_uiptxpoll);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -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)uip_timer(&priv->ld_dev, tiva_uiptxpoll, TIVA_POLLHSEC);
|
||||
(void)devif_timer(&priv->ld_dev, tiva_uiptxpoll, 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)uip_poll(&priv->ld_dev, tiva_uiptxpoll);
|
||||
(void)devif_poll(&priv->ld_dev, tiva_uiptxpoll);
|
||||
}
|
||||
|
||||
irqrestore(flags);
|
||||
|
|
|
@ -183,7 +183,7 @@ static int emac_transmit(FAR struct emac_driver_s *priv)
|
|||
*
|
||||
* Description:
|
||||
* The transmitter is available, check if uIP has any outgoing packets ready
|
||||
* to send. This is a callback from uip_poll(). uip_poll() may be called:
|
||||
* to send. This is a callback from devif_poll(). devif_poll() may be called:
|
||||
*
|
||||
* 1. When the preceding TX packet send is complete,
|
||||
* 2. When the preceding TX packet send timesout and the interface is reset
|
||||
|
@ -323,7 +323,7 @@ static void emac_txdone(FAR struct emac_driver_s *priv)
|
|||
|
||||
/* Then poll uIP for new XMIT data */
|
||||
|
||||
(void)uip_poll(&priv->d_dev, emac_uiptxpoll);
|
||||
(void)devif_poll(&priv->d_dev, emac_uiptxpoll);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -394,7 +394,7 @@ static void emac_txtimeout(int argc, uint32_t arg, ...)
|
|||
|
||||
/* Then poll uIP for new XMIT data */
|
||||
|
||||
(void)uip_poll(&priv->d_dev, emac_uiptxpoll);
|
||||
(void)devif_poll(&priv->d_dev, emac_uiptxpoll);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -428,7 +428,7 @@ static void emac_polltimer(int argc, uint32_t arg, ...)
|
|||
* we will missing TCP time state updates?
|
||||
*/
|
||||
|
||||
(void)uip_timer(&priv->d_dev, emac_uiptxpoll, HCS12_POLLHSEC);
|
||||
(void)devif_timer(&priv->d_dev, emac_uiptxpoll, 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)uip_poll(&priv->d_dev, emac_uiptxpoll);
|
||||
(void)devif_poll(&priv->d_dev, emac_uiptxpoll);
|
||||
}
|
||||
|
||||
irqrestore(flags);
|
||||
|
|
|
@ -1113,7 +1113,7 @@ static int pic32mx_transmit(struct pic32mx_driver_s *priv)
|
|||
*
|
||||
* Description:
|
||||
* The transmitter is available, check if uIP has any outgoing packets ready
|
||||
* to send. This is a callback from uip_poll(). uip_poll() may be called:
|
||||
* to send. This is a callback from devif_poll(). devif_poll() may be called:
|
||||
*
|
||||
* 1. When the preceding TX packet send is complete,
|
||||
* 2. When the preceding TX packet send timesout and the interface is reset
|
||||
|
@ -1212,7 +1212,7 @@ static void pic32mx_poll(struct pic32mx_driver_s *priv)
|
|||
/* And perform the poll */
|
||||
|
||||
priv->pd_polling = true;
|
||||
(void)uip_poll(&priv->pd_dev, pic32mx_uiptxpoll);
|
||||
(void)devif_poll(&priv->pd_dev, pic32mx_uiptxpoll);
|
||||
|
||||
/* 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)uip_timer(&priv->pd_dev, pic32mx_uiptxpoll, PIC32MX_POLLHSEC);
|
||||
(void)devif_timer(&priv->pd_dev, pic32mx_uiptxpoll, PIC32MX_POLLHSEC);
|
||||
|
||||
/* Free any buffer left attached after the poll */
|
||||
|
||||
|
|
|
@ -202,7 +202,7 @@ void uipdriver_loop(void)
|
|||
else if (timer_expired(&g_periodic_timer))
|
||||
{
|
||||
timer_reset(&g_periodic_timer);
|
||||
uip_timer(&g_sim_dev, sim_uiptxpoll, 1);
|
||||
devif_timer(&g_sim_dev, sim_uiptxpoll, 1);
|
||||
}
|
||||
sched_unlock();
|
||||
}
|
||||
|
|
|
@ -1048,7 +1048,7 @@ static int ez80emac_transmit(struct ez80emac_driver_s *priv)
|
|||
*
|
||||
* Description:
|
||||
* The transmitter is available, check if uIP has any outgoing packets ready
|
||||
* to send. This is a callback from uip_poll(). uip_poll() may be called:
|
||||
* to send. This is a callback from devif_poll(). devif_poll() may be called:
|
||||
*
|
||||
* 1. When the preceding TX packet send is complete,
|
||||
* 2. When the preceding TX packet send timesout and the interface is reset
|
||||
|
@ -1578,7 +1578,7 @@ static void ez80emac_txtimeout(int argc, uint32_t arg, ...)
|
|||
|
||||
/* Then poll uIP for new XMIT data */
|
||||
|
||||
(void)uip_poll(&priv->dev, ez80emac_uiptxpoll);
|
||||
(void)devif_poll(&priv->dev, ez80emac_uiptxpoll);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -1604,7 +1604,7 @@ static void ez80emac_polltimer(int argc, uint32_t arg, ...)
|
|||
|
||||
/* Poll uIP for new XMIT data */
|
||||
|
||||
(void)uip_timer(&priv->dev, ez80emac_uiptxpoll, EMAC_POLLHSEC);
|
||||
(void)devif_timer(&priv->dev, ez80emac_uiptxpoll, 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)uip_poll(&priv->dev, ez80emac_uiptxpoll);
|
||||
(void)devif_poll(&priv->dev, ez80emac_uiptxpoll);
|
||||
}
|
||||
|
||||
irqrestore(flags);
|
||||
|
|
Loading…
Reference in New Issue