Lines Matching refs:ops
91 if (chan->ops->open == NULL) in open_one_chan()
93 else fd = (*chan->ops->open)(chan->input, chan->output, chan->primary, in open_one_chan()
100 (*chan->ops->close)(fd, chan->data); in open_one_chan()
127 if (chan && chan->primary && chan->ops->winch) in chan_enable_winch()
223 if (chan->ops->close != NULL) in close_one_chan()
224 (*chan->ops->close)(chan->fd, chan->data); in close_one_chan()
255 if (len == 0 || !chan || !chan->ops->write) in write_chan()
258 n = chan->ops->write(chan->fd, buf, len, chan->data); in write_chan()
269 if (!chan || !chan->ops->console_write) in console_write_chan()
272 n = chan->ops->console_write(chan->fd, buf, len); in console_write_chan()
298 if (chan->ops->window_size == NULL) in chan_window_size()
300 return chan->ops->window_size(chan->fd, chan->data, in chan_window_size()
305 if (chan->ops->window_size == NULL) in chan_window_size()
307 return chan->ops->window_size(chan->fd, chan->data, in chan_window_size()
319 if (chan->ops->free != NULL) in free_one_chan()
320 (*chan->ops->free)(chan->data); in free_one_chan()
348 CONFIG_CHUNK(str, size, n, chan->ops->type, 0); in one_chan_config_string()
399 const struct chan_ops *ops; member
442 const struct chan_ops *ops; in parse_chan() local
447 ops = NULL; in parse_chan()
452 ops = entry->ops; in parse_chan()
457 if (ops == NULL) { in parse_chan()
462 data = (*ops->init)(str, device, opts); in parse_chan()
483 .ops = ops, in parse_chan()
545 if (!chan || !chan->ops->read) in chan_interrupt()
553 err = chan->ops->read(chan->fd, &c, chan->data); in chan_interrupt()