• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/irda/

Lines Matching defs:log

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)
119 * If log is missing this means that IrLAP was unable to perform the
124 if (log == NULL) {
130 * Locking : we are the only owner of this discovery log, so
132 * We just need to lock the global log in irlmp_add_discovery().
134 discovery = (discovery_t *) hashbin_remove_first(log);
138 discovery = (discovery_t *) hashbin_remove_first(log);
141 /* Delete the now empty log */
142 hashbin_delete(log, (FREE_FUNC) kfree);
146 * Function irlmp_expire_discoveries (log, saddr, force)
153 void irlmp_expire_discoveries(hashbin_t *log, __u32 saddr, int force)
159 int n; /* Size of the full log */
162 IRDA_ASSERT(log != NULL, return;);
165 spin_lock_irqsave(&log->hb_spinlock, flags);
167 discovery = (discovery_t *) hashbin_get_first(log);
171 discovery = (discovery_t *) hashbin_get_next(log);
180 * we don't have anything to put in the log (we are
185 n = HASHBIN_GET_SIZE(log);
188 spin_unlock_irqrestore(&log->hb_spinlock, flags);
199 /* Remove it from the log */
200 curr = hashbin_remove_this(log, (irda_queue_t *) curr);
209 spin_unlock_irqrestore(&log->hb_spinlock, flags);
223 * Function irlmp_copy_discoveries (log, pn, mask)
228 * discovery log. The basic problem is that we don't want the log
232 * The idea is that we copy all the current discovery log in a buffer
237 * Note : we choose to copy the log in "struct irda_device_info" to
239 * Note : the client must kfree himself() the log...
242 struct irda_device_info *irlmp_copy_discoveries(hashbin_t *log, int *pn,
249 int n; /* Size of the full log */
253 IRDA_ASSERT(log != NULL, return NULL;);
256 spin_lock_irqsave(&log->hb_spinlock, flags);
258 discovery = (discovery_t *) hashbin_get_first(log);
268 * we don't have anything to put in the log (we are
273 n = HASHBIN_GET_SIZE(log);
276 spin_unlock_irqrestore(&log->hb_spinlock, flags);
287 discovery = (discovery_t *) hashbin_get_next(log);
290 spin_unlock_irqrestore(&log->hb_spinlock, flags);
335 seq_puts(seq, "IrLMP: Discovery log:\n\n");