Lines Matching refs:node

18 	struct fwnode_handle *node;  in phy_test_rx_polarity_is_missing()  local
22 node = fwnode_create_software_node(entries, NULL); in phy_test_rx_polarity_is_missing()
23 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, node); in phy_test_rx_polarity_is_missing()
25 ret = phy_get_manual_rx_polarity(node, "sgmii", &val); in phy_test_rx_polarity_is_missing()
29 fwnode_remove_software_node(node); in phy_test_rx_polarity_is_missing()
42 struct fwnode_handle *node; in phy_test_rx_polarity_more_values_than_names() local
46 node = fwnode_create_software_node(entries, NULL); in phy_test_rx_polarity_more_values_than_names()
47 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, node); in phy_test_rx_polarity_more_values_than_names()
49 ret = phy_get_manual_rx_polarity(node, "sgmii", &val); in phy_test_rx_polarity_more_values_than_names()
52 fwnode_remove_software_node(node); in phy_test_rx_polarity_more_values_than_names()
63 struct fwnode_handle *node; in phy_test_rx_polarity_single_value_no_names() local
67 node = fwnode_create_software_node(entries, NULL); in phy_test_rx_polarity_single_value_no_names()
68 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, node); in phy_test_rx_polarity_single_value_no_names()
70 ret = phy_get_manual_rx_polarity(node, "sgmii", &val); in phy_test_rx_polarity_single_value_no_names()
74 fwnode_remove_software_node(node); in phy_test_rx_polarity_single_value_no_names()
87 struct fwnode_handle *node; in phy_test_rx_polarity_more_names_than_values() local
91 node = fwnode_create_software_node(entries, NULL); in phy_test_rx_polarity_more_names_than_values()
92 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, node); in phy_test_rx_polarity_more_names_than_values()
94 ret = phy_get_manual_rx_polarity(node, "sgmii", &val); in phy_test_rx_polarity_more_names_than_values()
97 fwnode_remove_software_node(node); in phy_test_rx_polarity_more_names_than_values()
110 struct fwnode_handle *node; in phy_test_rx_polarity_find_by_name() local
114 node = fwnode_create_software_node(entries, NULL); in phy_test_rx_polarity_find_by_name()
115 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, node); in phy_test_rx_polarity_find_by_name()
117 ret = phy_get_manual_rx_polarity(node, "sgmii", &val); in phy_test_rx_polarity_find_by_name()
121 ret = phy_get_manual_rx_polarity(node, "2500base-x", &val); in phy_test_rx_polarity_find_by_name()
125 ret = phy_get_rx_polarity(node, "usb-ss", BIT(PHY_POL_AUTO), in phy_test_rx_polarity_find_by_name()
130 fwnode_remove_software_node(node); in phy_test_rx_polarity_find_by_name()
143 struct fwnode_handle *node; in phy_test_rx_polarity_name_not_found_no_default() local
147 node = fwnode_create_software_node(entries, NULL); in phy_test_rx_polarity_name_not_found_no_default()
148 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, node); in phy_test_rx_polarity_name_not_found_no_default()
150 ret = phy_get_manual_rx_polarity(node, "sgmii", &val); in phy_test_rx_polarity_name_not_found_no_default()
153 fwnode_remove_software_node(node); in phy_test_rx_polarity_name_not_found_no_default()
166 struct fwnode_handle *node; in phy_test_rx_polarity_name_not_found_with_default() local
170 node = fwnode_create_software_node(entries, NULL); in phy_test_rx_polarity_name_not_found_with_default()
171 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, node); in phy_test_rx_polarity_name_not_found_with_default()
173 ret = phy_get_manual_rx_polarity(node, "sgmii", &val); in phy_test_rx_polarity_name_not_found_with_default()
177 fwnode_remove_software_node(node); in phy_test_rx_polarity_name_not_found_with_default()
190 struct fwnode_handle *node; in phy_test_rx_polarity_unsupported_value() local
194 node = fwnode_create_software_node(entries, NULL); in phy_test_rx_polarity_unsupported_value()
195 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, node); in phy_test_rx_polarity_unsupported_value()
197 ret = phy_get_manual_rx_polarity(node, "sgmii", &val); in phy_test_rx_polarity_unsupported_value()
200 fwnode_remove_software_node(node); in phy_test_rx_polarity_unsupported_value()
209 struct fwnode_handle *node; in phy_test_tx_polarity_is_missing() local
213 node = fwnode_create_software_node(entries, NULL); in phy_test_tx_polarity_is_missing()
214 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, node); in phy_test_tx_polarity_is_missing()
216 ret = phy_get_manual_tx_polarity(node, "sgmii", &val); in phy_test_tx_polarity_is_missing()
220 fwnode_remove_software_node(node); in phy_test_tx_polarity_is_missing()
233 struct fwnode_handle *node; in phy_test_tx_polarity_more_values_than_names() local
237 node = fwnode_create_software_node(entries, NULL); in phy_test_tx_polarity_more_values_than_names()
238 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, node); in phy_test_tx_polarity_more_values_than_names()
240 ret = phy_get_manual_tx_polarity(node, "sgmii", &val); in phy_test_tx_polarity_more_values_than_names()
243 fwnode_remove_software_node(node); in phy_test_tx_polarity_more_values_than_names()
254 struct fwnode_handle *node; in phy_test_tx_polarity_single_value_no_names() local
258 node = fwnode_create_software_node(entries, NULL); in phy_test_tx_polarity_single_value_no_names()
259 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, node); in phy_test_tx_polarity_single_value_no_names()
261 ret = phy_get_manual_tx_polarity(node, "sgmii", &val); in phy_test_tx_polarity_single_value_no_names()
265 fwnode_remove_software_node(node); in phy_test_tx_polarity_single_value_no_names()
278 struct fwnode_handle *node; in phy_test_tx_polarity_more_names_than_values() local
282 node = fwnode_create_software_node(entries, NULL); in phy_test_tx_polarity_more_names_than_values()
283 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, node); in phy_test_tx_polarity_more_names_than_values()
285 ret = phy_get_manual_tx_polarity(node, "sgmii", &val); in phy_test_tx_polarity_more_names_than_values()
288 fwnode_remove_software_node(node); in phy_test_tx_polarity_more_names_than_values()
301 struct fwnode_handle *node; in phy_test_tx_polarity_find_by_name() local
305 node = fwnode_create_software_node(entries, NULL); in phy_test_tx_polarity_find_by_name()
306 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, node); in phy_test_tx_polarity_find_by_name()
308 ret = phy_get_manual_tx_polarity(node, "sgmii", &val); in phy_test_tx_polarity_find_by_name()
312 ret = phy_get_manual_tx_polarity(node, "2500base-x", &val); in phy_test_tx_polarity_find_by_name()
316 ret = phy_get_manual_tx_polarity(node, "1000base-x", &val); in phy_test_tx_polarity_find_by_name()
320 fwnode_remove_software_node(node); in phy_test_tx_polarity_find_by_name()
333 struct fwnode_handle *node; in phy_test_tx_polarity_name_not_found_no_default() local
337 node = fwnode_create_software_node(entries, NULL); in phy_test_tx_polarity_name_not_found_no_default()
338 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, node); in phy_test_tx_polarity_name_not_found_no_default()
340 ret = phy_get_manual_tx_polarity(node, "sgmii", &val); in phy_test_tx_polarity_name_not_found_no_default()
343 fwnode_remove_software_node(node); in phy_test_tx_polarity_name_not_found_no_default()
356 struct fwnode_handle *node; in phy_test_tx_polarity_name_not_found_with_default() local
360 node = fwnode_create_software_node(entries, NULL); in phy_test_tx_polarity_name_not_found_with_default()
361 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, node); in phy_test_tx_polarity_name_not_found_with_default()
363 ret = phy_get_manual_tx_polarity(node, "sgmii", &val); in phy_test_tx_polarity_name_not_found_with_default()
367 fwnode_remove_software_node(node); in phy_test_tx_polarity_name_not_found_with_default()
380 struct fwnode_handle *node; in phy_test_tx_polarity_unsupported_value() local
384 node = fwnode_create_software_node(entries, NULL); in phy_test_tx_polarity_unsupported_value()
385 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, node); in phy_test_tx_polarity_unsupported_value()
387 ret = phy_get_manual_tx_polarity(node, "sgmii", &val); in phy_test_tx_polarity_unsupported_value()
390 fwnode_remove_software_node(node); in phy_test_tx_polarity_unsupported_value()