Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/misc/vmw_vmci/
Dvmci_datagram.c157 static int dg_dispatch_as_host(u32 context_id, struct vmci_datagram *dg) in dg_dispatch_as_host() argument
163 dg_size = VMCI_DG_SIZE(dg); in dg_dispatch_as_host()
166 if (dg->dst.context == VMCI_HYPERVISOR_CONTEXT_ID) in dg_dispatch_as_host()
170 if (dg->src.context != context_id) { in dg_dispatch_as_host()
172 context_id, dg->src.context, dg->src.resource); in dg_dispatch_as_host()
177 retval = vmci_datagram_get_priv_flags(context_id, dg->src, in dg_dispatch_as_host()
181 dg->src.context, dg->src.resource); in dg_dispatch_as_host()
186 if (dg->dst.context == VMCI_HOST_CONTEXT_ID) { in dg_dispatch_as_host()
191 if (dg->src.context == VMCI_HYPERVISOR_CONTEXT_ID && in dg_dispatch_as_host()
192 dg->dst.resource == VMCI_EVENT_HANDLER) { in dg_dispatch_as_host()
[all …]
Dvmci_guest.c148 struct vmci_datagram *dg) in vmci_write_data() argument
156 if (VMCI_DG_SIZE(dg) > VMCI_MAX_DG_SIZE) in vmci_write_data()
165 memcpy(dg_out_buffer, dg, VMCI_DG_SIZE(dg)); in vmci_write_data()
167 buffer_header->size = VMCI_DG_SIZE(dg); in vmci_write_data()
181 dg, VMCI_DG_SIZE(dg)); in vmci_write_data()
192 int vmci_send_datagram(struct vmci_datagram *dg) in vmci_send_datagram() argument
198 if (dg == NULL) in vmci_send_datagram()
213 vmci_write_data(vmci_dev_g, dg); in vmci_send_datagram()
308 struct vmci_datagram *dg; in vmci_dispatch_dgs() local
329 dg = (struct vmci_datagram *)dg_in_buffer; in vmci_dispatch_dgs()
[all …]
Dvmci_host.c366 struct vmci_datagram *dg = NULL; in vmci_host_do_send_datagram() local
383 if (send_info.len < sizeof(*dg)) { in vmci_host_do_send_datagram()
389 dg = memdup_user((void __user *)(uintptr_t)send_info.addr, in vmci_host_do_send_datagram()
391 if (IS_ERR(dg)) { in vmci_host_do_send_datagram()
394 return PTR_ERR(dg); in vmci_host_do_send_datagram()
397 if (VMCI_DG_SIZE(dg) != send_info.len) { in vmci_host_do_send_datagram()
399 kfree(dg); in vmci_host_do_send_datagram()
404 dg->dst.context, dg->dst.resource, in vmci_host_do_send_datagram()
405 dg->src.context, dg->src.resource, in vmci_host_do_send_datagram()
406 (unsigned long long)dg->payload_size); in vmci_host_do_send_datagram()
[all …]
Dvmci_datagram.h29 struct vmci_datagram *dg; /* Pending datagram. */ member
40 int vmci_datagram_dispatch(u32 context_id, struct vmci_datagram *dg,
42 int vmci_datagram_invoke_guest_handler(struct vmci_datagram *dg);
Dvmci_context.c296 int vmci_ctx_enqueue_datagram(u32 cid, struct vmci_datagram *dg) in vmci_ctx_enqueue_datagram() argument
303 vmci_dg_size = VMCI_DG_SIZE(dg); in vmci_ctx_enqueue_datagram()
323 dq_entry->dg = dg; in vmci_ctx_enqueue_datagram()
325 dg_src = dg->src; in vmci_ctx_enqueue_datagram()
465 WARN_ON(dq_entry->dg_size != VMCI_DG_SIZE(dq_entry->dg)); in ctx_free_ctx()
467 kfree(dq_entry->dg); in ctx_free_ctx()
510 struct vmci_datagram **dg) in vmci_ctx_dequeue_datagram() argument
565 *dg = dq_entry->dg; in vmci_ctx_dequeue_datagram()
566 dq_entry->dg = NULL; in vmci_ctx_dequeue_datagram()
Dvmci_context.h132 int vmci_ctx_enqueue_datagram(u32 cid, struct vmci_datagram *dg);
134 size_t *max_size, struct vmci_datagram **dg);
Dvmci_driver.h38 int vmci_send_datagram(struct vmci_datagram *dg);
/linux-6.6.21/arch/arm64/crypto/
Dghash-ce-glue.c52 asmlinkage void pmull_ghash_update_p64(int blocks, u64 dg[], const char *src,
55 asmlinkage void pmull_ghash_update_p8(int blocks, u64 dg[], const char *src,
59 u64 const h[][2], u64 dg[], u8 ctr[],
62 u64 const h[][2], u64 dg[], u8 ctr[],
74 static void ghash_do_update(int blocks, u64 dg[], const char *src, in ghash_do_update() argument
77 be128 dst = { cpu_to_be64(dg[1]), cpu_to_be64(dg[0]) }; in ghash_do_update()
94 dg[0] = be64_to_cpu(dst.b); in ghash_do_update()
95 dg[1] = be64_to_cpu(dst.a); in ghash_do_update()
99 void ghash_do_simd_update(int blocks, u64 dg[], const char *src, in ghash_do_simd_update() argument
101 void (*simd_update)(int blocks, u64 dg[], in ghash_do_simd_update()
[all …]
Daes-glue.c113 int blocks, u8 dg[], int enc_before,
134 u8 dg[AES_BLOCK_SIZE]; member
871 memset(ctx->dg, 0, AES_BLOCK_SIZE); in mac_init()
878 u8 dg[], int enc_before, int enc_after) in mac_do_update() argument
888 dg, enc_before, enc_after); in mac_do_update()
896 aes_encrypt(ctx, dg, dg); in mac_do_update()
899 crypto_xor(dg, in, AES_BLOCK_SIZE); in mac_do_update()
903 aes_encrypt(ctx, dg, dg); in mac_do_update()
923 mac_do_update(&tctx->key, p, blocks, ctx->dg, in mac_update()
938 crypto_xor(ctx->dg + ctx->len, p, l); in mac_update()
[all …]
/linux-6.6.21/net/vmw_vsock/
Dvmci_transport.c32 static int vmci_transport_recv_dgram_cb(void *data, struct vmci_datagram *dg);
33 static int vmci_transport_recv_stream_cb(void *data, struct vmci_datagram *dg);
125 pkt->dg.src = vmci_make_handle(VMADDR_CID_ANY, in vmci_transport_packet_init()
127 pkt->dg.dst = vmci_make_handle(dst->svm_cid, in vmci_transport_packet_init()
129 pkt->dg.payload_size = sizeof(*pkt) - sizeof(pkt->dg); in vmci_transport_packet_init()
180 vsock_addr_init(local, pkt->dg.dst.context, pkt->dst_port); in vmci_transport_packet_get_addresses()
181 vsock_addr_init(remote, pkt->dg.src.context, pkt->src_port); in vmci_transport_packet_get_addresses()
200 err = vmci_datagram_send(&pkt->dg); in __vmci_transport_send_control_pkt()
332 vsock_addr_init(&dst, pkt->dg.src.context, in vmci_transport_send_reset()
487 vsock_addr_init(&src, pkt->dg.src.context, pkt->src_port); in vmci_transport_get_pending()
[all …]
Dvmci_transport.h61 struct vmci_datagram dg; member
/linux-6.6.21/drivers/net/wwan/iosm/
Diosm_ipc_mux_codec.c549 struct mux_adth_dg *dg, struct sk_buff *skb, in mux_dl_process_dg() argument
555 for (i = 0; i < nr_of_dg; i++, dg++) { in mux_dl_process_dg()
556 if (le32_to_cpu(dg->datagram_index) in mux_dl_process_dg()
561 if (le32_to_cpu(dg->datagram_index) >= in mux_dl_process_dg()
566 le32_to_cpu(dg->datagram_index) + in mux_dl_process_dg()
568 dg_len = le16_to_cpu(dg->datagram_length); in mux_dl_process_dg()
572 dg->service_class, skb, in mux_dl_process_dg()
587 struct mux_adth_dg *dg; in mux_dl_adb_decode() local
650 dg = adth->dg; in mux_dl_adb_decode()
651 if (mux_dl_process_dg(ipc_mux, adbh, dg, skb, if_id, in mux_dl_adb_decode()
[all …]
Diosm_ipc_mux_codec.h164 struct mux_adth_dg dg[]; member
Diosm_ipc_mux.h284 dg[IPC_MEM_MUX_IP_SESSION_ENTRIES][IPC_MEM_MAX_UL_DG_ENTRIES]; member
/linux-6.6.21/sound/pci/oxygen/
Dxonar_dg_mixer.c24 struct dg *data = chip->model_data; in output_select_apply()
63 struct dg *data = chip->model_data; in output_select_get()
75 struct dg *data = chip->model_data; in output_select_put()
108 struct dg *data = chip->model_data; in hp_stereo_volume_get()
124 struct dg *data = chip->model_data; in hp_stereo_volume_put()
154 struct dg *data = chip->model_data; in hp_mute_get()
167 struct dg *data = chip->model_data; in hp_mute_put()
187 struct dg *data = chip->model_data; in input_volume_apply()
212 struct dg *data = chip->model_data; in input_vol_get()
226 struct dg *data = chip->model_data; in input_vol_put()
[all …]
Dxonar_dg.c59 struct dg *data = chip->model_data; in cs4245_write_spi()
76 struct dg *data = chip->model_data; in cs4245_read_spi()
102 struct dg *data = chip->model_data; in cs4245_shadow_control()
118 struct dg *data = chip->model_data; in cs4245_init()
150 struct dg *data = chip->model_data; in dg_init()
184 struct dg *data = chip->model_data; in set_cs4245_dac_params()
209 struct dg *data = chip->model_data; in set_cs4245_adc_params()
245 struct dg *data = chip->model_data; in adjust_dg_dac_routing()
277 struct dg *data = chip->model_data; in dump_cs4245_registers()
Dxonar_dg.h27 struct dg { struct
/linux-6.6.21/arch/arm/crypto/
Dghash-ce-glue.c62 asmlinkage void pmull_ghash_update_p64(int blocks, u64 dg[], const char *src,
65 asmlinkage void pmull_ghash_update_p8(int blocks, u64 dg[], const char *src,
78 static void ghash_do_update(int blocks, u64 dg[], const char *src, in ghash_do_update() argument
84 pmull_ghash_update_p64(blocks, dg, src, key->h, head); in ghash_do_update()
86 pmull_ghash_update_p8(blocks, dg, src, key->h, head); in ghash_do_update()
89 be128 dst = { cpu_to_be64(dg[1]), cpu_to_be64(dg[0]) }; in ghash_do_update()
106 dg[0] = be64_to_cpu(dst.b); in ghash_do_update()
107 dg[1] = be64_to_cpu(dst.a); in ghash_do_update()
365 void pmull_gcm_encrypt(int blocks, u64 dg[], const char *src,
369 void pmull_gcm_enc_final(int blocks, u64 dg[], char *tag,
[all …]
/linux-6.6.21/crypto/
Dccm.c789 u8 *dg = (u8 *)ctx + crypto_shash_descsize(pdesc->tfm) - bs; in crypto_cbcmac_digest_init() local
792 memset(dg, 0, bs); in crypto_cbcmac_digest_init()
805 u8 *dg = (u8 *)ctx + crypto_shash_descsize(parent) - bs; in crypto_cbcmac_digest_update() local
810 crypto_xor(dg + ctx->len, p, l); in crypto_cbcmac_digest_update()
816 crypto_cipher_encrypt_one(tfm, dg, dg); in crypto_cbcmac_digest_update()
831 u8 *dg = (u8 *)ctx + crypto_shash_descsize(parent) - bs; in crypto_cbcmac_digest_final() local
834 crypto_cipher_encrypt_one(tfm, dg, dg); in crypto_cbcmac_digest_final()
836 memcpy(out, dg, bs); in crypto_cbcmac_digest_final()
/linux-6.6.21/arch/s390/include/asm/
Dnmi.h48 u64 dg : 1; /* 07 degradation */ member
/linux-6.6.21/drivers/crypto/cavium/zip/
Dzip_deflate.c82 zip_cmd->s.dg = 0; in prepare_zip_command()
Dzip_inflate.c103 zip_cmd->s.dg = 0; in prepare_inflate_zcmd()
Dzip_regs.h193 u64 dg : 1; member
197 u64 dg : 1;
/linux-6.6.21/Documentation/fb/
Dcmap_xfbdev.rst46 dg = (long) pent->co.local.green - prgb->green;
/linux-6.6.21/arch/s390/kvm/
Dinterrupt.c2875 if (mci.dg) in kvm_s390_reinject_machine_check()