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__()
205 .co_cnode = {NULL}, in cht_basic_tests()
212 .co_cnode = {NULL}, in cht_basic_tests()
226 error = cuckoo_hashtable_add_with_hash(h, &co1.co_cnode, co1.co_hash); in cht_basic_tests()
229 error = cuckoo_hashtable_add_with_hash(h, &co2.co_cnode, co2.co_hash); in cht_basic_tests()
236 ASSERT(node == &co1.co_cnode); in cht_basic_tests()
240 ASSERT(node == &co2.co_cnode); in cht_basic_tests()
242 cuckoo_hashtable_del(h, &co1.co_cnode, co1.co_hash); in cht_basic_tests()
249 ASSERT(node == &co2.co_cnode); in cht_basic_tests()
251 cuckoo_hashtable_del(h, &co2.co_cnode, co2.co_hash); in cht_basic_tests()
260 error = cuckoo_hashtable_add_with_hash(h, &co->co_cnode, co->co_hash); in cht_basic_tests()
272 ASSERT(node == &co->co_cnode); in cht_basic_tests()
279 co = container_of(curr_node, struct cht_obj, co_cnode); in cht_basic_tests()
298 cuckoo_hashtable_del(h, &co->co_cnode, co->co_hash); in cht_basic_tests()
367 int error = cuckoo_hashtable_add_with_hash(h, &co->co_cnode, co->co_hash); in cht_concurrent_add()
373 ASSERT(node == &co->co_cnode); in cht_concurrent_add()
392 ASSERT(node == &co->co_cnode); in cht_concurrent_add_check()
399 co = container_of(curr_node, struct cht_obj, co_cnode); in cht_concurrent_add_check()
423 cuckoo_hashtable_del(h, &co->co_cnode, co->co_hash); in cht_concurrent_add_fini()
440 int error = cuckoo_hashtable_add_with_hash(h, &co->co_cnode, co->co_hash); in cht_concurrent_del_init()
465 int error = cuckoo_hashtable_del(h, &co->co_cnode, co->co_hash); in cht_concurrent_del()
506 int error = cuckoo_hashtable_add_with_hash(h, &co->co_cnode, co->co_hash); in cht_concurrent_duo_init()
543 int error = cuckoo_hashtable_add_with_hash(h, &co->co_cnode, co->co_hash); in cht_concurrent_duo()
554 ASSERT(node == &co->co_cnode); in cht_concurrent_duo()
555 int error = cuckoo_hashtable_del(h, &co->co_cnode, co->co_hash); in cht_concurrent_duo()
578 ASSERT(node == &co->co_cnode); in cht_concurrent_duo_check()
596 int error = cuckoo_hashtable_del(h, &co->co_cnode, co->co_hash); in cht_concurrent_duo_fini()