Lines Matching refs:queue_cache
1557 static struct kmem_cache *queue_cache[2]; variable
1561 return kmem_cache_zalloc(queue_cache[q_type - 1], GFP_KERNEL); in new_queue()
1566 kmem_cache_free(queue_cache[q_type - 1], p); in free_queue()
1571 if (!queue_cache[HV_NCS_QTYPE_MAU - 1]) in queue_cache_init()
1572 queue_cache[HV_NCS_QTYPE_MAU - 1] = in queue_cache_init()
1577 if (!queue_cache[HV_NCS_QTYPE_MAU - 1]) in queue_cache_init()
1580 if (!queue_cache[HV_NCS_QTYPE_CWQ - 1]) in queue_cache_init()
1581 queue_cache[HV_NCS_QTYPE_CWQ - 1] = in queue_cache_init()
1586 if (!queue_cache[HV_NCS_QTYPE_CWQ - 1]) { in queue_cache_init()
1587 kmem_cache_destroy(queue_cache[HV_NCS_QTYPE_MAU - 1]); in queue_cache_init()
1588 queue_cache[HV_NCS_QTYPE_MAU - 1] = NULL; in queue_cache_init()
1596 kmem_cache_destroy(queue_cache[HV_NCS_QTYPE_MAU - 1]); in queue_cache_destroy()
1597 kmem_cache_destroy(queue_cache[HV_NCS_QTYPE_CWQ - 1]); in queue_cache_destroy()
1598 queue_cache[HV_NCS_QTYPE_MAU - 1] = NULL; in queue_cache_destroy()
1599 queue_cache[HV_NCS_QTYPE_CWQ - 1] = NULL; in queue_cache_destroy()