Lines Matching refs:last_head
1646 while (le32_to_cpu(*tx->head_cpu_ptr) != (tx->last_head)) { in lan743x_tx_release_completed_descriptors()
1647 lan743x_tx_release_desc(tx, tx->last_head, false); in lan743x_tx_release_completed_descriptors()
1648 tx->last_head = lan743x_tx_next_index(tx, tx->last_head); in lan743x_tx_release_completed_descriptors()
1656 original_head = tx->last_head; in lan743x_tx_release_all_descriptors()
1658 lan743x_tx_release_desc(tx, tx->last_head, true); in lan743x_tx_release_all_descriptors()
1659 tx->last_head = lan743x_tx_next_index(tx, tx->last_head); in lan743x_tx_release_all_descriptors()
1660 } while (tx->last_head != original_head); in lan743x_tx_release_all_descriptors()
1682 int last_head = tx->last_head; in lan743x_tx_get_avail_desc() local
1685 if (last_tail >= last_head) in lan743x_tx_get_avail_desc()
1686 return tx->ring_size - last_tail + last_head - 1; in lan743x_tx_get_avail_desc()
1688 return last_head - last_tail - 1; in lan743x_tx_get_avail_desc()
2267 tx->last_head = lan743x_csr_read(adapter, TX_HEAD(tx->channel_number)); in lan743x_tx_open()
2448 if (rx->last_head < 0 || rx->last_head >= rx->ring_size) in lan743x_rx_process_buffer()
2451 if (rx->last_head == current_head_index) in lan743x_rx_process_buffer()
2454 descriptor = &rx->ring_cpu_ptr[rx->last_head]; in lan743x_rx_process_buffer()
2457 buffer_info = &rx->buffer_info[rx->last_head]; in lan743x_rx_process_buffer()
2464 int index = lan743x_rx_next_index(rx, rx->last_head); in lan743x_rx_process_buffer()
2498 if (lan743x_rx_init_ring_element(rx, rx->last_head, in lan743x_rx_process_buffer()
2504 lan743x_rx_reuse_ring_element(rx, rx->last_head); in lan743x_rx_process_buffer()
2548 rx->last_head = extension_index; in lan743x_rx_process_buffer()
2570 rx->last_tail = rx->last_head; in lan743x_rx_process_buffer()
2571 rx->last_head = lan743x_rx_next_index(rx, rx->last_head); in lan743x_rx_process_buffer()
2649 rx->last_head = 0; in lan743x_rx_ring_cleanup()
2713 rx->last_head = 0; in lan743x_rx_ring_init()
2832 rx->last_head = lan743x_csr_read(adapter, RX_HEAD(rx->channel_number)); in lan743x_rx_open()
2833 if (rx->last_head) { in lan743x_rx_open()