Lines Matching defs:connection
60 hp_init(const char *path, const char *connection, uint_t flags)
67 i_hp_dprintf("hp_init: path=%p, connection=%p, flags=0x%x\n",
68 (void *)path, (void *)connection, flags);
78 if ((args = i_hp_set_args(HP_CMD_GETINFO, path, connection, flags,
342 * Return a type description (e.g. "PCI slot") for connection nodes.
428 * Return when the state of a connection was last changed.
526 * Return the path (and maybe connection name) of a node.
530 hp_path(hp_node_t node, char *path, char *connection)
538 i_hp_dprintf("hp_path: node=%p, path=%p, connection=%p\n", (void *)node,
539 (void *)path, (void *)connection);
541 if ((node == NULL) || (path == NULL) || (connection == NULL)) {
547 (void) memset(connection, 0, MAXPATHLEN);
550 /* Set 'connection' only for connectors and ports */
553 (void) strlcpy(connection, node->hp_name, MAXPATHLEN);
640 * Set a state ceiling on a hotplug connection.
651 char connection[MAXPATHLEN];
676 /* Get path and connection of specified node */
677 if ((rv = hp_path(node, path, connection)) != 0)
681 if ((args = i_hp_set_args(HP_CMD_SET_CEILING, path, connection,
724 char connection[MAXPATHLEN];
749 /* Get path and connection of specified node */
750 if ((rv = hp_path(node, path, connection)) != 0)
754 if ((args = i_hp_set_args(HP_CMD_CLEAR_CEILING, path, connection, flags,
789 char connection[MAXPATHLEN];
834 /* Get path and connection of specified node */
835 if ((rv = hp_path(node, path, connection)) != 0)
839 if ((args = i_hp_set_args(HP_CMD_CHANGESTATE, path, connection, flags,
863 * Set bus private options on the hotplug connection
874 char connection[MAXPATHLEN];
894 /* Get path and connection of specified node */
895 if ((rv = hp_path(node, path, connection)) != 0)
899 if ((args = i_hp_set_args(HP_CMD_SETPRIVATE, path, connection, 0,
923 * Get bus private options on the hotplug connection
934 char connection[MAXPATHLEN];
954 /* Get path and connection of specified node */
955 if ((rv = hp_path(node, path, connection)) != 0)
959 if ((args = i_hp_set_args(HP_CMD_GETPRIVATE, path, connection, 0,
993 char connection[MAXPATHLEN];
1010 /* Get path and connection of specified node */
1011 if ((rv = hp_path(node, path, connection)) != 0)
1015 if ((args = i_hp_set_args(HP_CMD_INSTALL, path, connection, flags,
1049 char connection[MAXPATHLEN];
1066 /* Get path and connection of specified node */
1067 if ((rv = hp_path(node, path, connection)) != 0)
1071 if ((args = i_hp_set_args(HP_CMD_UNINSTALL, path, connection, flags,
1108 /* Get path of specified node, HP_NODE_DEVICE has no connection */
1143 char connection[MAXPATHLEN];
1152 /* Get path and connection of specified node */
1153 if ((rv = hp_path(node, path, connection)) != 0)
1157 if ((args = i_hp_set_args(HP_CMD_REMOVE_PORT, path, connection, 0,
1806 i_hp_set_args(hp_cmd_t cmd, const char *path, const char *connection,
1822 /* Add connection, but only if defined */
1823 if ((connection != NULL) && (connection[0] != '\0') &&
1824 (nvlist_add_string(args, HPD_CONNECTION, connection) != 0)) {