Lines Matching refs:channel

396                                      libxl_device_channel *channel)  in libxl__init_console_from_channel()  argument
404 if (channel->devid == -1) in libxl__init_console_from_channel()
405 channel->devid = dev_num; in libxl__init_console_from_channel()
407 if (!channel->name) { in libxl__init_console_from_channel()
408 LOG(ERROR, "channel %d has no name", channel->devid); in libxl__init_console_from_channel()
412 if (channel->backend_domname) { in libxl__init_console_from_channel()
413 rc = libxl_domain_qualifier_to_domid(CTX, channel->backend_domname, in libxl__init_console_from_channel()
414 &channel->backend_domid); in libxl__init_console_from_channel()
426 switch (channel->connection) { in libxl__init_console_from_channel()
429 "to where should it be connected?", channel->devid); in libxl__init_console_from_channel()
436 if (!channel->u.socket.path) { in libxl__init_console_from_channel()
437 LOG(ERROR, "channel %d has no path", channel->devid); in libxl__init_console_from_channel()
441 console->path = libxl__strdup(NOGC, channel->u.socket.path); in libxl__init_console_from_channel()
443 channel->devid); in libxl__init_console_from_channel()
448 __func__, channel->connection); in libxl__init_console_from_channel()
452 console->devid = channel->devid; in libxl__init_console_from_channel()
454 console->backend_domid = channel->backend_domid; in libxl__init_console_from_channel()
455 console->name = libxl__strdup(NOGC, channel->name); in libxl__init_console_from_channel()
462 libxl_device_channel *channel) in libxl__device_channel_from_xenstore() argument
467 libxl_device_channel_init(channel); in libxl__device_channel_from_xenstore()
471 (const char **)(&channel->name)); in libxl__device_channel_from_xenstore()
477 channel->connection = LIBXL_CHANNEL_CONNECTION_PTY; in libxl__device_channel_from_xenstore()
479 channel->connection = LIBXL_CHANNEL_CONNECTION_SOCKET; in libxl__device_channel_from_xenstore()
482 (const char **)(&channel->u.socket.path)); in libxl__device_channel_from_xenstore()
569 const libxl_device_channel *channel, in libxl_device_channel_getinfo() argument
577 channelinfo->devid = channel->devid; in libxl_device_channel_getinfo()
605 channelinfo->connection = channel->connection; in libxl_device_channel_getinfo()
606 switch (channel->connection) { in libxl_device_channel_getinfo()