Lines Matching refs:fn
62 fifonode_t *fn = xmalloc(sizeof (fifonode_t)); in fifo_add() local
64 fn->fn_data = data; in fifo_add()
65 fn->fn_next = NULL; in fifo_add()
68 f->f_head = f->f_tail = fn; in fifo_add()
70 f->f_tail->fn_next = fn; in fifo_add()
71 f->f_tail = fn; in fifo_add()
79 fifonode_t *fn; in fifo_remove() local
82 if ((fn = f->f_head) == NULL) in fifo_remove()
85 data = fn->fn_data; in fifo_remove()
86 if ((f->f_head = fn->fn_next) == NULL) in fifo_remove()
89 free(fn); in fifo_remove()
105 fifonode_t *fn = f->f_head; in fifo_free() local
111 while (fn) { in fifo_free()
112 (*freefn)(fn->fn_data); in fifo_free()
114 tmp = fn; in fifo_free()
115 fn = fn->fn_next; in fifo_free()
125 fifonode_t *fn; in fifo_len() local
128 for (i = 0, fn = f->f_head; fn; fn = fn->fn_next, i++); in fifo_len()
142 fifonode_t *fn; in fifo_iter() local
146 for (fn = f->f_head; fn; fn = fn->fn_next) { in fifo_iter()
147 if ((rc = iter(fn->fn_data, arg)) < 0) in fifo_iter()