Lines Matching refs:free_idx
1046 u32 free_idx, cmdsts, extsts; local
1067 last_idx = free_idx = dev->tx_free_idx;
1069 nr_free = (tx_done_idx + NR_TX_DESC-2 - free_idx) % NR_TX_DESC;
1084 if (free_idx == dev->tx_intr_idx) {
1125 first_desc = dev->tx_descs + (free_idx * DESC_SIZE);
1128 volatile __le32 *desc = dev->tx_descs + (free_idx * DESC_SIZE);
1130 dprintk("frag[%3u]: %4u @ 0x%08Lx\n", free_idx, len,
1132 last_idx = free_idx;
1133 free_idx = (free_idx + 1) % NR_TX_DESC;
1134 desc[DESC_LINK] = cpu_to_le32(dev->tx_phy_descs + (free_idx * DESC_SIZE * 4));
1160 dev->tx_free_idx = free_idx;