Lines Matching refs:index
326 int index;
341 int index;
443 return container_of(rxq, struct mv643xx_eth_private, rxq[rxq->index]);
448 return container_of(txq, struct mv643xx_eth_private, txq[txq->index]);
454 wrlp(mp, RXQ_COMMAND, 1 << rxq->index);
460 u8 mask = 1 << rxq->index;
474 wrlp(mp, TXQ_CURRENT_DESC_PTR(txq->index), addr);
480 wrlp(mp, TXQ_COMMAND, 1 << txq->index);
486 u8 mask = 1 << txq->index;
496 struct netdev_queue *nq = netdev_get_tx_queue(mp->dev, txq->index);
538 mp->work_rx_refill |= 1 << rxq->index;
593 mp->work_rx &= ~(1 << rxq->index);
648 mp->work_rx_refill &= ~(1 << rxq->index);
877 mp->work_tx_end &= ~(1 << txq->index);
982 mp->work_tx_end &= ~(1 << txq->index);
1035 struct netdev_queue *nq = netdev_get_tx_queue(mp->dev, txq->index);
1041 if (rdlp(mp, TXQ_COMMAND) & (1 << txq->index))
1044 hw_desc_ptr = rdlp(mp, TXQ_CURRENT_DESC_PTR(txq->index));
1054 mp->work_tx_end &= ~(1 << txq->index);
1060 struct netdev_queue *nq = netdev_get_tx_queue(mp->dev, txq->index);
1122 mp->work_tx &= ~(1 << txq->index);
1179 wrlp(mp, TXQ_BW_TOKENS(txq->index), token_rate << 14);
1180 wrlp(mp, TXQ_BW_CONF(txq->index), (bucket_size << 10) | token_rate);
1204 val |= 1 << txq->index;
1938 static int rxq_init(struct mv643xx_eth_private *mp, int index)
1940 struct rx_queue *rxq = mp->rxq + index;
1945 rxq->index = index;
1955 if (index == 0 && size <= mp->rx_desc_sram_size) {
1994 if (index == 0 && size <= mp->rx_desc_sram_size)
2024 if (rxq->index == 0 &&
2034 static int txq_init(struct mv643xx_eth_private *mp, int index)
2036 struct tx_queue *txq = mp->txq + index;
2042 txq->index = index;
2059 if (index == 0 && size <= mp->tx_desc_sram_size) {
2114 if (index == 0 && size <= mp->tx_desc_sram_size)
2131 if (txq->index == 0 &&