Lines Matching refs:qdio
189 struct qeth_qdio_q *queue = card->qdio.in_q; in qeth_clear_working_pool_list()
194 &card->qdio.in_buf_pool.entry_list, list) in qeth_clear_working_pool_list()
217 list_for_each_entry_safe(entry, tmp, &card->qdio.init_pool.entry_list, in qeth_free_buffer_pool()
251 for (i = 0; i < card->qdio.init_pool.buf_count; ++i) { in qeth_alloc_buffer_pool()
260 list_add(&entry->init_list, &card->qdio.init_pool.entry_list); in qeth_alloc_buffer_pool()
268 struct qeth_qdio_buffer_pool *pool = &card->qdio.init_pool; in qeth_resize_buffer_pool()
311 card->qdio.in_buf_pool.buf_count = count; in qeth_resize_buffer_pool()
352 qdio_reset_buffers(card->qdio.c_q->qdio_bufs, in qeth_cq_init()
354 card->qdio.c_q->next_buf_to_init = 127; in qeth_cq_init()
371 card->qdio.c_q = qeth_alloc_qdio_queue(); in qeth_alloc_cq()
372 if (!card->qdio.c_q) { in qeth_alloc_cq()
378 card->qdio.c_q = NULL; in qeth_alloc_cq()
385 if (card->qdio.c_q) { in qeth_free_cq()
386 qeth_free_qdio_queue(card->qdio.c_q); in qeth_free_cq()
387 card->qdio.c_q = NULL; in qeth_free_cq()
1444 for (i = 0; i < card->qdio.no_out_queues; ++i) { in qeth_drain_output_queues()
1445 if (card->qdio.out_qs[i]) in qeth_drain_output_queues()
1446 qeth_drain_output_queue(card->qdio.out_qs[i], false); in qeth_drain_output_queues()
1454 if (card->qdio.no_out_queues == max) in qeth_osa_set_output_queues()
1457 if (atomic_read(&card->qdio.state) != QETH_QDIO_UNINITIALIZED) in qeth_osa_set_output_queues()
1460 if (max == 1 && card->qdio.do_prio_queueing != QETH_PRIOQ_DEFAULT) in qeth_osa_set_output_queues()
1463 card->qdio.no_out_queues = max; in qeth_osa_set_output_queues()
1485 QETH_CARD_TEXT_(card, 2, "nr:%x", card->qdio.no_out_queues); in qeth_update_from_chp_desc()
1493 atomic_set(&card->qdio.state, QETH_QDIO_UNINITIALIZED); in qeth_init_qdio_info()
1494 card->qdio.do_prio_queueing = QETH_PRIOQ_DEFAULT; in qeth_init_qdio_info()
1495 card->qdio.default_out_queue = QETH_DEFAULT_QUEUE; in qeth_init_qdio_info()
1498 card->qdio.in_buf_size = QETH_IN_BUF_SIZE_DEFAULT; in qeth_init_qdio_info()
1500 card->qdio.init_pool.buf_count = QETH_IN_BUF_COUNT_HSDEFAULT; in qeth_init_qdio_info()
1502 card->qdio.init_pool.buf_count = QETH_IN_BUF_COUNT_DEFAULT; in qeth_init_qdio_info()
1503 card->qdio.in_buf_pool.buf_count = card->qdio.init_pool.buf_count; in qeth_init_qdio_info()
1504 INIT_LIST_HEAD(&card->qdio.in_buf_pool.entry_list); in qeth_init_qdio_info()
1505 INIT_LIST_HEAD(&card->qdio.init_pool.entry_list); in qeth_init_qdio_info()
1765 switch (atomic_cmpxchg(&card->qdio.state, QETH_QDIO_ESTABLISHED, in qeth_qdio_clear_card()
1776 atomic_set(&card->qdio.state, QETH_QDIO_ALLOCATED); in qeth_qdio_clear_card()
2384 card->qdio.in_buf_size = max_mtu + 2 * PAGE_SIZE; in qeth_update_max_mtu()
2597 if (atomic_cmpxchg(&card->qdio.state, QETH_QDIO_UNINITIALIZED, in qeth_alloc_qdio_queues()
2606 for (i = 0; i < card->qdio.no_out_queues; ++i) { in qeth_alloc_qdio_queues()
2614 card->qdio.out_qs[i] = queue; in qeth_alloc_qdio_queues()
2640 qeth_free_output_queue(card->qdio.out_qs[--i]); in qeth_alloc_qdio_queues()
2641 card->qdio.out_qs[i] = NULL; in qeth_alloc_qdio_queues()
2645 atomic_set(&card->qdio.state, QETH_QDIO_UNINITIALIZED); in qeth_alloc_qdio_queues()
2653 if (atomic_xchg(&card->qdio.state, QETH_QDIO_UNINITIALIZED) == in qeth_free_qdio_queues()
2659 if (card->qdio.in_q->bufs[j].rx_skb) { in qeth_free_qdio_queues()
2660 consume_skb(card->qdio.in_q->bufs[j].rx_skb); in qeth_free_qdio_queues()
2661 card->qdio.in_q->bufs[j].rx_skb = NULL; in qeth_free_qdio_queues()
2668 for (i = 0; i < card->qdio.no_out_queues; i++) { in qeth_free_qdio_queues()
2669 qeth_free_output_queue(card->qdio.out_qs[i]); in qeth_free_qdio_queues()
2670 card->qdio.out_qs[i] = NULL; in qeth_free_qdio_queues()
2699 if (qeth_uses_tx_prio_queueing(card) || card->qdio.no_out_queues == 1) in qeth_fill_qib_parms()
2842 &card->qdio.init_pool.entry_list, init_list) { in qeth_initialize_working_pool_list()
2853 if (list_empty(&card->qdio.in_buf_pool.entry_list)) in qeth_find_free_buffer_pool_entry()
2856 list_for_each_entry(entry, &card->qdio.in_buf_pool.entry_list, list) { in qeth_find_free_buffer_pool_entry()
2871 entry = list_first_entry(&card->qdio.in_buf_pool.entry_list, in qeth_find_free_buffer_pool_entry()
2944 unsigned int rx_bufs = card->qdio.in_buf_pool.buf_count; in qeth_init_qdio_queues()
2951 qdio_reset_buffers(card->qdio.in_q->qdio_bufs, QDIO_MAX_BUFFERS_PER_Q); in qeth_init_qdio_queues()
2957 rc = qeth_init_input_buffer(card, &card->qdio.in_q->bufs[i]); in qeth_init_qdio_queues()
2962 card->qdio.in_q->next_buf_to_init = QDIO_BUFNR(rx_bufs); in qeth_init_qdio_queues()
2976 for (i = 0; i < card->qdio.no_out_queues; ++i) { in qeth_init_qdio_queues()
2977 struct qeth_qdio_out_q *queue = card->qdio.out_qs[i]; in qeth_init_qdio_queues()
3411 struct qeth_qdio_q *queue = card->qdio.in_q; in qeth_rx_refill_queue()
3440 list_for_each(lh, &card->qdio.in_buf_pool.entry_list) in qeth_rx_refill_queue()
3442 if (i == card->qdio.in_buf_pool.buf_count) { in qeth_rx_refill_queue()
3738 queue_no < card->qdio.no_out_queues) in qeth_qdio_handle_aob()
3739 napi_schedule(&card->qdio.out_qs[queue_no]->napi); in qeth_qdio_handle_aob()
3746 struct qeth_qdio_q *cq = card->qdio.c_q; in qeth_qdio_cq_handler()
3818 switch (card->qdio.do_prio_queueing) { in qeth_get_priority_queue()
3829 return card->qdio.default_out_queue; in qeth_get_priority_queue()
3831 if (card->qdio.do_prio_queueing == QETH_PRIO_Q_ING_PREC) in qeth_get_priority_queue()
3852 return card->qdio.default_out_queue; in qeth_get_priority_queue()
3856 return card->qdio.default_out_queue; in qeth_get_priority_queue()
5065 in_sbal_ptrs[0] = card->qdio.in_q->qdio_bufs; in qeth_qdio_establish()
5067 in_sbal_ptrs[1] = card->qdio.c_q->qdio_bufs; in qeth_qdio_establish()
5071 for (i = 0; i < card->qdio.no_out_queues; i++) in qeth_qdio_establish()
5072 out_sbal_ptrs[i] = card->qdio.out_qs[i]->qdio_bufs; in qeth_qdio_establish()
5080 init_data.no_output_qs = card->qdio.no_out_queues; in qeth_qdio_establish()
5088 if (atomic_cmpxchg(&card->qdio.state, QETH_QDIO_ALLOCATED, in qeth_qdio_establish()
5093 atomic_set(&card->qdio.state, QETH_QDIO_ALLOCATED); in qeth_qdio_establish()
5098 atomic_set(&card->qdio.state, QETH_QDIO_ALLOCATED); in qeth_qdio_establish()
5766 buffer = &card->qdio.in_q->bufs[card->rx.b_index]; in qeth_rx_poll()
6352 card->qdio.in_q = qeth_alloc_qdio_queue(); in qeth_core_probe_device()
6353 if (!card->qdio.in_q) { in qeth_core_probe_device()
6358 card->qdio.no_out_queues = card->dev->num_tx_queues; in qeth_core_probe_device()
6384 qeth_free_qdio_queue(card->qdio.in_q); in qeth_core_probe_device()
6407 qeth_free_qdio_queue(card->qdio.in_q); in qeth_core_remove_device()
6935 for (i = 0; i < card->qdio.no_out_queues; i++) { in qeth_get_stats64()
6936 queue = card->qdio.out_qs[i]; in qeth_get_stats64()