Lines Matching refs:inf
174 struct log_data *inf; in hysdn_log_read() local
178 if (!(inf = *((struct log_data **) file->private_data))) { in hysdn_log_read()
183 wait_event_interruptible(pd->rd_queue, (inf = in hysdn_log_read()
186 if (!inf) in hysdn_log_read()
189 inf->usage_cnt--; /* new usage count */ in hysdn_log_read()
190 file->private_data = &inf->next; /* next structure */ in hysdn_log_read()
191 if ((len = strlen(inf->log_start)) <= count) { in hysdn_log_read()
192 if (copy_to_user(buf, inf->log_start, len)) in hysdn_log_read()
242 struct log_data *inf; in hysdn_log_close() local
254 inf = *((struct log_data **) filep->private_data); /* get first log entry */ in hysdn_log_close()
255 if (inf) in hysdn_log_close()
256 pd = (struct procdata *) inf->proc_ctrl; /* still entries there */ in hysdn_log_close()
265 while (inf) { in hysdn_log_close()
266 inf->usage_cnt--; /* decrement usage count for buffers */ in hysdn_log_close()
267 inf = inf->next; in hysdn_log_close()
273 inf = pd->log_head; in hysdn_log_close()
275 kfree(inf); in hysdn_log_close()