Lines Matching refs:index
46 int index; in nsc_insert_node() local
60 index = calc_hash(key); in nsc_insert_node()
61 node->next = hash[ index ]; in nsc_insert_node()
62 hash[ index ] = node; in nsc_insert_node()
80 int index; in nsc_lookup() local
83 index = calc_hash(key); in nsc_lookup()
84 node = hash[ index ]; in nsc_lookup()
96 int index; in nsc_remove_node() local
100 index = calc_hash(key); in nsc_remove_node()
101 if (!hash[ index ]) { in nsc_remove_node()
105 if (strcmp(hash[ index ]->key, key) == 0) { in nsc_remove_node()
106 node = hash[ index ]; in nsc_remove_node()
108 hash[ index ] = hash[ index ]->next; in nsc_remove_node()
113 prev = hash[ index ]; in nsc_remove_node()