Lines Matching refs:pci_card

66 			    struct io_card *pci_card,
489 struct io_card *pci_card,
527 pci_card->schizo_portid = portid;
528 if (pci_card->schizo_portid != 8) {
546 pci_card->pci_bus = 'A';
548 pci_card->pci_bus = 'B';
551 pci_card->pci_bus = '-';
555 pci_card->pci_bus = '-';
565 pci_card->dev_no = (((*int_val) & 0xF800) >> 11);
566 pci_card->func_no = (((*int_val) & 0x700) >> 8);
568 pci_card->dev_no = -1;
569 pci_card->func_no = -1;
572 switch (pci_card->pci_bus) {
574 if ((pci_card->dev_no < 1 || pci_card->dev_no > 2) &&
581 if ((pci_card->dev_no < 2 || pci_card->dev_no > 5) &&
611 pci_bridge_dev_no = pci_card->dev_no;
625 if (pci_card->dev_no != -1) {
633 if (pci_card->pci_bus == 'B') {
641 if (pci_card->pci_bus == 'B') {
643 slot_name_arr[pci_card->dev_no-2];
646 slot_name_arr[pci_card->dev_no-1];
653 (void) snprintf(pci_card->slot_str, MAXSTRLEN,
656 (void) snprintf(pci_card->slot_str, MAXSTRLEN,
661 (void) snprintf(pci_card->slot_str, MAXSTRLEN,
669 (void) strcpy(pci_card->status, "fail");
671 (void) strcpy(pci_card->status, "ok");
673 /* Get the model of this pci_card */
676 pci_card->model[0] = '\0';
678 (void) snprintf(pci_card->model, MAXSTRLEN, "%s",
692 pci_card->freq = HZ_TO_MHZ(*int_val);
694 pci_card->freq = -1;
714 * of the child to the name value of this pci_card->
723 (void) snprintf(pci_card->name, MAXSTRLEN,
728 (void) snprintf(pci_card->name, MAXSTRLEN,
732 (void) snprintf(pci_card->name, MAXSTRLEN, "%s",
743 if (strlen(pci_card->model) == 0) {
745 (void) snprintf(pci_card->model,
750 (void) snprintf(pci_card->model,
754 (void) snprintf(pci_card->model,
759 (void) snprintf(pci_card->model, MAXSTRLEN,
760 "%s/pci-bridge", pci_card->model);
762 /* insert this pci_card in the list to be displayed later */
764 *pci_card_list = insert_io_card(*pci_card_list, pci_card);