• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/arm/plat-brcm/

Lines Matching refs:ix

445 	int ix, ret;
447 ix = r->ix_in + 1;
448 if( ix >= r->count )
449 ix = 0;
450 if( ix == r->ix_out )
453 r->ix_in = ix;
459 int ix;
465 ix = r->ix_out ;
466 r->ix_out = ix + 1;
469 return ix;
690 int ix, res;
706 ix = _ring_get( &priv->rx_ring, curr_rx_ix );
709 if( ix < 0 ) {
715 printk("%s: ix=%#x\n", __FUNCTION__, ix );
719 rx_desc = priv->rx_desc_start + (ix<<GMAC_DESC_SIZE_SHIFT);
726 skb = priv->rx_skb[ ix ];
731 priv->rx_skb[ ix ] = NULL;
755 int ix, last_ix= -1 ;
771 ix = _ring_put( &priv->rx_ring );
774 if( ix < 0 )
778 printk("%s: ix=%#x\n", __FUNCTION__, ix );
782 if( unlikely(priv->rx_skb[ ix ]) )
786 rx_desc = priv->rx_desc_start + (ix<<GMAC_DESC_SIZE_SHIFT);
797 priv->rx_skb[ ix ] = skb;
810 priv->rx_skb[ ix ] = NULL;
823 if( (ix+1) == priv->tx_ring.count )
830 last_ix = ix;
1009 int ix;
1023 ix = _ring_get( &priv->tx_ring, curr_tx_ix);
1026 if( ix < 0 ) {
1032 printk("%s: ix=%#x curr_ix+%#x\n", __FUNCTION__, ix, curr_tx_ix );
1035 if( unlikely( priv->tx_skb[ix] == NULL)) {
1040 tx_desc = priv->tx_desc_start + (ix<<GMAC_DESC_SIZE_SHIFT);
1047 skb = priv->tx_skb[ ix ];
1048 priv->tx_skb[ ix ] = NULL;
1072 int ix, room;
1079 ix = _ring_put( &priv->tx_ring );
1082 printk("%s: ix=%#x\n", __FUNCTION__, ix );
1085 if( ix < 0 )
1088 if( priv->tx_skb[ ix ] != NULL )
1101 priv->tx_skb[ ix ] = skb ;
1104 tx_desc = priv->tx_desc_start + (ix << GMAC_DESC_SIZE_SHIFT) ;
1120 if( (ix+1) == priv->tx_ring.count )
1124 if( (ix & 0x3f) == 0x3f && ! priv->tx_active ) {
1138 if( off == ix )
1158 if( off == ix )
1382 unsigned ix;
1420 for(ix = 0; ix < priv->tx_ring.count; ix ++ ) {
1422 priv->tx_desc_start + (ix<<GMAC_DESC_SIZE_SHIFT);
1429 for(ix = 0; ix < priv->rx_ring.count; ix ++ ) {
1431 priv->rx_desc_start + (ix<<GMAC_DESC_SIZE_SHIFT);
1439 for(ix = 0; ix < priv->tx_ring.count; ix ++ )
1440 if( priv->tx_skb[ ix ] )
1441 dev_kfree_skb( priv->tx_skb[ ix ] );
1443 for(ix = 0; ix < priv->rx_ring.count; ix ++ )
1444 if( priv->rx_skb[ ix ] )
1445 dev_kfree_skb( priv->rx_skb[ ix ] );