Lines Matching refs:sds_ring

203 	struct qlcnic_host_sds_ring *sds_ring;  in qlcnic_alloc_sw_resources()  local
282 sds_ring = &recv_ctx->sds_rings[ring]; in qlcnic_alloc_sw_resources()
283 sds_ring->irq = adapter->msix_entries[ring].vector; in qlcnic_alloc_sw_resources()
284 sds_ring->adapter = adapter; in qlcnic_alloc_sw_resources()
285 sds_ring->num_desc = adapter->num_rxd; in qlcnic_alloc_sw_resources()
288 INIT_LIST_HEAD(&sds_ring->free_list[i]); in qlcnic_alloc_sw_resources()
1307 struct qlcnic_host_sds_ring *sds_ring) in qlcnic_handle_fw_message() argument
1314 desc = &sds_ring->desc_head[index]; in qlcnic_handle_fw_message()
1318 index = get_next_index(index, sds_ring->num_desc); in qlcnic_handle_fw_message()
1325 qlcnic_handle_linkevent(sds_ring->adapter, &msg); in qlcnic_handle_fw_message()
1424 struct qlcnic_host_sds_ring *sds_ring, in qlcnic_process_rcv() argument
1471 vlan_gro_receive(&sds_ring->napi, adapter->vlgrp, vid, skb); in qlcnic_process_rcv()
1473 napi_gro_receive(&sds_ring->napi, skb); in qlcnic_process_rcv()
1487 struct qlcnic_host_sds_ring *sds_ring, in qlcnic_process_lro() argument
1567 qlcnic_process_rcv_ring(struct qlcnic_host_sds_ring *sds_ring, int max) in qlcnic_process_rcv_ring() argument
1569 struct qlcnic_adapter *adapter = sds_ring->adapter; in qlcnic_process_rcv_ring()
1577 u32 consumer = sds_ring->consumer; in qlcnic_process_rcv_ring()
1580 desc = &sds_ring->desc_head[consumer]; in qlcnic_process_rcv_ring()
1594 rxbuf = qlcnic_process_rcv(adapter, sds_ring, in qlcnic_process_rcv_ring()
1600 rxbuf = qlcnic_process_lro(adapter, sds_ring, in qlcnic_process_rcv_ring()
1604 qlcnic_handle_fw_message(desc_cnt, consumer, sds_ring); in qlcnic_process_rcv_ring()
1612 list_add_tail(&rxbuf->list, &sds_ring->free_list[ring]); in qlcnic_process_rcv_ring()
1618 desc = &sds_ring->desc_head[consumer]; in qlcnic_process_rcv_ring()
1621 consumer = get_next_index(consumer, sds_ring->num_desc); in qlcnic_process_rcv_ring()
1630 if (!list_empty(&sds_ring->free_list[ring])) { in qlcnic_process_rcv_ring()
1631 list_for_each(cur, &sds_ring->free_list[ring]) { in qlcnic_process_rcv_ring()
1637 list_splice_tail_init(&sds_ring->free_list[ring], in qlcnic_process_rcv_ring()
1646 sds_ring->consumer = consumer; in qlcnic_process_rcv_ring()
1647 writel(consumer, sds_ring->crb_sts_consumer); in qlcnic_process_rcv_ring()