Lines Matching refs:driver
73 static void check_contains(const char *machine, const char *driver) in check_contains() argument
76 qos_node_contains(machine, driver, NULL); in check_contains()
78 edge = qos_graph_get_edge(machine, driver); in check_contains()
81 g_assert_cmpint(qos_graph_has_edge(machine, driver), ==, TRUE); in check_contains()
97 static void check_consumes(const char *driver, const char *interface) in check_consumes() argument
101 qos_node_consumes(driver, interface, NULL); in check_consumes()
103 edge = qos_graph_get_edge(interface, driver); in check_consumes()
106 g_assert_cmpint(qos_graph_has_edge(interface, driver), ==, TRUE); in check_consumes()
109 static void check_driver(const char *driver) in check_driver() argument
111 qos_node_create_driver(driver, driverfunct); in check_driver()
112 g_assert_cmpint(qos_graph_has_machine(driver), ==, FALSE); in check_driver()
113 g_assert_nonnull(qos_graph_get_node(driver)); in check_driver()
114 g_assert_cmpint(qos_graph_has_node(driver), ==, TRUE); in check_driver()
115 g_assert_cmpint(qos_graph_get_node_type(driver), ==, QNODE_DRIVER); in check_driver()
116 g_assert_cmpint(qos_graph_get_node_availability(driver), ==, FALSE); in check_driver()
117 qos_graph_node_set_availability(driver, TRUE); in check_driver()
118 g_assert_cmpint(qos_graph_get_node_availability(driver), ==, TRUE); in check_driver()