Lines Matching refs:card_node
503 Prom_node *card_node; in display_sbus() local
522 for (card_node = sbus->child; card_node != NULL; in display_sbus()
523 card_node = card_node->sibling) { in display_sbus()
528 card_num = get_sbus_slot(card_node); in display_sbus()
541 value = get_prop_val(find_prop(card_node, "status")); in display_sbus()
551 model = (char *)get_prop_val(find_prop(card_node, in display_sbus()
553 name = get_node_name(card_node); in display_sbus()
562 child_name = get_node_name(card_node->child); in display_sbus()
563 if ((card_node->child != NULL) && in display_sbus()
565 value = get_prop_val(find_prop(card_node->child, in display_sbus()
655 get_dev_func_num(Prom_node *card_node, int *dev_no, int *func_no) in get_dev_func_num() argument
658 void *value = get_prop_val(find_prop(card_node, "reg")); in get_dev_func_num()
671 get_pci_class_codes(Prom_node *card_node, int *class_code, int *subclass_code) in get_pci_class_codes() argument
673 int class_code_reg = get_pci_class_code_reg(card_node); in get_pci_class_codes()
680 is_pci_bridge(Prom_node *card_node, char *name) in is_pci_bridge() argument
684 if (card_node == NULL) in is_pci_bridge()
687 get_pci_class_codes(card_node, &class_code, &subclass_code); in is_pci_bridge()
698 is_pci_bridge_other(Prom_node *card_node, char *name) in is_pci_bridge_other() argument
702 if (card_node == NULL) in is_pci_bridge_other()
705 get_pci_class_codes(card_node, &class_code, &subclass_code); in is_pci_bridge_other()
715 get_pci_card_model(Prom_node *card_node, char *model) in get_pci_card_model() argument
717 char *name = get_prop_val(find_prop(card_node, "name")); in get_pci_card_model()
718 char *value = get_prop_val(find_prop(card_node, "model")); in get_pci_card_model()
719 int pci_bridge = is_pci_bridge(card_node, name); in get_pci_card_model()
738 create_io_card_name(Prom_node *card_node, char *name, char *card_name) in create_io_card_name() argument
740 char *value = get_prop_val(find_prop(card_node, "compatible")); in create_io_card_name()
752 child_name = (char *)get_node_name(card_node->child); in create_io_card_name()
754 if ((card_node->child != NULL) && in create_io_card_name()
756 value = get_prop_val(find_prop(card_node->child, in create_io_card_name()
784 Prom_node *pci, *card_node, *pci_bridge_node = NULL; in display_psycho_pci() local
846 card_node = pci->child; in display_psycho_pci()
847 while (card_node != NULL) { in display_psycho_pci()
853 find_prop(card_node, "name")); in display_psycho_pci()
858 get_dev_func_num(card_node, &card.dev_no, in display_psycho_pci()
862 get_pci_class_codes(card_node, &class_code, in display_psycho_pci()
887 if (is_pci_bridge(card_node, name)) { in display_psycho_pci()
889 pci_bridge_node = card_node; in display_psycho_pci()
901 if (card_node->parent == pci_bridge_node) in display_psycho_pci()
918 get_pci_card_model(card_node, (char *)&card.model); in display_psycho_pci()
931 create_io_card_name(card_node, name, in display_psycho_pci()
945 if (card_node->child != NULL) in display_psycho_pci()
946 card_node = card_node->child; in display_psycho_pci()
948 card_node = card_node->sibling; in display_psycho_pci()
950 if ((card_node->parent == pci_bridge_node) && in display_psycho_pci()
951 (card_node->sibling == NULL)) in display_psycho_pci()
952 card_node = pci_bridge_node->sibling; in display_psycho_pci()
954 card_node = card_node->sibling; in display_psycho_pci()
1030 decode_qlc_card_model_prop(Prom_node *card_node, struct io_card *card) in decode_qlc_card_model_prop() argument
1034 if (card_node == NULL) in decode_qlc_card_model_prop()
1037 value = get_prop_val(find_prop(card_node, "subsystem-id")); in decode_qlc_card_model_prop()