/linux/drivers/crypto/virtio/ |
A D | virtio_crypto_algs.c | 155 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()
|
/linux/drivers/crypto/ccp/ |
A D | ccp-crypto-aes-cmac.c | 102 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 D | ccp-crypto-rsa.c | 148 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 D | ccp-crypto-sha.c | 95 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 D | ccp-crypto-aes-galois.c | 52 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 D | ccp-crypto-des3.c | 55 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 D | ccp-crypto-aes-xts.c | 99 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/net/bluetooth/ |
A D | ecdh_helper.c | 84 sg_init_one(&src, tmp, 64); in compute_ecdh_secret() 85 sg_init_one(&dst, secret, 32); in compute_ecdh_secret() 185 sg_init_one(&dst, tmp, 64); in generate_ecdh_public_key()
|
/linux/net/mac80211/ |
A D | fils_aead.c | 132 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/sound/virtio/ |
A D | virtio_ctl_msg.c | 97 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/drivers/i2c/busses/ |
A D | i2c-virtio.c | 81 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/drivers/nvdimm/ |
A D | nd_virtio.c | 57 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/drivers/s390/scsi/ |
A D | zfcp_fc.c | 388 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() 546 sg_init_one(&fc_req->sg_req, &fc_req->u.adisc.req, in zfcp_fc_adisc() 548 sg_init_one(&fc_req->sg_rsp, &fc_req->u.adisc.rsp, in zfcp_fc_adisc() 668 sg_init_one(&fc_req->sg_req, &fc_req->u.gpn_ft.req, in zfcp_fc_alloc_sg_env() 841 sg_init_one(&fc_req->sg_req, gspn_req, sizeof(*gspn_req)); in zfcp_fc_gspn() 842 sg_init_one(&fc_req->sg_rsp, gspn_rsp, sizeof(*gspn_rsp)); in zfcp_fc_gspn() 889 sg_init_one(&fc_req->sg_req, rspn_req, sizeof(*rspn_req)); in zfcp_fc_rspn() 890 sg_init_one(&fc_req->sg_rsp, rspn_rsp, sizeof(*rspn_rsp)); in zfcp_fc_rspn()
|
/linux/net/vmw_vsock/ |
A D | virtio_transport.c | 123 sg_init_one(&hdr, &pkt->hdr, sizeof(pkt->hdr)); in virtio_transport_send_pkt_work() 126 sg_init_one(&buf, pkt->buf, pkt->len); in virtio_transport_send_pkt_work() 270 sg_init_one(&hdr, &pkt->hdr, sizeof(pkt->hdr)); in virtio_vsock_rx_fill() 273 sg_init_one(&buf, pkt->buf, buf_len); in virtio_vsock_rx_fill() 339 sg_init_one(&sg, event, sizeof(*event)); in virtio_vsock_event_fill_one()
|
/linux/drivers/mmc/core/ |
A D | mmc_test.c | 303 sg_init_one(&sg, buffer, blksz); in mmc_test_buffer_transfer() 1023 sg_init_one(&sg, test->buffer, 512); in mmc_test_basic_write() 1037 sg_init_one(&sg, test->buffer, 512); in mmc_test_basic_read() 1046 sg_init_one(&sg, test->buffer, 512); in mmc_test_verify_write() 1055 sg_init_one(&sg, test->buffer, 512); in mmc_test_verify_read() 1076 sg_init_one(&sg, test->buffer, size); in mmc_test_multi_write() 1097 sg_init_one(&sg, test->buffer, size); in mmc_test_multi_read() 1111 sg_init_one(&sg, test->buffer, i); in mmc_test_pow2_write() 1129 sg_init_one(&sg, test->buffer, i); in mmc_test_pow2_read() 1147 sg_init_one(&sg, test->buffer, i); in mmc_test_weird_write() [all …]
|
A D | sd_ops.c | 291 sg_init_one(&sg, scr, 8); in mmc_app_send_scr() 354 sg_init_one(&sg, ssr, 64); in mmc_app_sd_status()
|
/linux/drivers/virtio/ |
A D | virtio_balloon.c | 157 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()
|
/linux/fs/crypto/ |
A D | fname.c | 120 sg_init_one(&sg, out, olen); in fscrypt_fname_encrypt() 168 sg_init_one(&src_sg, iname->name, iname->len); in fname_decrypt() 169 sg_init_one(&dst_sg, oname->name, oname->len); in fname_decrypt()
|
A D | keysetup_v1.c | 75 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/drivers/firmware/arm_scmi/ |
A D | virtio.c | 92 sg_init_one(&sg_in, msg->input, VIRTIO_SCMI_MAX_PDU_SIZE); in scmi_vio_feed_vq_rx() 331 sg_init_one(&sg_out, msg->request, msg_command_size(xfer)); in virtio_send_message() 332 sg_init_one(&sg_in, msg->input, msg_response_size(xfer)); in virtio_send_message()
|
/linux/crypto/ |
A D | chacha20poly1305.c | 179 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/net/sunrpc/auth_gss/ |
A D | gss_krb5_crypto.c | 80 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()
|
/linux/fs/verity/ |
A D | hash_algs.c | 192 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/drivers/gpio/ |
A D | gpio-virtio.c | 80 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/arch/um/drivers/ |
A D | virt-pci.c | 122 sg_init_one(&out_sg, cmd, cmd_size); in um_pci_send_cmd() 124 sg_init_one(&extra_sg, extra, extra_size); in um_pci_send_cmd() 126 sg_init_one(&in_sg, out, out_size); in um_pci_send_cmd() 467 sg_init_one(sg, buf, MAX_IRQ_MSG_SIZE); in um_pci_irq_vq_addbuf()
|