Home
last modified time | relevance | path

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

12345

/linux-6.3-rc2/drivers/crypto/virtio/
A Dvirtio_crypto_akcipher_algs.c135 sg_init_one(&outhdr_sg, ctrl, sizeof(*ctrl)); in virtio_crypto_alg_akcipher_init_session()
138 sg_init_one(&key_sg, pkey, keylen); in virtio_crypto_alg_akcipher_init_session()
141 sg_init_one(&inhdr_sg, input, sizeof(*input)); in virtio_crypto_alg_akcipher_init_session()
193 sg_init_one(&outhdr_sg, ctrl, sizeof(*ctrl)); in virtio_crypto_alg_akcipher_close_session()
196 sg_init_one(&inhdr_sg, &ctrl_status->status, sizeof(ctrl_status->status)); in virtio_crypto_alg_akcipher_close_session()
236 sg_init_one(&outhdr_sg, req_data, sizeof(*req_data)); in __virtio_crypto_akcipher_do_req()
247 sg_init_one(&srcdata_sg, src_buf, src_len); in __virtio_crypto_akcipher_do_req()
251 sg_init_one(&srcdata_sg, src_buf, src_len); in __virtio_crypto_akcipher_do_req()
259 sg_init_one(&dstdata_sg, dst_buf, req->dst_len); in __virtio_crypto_akcipher_do_req()
267 sg_init_one(&inhdr_sg, &vc_req->status, sizeof(vc_req->status)); in __virtio_crypto_akcipher_do_req()
A Dvirtio_crypto_skcipher_algs.c161 sg_init_one(&outhdr, ctrl, sizeof(*ctrl)); in virtio_crypto_alg_skcipher_init_session()
165 sg_init_one(&key_sg, cipher_key, keylen); in virtio_crypto_alg_skcipher_init_session()
169 sg_init_one(&inhdr, input, sizeof(*input)); in virtio_crypto_alg_skcipher_init_session()
227 sg_init_one(&outhdr, ctrl, sizeof(*ctrl)); in virtio_crypto_alg_skcipher_close_session()
231 sg_init_one(&status_sg, &ctrl_status->status, sizeof(ctrl_status->status)); in virtio_crypto_alg_skcipher_close_session()
412 sg_init_one(&outhdr, req_data, sizeof(*req_data)); in __virtio_crypto_skcipher_do_req()
433 sg_init_one(&iv_sg, iv, ivsize); in __virtio_crypto_skcipher_do_req()
446 sg_init_one(&status_sg, &vc_req->status, sizeof(vc_req->status)); in __virtio_crypto_skcipher_do_req()
/linux-6.3-rc2/net/bluetooth/
A Decdh_helper.c66 sg_init_one(&src, tmp, 64); in compute_ecdh_secret()
67 sg_init_one(&dst, secret, 32); in compute_ecdh_secret()
163 sg_init_one(&dst, tmp, 64); in generate_ecdh_public_key()
/linux-6.3-rc2/tools/testing/crypto/chacha20-s390/
A Dtest-cipher.c173 sg_init_one(&sk.sginp, plain, data_size); in test_skcipher()
174 sg_init_one(&sk.sgout, cipher, data_size); in test_skcipher()
197 sg_init_one(&sk.sginp, cipher, data_size); in test_skcipher()
198 sg_init_one(&sk.sgout, revert, data_size); in test_skcipher()
/linux-6.3-rc2/drivers/crypto/ccp/
A 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()
A 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()
A Dccp-crypto-sha.c95 sg_init_one(&rctx->ctx_sg, rctx->ctx, sizeof(rctx->ctx)); in ccp_do_sha_update()
109 sg_init_one(&rctx->buf_sg, rctx->buf, rctx->buf_count); in ccp_do_sha_update()
124 sg_init_one(&rctx->buf_sg, rctx->buf, rctx->buf_count); in ccp_do_sha_update()
306 sg_init_one(&ctx->u.sha.opad_sg, ctx->u.sha.opad, block_size); in ccp_sha_setkey()
A 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()
A Dccp-crypto-des3.c56 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()
A 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()
/linux-6.3-rc2/sound/virtio/
A Dvirtio_ctl_msg.c97 sg_init_one(&msg->sg_request, (u8 *)msg + sizeof(*msg), request_size); in virtsnd_ctl_msg_alloc()
98 sg_init_one(&msg->sg_response, (u8 *)msg + sizeof(*msg) + request_size, in virtsnd_ctl_msg_alloc()
279 sg_init_one(&sg, info, count * size); in virtsnd_ctl_query_info()
/linux-6.3-rc2/net/mac80211/
A 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()
/linux-6.3-rc2/drivers/i2c/busses/
A Di2c-virtio.c81 sg_init_one(&out_hdr, &reqs[i].out_hdr, sizeof(reqs[i].out_hdr)); in virtio_i2c_prepare_reqs()
89 sg_init_one(&msg_buf, reqs[i].buf, msgs[i].len); in virtio_i2c_prepare_reqs()
97 sg_init_one(&in_hdr, &reqs[i].in_hdr, sizeof(reqs[i].in_hdr)); in virtio_i2c_prepare_reqs()
/linux-6.3-rc2/drivers/nvdimm/
A 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()
/linux-6.3-rc2/drivers/s390/scsi/
A Dzfcp_fc.c399 sg_init_one(&fc_req->sg_req, gid_pn_req, sizeof(*gid_pn_req)); in zfcp_fc_ns_gid_pn_request()
400 sg_init_one(&fc_req->sg_rsp, gid_pn_rsp, sizeof(*gid_pn_rsp)); in zfcp_fc_ns_gid_pn_request()
560 sg_init_one(&fc_req->sg_req, &fc_req->u.adisc.req, in zfcp_fc_adisc()
562 sg_init_one(&fc_req->sg_rsp, &fc_req->u.adisc.rsp, in zfcp_fc_adisc()
690 sg_init_one(&fc_req->sg_req, &fc_req->u.gpn_ft.req, in zfcp_fc_alloc_sg_env()
863 sg_init_one(&fc_req->sg_req, gspn_req, sizeof(*gspn_req)); in zfcp_fc_gspn()
864 sg_init_one(&fc_req->sg_rsp, gspn_rsp, sizeof(*gspn_rsp)); in zfcp_fc_gspn()
911 sg_init_one(&fc_req->sg_req, rspn_req, sizeof(*rspn_req)); in zfcp_fc_rspn()
912 sg_init_one(&fc_req->sg_rsp, rspn_rsp, sizeof(*rspn_rsp)); in zfcp_fc_rspn()
/linux-6.3-rc2/drivers/nvme/common/
A Dauth.c419 sg_init_one(&dst, host_key, host_key_len); in nvme_auth_gen_pubkey()
444 sg_init_one(&src, ctrl_key, ctrl_key_len); in nvme_auth_gen_shared_secret()
446 sg_init_one(&dst, sess_key, sess_key_len); in nvme_auth_gen_shared_secret()
/linux-6.3-rc2/drivers/virtio/
A Dvirtio_balloon.c150 sg_init_one(&sg, vb->pfns, sizeof(vb->pfns[0]) * vb->num_pfns); in tell_host()
384 sg_init_one(&sg, vb->stats, sizeof(vb->stats[0]) * num_stats); in stats_handle_request()
545 sg_init_one(&sg, vb->stats, sizeof(vb->stats[0]) * num_stats); in init_vqs()
590 sg_init_one(&sg, &vb->cmd_id_active, sizeof(vb->cmd_id_active)); in send_cmd_id_start()
607 sg_init_one(&sg, &vb->cmd_id_stop, sizeof(vb->cmd_id_stop)); in send_cmd_id_stop()
636 sg_init_one(&sg, p, VIRTIO_BALLOON_HINT_BLOCK_BYTES); in get_free_page_and_send()
/linux-6.3-rc2/fs/verity/
A Dhash_algs.c194 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()
/linux-6.3-rc2/drivers/mmc/core/
A Dmmc_test.c303 sg_init_one(&sg, buffer, blksz); in mmc_test_buffer_transfer()
1018 sg_init_one(&sg, test->buffer, 512); in mmc_test_basic_write()
1032 sg_init_one(&sg, test->buffer, 512); in mmc_test_basic_read()
1041 sg_init_one(&sg, test->buffer, 512); in mmc_test_verify_write()
1050 sg_init_one(&sg, test->buffer, 512); in mmc_test_verify_read()
1071 sg_init_one(&sg, test->buffer, size); in mmc_test_multi_write()
1092 sg_init_one(&sg, test->buffer, size); in mmc_test_multi_read()
1106 sg_init_one(&sg, test->buffer, i); in mmc_test_pow2_write()
1124 sg_init_one(&sg, test->buffer, i); in mmc_test_pow2_read()
1142 sg_init_one(&sg, test->buffer, i); in mmc_test_weird_write()
[all …]
/linux-6.3-rc2/crypto/
A 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()
/linux-6.3-rc2/fs/crypto/
A Dfname.c128 sg_init_one(&sg, out, olen); in fscrypt_fname_encrypt()
177 sg_init_one(&src_sg, iname->name, iname->len); in fname_decrypt()
178 sg_init_one(&dst_sg, oname->name, oname->len); in fname_decrypt()
A 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()
/linux-6.3-rc2/drivers/gpio/
A Dgpio-virtio.c80 sg_init_one(&req_sg, req, sizeof(*req)); in _virtio_gpio_req()
81 sg_init_one(&res_sg, res, rxlen); in _virtio_gpio_req()
217 sg_init_one(&req_sg, ireq, sizeof(*ireq)); in virtio_gpio_irq_prepare()
218 sg_init_one(&res_sg, ires, sizeof(*ires)); in virtio_gpio_irq_prepare()
/linux-6.3-rc2/net/vmw_vsock/
A Dvirtio_transport.c115 sg_init_one(&hdr, virtio_vsock_hdr(skb), sizeof(*virtio_vsock_hdr(skb))); in virtio_transport_send_pkt_work()
118 sg_init_one(&buf, skb->data, skb->len); in virtio_transport_send_pkt_work()
237 sg_init_one(&pkt, virtio_vsock_hdr(skb), total_len); in virtio_vsock_rx_fill()
304 sg_init_one(&sg, event, sizeof(*event)); in virtio_vsock_event_fill_one()
/linux-6.3-rc2/net/sunrpc/auth_gss/
A Dgss_krb5_crypto.c128 sg_init_one(sg, out, length); in krb5_encrypt()
182 sg_init_one(sg, out, length); in krb5_decrypt()
254 sg_init_one(sg, header, hdrlen); in make_checksum()
345 sg_init_one(sg, header, hdrlen); in gss_krb5_checksum()
622 sg_init_one(sg, data, len); in gss_krb5_cts_crypt()
945 sg_init_one(sg, iv, ivsize); in krb5_etm_checksum()

Completed in 39 milliseconds

12345