Lines Matching full:ac
82 struct ap_card *ac = to_ap_card(dev); in cca_serialnr_show() local
83 struct zcrypt_card *zc = ac->private; in cca_serialnr_show()
88 cca_get_info(ac->id, ap_domain_index, &ci, zc->online); in cca_serialnr_show()
194 struct ap_card *ac = to_ap_card(dev); in ep11_api_ordinalnr_show() local
195 struct zcrypt_card *zc = ac->private; in ep11_api_ordinalnr_show()
199 ep11_get_card_info(ac->id, &ci, zc->online); in ep11_api_ordinalnr_show()
215 struct ap_card *ac = to_ap_card(dev); in ep11_fw_version_show() local
216 struct zcrypt_card *zc = ac->private; in ep11_fw_version_show()
220 ep11_get_card_info(ac->id, &ci, zc->online); in ep11_fw_version_show()
238 struct ap_card *ac = to_ap_card(dev); in ep11_serialnr_show() local
239 struct zcrypt_card *zc = ac->private; in ep11_serialnr_show()
243 ep11_get_card_info(ac->id, &ci, zc->online); in ep11_serialnr_show()
272 struct ap_card *ac = to_ap_card(dev); in ep11_card_op_modes_show() local
273 struct zcrypt_card *zc = ac->private; in ep11_card_op_modes_show()
277 ep11_get_card_info(ac->id, &ci, zc->online); in ep11_card_op_modes_show()
439 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_cex4_card_probe() local
446 zc->card = ac; in zcrypt_cex4_card_probe()
447 ac->private = zc; in zcrypt_cex4_card_probe()
448 if (ap_test_bit(&ac->functions, AP_FUNC_ACCEL)) { in zcrypt_cex4_card_probe()
449 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
453 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
457 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe()
470 if (ap_test_bit(&ac->functions, AP_FUNC_MEX4K) && in zcrypt_cex4_card_probe()
471 ap_test_bit(&ac->functions, AP_FUNC_CRT4K)) { in zcrypt_cex4_card_probe()
480 } else if (ap_test_bit(&ac->functions, AP_FUNC_COPRO)) { in zcrypt_cex4_card_probe()
481 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
488 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
495 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe()
513 } else if (ap_test_bit(&ac->functions, AP_FUNC_EP11)) { in zcrypt_cex4_card_probe()
514 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
518 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
522 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe()
545 ac->private = NULL; in zcrypt_cex4_card_probe()
550 if (ap_test_bit(&ac->functions, AP_FUNC_COPRO)) { in zcrypt_cex4_card_probe()
555 ac->private = NULL; in zcrypt_cex4_card_probe()
558 } else if (ap_test_bit(&ac->functions, AP_FUNC_EP11)) { in zcrypt_cex4_card_probe()
563 ac->private = NULL; in zcrypt_cex4_card_probe()
577 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_cex4_card_remove() local
578 struct zcrypt_card *zc = ac->private; in zcrypt_cex4_card_remove()
580 if (ap_test_bit(&ac->functions, AP_FUNC_COPRO)) in zcrypt_cex4_card_remove()
582 else if (ap_test_bit(&ac->functions, AP_FUNC_EP11)) in zcrypt_cex4_card_remove()