Home
last modified time | relevance | path

Searched refs:hashbin (Results 1 – 3 of 3) sorted by relevance

/linux-4.4.14/net/irda/
Dirqueue.c353 hashbin_t* hashbin; in hashbin_new() local
358 hashbin = kzalloc(sizeof(*hashbin), GFP_ATOMIC); in hashbin_new()
359 if (!hashbin) in hashbin_new()
365 hashbin->hb_type = type; in hashbin_new()
366 hashbin->magic = HB_MAGIC; in hashbin_new()
370 if ( hashbin->hb_type & HB_LOCK ) { in hashbin_new()
371 spin_lock_init(&hashbin->hb_spinlock); in hashbin_new()
374 return hashbin; in hashbin_new()
389 int hashbin_delete( hashbin_t* hashbin, FREE_FUNC free_func) in hashbin_delete() argument
395 IRDA_ASSERT(hashbin != NULL, return -1;); in hashbin_delete()
[all …]
Dirlmp.c1828 hashbin_t *hashbin; member
1838 spin_lock_irq(&iter->hashbin->hb_spinlock); in irlmp_seq_hb_idx()
1839 for (element = hashbin_get_first(iter->hashbin); in irlmp_seq_hb_idx()
1841 element = hashbin_get_next(iter->hashbin)) { in irlmp_seq_hb_idx()
1847 spin_unlock_irq(&iter->hashbin->hb_spinlock); in irlmp_seq_hb_idx()
1848 iter->hashbin = NULL; in irlmp_seq_hb_idx()
1859 iter->hashbin = NULL; in irlmp_seq_start()
1863 iter->hashbin = irlmp->unconnected_lsaps; in irlmp_seq_start()
1871 iter->hashbin = irlmp->links; in irlmp_seq_start()
1882 iter->hashbin = irlmp->unconnected_lsaps; in irlmp_seq_next()
[all …]
/linux-4.4.14/include/net/irda/
Dirqueue.h80 int hashbin_delete(hashbin_t* hashbin, FREE_FUNC func);
81 int hashbin_clear(hashbin_t* hashbin, FREE_FUNC free_func);
82 void hashbin_insert(hashbin_t* hashbin, irda_queue_t* entry, long hashv,
84 void* hashbin_remove(hashbin_t* hashbin, long hashv, const char* name);
85 void* hashbin_remove_first(hashbin_t *hashbin);
86 void* hashbin_remove_this( hashbin_t* hashbin, irda_queue_t* entry);
87 void* hashbin_find(hashbin_t* hashbin, long hashv, const char* name);
88 void* hashbin_lock_find(hashbin_t* hashbin, long hashv, const char* name);
89 void* hashbin_find_next(hashbin_t* hashbin, long hashv, const char* name,
91 irda_queue_t *hashbin_get_first(hashbin_t *hashbin);
[all …]