Lines Matching refs:ac

81 	struct ap_card *ac = to_ap_card(dev);  in serialnr_show()  local
82 struct zcrypt_card *zc = ac->private; in serialnr_show()
87 cca_get_info(ac->id, ap_domain_index, &ci, zc->online); in serialnr_show()
191 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_cex4_card_probe() local
198 zc->card = ac; in zcrypt_cex4_card_probe()
199 ac->private = zc; in zcrypt_cex4_card_probe()
200 if (ap_test_bit(&ac->functions, AP_FUNC_ACCEL)) { in zcrypt_cex4_card_probe()
201 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
206 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
211 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe()
226 if (ap_test_bit(&ac->functions, AP_FUNC_MEX4K) && in zcrypt_cex4_card_probe()
227 ap_test_bit(&ac->functions, AP_FUNC_CRT4K)) { in zcrypt_cex4_card_probe()
236 } else if (ap_test_bit(&ac->functions, AP_FUNC_COPRO)) { in zcrypt_cex4_card_probe()
237 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
245 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
253 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe()
273 } else if (ap_test_bit(&ac->functions, AP_FUNC_EP11)) { in zcrypt_cex4_card_probe()
274 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
279 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
284 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe()
309 ac->private = NULL; in zcrypt_cex4_card_probe()
314 if (ap_test_bit(&ac->functions, AP_FUNC_COPRO)) { in zcrypt_cex4_card_probe()
331 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_cex4_card_remove() local
332 struct zcrypt_card *zc = ac->private; in zcrypt_cex4_card_remove()
334 if (ap_test_bit(&ac->functions, AP_FUNC_COPRO)) in zcrypt_cex4_card_remove()