Lines Matching refs:i
344 int i; in ag7xxx_dma_clean_tx() local
346 for (i = 0; i < CONFIG_TX_DESCR_NUM; i++) { in ag7xxx_dma_clean_tx()
347 curr = &priv->tx_mac_descrtable[i]; in ag7xxx_dma_clean_tx()
348 next = &priv->tx_mac_descrtable[(i + 1) % CONFIG_TX_DESCR_NUM]; in ag7xxx_dma_clean_tx()
350 curr->data_addr = virt_to_phys(&priv->txbuffs[i * CONFIG_ETH_BUFSIZE]); in ag7xxx_dma_clean_tx()
368 int i; in ag7xxx_dma_clean_rx() local
370 for (i = 0; i < CONFIG_RX_DESCR_NUM; i++) { in ag7xxx_dma_clean_rx()
371 curr = &priv->rx_mac_descrtable[i]; in ag7xxx_dma_clean_rx()
372 next = &priv->rx_mac_descrtable[(i + 1) % CONFIG_RX_DESCR_NUM]; in ag7xxx_dma_clean_rx()
374 curr->data_addr = virt_to_phys(&priv->rxbuffs[i * CONFIG_ETH_BUFSIZE]); in ag7xxx_dma_clean_rx()
593 int i, ret, div = ag7xxx_mii_get_div(); in ag7xxx_mii_setup() local
609 for (i = 0; i < 10; i++) { in ag7xxx_mii_setup()
639 int i, ret; in ag933x_phy_setup_lan() local
658 for (i = 0; i < 4; i++) { in ag933x_phy_setup_lan()
669 for (i = 0; i < 4; i++) { in ag933x_phy_setup_lan()
670 ret = ag7xxx_switch_reg_write(priv->bus, i * 0x100, BIT(9)); in ag933x_phy_setup_lan()
742 int i, ret, phymax; in ag933x_phy_setup_common() local
769 for (i = 0; i < phymax; i++) { in ag933x_phy_setup_common()
770 ret = ag933x_phy_setup_reset_set(dev, i); in ag933x_phy_setup_common()
775 for (i = 0; i < phymax; i++) { in ag933x_phy_setup_common()
776 ret = ag933x_phy_setup_reset_fin(dev, i); in ag933x_phy_setup_common()
781 for (i = 0; i < phymax; i++) { in ag933x_phy_setup_common()
783 ret = ag7xxx_mdio_read(priv->bus, i, 0, MII_MIPSCR); in ag933x_phy_setup_common()
794 int i, ret; in ag934x_phy_setup() local
818 for (i = 0; i < 5; i++) { in ag934x_phy_setup()
819 ret = ag7xxx_mdio_write(priv->bus, i, 0, 0x1d, 0x0); in ag934x_phy_setup()
822 ret = ag7xxx_mdio_write(priv->bus, i, 0, 0x1e, 0x02ea); in ag934x_phy_setup()
825 ret = ag7xxx_mdio_write(priv->bus, i, 0, 0x1d, 0x3d); in ag934x_phy_setup()
828 ret = ag7xxx_mdio_write(priv->bus, i, 0, 0x1e, 0x68a0); in ag934x_phy_setup()