Lines Matching refs:head
415 struct qht_bucket *head) in qht_chain_destroy() argument
417 struct qht_bucket *curr = head->next; in qht_chain_destroy()
420 qht_do_if_first_in_stripe(map, head, qemu_spin_destroy); in qht_chain_destroy()
486 static void qht_bucket_reset__locked(struct qht_bucket *head) in qht_bucket_reset__locked() argument
488 struct qht_bucket *b = head; in qht_bucket_reset__locked()
491 seqlock_write_begin(&head->sequence); in qht_bucket_reset__locked()
503 seqlock_write_end(&head->sequence); in qht_bucket_reset__locked()
556 void *qht_do_lookup(const struct qht_bucket *head, qht_lookup_func_t func, in qht_do_lookup() argument
559 const struct qht_bucket *b = head; in qht_do_lookup()
629 struct qht_bucket *head, void *p, uint32_t hash, in qht_insert__locked() argument
632 struct qht_bucket *b = head; in qht_insert__locked()
663 seqlock_write_begin(&head->sequence); in qht_insert__locked()
670 seqlock_write_end(&head->sequence); in qht_insert__locked()
782 bool qht_remove__locked(struct qht_bucket *head, const void *p, uint32_t hash) in qht_remove__locked() argument
784 struct qht_bucket *b = head; in qht_remove__locked()
796 seqlock_write_begin(&head->sequence); in qht_remove__locked()
798 seqlock_write_end(&head->sequence); in qht_remove__locked()
823 static inline void qht_bucket_iter(struct qht_bucket *head, in qht_bucket_iter() argument
826 struct qht_bucket *b = head; in qht_bucket_iter()
841 seqlock_write_begin(&head->sequence); in qht_bucket_iter()
843 seqlock_write_end(&head->sequence); in qht_bucket_iter()
991 const struct qht_bucket *head = &map->buckets[i]; in qht_statistics_init() local
999 version = seqlock_read_begin(&head->sequence); in qht_statistics_init()
1002 b = head; in qht_statistics_init()
1013 } while (seqlock_read_retry(&head->sequence, version)); in qht_statistics_init()