Lines Matching refs:qdio
222 &card->qdio.in_buf_pool.entry_list, list){ in qeth_clear_working_pool_list()
235 for (i = 0; i < card->qdio.init_pool.buf_count; ++i) { in qeth_alloc_buffer_pool()
254 &card->qdio.init_pool.entry_list); in qeth_alloc_buffer_pool()
270 card->qdio.in_buf_pool.buf_count = bufcnt; in qeth_realloc_buffer_pool()
271 card->qdio.init_pool.buf_count = bufcnt; in qeth_realloc_buffer_pool()
979 for (i = 0; i < card->qdio.no_out_queues; ++i) in qeth_clear_qdio_buffers()
980 if (card->qdio.out_qs[i]) { in qeth_clear_qdio_buffers()
982 qeth_clear_output_buffer(card->qdio.out_qs[i], in qeth_clear_qdio_buffers()
983 &card->qdio.out_qs[i]->bufs[j]); in qeth_clear_qdio_buffers()
994 &card->qdio.init_pool.entry_list, init_list){ in qeth_free_buffer_pool()
1007 if (atomic_xchg(&card->qdio.state, QETH_QDIO_UNINITIALIZED) == in qeth_free_qdio_buffers()
1010 kfree(card->qdio.in_q); in qeth_free_qdio_buffers()
1011 card->qdio.in_q = NULL; in qeth_free_qdio_buffers()
1015 if (card->qdio.out_qs) { in qeth_free_qdio_buffers()
1016 for (i = 0; i < card->qdio.no_out_queues; ++i) { in qeth_free_qdio_buffers()
1018 qeth_clear_output_buffer(card->qdio.out_qs[i], in qeth_free_qdio_buffers()
1019 &card->qdio.out_qs[i]->bufs[j]); in qeth_free_qdio_buffers()
1020 kfree(card->qdio.out_qs[i]); in qeth_free_qdio_buffers()
1022 kfree(card->qdio.out_qs); in qeth_free_qdio_buffers()
1023 card->qdio.out_qs = NULL; in qeth_free_qdio_buffers()
1067 atomic_set(&card->qdio.state, QETH_QDIO_UNINITIALIZED); in qeth_init_qdio_info()
1069 card->qdio.in_buf_size = QETH_IN_BUF_SIZE_DEFAULT; in qeth_init_qdio_info()
1070 card->qdio.init_pool.buf_count = QETH_IN_BUF_COUNT_DEFAULT; in qeth_init_qdio_info()
1071 card->qdio.in_buf_pool.buf_count = card->qdio.init_pool.buf_count; in qeth_init_qdio_info()
1072 INIT_LIST_HEAD(&card->qdio.in_buf_pool.entry_list); in qeth_init_qdio_info()
1073 INIT_LIST_HEAD(&card->qdio.init_pool.entry_list); in qeth_init_qdio_info()
1200 card->qdio.do_prio_queueing = QETH_PRIOQ_DEFAULT; in qeth_determine_card_type()
1201 card->qdio.default_out_queue = QETH_DEFAULT_QUEUE; in qeth_determine_card_type()
1206 card->qdio.no_out_queues = known_devices[i][8]; in qeth_determine_card_type()
1211 card->qdio.no_out_queues = 1; in qeth_determine_card_type()
1212 card->qdio.default_out_queue = 0; in qeth_determine_card_type()
1320 switch (atomic_cmpxchg(&card->qdio.state, QETH_QDIO_ESTABLISHED, in qeth_qdio_clear_card()
1331 atomic_set(&card->qdio.state, QETH_QDIO_ALLOCATED); in qeth_qdio_clear_card()
1947 card->qdio.in_buf_size = mtu + 2 * PAGE_SIZE; in qeth_ulp_enable_cb()
1951 card->qdio.in_buf_size = QETH_IN_BUF_SIZE_DEFAULT; in qeth_ulp_enable_cb()
2049 if (atomic_cmpxchg(&card->qdio.state, QETH_QDIO_UNINITIALIZED, in qeth_alloc_qdio_buffers()
2053 card->qdio.in_q = kmalloc(sizeof(struct qeth_qdio_q), in qeth_alloc_qdio_buffers()
2055 if (!card->qdio.in_q) in qeth_alloc_qdio_buffers()
2058 QETH_DBF_HEX(SETUP, 2, &card->qdio.in_q, sizeof(void *)); in qeth_alloc_qdio_buffers()
2059 memset(card->qdio.in_q, 0, sizeof(struct qeth_qdio_q)); in qeth_alloc_qdio_buffers()
2062 card->qdio.in_q->bufs[i].buffer = in qeth_alloc_qdio_buffers()
2063 &card->qdio.in_q->qdio_bufs[i]; in qeth_alloc_qdio_buffers()
2068 card->qdio.out_qs = in qeth_alloc_qdio_buffers()
2069 kmalloc(card->qdio.no_out_queues * in qeth_alloc_qdio_buffers()
2071 if (!card->qdio.out_qs) in qeth_alloc_qdio_buffers()
2073 for (i = 0; i < card->qdio.no_out_queues; ++i) { in qeth_alloc_qdio_buffers()
2074 card->qdio.out_qs[i] = kmalloc(sizeof(struct qeth_qdio_out_q), in qeth_alloc_qdio_buffers()
2076 if (!card->qdio.out_qs[i]) in qeth_alloc_qdio_buffers()
2079 QETH_DBF_HEX(SETUP, 2, &card->qdio.out_qs[i], sizeof(void *)); in qeth_alloc_qdio_buffers()
2080 memset(card->qdio.out_qs[i], 0, sizeof(struct qeth_qdio_out_q)); in qeth_alloc_qdio_buffers()
2081 card->qdio.out_qs[i]->queue_no = i; in qeth_alloc_qdio_buffers()
2084 card->qdio.out_qs[i]->bufs[j].buffer = in qeth_alloc_qdio_buffers()
2085 &card->qdio.out_qs[i]->qdio_bufs[j]; in qeth_alloc_qdio_buffers()
2086 skb_queue_head_init(&card->qdio.out_qs[i]->bufs[j]. in qeth_alloc_qdio_buffers()
2089 &card->qdio.out_qs[i]->bufs[j].skb_list.lock, in qeth_alloc_qdio_buffers()
2091 INIT_LIST_HEAD(&card->qdio.out_qs[i]->bufs[j].ctx_list); in qeth_alloc_qdio_buffers()
2098 kfree(card->qdio.out_qs[--i]); in qeth_alloc_qdio_buffers()
2099 kfree(card->qdio.out_qs); in qeth_alloc_qdio_buffers()
2100 card->qdio.out_qs = NULL; in qeth_alloc_qdio_buffers()
2104 kfree(card->qdio.in_q); in qeth_alloc_qdio_buffers()
2105 card->qdio.in_q = NULL; in qeth_alloc_qdio_buffers()
2107 atomic_set(&card->qdio.state, QETH_QDIO_UNINITIALIZED); in qeth_alloc_qdio_buffers()
2310 &card->qdio.init_pool.entry_list, init_list) { in qeth_initialize_working_pool_list()
2323 if (list_empty(&card->qdio.in_buf_pool.entry_list)) in qeth_find_free_buffer_pool_entry()
2326 list_for_each(plh, &card->qdio.in_buf_pool.entry_list) { in qeth_find_free_buffer_pool_entry()
2342 entry = list_entry(card->qdio.in_buf_pool.entry_list.next, in qeth_find_free_buffer_pool_entry()
2398 memset(card->qdio.in_q->qdio_bufs, 0, in qeth_init_qdio_queues()
2402 for (i = 0; i < card->qdio.in_buf_pool.buf_count - 1; ++i) in qeth_init_qdio_queues()
2403 qeth_init_input_buffer(card, &card->qdio.in_q->bufs[i]); in qeth_init_qdio_queues()
2404 card->qdio.in_q->next_buf_to_init = in qeth_init_qdio_queues()
2405 card->qdio.in_buf_pool.buf_count - 1; in qeth_init_qdio_queues()
2407 card->qdio.in_buf_pool.buf_count - 1); in qeth_init_qdio_queues()
2413 for (i = 0; i < card->qdio.no_out_queues; ++i) { in qeth_init_qdio_queues()
2414 memset(card->qdio.out_qs[i]->qdio_bufs, 0, in qeth_init_qdio_queues()
2417 qeth_clear_output_buffer(card->qdio.out_qs[i], in qeth_init_qdio_queues()
2418 &card->qdio.out_qs[i]->bufs[j]); in qeth_init_qdio_queues()
2420 card->qdio.out_qs[i]->card = card; in qeth_init_qdio_queues()
2421 card->qdio.out_qs[i]->next_buf_to_fill = 0; in qeth_init_qdio_queues()
2422 card->qdio.out_qs[i]->do_pack = 0; in qeth_init_qdio_queues()
2423 atomic_set(&card->qdio.out_qs[i]->used_buffers, 0); in qeth_init_qdio_queues()
2424 atomic_set(&card->qdio.out_qs[i]->set_pci_flags_count, 0); in qeth_init_qdio_queues()
2425 atomic_set(&card->qdio.out_qs[i]->state, in qeth_init_qdio_queues()
2630 struct qeth_qdio_q *queue = card->qdio.in_q; in qeth_queue_input_buffer()
2637 card->qdio.in_buf_pool.buf_count - in qeth_queue_input_buffer()
2639 card->qdio.in_buf_pool.buf_count - in qeth_queue_input_buffer()
2924 struct qeth_qdio_out_q *queue = card->qdio.out_qs[__queue]; in qeth_qdio_output_handler()
3017 return card->qdio.default_out_queue; in qeth_get_priority_queue()
3018 switch (card->qdio.no_out_queues) { in qeth_get_priority_queue()
3022 (card->qdio.no_out_queues - 1); in qeth_get_priority_queue()
3023 if (card->qdio.do_prio_queueing && (ipv == 4)) { in qeth_get_priority_queue()
3026 if (card->qdio.do_prio_queueing == in qeth_get_priority_queue()
3037 if (card->qdio.do_prio_queueing == in qeth_get_priority_queue()
3040 } else if (card->qdio.do_prio_queueing && (ipv == 6)) { in qeth_get_priority_queue()
3043 return card->qdio.default_out_queue; in qeth_get_priority_queue()
3046 return card->qdio.default_out_queue; in qeth_get_priority_queue()
3725 virt_to_phys(card->qdio.in_q->bufs[i].buffer); in qeth_qdio_establish()
3728 kmalloc(card->qdio.no_out_queues * QDIO_MAX_BUFFERS_PER_Q * in qeth_qdio_establish()
3735 for (i = 0, k = 0; i < card->qdio.no_out_queues; ++i) in qeth_qdio_establish()
3738 card->qdio.out_qs[i]->bufs[j].buffer); in qeth_qdio_establish()
3747 init_data.no_output_qs = card->qdio.no_out_queues; in qeth_qdio_establish()
3757 if (atomic_cmpxchg(&card->qdio.state, QETH_QDIO_ALLOCATED, in qeth_qdio_establish()
3761 atomic_set(&card->qdio.state, QETH_QDIO_ALLOCATED); in qeth_qdio_establish()
4364 data[19] = atomic_read(&card->qdio.out_qs[0]->used_buffers); in qeth_core_get_ethtool_stats()
4365 data[20] = (card->qdio.no_out_queues > 1) ? in qeth_core_get_ethtool_stats()
4366 atomic_read(&card->qdio.out_qs[1]->used_buffers) : 0; in qeth_core_get_ethtool_stats()
4367 data[21] = (card->qdio.no_out_queues > 2) ? in qeth_core_get_ethtool_stats()
4368 atomic_read(&card->qdio.out_qs[2]->used_buffers) : 0; in qeth_core_get_ethtool_stats()
4369 data[22] = (card->qdio.no_out_queues > 3) ? in qeth_core_get_ethtool_stats()
4370 atomic_read(&card->qdio.out_qs[3]->used_buffers) : 0; in qeth_core_get_ethtool_stats()