Lines Matching refs:param

20 	struct spdk_accel_crypto_key_create_param param;  member
30 free(r->param.cipher); in free_rpc_construct_crypto()
31 if (r->param.hex_key) { in free_rpc_construct_crypto()
32 memset(r->param.hex_key, 0, strnlen(r->param.hex_key, SPDK_ACCEL_CRYPTO_KEY_MAX_HEX_LENGTH)); in free_rpc_construct_crypto()
33 free(r->param.hex_key); in free_rpc_construct_crypto()
35 if (r->param.hex_key2) { in free_rpc_construct_crypto()
36 memset(r->param.hex_key2, 0, strnlen(r->param.hex_key2, SPDK_ACCEL_CRYPTO_KEY_MAX_HEX_LENGTH)); in free_rpc_construct_crypto()
37 free(r->param.hex_key2); in free_rpc_construct_crypto()
39 free(r->param.key_name); in free_rpc_construct_crypto()
47 {"key", offsetof(struct rpc_construct_crypto, param.hex_key), spdk_json_decode_string, true},
48 {"cipher", offsetof(struct rpc_construct_crypto, param.cipher), spdk_json_decode_string, true},
49 {"key2", offsetof(struct rpc_construct_crypto, param.hex_key2), spdk_json_decode_string, true},
50 {"key_name", offsetof(struct rpc_construct_crypto, param.key_name), spdk_json_decode_string, true},
108 if (req.param.key_name) { in rpc_bdev_crypto_create()
110 key = spdk_accel_crypto_key_get(req.param.key_name); in rpc_bdev_crypto_create()
112 if (req.param.hex_key || req.param.cipher || req.crypto_pmd) { in rpc_bdev_crypto_create()
115 SPDK_NOTICELOG("Found key \"%s\"\n", req.param.key_name); in rpc_bdev_crypto_create()
121 if (req.param.key_name) { in rpc_bdev_crypto_create()
127 if (req.param.cipher == NULL) { in rpc_bdev_crypto_create()
128 req.param.cipher = strdup(BDEV_CRYPTO_DEFAULT_CIPHER); in rpc_bdev_crypto_create()
129 if (req.param.cipher == NULL) { in rpc_bdev_crypto_create()
139 req.param.key_name = calloc(1, MAX_KEY_NAME_LEN); in rpc_bdev_crypto_create()
140 if (!req.param.key_name) { in rpc_bdev_crypto_create()
146 snprintf(req.param.key_name, MAX_KEY_NAME_LEN, "%s_%s", req.name, req.param.cipher); in rpc_bdev_crypto_create()
149 key = spdk_accel_crypto_key_get(req.param.key_name); in rpc_bdev_crypto_create()
151 SPDK_NOTICELOG("Found key \"%s\"\n", req.param.key_name); in rpc_bdev_crypto_create()
153 rc = spdk_accel_crypto_key_create(&req.param); in rpc_bdev_crypto_create()
155 key = spdk_accel_crypto_key_get(req.param.key_name); in rpc_bdev_crypto_create()