Lines Matching refs:zc
85 struct zcrypt_card *zc; in zcrypt_cex2a_card_probe() local
88 zc = zcrypt_card_alloc(); in zcrypt_cex2a_card_probe()
89 if (!zc) in zcrypt_cex2a_card_probe()
91 zc->card = ac; in zcrypt_cex2a_card_probe()
92 dev_set_drvdata(&ap_dev->device, zc); in zcrypt_cex2a_card_probe()
95 zc->min_mod_size = CEX2A_MIN_MOD_SIZE; in zcrypt_cex2a_card_probe()
96 zc->max_mod_size = CEX2A_MAX_MOD_SIZE; in zcrypt_cex2a_card_probe()
97 zc->speed_rating = CEX2A_SPEED_IDX; in zcrypt_cex2a_card_probe()
98 zc->max_exp_bit_length = CEX2A_MAX_MOD_SIZE; in zcrypt_cex2a_card_probe()
99 zc->type_string = "CEX2A"; in zcrypt_cex2a_card_probe()
100 zc->user_space_type = ZCRYPT_CEX2A; in zcrypt_cex2a_card_probe()
102 zc->min_mod_size = CEX2A_MIN_MOD_SIZE; in zcrypt_cex2a_card_probe()
103 zc->max_mod_size = CEX2A_MAX_MOD_SIZE; in zcrypt_cex2a_card_probe()
104 zc->max_exp_bit_length = CEX2A_MAX_MOD_SIZE; in zcrypt_cex2a_card_probe()
107 zc->max_mod_size = CEX3A_MAX_MOD_SIZE; in zcrypt_cex2a_card_probe()
108 zc->max_exp_bit_length = CEX3A_MAX_MOD_SIZE; in zcrypt_cex2a_card_probe()
110 zc->speed_rating = CEX3A_SPEED_IDX; in zcrypt_cex2a_card_probe()
111 zc->type_string = "CEX3A"; in zcrypt_cex2a_card_probe()
112 zc->user_space_type = ZCRYPT_CEX3A; in zcrypt_cex2a_card_probe()
114 zcrypt_card_free(zc); in zcrypt_cex2a_card_probe()
117 zc->online = 1; in zcrypt_cex2a_card_probe()
119 rc = zcrypt_card_register(zc); in zcrypt_cex2a_card_probe()
121 zcrypt_card_free(zc); in zcrypt_cex2a_card_probe()
133 struct zcrypt_card *zc = dev_get_drvdata(&ap_dev->device); in zcrypt_cex2a_card_remove() local
135 zcrypt_card_unregister(zc); in zcrypt_cex2a_card_remove()