Lines Matching refs:zc
71 struct zcrypt_card *zc = ac->private; in cca_serialnr_show() local
76 cca_get_info(ac->id, ap_domain_index, &ci, zc->online); in cca_serialnr_show()
257 struct zcrypt_card *zc; in zcrypt_cex2c_card_probe() local
260 zc = zcrypt_card_alloc(); in zcrypt_cex2c_card_probe()
261 if (!zc) in zcrypt_cex2c_card_probe()
263 zc->card = ac; in zcrypt_cex2c_card_probe()
264 ac->private = zc; in zcrypt_cex2c_card_probe()
267 zc->user_space_type = ZCRYPT_CEX2C; in zcrypt_cex2c_card_probe()
268 zc->type_string = "CEX2C"; in zcrypt_cex2c_card_probe()
269 zc->speed_rating = CEX2C_SPEED_IDX; in zcrypt_cex2c_card_probe()
270 zc->min_mod_size = CEX2C_MIN_MOD_SIZE; in zcrypt_cex2c_card_probe()
271 zc->max_mod_size = CEX2C_MAX_MOD_SIZE; in zcrypt_cex2c_card_probe()
272 zc->max_exp_bit_length = CEX2C_MAX_MOD_SIZE; in zcrypt_cex2c_card_probe()
275 zc->user_space_type = ZCRYPT_CEX3C; in zcrypt_cex2c_card_probe()
276 zc->type_string = "CEX3C"; in zcrypt_cex2c_card_probe()
277 zc->speed_rating = CEX3C_SPEED_IDX; in zcrypt_cex2c_card_probe()
278 zc->min_mod_size = CEX3C_MIN_MOD_SIZE; in zcrypt_cex2c_card_probe()
279 zc->max_mod_size = CEX3C_MAX_MOD_SIZE; in zcrypt_cex2c_card_probe()
280 zc->max_exp_bit_length = CEX3C_MAX_MOD_SIZE; in zcrypt_cex2c_card_probe()
283 zcrypt_card_free(zc); in zcrypt_cex2c_card_probe()
286 zc->online = 1; in zcrypt_cex2c_card_probe()
288 rc = zcrypt_card_register(zc); in zcrypt_cex2c_card_probe()
291 zcrypt_card_free(zc); in zcrypt_cex2c_card_probe()
299 zcrypt_card_unregister(zc); in zcrypt_cex2c_card_probe()
301 zcrypt_card_free(zc); in zcrypt_cex2c_card_probe()
315 struct zcrypt_card *zc = to_ap_card(&ap_dev->device)->private; in zcrypt_cex2c_card_remove() local
319 if (zc) in zcrypt_cex2c_card_remove()
320 zcrypt_card_unregister(zc); in zcrypt_cex2c_card_remove()