Lines Matching defs:card

563 static inline bool zcrypt_check_card(struct ap_perms *perms, int card)
565 return test_bit_inv(card, perms->apm) ? true : false;
614 return atomic64_read(&zc->card->total_request_count) <
615 atomic64_read(&pref_zc->card->total_request_count);
674 /* Check for usable accelerator or CCA card */
675 if (!zc->online || !zc->card->config || zc->card->chkstop ||
676 !(zc->card->hwinfo.accel || zc->card->hwinfo.cca))
682 /* check if device node has admission for this card */
683 if (!zcrypt_check_card(perms, zc->card->id))
685 /* get weight index of the card device */
687 /* penalty if this msg was previously sent via this card */
689 AP_QID_CARD(tr->last_qid) == zc->card->id) ?
778 /* Check for usable accelerator or CCA card */
779 if (!zc->online || !zc->card->config || zc->card->chkstop ||
780 !(zc->card->hwinfo.accel || zc->card->hwinfo.cca))
786 /* check if device node has admission for this card */
787 if (!zcrypt_check_card(perms, zc->card->id))
789 /* get weight index of the card device */
791 /* penalty if this msg was previously sent via this card */
793 AP_QID_CARD(tr->last_qid) == zc->card->id) ?
894 /* Check for usable CCA card */
895 if (!zc->online || !zc->card->config || zc->card->chkstop ||
896 !zc->card->hwinfo.cca)
898 /* Check for user selected CCA card */
900 xcrb->user_defined != zc->card->id)
902 /* check if request size exceeds card max msg size */
903 if (ap_msg.len > zc->card->maxmsgsize)
905 /* check if device node has admission for this card */
906 if (!zcrypt_check_card(perms, zc->card->id))
908 /* get weight index of the card device */
910 /* penalty if this msg was previously sent via this card */
912 AP_QID_CARD(tr->last_qid) == zc->card->id) ?
1016 int card = AP_QID_CARD(dev_qid), dom = AP_QID_QUEUE(dev_qid);
1019 if ((targets->ap_id == card || targets->ap_id == AUTOSEL_AP) &&
1090 /* Check for usable EP11 card */
1091 if (!zc->online || !zc->card->config || zc->card->chkstop ||
1092 !zc->card->hwinfo.ep11)
1094 /* Check for user selected EP11 card */
1096 !is_desired_ep11_card(zc->card->id, target_num, targets))
1098 /* check if request size exceeds card max msg size */
1099 if (ap_msg.len > zc->card->maxmsgsize)
1101 /* check if device node has admission for this card */
1102 if (!zcrypt_check_card(perms, zc->card->id))
1104 /* get weight index of the card device */
1106 /* penalty if this msg was previously sent via this card */
1108 AP_QID_CARD(tr->last_qid) == zc->card->id) ?
1226 /* Check for usable CCA card */
1227 if (!zc->online || !zc->card->config || zc->card->chkstop ||
1228 !zc->card->hwinfo.cca)
1230 /* get weight index of the card device */
1274 int card, queue;
1282 card = AP_QID_CARD(zq->queue->qid);
1283 if (card >= MAX_ZDEV_CARDIDS)
1286 stat = &devstatus[card * AP_DOMAINS + queue];
1287 stat->hwtype = zc->card->ap_dev.device_type;
1288 stat->functions = zc->card->hwinfo.fac >> 26;
1301 int card, queue;
1306 card = AP_QID_CARD(zq->queue->qid);
1308 stat = &devstatus[card * AP_DOMAINS + queue];
1309 stat->hwtype = zc->card->ap_dev.device_type;
1310 stat->functions = zc->card->hwinfo.fac >> 26;
1319 int zcrypt_device_status_ext(int card, int queue,
1330 if (card == AP_QID_CARD(zq->queue->qid) &&
1332 devstat->hwtype = zc->card->ap_dev.device_type;
1333 devstat->functions = zc->card->hwinfo.fac >> 26;
1351 int card;
1357 card = AP_QID_CARD(zq->queue->qid);
1359 card >= max_adapters)
1361 status[card] = zc->online ? zc->user_space_type : 0x0d;
1371 int card;
1378 card = AP_QID_CARD(zq->queue->qid);
1380 card >= max_adapters)
1383 qdepth[card] =
1397 int card;
1405 card = AP_QID_CARD(zq->queue->qid);
1407 card >= max_adapters)
1412 reqcnt[card] = (cnt < UINT_MAX) ? (u32)cnt : UINT_MAX;