Lines Matching refs:hash
52 int hash = drm_hash_magic(magic);
56 for (pt = dev->magiclist[hash].head; pt; pt = pt->next) {
66 * Inserts the given magic number into the hash table of used magic number
72 int hash;
79 hash = drm_hash_magic(magic);
87 if (dev->magiclist[hash].tail) {
88 dev->magiclist[hash].tail->next = entry;
89 dev->magiclist[hash].tail = entry;
91 dev->magiclist[hash].head = entry;
92 dev->magiclist[hash].tail = entry;
99 * Removes the given magic number from the hash table of used magic number
106 int hash;
111 hash = drm_hash_magic(magic);
113 for (pt = dev->magiclist[hash].head; pt; prev = pt, pt = pt->next) {
115 if (dev->magiclist[hash].head == pt) {
116 dev->magiclist[hash].head = pt->next;
118 if (dev->magiclist[hash].tail == pt) {
119 dev->magiclist[hash].tail = prev;