Lines Matching defs:data
24 struct fd_chan *data;
41 data = uml_kmalloc(sizeof(*data), UM_GFP_KERNEL);
42 if (data == NULL)
45 *data = ((struct fd_chan) { .fd = n,
47 return data;
52 struct fd_chan *data = d;
55 if (data->raw && isatty(data->fd)) {
56 CATCH_EINTR(err = tcgetattr(data->fd, &data->tt));
60 err = raw(data->fd);
64 sprintf(data->str, "%d", data->fd);
65 *dev_out = data->str;
66 return data->fd;
71 struct fd_chan *data = d;
74 if (!data->raw || !isatty(fd))
77 CATCH_EINTR(err = tcsetattr(fd, TCSAFLUSH, &data->tt));
81 data->raw = 0;