__of_node_is_type
if (__of_node_is_type(np, type) && of_node_get(np))
if (!__of_node_is_type(device, type))
__of_node_is_type(next, "cpu")))