Lines Matching refs:dp
1393 static enum su_type su_get_type(struct device_node *dp) in su_get_type() argument
1402 if (dp == of_find_node_by_path(keyb)) in su_get_type()
1406 if (dp == of_find_node_by_path(ms)) in su_get_type()
1416 struct device_node *dp = op->dev.of_node; in su_probe() local
1423 type = su_get_type(dp); in su_probe()
1484 if (!strcmp(dp->name, "rsc-console") || in su_probe()
1485 !strcmp(dp->name, "lom-console")) in su_probe()
1488 sunserial_console_match(SUNSU_CONSOLE(), dp, in su_probe()
1561 struct device_node *dp; in sunsu_init() local
1565 for_each_node_by_name(dp, "su") { in sunsu_init()
1566 if (su_get_type(dp) == SU_PORT_PORT) in sunsu_init()
1569 for_each_node_by_name(dp, "su_pnp") { in sunsu_init()
1570 if (su_get_type(dp) == SU_PORT_PORT) in sunsu_init()
1573 for_each_node_by_name(dp, "serial") { in sunsu_init()
1574 if (of_device_is_compatible(dp, "su")) { in sunsu_init()
1575 if (su_get_type(dp) == SU_PORT_PORT) in sunsu_init()
1579 for_each_node_by_type(dp, "serial") { in sunsu_init()
1580 if (of_device_is_compatible(dp, "su")) { in sunsu_init()
1581 if (su_get_type(dp) == SU_PORT_PORT) in sunsu_init()