33 #include <linux/string.h>
34 #include <linux/socket.h>
37 #include <linux/slab.h>
38 #include <linux/export.h>
45 #include <asm/unaligned.h>
68 new->firststamp =
new->timestamp;
79 while (discovery !=
NULL ) {
85 if ((node->
data.
saddr == new->data.saddr) &&
104 spin_unlock_irqrestore(&cachelog->
hb_spinlock, flags);
136 while (discovery !=
NULL) {
169 while (discovery !=
NULL) {
188 if (buffer ==
NULL) {
236 while (discovery !=
NULL) {
238 IRDA_DEBUG(0,
" daddr=%08x\n", discovery->data.daddr);
239 IRDA_DEBUG(0,
" saddr=%08x\n", discovery->data.saddr);
240 IRDA_DEBUG(0,
" nickname=%s\n", discovery->data.info);
284 while (discovery !=
NULL) {
300 if (buffer ==
NULL) {
322 #ifdef CONFIG_PROC_FS
338 static void *discovery_seq_start(
struct seq_file *seq, loff_t *pos)
340 spin_lock_irq(&
irlmp->cachelog->hb_spinlock);
344 static void *discovery_seq_next(
struct seq_file *seq,
void *
v, loff_t *pos)
352 static void discovery_seq_stop(
struct seq_file *seq,
void *v)
354 spin_unlock_irq(&
irlmp->cachelog->hb_spinlock);
357 static int discovery_seq_show(
struct seq_file *seq,
void *v)
360 seq_puts(seq,
"IrLMP: Discovery log:\n\n");
364 seq_printf(seq,
"nickname: %s, hint: 0x%02x%02x",
393 seq_printf(seq,
", saddr: 0x%08x, daddr: 0x%08x\n\n",
403 .
start = discovery_seq_start,
404 .next = discovery_seq_next,
405 .stop = discovery_seq_stop,
406 .show = discovery_seq_show,
413 return seq_open(file, &discovery_seq_ops);
418 .open = discovery_seq_open,