Lines Matching refs:ret
479 int ret; in blk_crypto_ioctl_import_key() local
492 ret = -EFAULT; in blk_crypto_ioctl_import_key()
495 ret = blk_crypto_import_key(profile, raw_key, arg.raw_key_size, lt_key); in blk_crypto_ioctl_import_key()
496 if (ret < 0) in blk_crypto_ioctl_import_key()
498 if (ret > arg.lt_key_size) { in blk_crypto_ioctl_import_key()
499 ret = -EOVERFLOW; in blk_crypto_ioctl_import_key()
502 arg.lt_key_size = ret; in blk_crypto_ioctl_import_key()
506 ret = -EFAULT; in blk_crypto_ioctl_import_key()
509 ret = 0; in blk_crypto_ioctl_import_key()
514 return ret; in blk_crypto_ioctl_import_key()
522 int ret; in blk_crypto_ioctl_generate_key() local
530 ret = blk_crypto_generate_key(profile, lt_key); in blk_crypto_ioctl_generate_key()
531 if (ret < 0) in blk_crypto_ioctl_generate_key()
533 if (ret > arg.lt_key_size) { in blk_crypto_ioctl_generate_key()
534 ret = -EOVERFLOW; in blk_crypto_ioctl_generate_key()
537 arg.lt_key_size = ret; in blk_crypto_ioctl_generate_key()
541 ret = -EFAULT; in blk_crypto_ioctl_generate_key()
544 ret = 0; in blk_crypto_ioctl_generate_key()
548 return ret; in blk_crypto_ioctl_generate_key()
557 int ret; in blk_crypto_ioctl_prepare_key() local
570 ret = -EFAULT; in blk_crypto_ioctl_prepare_key()
573 ret = blk_crypto_prepare_key(profile, lt_key, arg.lt_key_size, eph_key); in blk_crypto_ioctl_prepare_key()
574 if (ret < 0) in blk_crypto_ioctl_prepare_key()
576 if (ret > arg.eph_key_size) { in blk_crypto_ioctl_prepare_key()
577 ret = -EOVERFLOW; in blk_crypto_ioctl_prepare_key()
580 arg.eph_key_size = ret; in blk_crypto_ioctl_prepare_key()
584 ret = -EFAULT; in blk_crypto_ioctl_prepare_key()
587 ret = 0; in blk_crypto_ioctl_prepare_key()
592 return ret; in blk_crypto_ioctl_prepare_key()