Lines Matching refs:data
21 static irqreturn_t xterm_interrupt(int irq, void *data) in xterm_interrupt() argument
23 struct xterm_wait *xterm = data; in xterm_interrupt()
45 struct xterm_wait *data; in xterm_fd() local
48 data = kmalloc(sizeof(*data), GFP_KERNEL); in xterm_fd()
49 if (data == NULL) { in xterm_fd()
55 *data = ((struct xterm_wait) { .fd = socket, in xterm_fd()
58 init_completion(&data->ready); in xterm_fd()
61 IRQF_SHARED, "xterm", data); in xterm_fd()
73 wait_for_completion(&data->ready); in xterm_fd()
75 um_free_irq(XTERM_IRQ, data); in xterm_fd()
77 ret = data->new_fd; in xterm_fd()
78 *pid_out = data->pid; in xterm_fd()
80 kfree(data); in xterm_fd()