• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/s390/crypto/

Lines Matching defs:zdev

78  * @zdev: crypto device pointer
84 static int ICAMEX_msg_to_type50MEX_msg(struct zcrypt_device *zdev,
125 * @zdev: crypto device pointer
131 static int ICACRT_msg_to_type50CRT_msg(struct zcrypt_device *zdev,
203 * @zdev: crypto device pointer
210 static int convert_type80(struct zcrypt_device *zdev,
220 zdev->online = 0;
230 static int convert_response(struct zcrypt_device *zdev,
239 return convert_error(zdev, reply);
241 return convert_type80(zdev, reply,
247 zdev->online = 0;
287 * @zdev: pointer to zcrypt_device structure that identifies the
291 static long zcrypt_cex2a_modexpo(struct zcrypt_device *zdev,
304 rc = ICAMEX_msg_to_type50MEX_msg(zdev, &ap_msg, mex);
308 ap_queue_message(zdev->ap_dev, &ap_msg);
312 rc = convert_response(zdev, &ap_msg, mex->outputdata,
316 ap_cancel_message(zdev->ap_dev, &ap_msg);
329 * @zdev: pointer to zcrypt_device structure that identifies the
333 static long zcrypt_cex2a_modexpo_crt(struct zcrypt_device *zdev,
346 rc = ICACRT_msg_to_type50CRT_msg(zdev, &ap_msg, crt);
350 ap_queue_message(zdev->ap_dev, &ap_msg);
354 rc = convert_response(zdev, &ap_msg, crt->outputdata,
358 ap_cancel_message(zdev->ap_dev, &ap_msg);
383 struct zcrypt_device *zdev;
386 zdev = zcrypt_device_alloc(CEX2A_MAX_RESPONSE_SIZE);
387 if (!zdev)
389 zdev->ap_dev = ap_dev;
390 zdev->ops = &zcrypt_cex2a_ops;
391 zdev->online = 1;
392 zdev->user_space_type = ZCRYPT_CEX2A;
393 zdev->type_string = "CEX2A";
394 zdev->min_mod_size = CEX2A_MIN_MOD_SIZE;
395 zdev->max_mod_size = CEX2A_MAX_MOD_SIZE;
396 zdev->short_crt = 1;
397 zdev->speed_rating = CEX2A_SPEED_RATING;
398 ap_dev->reply = &zdev->reply;
399 ap_dev->private = zdev;
400 rc = zcrypt_device_register(zdev);
407 zcrypt_device_free(zdev);
417 struct zcrypt_device *zdev = ap_dev->private;
419 zcrypt_device_unregister(zdev);