Lines Matching refs:ac
80 struct ap_card *ac = to_ap_card(dev); in cca_serialnr_show() local
85 cca_get_info(ac->id, ap_domain_index, &ci, zc->online); in cca_serialnr_show()
192 struct ap_card *ac = to_ap_card(dev); in ep11_api_ordinalnr_show() local
196 ep11_get_card_info(ac->id, &ci, zc->online); in ep11_api_ordinalnr_show()
213 struct ap_card *ac = to_ap_card(dev); in ep11_fw_version_show() local
217 ep11_get_card_info(ac->id, &ci, zc->online); in ep11_fw_version_show()
236 struct ap_card *ac = to_ap_card(dev); in ep11_serialnr_show() local
240 ep11_get_card_info(ac->id, &ci, zc->online); in ep11_serialnr_show()
270 struct ap_card *ac = to_ap_card(dev); in ep11_card_op_modes_show() local
274 ep11_get_card_info(ac->id, &ci, zc->online); in ep11_card_op_modes_show()
436 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_cex4_card_probe() local
443 zc->card = ac; in zcrypt_cex4_card_probe()
445 if (ap_test_bit(&ac->functions, AP_FUNC_ACCEL)) { in zcrypt_cex4_card_probe()
446 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
450 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
454 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe()
467 if (ap_test_bit(&ac->functions, AP_FUNC_MEX4K) && in zcrypt_cex4_card_probe()
468 ap_test_bit(&ac->functions, AP_FUNC_CRT4K)) { in zcrypt_cex4_card_probe()
477 } else if (ap_test_bit(&ac->functions, AP_FUNC_COPRO)) { in zcrypt_cex4_card_probe()
478 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
485 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
492 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe()
510 } else if (ap_test_bit(&ac->functions, AP_FUNC_EP11)) { in zcrypt_cex4_card_probe()
511 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe()
515 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe()
519 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe()
546 if (ap_test_bit(&ac->functions, AP_FUNC_COPRO)) { in zcrypt_cex4_card_probe()
553 } else if (ap_test_bit(&ac->functions, AP_FUNC_EP11)) { in zcrypt_cex4_card_probe()
572 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_cex4_card_remove() local
574 if (ap_test_bit(&ac->functions, AP_FUNC_COPRO)) in zcrypt_cex4_card_remove()
576 else if (ap_test_bit(&ac->functions, AP_FUNC_EP11)) in zcrypt_cex4_card_remove()