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()
519 adapter->rx_queue.queue_len = sizeof(struct ibmveth_rx_q_entry) * in ibmveth_open()
521 adapter->rx_queue.queue_addr = in ibmveth_open()
522 dma_alloc_coherent(dev, adapter->rx_queue.queue_len, in ibmveth_open()
523 &adapter->rx_queue.queue_dma, GFP_KERNEL); in ibmveth_open()
524 if (!adapter->rx_queue.queue_addr) in ibmveth_open()
541 adapter->rx_queue.index = 0; in ibmveth_open()
542 adapter->rx_queue.num_slots = rxq_entries; in ibmveth_open()
543 adapter->rx_queue.toggle = 1; in ibmveth_open()
548 adapter->rx_queue.queue_len; in ibmveth_open()
549 rxq_desc.fields.address = adapter->rx_queue.queue_dma; in ibmveth_open()
553 netdev_dbg(netdev, "receive q @ 0x%p\n", adapter->rx_queue.queue_addr); in ibmveth_open()
630 dma_free_coherent(dev, adapter->rx_queue.queue_len, in ibmveth_open()
631 adapter->rx_queue.queue_addr, in ibmveth_open()
632 adapter->rx_queue.queue_dma); in ibmveth_open()
679 dma_free_coherent(dev, adapter->rx_queue.queue_len, in ibmveth_close()
680 adapter->rx_queue.queue_addr, in ibmveth_close()
681 adapter->rx_queue.queue_dma); in ibmveth_close()