Lines Matching refs:rx_queue
105 return be32_to_cpu(adapter->rx_queue.queue_addr[adapter->rx_queue.index].flags_off); in ibmveth_rxq_flags()
116 return ibmveth_rxq_toggle(adapter) == adapter->rx_queue.toggle; in ibmveth_rxq_pending_buffer()
136 return be32_to_cpu(adapter->rx_queue.queue_addr[adapter->rx_queue.index].length); in ibmveth_rxq_frame_length()
397 u64 correlator = adapter->rx_queue.queue_addr[adapter->rx_queue.index].correlator; in ibmveth_rxq_get_buffer()
410 u32 q_index = adapter->rx_queue.index; in ibmveth_rxq_recycle_buffer()
411 u64 correlator = adapter->rx_queue.queue_addr[q_index].correlator; in ibmveth_rxq_recycle_buffer()
436 …ibmveth_remove_buffer_from_pool(adapter, adapter->rx_queue.queue_addr[adapter->rx_queue.index].cor… in ibmveth_rxq_recycle_buffer()
440 if (++adapter->rx_queue.index == adapter->rx_queue.num_slots) { in ibmveth_rxq_recycle_buffer()
441 adapter->rx_queue.index = 0; in ibmveth_rxq_recycle_buffer()
442 adapter->rx_queue.toggle = !adapter->rx_queue.toggle; in ibmveth_rxq_recycle_buffer()
451 …ibmveth_remove_buffer_from_pool(adapter, adapter->rx_queue.queue_addr[adapter->rx_queue.index].cor… in ibmveth_rxq_harvest_buffer()
453 if (++adapter->rx_queue.index == adapter->rx_queue.num_slots) { in ibmveth_rxq_harvest_buffer()
454 adapter->rx_queue.index = 0; in ibmveth_rxq_harvest_buffer()
455 adapter->rx_queue.toggle = !adapter->rx_queue.toggle; in ibmveth_rxq_harvest_buffer()
530 adapter->rx_queue.queue_len = sizeof(struct ibmveth_rx_q_entry) * in ibmveth_open()
532 adapter->rx_queue.queue_addr = in ibmveth_open()
533 dma_alloc_coherent(dev, adapter->rx_queue.queue_len, in ibmveth_open()
534 &adapter->rx_queue.queue_dma, GFP_KERNEL); in ibmveth_open()
535 if (!adapter->rx_queue.queue_addr) in ibmveth_open()
552 adapter->rx_queue.index = 0; in ibmveth_open()
553 adapter->rx_queue.num_slots = rxq_entries; in ibmveth_open()
554 adapter->rx_queue.toggle = 1; in ibmveth_open()
559 adapter->rx_queue.queue_len; in ibmveth_open()
560 rxq_desc.fields.address = adapter->rx_queue.queue_dma; in ibmveth_open()
564 netdev_dbg(netdev, "receive q @ 0x%p\n", adapter->rx_queue.queue_addr); in ibmveth_open()
647 dma_free_coherent(dev, adapter->rx_queue.queue_len, in ibmveth_open()
648 adapter->rx_queue.queue_addr, in ibmveth_open()
649 adapter->rx_queue.queue_dma); in ibmveth_open()
696 dma_free_coherent(dev, adapter->rx_queue.queue_len, in ibmveth_close()
697 adapter->rx_queue.queue_addr, in ibmveth_close()
698 adapter->rx_queue.queue_dma); in ibmveth_close()