Home
last modified time | relevance | path

Searched refs:sg_init_one (Results 1 – 25 of 113) sorted by relevance

12345

/kernel/linux/linux-5.10/drivers/crypto/virtio/
Dvirtio_crypto_algs.c155 sg_init_one(&outhdr, &vcrypto->ctrl, sizeof(vcrypto->ctrl)); in virtio_crypto_alg_skcipher_init_session()
159 sg_init_one(&key_sg, cipher_key, keylen); in virtio_crypto_alg_skcipher_init_session()
163 sg_init_one(&inhdr, &vcrypto->input, sizeof(vcrypto->input)); in virtio_crypto_alg_skcipher_init_session()
232 sg_init_one(&outhdr, &vcrypto->ctrl, sizeof(vcrypto->ctrl)); in virtio_crypto_alg_skcipher_close_session()
236 sg_init_one(&status_sg, &vcrypto->ctrl_status.status, in virtio_crypto_alg_skcipher_close_session()
425 sg_init_one(&outhdr, req_data, sizeof(*req_data)); in __virtio_crypto_skcipher_do_req()
446 sg_init_one(&iv_sg, iv, ivsize); in __virtio_crypto_skcipher_do_req()
459 sg_init_one(&status_sg, &vc_req->status, sizeof(vc_req->status)); in __virtio_crypto_skcipher_do_req()
/kernel/linux/linux-5.10/net/bluetooth/
Decdh_helper.c84 sg_init_one(&src, tmp, 64); in compute_ecdh_secret()
85 sg_init_one(&dst, secret, 32); in compute_ecdh_secret()
187 sg_init_one(&dst, tmp, 64); in generate_ecdh_public_key()
/kernel/linux/linux-5.10/drivers/crypto/ccp/
Dccp-crypto-aes-cmac.c102 sg_init_one(&rctx->iv_sg, rctx->iv, sizeof(rctx->iv)); in ccp_do_cmac_update()
116 sg_init_one(&rctx->buf_sg, rctx->buf, rctx->buf_count); in ccp_do_cmac_update()
139 sg_init_one(&rctx->pad_sg, rctx->pad, pad_length); in ccp_do_cmac_update()
323 sg_init_one(&ctx->u.aes.k1_sg, ctx->u.aes.k1, sizeof(ctx->u.aes.k1)); in ccp_aes_cmac_setkey()
324 sg_init_one(&ctx->u.aes.k2_sg, ctx->u.aes.k2, sizeof(ctx->u.aes.k2)); in ccp_aes_cmac_setkey()
330 sg_init_one(&ctx->u.aes.key_sg, ctx->u.aes.key, key_len); in ccp_aes_cmac_setkey()
Dccp-crypto-rsa.c148 sg_init_one(&ctx->u.rsa.n_sg, ctx->u.rsa.n_buf, ctx->u.rsa.n_len); in ccp_rsa_setkey()
160 sg_init_one(&ctx->u.rsa.e_sg, ctx->u.rsa.e_buf, ctx->u.rsa.e_len); in ccp_rsa_setkey()
168 sg_init_one(&ctx->u.rsa.d_sg, in ccp_rsa_setkey()
Dccp-crypto-sha.c94 sg_init_one(&rctx->ctx_sg, rctx->ctx, sizeof(rctx->ctx)); in ccp_do_sha_update()
108 sg_init_one(&rctx->buf_sg, rctx->buf, rctx->buf_count); in ccp_do_sha_update()
123 sg_init_one(&rctx->buf_sg, rctx->buf, rctx->buf_count); in ccp_do_sha_update()
305 sg_init_one(&ctx->u.sha.opad_sg, ctx->u.sha.opad, block_size); in ccp_sha_setkey()
Dccp-crypto-des3.c55 sg_init_one(&ctx->u.des3.key_sg, ctx->u.des3.key, key_len); in ccp_des3_setkey()
84 sg_init_one(iv_sg, rctx->iv, iv_len); in ccp_des3_crypt()
Dccp-crypto-aes-galois.c52 sg_init_one(&ctx->u.aes.key_sg, ctx->u.aes.key, key_len); in ccp_aes_gcm_setkey()
113 sg_init_one(iv_sg, rctx->iv, iv_len); in ccp_aes_gcm_crypt()
Dccp-crypto-aes-xts.c99 sg_init_one(&ctx->u.aes.key_sg, ctx->u.aes.key, key_len); in ccp_aes_xts_setkey()
165 sg_init_one(&rctx->iv_sg, rctx->iv, AES_BLOCK_SIZE); in ccp_aes_xts_crypt()
Dccp-crypto-aes.c60 sg_init_one(&ctx->u.aes.key_sg, ctx->u.aes.key, key_len); in ccp_aes_setkey()
89 sg_init_one(iv_sg, rctx->iv, iv_len); in ccp_aes_crypt()
/kernel/linux/linux-5.10/net/mac80211/
Dfils_aead.c132 sg_init_one(src, tmp, plain_len); in aes_siv_encrypt()
133 sg_init_one(dst, out + AES_BLOCK_SIZE, plain_len); in aes_siv_encrypt()
191 sg_init_one(src, iv_crypt + AES_BLOCK_SIZE, crypt_len); in aes_siv_decrypt()
192 sg_init_one(dst, out, crypt_len); in aes_siv_decrypt()
/kernel/linux/linux-5.10/drivers/nvdimm/
Dnd_virtio.c57 sg_init_one(&sg, &req_data->req, sizeof(req_data->req)); in virtio_pmem_flush()
59 sg_init_one(&ret, &req_data->resp.ret, sizeof(req_data->resp)); in virtio_pmem_flush()
/kernel/linux/linux-5.10/drivers/mmc/core/
Dsd_ops.c245 sg_init_one(&sg, scr, 8); in mmc_app_send_scr()
292 sg_init_one(&sg, resp, 64); in mmc_sd_switch()
333 sg_init_one(&sg, ssr, 64); in mmc_app_sd_status()
Dmmc_test.c304 sg_init_one(&sg, buffer, blksz); in mmc_test_buffer_transfer()
928 sg_init_one(&sg, test->buffer, blocks * blksz); in mmc_test_broken_transfer()
1038 sg_init_one(&sg, test->buffer, 512); in mmc_test_basic_write()
1052 sg_init_one(&sg, test->buffer, 512); in mmc_test_basic_read()
1061 sg_init_one(&sg, test->buffer, 512); in mmc_test_verify_write()
1070 sg_init_one(&sg, test->buffer, 512); in mmc_test_verify_read()
1091 sg_init_one(&sg, test->buffer, size); in mmc_test_multi_write()
1112 sg_init_one(&sg, test->buffer, size); in mmc_test_multi_read()
1126 sg_init_one(&sg, test->buffer, i); in mmc_test_pow2_write()
1144 sg_init_one(&sg, test->buffer, i); in mmc_test_pow2_read()
[all …]
/kernel/linux/linux-5.10/drivers/s390/scsi/
Dzfcp_fc.c388 sg_init_one(&fc_req->sg_req, gid_pn_req, sizeof(*gid_pn_req)); in zfcp_fc_ns_gid_pn_request()
389 sg_init_one(&fc_req->sg_rsp, gid_pn_rsp, sizeof(*gid_pn_rsp)); in zfcp_fc_ns_gid_pn_request()
549 sg_init_one(&fc_req->sg_req, &fc_req->u.adisc.req, in zfcp_fc_adisc()
551 sg_init_one(&fc_req->sg_rsp, &fc_req->u.adisc.rsp, in zfcp_fc_adisc()
679 sg_init_one(&fc_req->sg_req, &fc_req->u.gpn_ft.req, in zfcp_fc_alloc_sg_env()
852 sg_init_one(&fc_req->sg_req, gspn_req, sizeof(*gspn_req)); in zfcp_fc_gspn()
853 sg_init_one(&fc_req->sg_rsp, gspn_rsp, sizeof(*gspn_rsp)); in zfcp_fc_gspn()
900 sg_init_one(&fc_req->sg_req, rspn_req, sizeof(*rspn_req)); in zfcp_fc_rspn()
901 sg_init_one(&fc_req->sg_rsp, rspn_rsp, sizeof(*rspn_rsp)); in zfcp_fc_rspn()
/kernel/linux/linux-5.10/net/vmw_vsock/
Dvirtio_transport.c122 sg_init_one(&hdr, &pkt->hdr, sizeof(pkt->hdr)); in virtio_transport_send_pkt_work()
125 sg_init_one(&buf, pkt->buf, pkt->len); in virtio_transport_send_pkt_work()
269 sg_init_one(&hdr, &pkt->hdr, sizeof(pkt->hdr)); in virtio_vsock_rx_fill()
272 sg_init_one(&buf, pkt->buf, buf_len); in virtio_vsock_rx_fill()
338 sg_init_one(&sg, event, sizeof(*event)); in virtio_vsock_event_fill_one()
/kernel/linux/linux-5.10/fs/crypto/
Dfname.c116 sg_init_one(&sg, out, olen); in fscrypt_fname_encrypt()
164 sg_init_one(&src_sg, iname->name, iname->len); in fname_decrypt()
165 sg_init_one(&dst_sg, oname->name, oname->len); in fname_decrypt()
Dkeysetup_v1.c75 sg_init_one(&src_sg, master_key, derived_keysize); in derive_key_aes()
76 sg_init_one(&dst_sg, derived_key, derived_keysize); in derive_key_aes()
/kernel/linux/linux-5.10/fs/verity/
Dhash_algs.c192 sg_init_one(&sg, padded_salt, padded_salt_size); in fsverity_prepare_hash_state()
292 sg_init_one(&sg, data, size); in fsverity_hash_buffer()
/kernel/linux/linux-5.10/drivers/virtio/
Dvirtio_balloon.c157 sg_init_one(&sg, vb->pfns, sizeof(vb->pfns[0]) * vb->num_pfns); in tell_host()
391 sg_init_one(&sg, vb->stats, sizeof(vb->stats[0]) * num_stats); in stats_handle_request()
552 sg_init_one(&sg, vb->stats, sizeof(vb->stats[0]) * num_stats); in init_vqs()
597 sg_init_one(&sg, &vb->cmd_id_active, sizeof(vb->cmd_id_active)); in send_cmd_id_start()
614 sg_init_one(&sg, &vb->cmd_id_stop, sizeof(vb->cmd_id_stop)); in send_cmd_id_stop()
643 sg_init_one(&sg, p, VIRTIO_BALLOON_HINT_BLOCK_BYTES); in get_free_page_and_send()
/kernel/linux/linux-5.10/net/sunrpc/auth_gss/
Dgss_krb5_crypto.c80 sg_init_one(sg, out, length); in krb5_encrypt()
118 sg_init_one(sg, out, length); in krb5_decrypt()
190 sg_init_one(sg, header, hdrlen); in make_checksum()
286 sg_init_one(sg, header, hdrlen); in make_checksum_v2()
575 sg_init_one(sg, data, len); in gss_krb5_cts_crypt()
/kernel/linux/linux-5.10/crypto/
Dchacha20poly1305.c179 sg_init_one(preq->src, &preq->tail, sizeof(preq->tail)); in poly_tail()
209 sg_init_one(preq->src, preq->pad, padlen); in poly_cipherpad()
268 sg_init_one(preq->src, preq->pad, padlen); in poly_adpad()
318 sg_init_one(preq->src, rctx->key, sizeof(rctx->key)); in poly_setkey()
377 sg_init_one(creq->src, rctx->key, sizeof(rctx->key)); in poly_genkey()
/kernel/linux/linux-5.10/tools/virtio/linux/
Dscatterlist.h166 static inline void sg_init_one(struct scatterlist *sg, in sg_init_one() function
/kernel/linux/linux-5.10/net/rxrpc/
Drxkad.c133 sg_init_one(&sg, tmpbuf, tmpsize); in rxkad_prime_packet_security()
201 sg_init_one(&sg, sechdr, 8); in rxkad_secure_packet_auth()
244 sg_init_one(&sg[0], sechdr, sizeof(rxkhdr)); in rxkad_secure_packet_encrypt()
314 sg_init_one(&sg, call->crypto_buf, 8); in rxkad_secure_packet()
557 sg_init_one(&sg, call->crypto_buf, 8); in rxkad_verify_packet()
941 sg_init_one(&sg[0], ticket, ticket_len); in rxkad_decrypt_ticket()
/kernel/linux/linux-5.10/drivers/crypto/qce/
Dsha.c97 sg_init_one(&rctx->result_sg, qce->dma.result_buf, QCE_RESULT_BUF_SZ); in qce_ahash_async_req_handle()
328 sg_init_one(rctx->sg, rctx->tmpbuf, rctx->buflen); in qce_ahash_final()
413 sg_init_one(&sg, buf, keylen); in qce_ahash_hmac_setkey()
/kernel/linux/linux-5.10/crypto/asymmetric_keys/
Dpublic_key.c213 sg_init_one(&in_sg, in, params->in_len); in software_key_eds_op()
214 sg_init_one(&out_sg, out, params->out_len); in software_key_eds_op()

12345