Lines Matching defs:card

83 /* Default permissions (ioctl, card and domain masking) */
270 * ap_test_config_card_id(): Test, whether an AP card ID is configured.
272 * Returns 0 if the card is not configured
273 * 1 if the card is configured or
619 if (aq->card->hwinfo.accel)
621 else if (aq->card->hwinfo.cca)
623 else if (aq->card->hwinfo.ep11)
786 int rc, card, queue, devres, drvres;
789 card = AP_QID_CARD(to_ap_queue(dev)->qid);
792 devres = test_bit_inv(card, ap_perms.apm) &&
799 __func__, card, queue);
803 __func__, card, queue);
818 * @card: the APID of the adapter card to check
826 int ap_owned_by_def_drv(int card, int queue)
830 if (card < 0 || card >= AP_DEVICES || queue < 0 || queue >= AP_DOMAINS)
833 if (test_bit_inv(card, ap_perms.apm) &&
856 int card, queue, rc = 0;
858 for (card = 0; !rc && card < AP_DEVICES; card++)
859 if (test_bit_inv(card, apm) &&
860 test_bit_inv(card, ap_perms.apm))
874 int card, queue, devres, drvres, rc = -ENODEV;
886 card = AP_QID_CARD(to_ap_queue(dev)->qid);
889 devres = test_bit_inv(card, ap_perms.apm) &&
903 /* Add queue/card to list of active queues/cards */
942 /* Remove queue/card from list of active queues/cards */
1629 int card, dom;
1645 for (card = 0; card <= ap_max_adapter_id; card++) {
1646 if (!ap_test_config_card_id(card) ||
1647 !test_bit_inv(card, ap_perms.apm))
1649 status = ap_test_queue(AP_MKQID(card, dom),
1655 if (card <= ap_max_adapter_id)
1716 * matches for the card device with the given id
1787 * Remove card device and associated queue devices.
1854 aq->card = ac;
1969 /* Is there currently a card device for this adapter ? */
1978 AP_DBF_INFO("%s(%d) ap not in config any more, rm card and queue devs\n",
1988 * If no card device exists, build one. If a card device exists, check
2002 AP_DBF_INFO("%s(%d) no type info (no APQN found), rm card and queue devs\n",
2015 AP_DBF_INFO("%s(%d) no valid type (0) info, rm card and queue devs\n",
2025 hwinfo.value &= TAPQ_CARD_HWINFO_MASK; /* filter card specific hwinfo */
2027 /* Check APQN against existing card device for changes */
2029 AP_DBF_INFO("%s(%d) hwtype %d changed, rm card and queue devs\n",
2035 AP_DBF_INFO("%s(%d) functions 0x%08x changed, rm card and queue devs\n",
2045 AP_DBF_INFO("%s(%d) card dev checkstop on\n",
2050 AP_DBF_INFO("%s(%d) card dev checkstop off\n",
2056 AP_DBF_INFO("%s(%d) card dev config off\n",
2061 AP_DBF_INFO("%s(%d) card dev config on\n",
2069 /* Build a new card device */
2087 dev_set_name(dev, "card%02x", ap);
2088 /* maybe enlarge ap_max_msg_size to support this card */
2095 /* Register the new card device with AP bus */
2106 AP_DBF_INFO("%s(%d) new (decfg) card dev type=%d func=0x%08x created\n",
2109 AP_DBF_INFO("%s(%d) new (chkstop) card dev type=%d func=0x%08x created\n",
2112 AP_DBF_INFO("%s(%d) new card dev type=%d func=0x%08x created\n",
2116 /* Verify the domains and the queue devices for this card */
2119 /* release the card device */