Lines Matching refs:index
161 size_t index = (RxBufferPtr)buff - &dma_rx_buffer[0]; in HAL_ETH_RxLinkCallback() local
162 struct eth_stm32_rx_buffer_header *header = &dma_rx_buffer_header[index]; in HAL_ETH_RxLinkCallback()
164 __ASSERT_NO_MSG(index < ETH_RXBUFNB); in HAL_ETH_RxLinkCallback()
206 for (uint16_t index = 0; index < ETH_TXBUFNB; index++) { in allocate_tx_buffer() local
207 if (!dma_tx_buffer_header[index].used) { in allocate_tx_buffer()
208 dma_tx_buffer_header[index].used = true; in allocate_tx_buffer()
209 return index; in allocate_tx_buffer()
220 for (uint16_t index = 0; index < ETH_TX_DESC_CNT; index++) { in allocate_tx_context() local
221 if (!dma_tx_context[index].used) { in allocate_tx_context()
222 dma_tx_context[index].used = true; in allocate_tx_context()
223 dma_tx_context[index].pkt = pkt; in allocate_tx_context()
224 dma_tx_context[index].first_tx_buffer_index = allocate_tx_buffer(); in allocate_tx_context()
225 return &dma_tx_context[index]; in allocate_tx_context()
633 const size_t index = rx_header - &dma_rx_buffer_header[0]; in eth_rx() local
635 __ASSERT_NO_MSG(index < ETH_RXBUFNB); in eth_rx()
636 if (net_pkt_write(pkt, dma_rx_buffer[index], rx_header->size)) { in eth_rx()