Home
last modified time | relevance | path

Searched refs:rx_index (Results 1 – 8 of 8) sorted by relevance

/openbmc/u-boot/drivers/net/
H A Dftmac100.c25 int rx_index; member
100 priv->rx_index = 0; in _ftmac100_init()
146 curr_des = &priv->rxdes[priv->rx_index]; in _ftmac100_free_pkt()
149 priv->rx_index = (priv->rx_index + 1) % PKTBUFSRX; in _ftmac100_free_pkt()
161 curr_des = &priv->rxdes[priv->rx_index]; in __ftmac100_recv()
176 __func__, priv->rx_index, rxlen); in __ftmac100_recv()
250 curr_des = &priv->rxdes[priv->rx_index]; in _ftmac100_recv()
342 curr_des = &priv->rxdes[priv->rx_index]; in ftmac100_recv()
H A Dlpc32xx_eth.c397 int timeout, rx_index; in lpc32xx_eth_recv() local
407 rx_index = readl(&regs->rxconsumeindex); in lpc32xx_eth_recv()
410 if (!(bufs->rx_stat[rx_index].statusinfo & RX_STAT_ERRORS)) { in lpc32xx_eth_recv()
412 &(bufs->rx_buf[rx_index * PKTSIZE_ALIGN]), in lpc32xx_eth_recv()
413 (bufs->rx_stat[rx_index].statusinfo in lpc32xx_eth_recv()
418 rx_index = (rx_index + 1) % RX_BUF_COUNT; in lpc32xx_eth_recv()
419 writel(rx_index, &regs->rxconsumeindex); in lpc32xx_eth_recv()
H A Dftgmac100.c81 int rx_index; member
319 priv->rx_index = 0; in ftgmac100_start()
399 struct ftgmac100_rxdes *curr_des = &priv->rxdes[priv->rx_index]; in ftgmac100_free_pkt()
409 priv->rx_index = (priv->rx_index + 1) % PKTBUFSRX; in ftgmac100_free_pkt()
420 struct ftgmac100_rxdes *curr_des = &priv->rxdes[priv->rx_index]; in ftgmac100_recv()
444 __func__, priv->rx_index, rxlen); in ftgmac100_recv()
/openbmc/linux/drivers/net/ethernet/amd/
H A Damd8111e.c685 int rx_index = lp->rx_idx & RX_RING_DR_MOD_MASK; in amd8111e_rx_poll() local
696 status = le16_to_cpu(lp->rx_ring[rx_index].rx_flags); in amd8111e_rx_poll()
708 lp->rx_ring[rx_index].rx_flags &= RESET_RX_FLAGS; in amd8111e_rx_poll()
714 lp->rx_ring[rx_index].rx_flags &= RESET_RX_FLAGS; in amd8111e_rx_poll()
717 pkt_len = le16_to_cpu(lp->rx_ring[rx_index].msg_count) - 4; in amd8111e_rx_poll()
729 lp->rx_ring[rx_index].rx_flags &= RESET_RX_FLAGS; in amd8111e_rx_poll()
738 lp->rx_ring[rx_index].rx_flags &= RESET_RX_FLAGS; in amd8111e_rx_poll()
744 skb = lp->rx_skbuff[rx_index]; in amd8111e_rx_poll()
745 dma_unmap_single(&lp->pci_dev->dev, lp->rx_dma_addr[rx_index], in amd8111e_rx_poll()
748 lp->rx_skbuff[rx_index] = new_skb; in amd8111e_rx_poll()
[all …]
/openbmc/linux/drivers/ntb/
H A Dntb_transport.c118 unsigned int rx_index; member
168 unsigned int rx_index; member
503 "rx_index - \t%u\n", qp->rx_index); in debugfs_read()
648 qp->rx_index = 0; in ntb_transport_setup_qp_mw()
931 qp->rx_index = 0; in ntb_qp_link_context_reset()
1473 iowrite32(entry->rx_index, &qp->rx_info->entry); in ntb_complete_rxc()
1509 qp->rx_index; in ntb_rx_copy_callback()
1640 offset = qp->rx_buff + qp->rx_max_frame * qp->rx_index; in ntb_process_rxc()
1675 entry->rx_index = qp->rx_index; in ntb_process_rxc()
1690 qp->rx_index, hdr->ver, hdr->len, entry->len); in ntb_process_rxc()
[all …]
/openbmc/linux/drivers/spi/
H A Dspi-topcliff-pch.c175 u32 rx_index; member
266 u32 n_read, tx_index, rx_index, bpw_len; in pch_spi_handler_sub() local
278 rx_index = data->rx_index; in pch_spi_handler_sub()
290 pkt_rx_buffer[rx_index++] = ioread32(spdrr); in pch_spi_handler_sub()
296 if ((bpw_len - rx_index) <= PCH_MAX_FIFO_DEPTH) { in pch_spi_handler_sub()
309 data->rx_index = rx_index; in pch_spi_handler_sub()
313 if ((tx_index == bpw_len) && (rx_index == tx_index)) { in pch_spi_handler_sub()
544 data->rx_index = 0; in pch_spi_set_tx()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_netdev.c1632 int rx_index = 0; in mlx4_en_start_port() local
1693 ++rx_index; in mlx4_en_start_port()
1874 while (rx_index--) { in mlx4_en_start_port()
1875 mlx4_en_deactivate_cq(priv, priv->rx_cq[rx_index]); in mlx4_en_start_port()
1876 mlx4_en_free_affinity_hint(priv, rx_index); in mlx4_en_start_port()
/openbmc/linux/drivers/staging/vc04_services/interface/vchiq_arm/
H A Dvchiq_core.c1872 int rx_index; in parse_rx_slots() local
1875 rx_index = remote->slot_queue[ in parse_rx_slots()
1878 rx_index); in parse_rx_slots()
1879 state->rx_info = SLOT_INFO_FROM_INDEX(state, rx_index); in parse_rx_slots()