Lines Matching refs:cachelog
47 * Function irlmp_add_discovery (cachelog, discovery)
49 * Add a new discovery to the cachelog, and remove any old discoveries
61 void irlmp_add_discovery(hashbin_t *cachelog, discovery_t *new)
69 spin_lock_irqsave(&cachelog->hb_spinlock, flags);
77 discovery = (discovery_t *) hashbin_get_first(cachelog);
82 discovery = (discovery_t *) hashbin_get_next(cachelog);
91 hashbin_remove_this(cachelog, (irda_queue_t *) node);
101 hashbin_insert(cachelog, (irda_queue_t *) new, new->data.daddr, NULL);
103 spin_unlock_irqrestore(&cachelog->hb_spinlock, flags);
107 * Function irlmp_add_discovery_log (cachelog, log)
109 * Merge a disovery log into the cachelog.
112 void irlmp_add_discovery_log(hashbin_t *cachelog, hashbin_t *log)
136 irlmp_add_discovery(cachelog, discovery);
303 for (discovery = (discovery_t *) hashbin_get_first(irlmp->cachelog);
305 discovery = (discovery_t *) hashbin_get_next(irlmp->cachelog)) {
315 spin_lock_irq(&irlmp->cachelog->hb_spinlock);
323 ? (void *) hashbin_get_first(irlmp->cachelog)
324 : (void *) hashbin_get_next(irlmp->cachelog);
329 spin_unlock_irq(&irlmp->cachelog->hb_spinlock);