Lines Matching refs:co_cnode
77 struct cuckoo_node co_cnode; // cuckoo node member
95 struct cht_obj *co = container_of(node, struct cht_obj, co_cnode); in cht_obj_cmp__()
116 struct cht_obj *co = container_of(node, struct cht_obj, co_cnode); in cht_obj_retain__()
129 struct cht_obj *co = container_of(node, struct cht_obj, co_cnode); in cht_obj_release__()
201 .co_cnode = {NULL}, in cht_basic_tests()
208 .co_cnode = {NULL}, in cht_basic_tests()
222 error = cuckoo_hashtable_add_with_hash(h, &co1.co_cnode, co1.co_hash); in cht_basic_tests()
225 error = cuckoo_hashtable_add_with_hash(h, &co2.co_cnode, co2.co_hash); in cht_basic_tests()
232 ASSERT(node == &co1.co_cnode); in cht_basic_tests()
236 ASSERT(node == &co2.co_cnode); in cht_basic_tests()
238 cuckoo_hashtable_del(h, &co1.co_cnode, co1.co_hash); in cht_basic_tests()
245 ASSERT(node == &co2.co_cnode); in cht_basic_tests()
247 cuckoo_hashtable_del(h, &co2.co_cnode, co2.co_hash); in cht_basic_tests()
256 error = cuckoo_hashtable_add_with_hash(h, &co->co_cnode, co->co_hash); in cht_basic_tests()
268 ASSERT(node == &co->co_cnode); in cht_basic_tests()
275 co = container_of(curr_node, struct cht_obj, co_cnode); in cht_basic_tests()
294 cuckoo_hashtable_del(h, &co->co_cnode, co->co_hash); in cht_basic_tests()
363 int error = cuckoo_hashtable_add_with_hash(h, &co->co_cnode, co->co_hash); in cht_concurrent_add()
369 ASSERT(node == &co->co_cnode); in cht_concurrent_add()
388 ASSERT(node == &co->co_cnode); in cht_concurrent_add_check()
395 co = container_of(curr_node, struct cht_obj, co_cnode); in cht_concurrent_add_check()
419 cuckoo_hashtable_del(h, &co->co_cnode, co->co_hash); in cht_concurrent_add_fini()
436 int error = cuckoo_hashtable_add_with_hash(h, &co->co_cnode, co->co_hash); in cht_concurrent_del_init()
461 int error = cuckoo_hashtable_del(h, &co->co_cnode, co->co_hash); in cht_concurrent_del()
502 int error = cuckoo_hashtable_add_with_hash(h, &co->co_cnode, co->co_hash); in cht_concurrent_duo_init()
539 int error = cuckoo_hashtable_add_with_hash(h, &co->co_cnode, co->co_hash); in cht_concurrent_duo()
550 ASSERT(node == &co->co_cnode); in cht_concurrent_duo()
551 int error = cuckoo_hashtable_del(h, &co->co_cnode, co->co_hash); in cht_concurrent_duo()
574 ASSERT(node == &co->co_cnode); in cht_concurrent_duo_check()
592 int error = cuckoo_hashtable_del(h, &co->co_cnode, co->co_hash); in cht_concurrent_duo_fini()