Lines Matching refs:channel

395                                      libxl_device_channel *channel)  in libxl__init_console_from_channel()  argument
403 if (!channel->name) { in libxl__init_console_from_channel()
404 LOG(ERROR, "channel %d has no name", channel->devid); in libxl__init_console_from_channel()
408 if (channel->backend_domname) { in libxl__init_console_from_channel()
409 rc = libxl_domain_qualifier_to_domid(CTX, channel->backend_domname, in libxl__init_console_from_channel()
410 &channel->backend_domid); in libxl__init_console_from_channel()
422 switch (channel->connection) { in libxl__init_console_from_channel()
425 "to where should it be connected?", channel->devid); in libxl__init_console_from_channel()
432 if (!channel->u.socket.path) { in libxl__init_console_from_channel()
433 LOG(ERROR, "channel %d has no path", channel->devid); in libxl__init_console_from_channel()
437 console->path = libxl__strdup(NOGC, channel->u.socket.path); in libxl__init_console_from_channel()
439 channel->devid); in libxl__init_console_from_channel()
444 __func__, channel->connection); in libxl__init_console_from_channel()
450 console->backend_domid = channel->backend_domid; in libxl__init_console_from_channel()
451 console->name = libxl__strdup(NOGC, channel->name); in libxl__init_console_from_channel()
458 libxl_device_channel *channel) in libxl__device_channel_from_xenstore() argument
463 libxl_device_channel_init(channel); in libxl__device_channel_from_xenstore()
467 (const char **)(&channel->name)); in libxl__device_channel_from_xenstore()
473 channel->connection = LIBXL_CHANNEL_CONNECTION_PTY; in libxl__device_channel_from_xenstore()
475 channel->connection = LIBXL_CHANNEL_CONNECTION_SOCKET; in libxl__device_channel_from_xenstore()
478 (const char **)(&channel->u.socket.path)); in libxl__device_channel_from_xenstore()
563 libxl_device_channel *channel, in libxl_device_channel_getinfo() argument
572 channelinfo->devid = channel->devid; in libxl_device_channel_getinfo()
598 channelinfo->connection = channel->connection; in libxl_device_channel_getinfo()
599 switch (channel->connection) { in libxl_device_channel_getinfo()