Lines Matching refs:curr_bd_idx

359 	uint8_t curr_bd_idx;  in eth_xlnx_gem_send()  local
422 curr_bd_idx = first_bd_idx = dev_data->txbd_ring.next_to_use; in eth_xlnx_gem_send()
423 reg_ctrl = (uint32_t)(&dev_data->txbd_ring.first_bd[curr_bd_idx].ctrl); in eth_xlnx_gem_send()
444 (dev_conf->tx_buffer_size * curr_bd_idx)); in eth_xlnx_gem_send()
460 curr_bd_idx = (curr_bd_idx + 1) % dev_conf->txbd_count; in eth_xlnx_gem_send()
461 reg_ctrl = (uint32_t)(&dev_data->txbd_ring.first_bd[curr_bd_idx].ctrl); in eth_xlnx_gem_send()
481 while (curr_bd_idx != first_bd_idx) { in eth_xlnx_gem_send()
482 curr_bd_idx = (curr_bd_idx != 0) ? (curr_bd_idx - 1) : in eth_xlnx_gem_send()
484 reg_ctrl = (uint32_t)(&dev_data->txbd_ring.first_bd[curr_bd_idx].ctrl); in eth_xlnx_gem_send()
1433 uint8_t curr_bd_idx; in eth_xlnx_gem_handle_rx_pending() local
1447 curr_bd_idx = dev_data->rxbd_ring.next_to_process; in eth_xlnx_gem_handle_rx_pending()
1448 first_bd_idx = last_bd_idx = curr_bd_idx; in eth_xlnx_gem_handle_rx_pending()
1523 (dev_data->rxbd_ring.first_bd[curr_bd_idx].addr & in eth_xlnx_gem_handle_rx_pending()
1536 reg_addr = (uint32_t)(&dev_data->rxbd_ring.first_bd[curr_bd_idx].addr); in eth_xlnx_gem_handle_rx_pending()
1541 curr_bd_idx = (curr_bd_idx + 1) % dev_conf->rxbd_count; in eth_xlnx_gem_handle_rx_pending()
1542 } while (curr_bd_idx != ((last_bd_idx + 1) % dev_conf->rxbd_count)); in eth_xlnx_gem_handle_rx_pending()
1610 uint8_t curr_bd_idx; in eth_xlnx_gem_handle_tx_done() local
1627 curr_bd_idx = first_bd_idx = dev_data->txbd_ring.next_to_process; in eth_xlnx_gem_handle_tx_done()
1628 reg_ctrl = (uint32_t)(&dev_data->txbd_ring.first_bd[curr_bd_idx].ctrl); in eth_xlnx_gem_handle_tx_done()
1657 curr_bd_idx = (curr_bd_idx + 1) % dev_conf->txbd_count; in eth_xlnx_gem_handle_tx_done()
1658 reg_ctrl = (uint32_t)(&dev_data->txbd_ring.first_bd[curr_bd_idx].ctrl); in eth_xlnx_gem_handle_tx_done()
1660 } while (bd_is_last == 0 && curr_bd_idx != first_bd_idx); in eth_xlnx_gem_handle_tx_done()
1662 if (curr_bd_idx == first_bd_idx && bd_is_last == 0) { in eth_xlnx_gem_handle_tx_done()