/device/qemu/riscv32_virt/liteos_m/board/driver/ |
H A D | virtinput.c | 4 * you may not use this file except in compliance with the License. 9 * Unless required by applicable law or agreed to in writing, software 112 static void PopulateEventQ(const struct Virtin *in) in PopulateEventQ() argument 114 const struct Virtq *q = &in->dev.vq[0]; in PopulateEventQ() 118 q->desc[i].pAddr = u32_to_u64(VMM_TO_DMA_ADDR((VADDR_T)&in->ev[i])); in PopulateEventQ() 125 in->dev.vq[0].avail->index += in->dev.vq[0].qsz; in PopulateEventQ() 126 OSAL_WRITEL(0, in->dev.base + VIRTMMIO_REG_QUEUENOTIFY); in PopulateEventQ() 155 static void VirtinHandleEv(struct Virtin *in) in VirtinHandleEv() argument 157 struct Virtq *q = &in in VirtinHandleEv() 186 struct Virtin *in = (struct Virtin *)param; VirtinIRQhandle() local 248 VirtinFillHidInfo(const struct Virtin *in, HidInfo *devInfo) VirtinFillHidInfo() argument 271 HdfVirtinInitHid(struct Virtin *in) HdfVirtinInitHid() argument 299 VirtinDeInit(struct Virtin *in) VirtinDeInit() argument 320 struct Virtin *in = NULL; VirtinInitDev() local 367 struct Virtin *in = (struct Virtin *)arg; InputWorkTask() local 381 struct Virtin *in = NULL; HdfVirtinInit() local 428 struct Virtin *in = deviceObject->priv; HdfVirtinRelease() local [all...] |
/device/qemu/drivers/virtio/ |
H A D | virtinput.c | 4 * you may not use this file except in compliance with the License. 9 * Unless required by applicable law or agreed to in writing, software 29 * QEMU virtio-tablet coordinates sit in a fixed square: 110 static void PopulateEventQ(const struct Virtin *in) in PopulateEventQ() argument 112 const struct Virtq *q = &in->dev.vq[0]; in PopulateEventQ() 116 q->desc[i].pAddr = VMM_TO_DMA_ADDR((VADDR_T)&in->ev[i]); in PopulateEventQ() 123 in->dev.vq[0].avail->index += in->dev.vq[0].qsz; in PopulateEventQ() 124 OSAL_WRITEL(0, in->dev.base + VIRTMMIO_REG_QUEUENOTIFY); in PopulateEventQ() 142 static void VirtinHandleEv(struct Virtin *in) in VirtinHandleEv() argument 173 struct Virtin *in = dev; VirtinIRQhandle() local 257 VirtinFillHidInfo(const struct Virtin *in, HidInfo *devInfo) VirtinFillHidInfo() argument 276 HdfVirtinInitHid(struct Virtin *in) HdfVirtinInitHid() argument 299 VirtinDeInit(struct Virtin *in) VirtinDeInit() argument 309 struct Virtin *in = NULL; VirtinInitDev() local 357 struct Virtin *in = NULL; HdfVirtinInit() local 389 struct Virtin *in = deviceObject->priv; HdfVirtinRelease() local [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/component/hdmi/src/mkp/ |
H A D | drv_hdmi_dfm.c | 9 * This program is distributed in the hope that it will be useful, 55 static hi_s32 dfm_get_audio_ap(dfm_in *in)
in dfm_get_audio_ap() argument 59 if (in->packet_type == AUDIO_SAMPLE_PACKET || in->packet_type == ONE_BIT_AUDIO_SAMPLE_PACKET) {
in dfm_get_audio_ap() 60 if (in->layout == 0) {
in dfm_get_audio_ap() 65 } else if (in->packet_type == DTS_AUDIO_PACKET) {
in dfm_get_audio_ap() 67 } else if (in->packet_type == HBR_AUDIO_PACKET ||
in dfm_get_audio_ap() 68 in->packet_type == MULTI_STREAM_AUDIO_SAMPLE_PACKET ||
in dfm_get_audio_ap() 69 in->packet_type == ONE_BIT_MULTI_STREAM_AUDIO_SAMPLE_PACKET) {
in dfm_get_audio_ap() 71 } else if (in in dfm_get_audio_ap() 137 dfm_base_info_init(const dfm_in *in, dfm_info *info) dfm_base_info_init() argument 197 dfm_info_init(dfm_in *in, dfm_info *info) dfm_info_init() argument [all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/paho.mqtt.c/include/mqtt/ |
H A D | Base64.h | 29 * @param[in] out_len length of output buffer 30 * @param[in] in base64 string to decode 31 * @param[in] in_len length of input buffer 39 const char *in, b64_size_t in_len ); 44 * @param[in] in base64 string to decode 45 * @param[in] in_len length of input buffer 52 b64_size_t Base64_decodeLength( const char *in, b64_size_t in_len ); 58 * @param[in] out_le [all...] |
/device/qemu/SmartL_E802/liteos_m/board/hals/csky_driver/include/ |
H A D | drv_aes.h | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 110 \param[in] idx device id 111 \param[in] cb_event event callback function \ref aes_event_cb_t 118 \param[in] handle aes handle to operate. 125 \param[in] handle aes handle to operate. 126 \param[in] state power state.\ref csi_power_stat_e. 133 \param[in] idx device id 140 \param[in] handle aes handle to operate. 141 \param[in] mod [all...] |
/device/soc/rockchip/common/sdk_linux/ipc/ |
H A D | msg.c | 8 * Use GFP_KERNEL for messages as in 1.2 54 unsigned long q_qnum; /* number of messages in queue */ 67 * Similar to the optimization used in ipc/mqueue.c, one syscall return path 68 * does not acquire any locks when it sees that a message exists in 307 static inline unsigned long copy_msqid_to_user(void __user *buf, struct msqid64_ds *in, int version) in copy_msqid_to_user() argument 311 return copy_to_user(buf, in, sizeof(*in)); in copy_msqid_to_user() 317 ipc64_perm_to_ipc_perm(&in->msg_perm, &out.msg_perm); in copy_msqid_to_user() 319 out.msg_stime = in->msg_stime; in copy_msqid_to_user() 320 out.msg_rtime = in in copy_msqid_to_user() 688 copy_compat_msqid_to_user(void __user *buf, struct msqid64_ds *in, int version) copy_compat_msqid_to_user() argument [all...] |
H A D | util.c | 8 * Occurs in several places in the IPC code.
22 * obtain the ipc object (kern_ipc_perm) by looking up the id in an idr
39 * - creating, removing and iterating the existing entries in ipc
132 * @path: Path in procfs
162 * ipc_findkey - find a key in an ipc identifier set
187 * in the correct order.
269 * is returned. The 'new' entry is returned in a locked state on success.
358 * when the key is not IPC_PRIVATE and that key already exists in the
536 /* is there some bit set in requested_mod in ipcperms() 557 kernel_to_ipc64_perm(struct kern_ipc_perm *in, struct ipc64_perm *out) kernel_to_ipc64_perm() argument 576 ipc64_perm_to_ipc_perm(struct ipc64_perm *in, struct ipc_perm *out) ipc64_perm_to_ipc_perm() argument 660 ipc_update_perm(struct ipc64_perm *in, struct kern_ipc_perm *out) ipc_update_perm() argument [all...] |
H A D | shm.c | 182 * shm_lock_(check_) routines are called in the paths where the rwsem
300 * We raced in the idr lookup or with shm_destroy().
in shm_open() 369 * We raced in the idr lookup or with shm_destroy().
in shm_close() 442 * in which shp lives.
in exit_shm() 493 * rcu_read_lock was implicitly taken in shm_lock_by_ptr, it's
in exit_shm() 785 * shmid gets reported as "inode#" in /proc/pid/maps.
in newseg() 850 static inline unsigned long copy_shmid_to_user(void __user *buf, struct shmid64_ds *in, int version)
in copy_shmid_to_user() argument 854 return copy_to_user(buf, in, sizeof(*in));
in copy_shmid_to_user() 859 ipc64_perm_to_ipc_perm(&in in copy_shmid_to_user() 901 copy_shminfo_to_user(void __user *buf, struct shminfo64 *in, int version) copy_shminfo_to_user() argument 1355 copy_compat_shminfo_to_user(void __user *buf, struct shminfo64 *in, int version) copy_compat_shminfo_to_user() argument 1395 copy_compat_shmid_to_user(void __user *buf, struct shmid64_ds *in, int version) copy_compat_shmid_to_user() argument [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/crypto/ |
H A D | cryp_rsa.c | 9 * This program is distributed in the hope that it will be useful, 33 /* rsa key len in bits */ 159 hi_u8 *in = HI_NULL; in cryp_ifep_rsa_exp_mod() local 177 /* malloc buf to store n || k(e or d) || in || out */ in cryp_ifep_rsa_exp_mod() 186 in = k + keylen; in cryp_ifep_rsa_exp_mod() 187 out = in + keylen; in cryp_ifep_rsa_exp_mod() 193 crypto_chk_err_goto(mbedtls_mpi_write_binary(&tmp_a, in, keylen)); in cryp_ifep_rsa_exp_mod() 198 crypto_chk_err_goto(cryp_check_data(tmp_n, k, in, keylen)); in cryp_ifep_rsa_exp_mod() 200 /* out = in ^ k mod n */ in cryp_ifep_rsa_exp_mod() 201 ret = drv_ifep_rsa_exp_mod(ca_type, tmp_n, k, in, ou in cryp_ifep_rsa_exp_mod() 466 ext_rsa_calc(mbedtls_rsa_context *rsa, hi_u32 mode, const hi_u8 *in, hi_u8 *out, hi_u32 len) ext_rsa_calc() argument [all...] |
/device/soc/rockchip/rk3588/kernel/include/trace/hooks/ |
H A D | fips140.h | 37 const u8 *in, 39 TP_ARGS(ctx, out, in, hook_inuse)); 44 const u8 *in, 46 TP_ARGS(ctx, out, in, hook_inuse));
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/extend/ |
H A D | ext_aead.c | 9 * This program is distributed in the hope that it will be useful, 42 crypto_mem in; member 181 ret = crypto_mem_open(&mem->in, pack->in[0], pack->len[0]); in ext_ccm_gcm_mem_open() 190 (hi_void)crypto_mem_close(&mem->in); in ext_ccm_gcm_mem_open() 198 (hi_void)crypto_mem_close(&mem->in); in ext_ccm_gcm_mem_open() 213 (hi_void)crypto_mem_close(&mem->in); in ext_ccm_gcm_mem_close() 220 (hi_void)crypto_mem_close(&mem->in); in ext_ccm_gcm_mem_close() 224 ret = crypto_mem_close(&mem->in); in ext_ccm_gcm_mem_close() 266 aead->alen, crypto_mem_virt(&mem.in), crypto_mem_vir in ext_mbedtls_aead_ccm_crypto() [all...] |
H A D | ext_sm4.c | 9 * This program is distributed in the hope that it will be useful, 166 static hi_void sm4_encrypt(const hi_u8 *in, hi_u8 *out, const sm4_key *key, hi_u32 len) in sm4_encrypt() argument 174 s[WORD_IDX_0] = getu32(in + WORD_IDX_0 * WORD_WIDTH); in sm4_encrypt() 175 s[WORD_IDX_1] = getu32(in + WORD_IDX_1 * WORD_WIDTH); in sm4_encrypt() 176 s[WORD_IDX_2] = getu32(in + WORD_IDX_2 * WORD_WIDTH); in sm4_encrypt() 177 s[WORD_IDX_3] = getu32(in + WORD_IDX_3 * WORD_WIDTH); in sm4_encrypt() 192 static hi_void sm4_decrypt(const hi_u8 *in, hi_u8 *out, const sm4_key *key, hi_u32 len) in sm4_decrypt() argument 200 s[WORD_IDX_0] = getu32(in + WORD_IDX_0 * WORD_WIDTH); in sm4_decrypt() 201 s[WORD_IDX_1] = getu32(in + WORD_IDX_1 * WORD_WIDTH); in sm4_decrypt() 202 s[WORD_IDX_2] = getu32(in in sm4_decrypt() 220 sm4_ecb_crypt(const hi_u8 *in, hi_u8 *out, hi_u32 len, const sm4_key *key, const hi_s32 dec) sm4_ecb_crypt() argument 231 sm4_cbc_crypt(const hi_u8 *in, hi_u8 *out, const hi_u32 length, const sm4_key *key, hi_u8 *ivec, const hi_s32 dec) sm4_cbc_crypt() argument 292 sm4_ctr128_crypt(const hi_u8 *in, hi_u8 *out, hi_s32 length, const sm4_key *key, hi_u8 counter[SM4_BLOCK_SIZE], hi_u8 ecount_buf[SM4_BLOCK_SIZE], hi_s32 *num) sm4_ctr128_crypt() argument [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/ |
H A D | kapi_dispatch.c | 9 * This program is distributed in the hope that it will be useful, 107 ret = cipher_check_mmz_phy_addr((hi_phys_addr_t)addr_u64(encrypt->in), encrypt->len); in dispatch_symc_encrypt() 297 hi_log_chk_param_return(addr_via(rsa_info->in) == HI_NULL); in rsa_buf_chk_info_param() 317 static hi_s32 rsa_pub_alloc(cryp_rsa_key *key, const rsa_info_t *rsa_info, hi_u8 **in, hi_u8 **out) in rsa_pub_alloc() argument 336 *in = buf; in rsa_pub_alloc() 343 crypto_chk_err_goto(crypto_copy_from_user(*in, klen, addr_via(rsa_info->in), klen)); in rsa_pub_alloc() 397 const rsa_info_t *rsa_info, hi_u8 **in, hi_u8 **out, hi_u8 *buf) in rsa_private_get_cfg() 428 *in = ptr; in rsa_private_get_cfg() 433 if (addr_via(rsa_info->in) ! in rsa_private_get_cfg() 396 rsa_private_get_cfg(cryp_rsa_key *key, const rsa_info_t *rsa_info, hi_u8 **in, hi_u8 **out, hi_u8 *buf) rsa_private_get_cfg() argument 442 rsa_private_alloc(cryp_rsa_key *key, const rsa_info_t *rsa_info, hi_u8 **in, hi_u8 **out) rsa_private_alloc() argument 488 rsa_alloc_buffer(cryp_rsa_key *key, const rsa_info_t *rsa_info, hi_u8 **in, hi_u8 **out) rsa_alloc_buffer() argument [all...] |
/device/soc/rockchip/rk3588/kernel/include/uapi/gpu/arm/bifrost/csf/ |
H A D | mali_kbase_csf_ioctl.h | 11 * This program is distributed in the hope that it will be useful, 41 * - Replace padding in kbase_ioctl_cs_get_glb_iface with 79 * @buffer_size: Size of the buffer in bytes 83 * @Note: There is an identical sub-section in kbase_ioctl_cs_queue_register_ex. 112 * @in: Input parameters 113 * @in.buffer_gpu_addr: GPU address of the buffer backing the queue 114 * @in.group_handle: Handle of the group to which the queue should be bound 115 * @in.csi_index: Index of the CSF interface the queue should be bound to 116 * @in.padding: Currently unused, must be zero 127 } in; member 218 } in; global() member 261 } in; global() member 363 } in; global() member 418 } in; global() member 474 } in; global() member [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/csf/ |
H A D | mali_kbase_csf_ioctl.h | 10 * This program is distributed in the hope that it will be useful, 58 * @buffer_size: Size of the buffer in bytes 93 * @in: Input parameters 103 } in; member 141 * @in: Input parameters 156 } in; member 212 * @nr_commands: Number of commands in the array 232 * keep in flight for which allocation of new chunks is 239 * address of free memory in the chunk. 241 * @in 253 } in; global() member 308 } in; global() member 353 } in; global() member [all...] |
/device/soc/rockchip/rk3588/kernel/include/uapi/gpu/arm/bifrost/ |
H A D | mali_kbase_ioctl.h | 11 * This program is distributed in the hope that it will be useful, 64 * @flags may be used in the future to request a different format for the 89 * @in: Input parameters 90 * @in.va_pages: The number of pages of virtual address space to reserve 91 * @in.commit_pages: The number of physical pages to allocate 92 * @in.extension: The number of extra pages to allocate on each GPU fault which grows the region 93 * @in.flags: Flags 104 } in; member 116 * @in: Input parameters 117 * @in 128 } in; global() member 329 } in; global() member 403 } in; global() member 432 } in; global() member 549 } in; global() member 587 } in; global() member 627 } in; global() member 704 } in; global() member [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_ioctl.h | 10 * This program is distributed in the hope that it will be useful, 64 * @flags may be used in the future to request a different format for the 96 * @in: Input parameters 105 } in; member 122 * @in: Input parameters 129 } in; member 209 * @counter: A counter of disjoint events in the kernel 226 * The ioctl request code has to be _IOW because the data in ioctl struct is 228 * version info to the buffer specified in the ioctl. 239 * struct kbase_ioctl_mem_jit_init_10_2 - Initialize the just-in 343 } in; global() member 412 } in; global() member 440 } in; global() member 552 } in; global() member 586 } in; global() member 627 } in; global() member [all...] |
H A D | mali_kbase_gwt.c | 10 * This program is distributed in the hope that it will be useful, 69 * Status will be restored on end of dumping in gwt_stop. in kbase_gpu_gwt_start() 75 /* Mark gwt enabled before making pages read only in case a in kbase_gpu_gwt_start() 76 write page fault is triggered while we're still in this loop. in kbase_gpu_gwt_start() 163 const u32 ubuf_size = gwt_dump->in.len; in kbase_gpu_gwt_dump() 165 __user void *user_addr = (__user void *)(uintptr_t)gwt_dump->in.addr_buffer; in kbase_gpu_gwt_dump() 166 __user void *user_sizes = (__user void *)(uintptr_t)gwt_dump->in.size_buffer; in kbase_gpu_gwt_dump() 176 if (!gwt_dump->in.len || !gwt_dump->in.addr_buffer || !gwt_dump->in in kbase_gpu_gwt_dump() [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/staging/blackbox/ |
H A D | blackbox_storage.c | 27 static int get_log_by_memory(void *in, unsigned int inlen) in get_log_by_memory() argument 123 static int get_log_by_pstore(void *in, unsigned int inlen) in get_log_by_pstore() argument 143 if (likely(in)) { in get_log_by_pstore() 149 memset(in, 0, inlen); in get_log_by_pstore() 150 pbuf = in; in get_log_by_pstore()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_gwt.c | 11 * This program is distributed in the hope that it will be useful, 77 * Status will be restored on end of dumping in gwt_stop. in kbase_gpu_gwt_start() 84 /* Mark gwt enabled before making pages read only in case a in kbase_gpu_gwt_start() 85 write page fault is triggered while we're still in this loop. in kbase_gpu_gwt_start() 177 const u32 ubuf_size = gwt_dump->in.len; in kbase_gpu_gwt_dump() 180 (uintptr_t)gwt_dump->in.addr_buffer; in kbase_gpu_gwt_dump() 182 (uintptr_t)gwt_dump->in.size_buffer; in kbase_gpu_gwt_dump() 192 if (!gwt_dump->in.len || !gwt_dump->in.addr_buffer in kbase_gpu_gwt_dump() 193 || !gwt_dump->in in kbase_gpu_gwt_dump() [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/ |
H A D | drm_modes.c | 11 * to deal in the Software without restriction, including without limitation 16 * The above copyright notice and this permission notice shall be included in 27 * Except as contained in this notice, the name of the copyright holder(s) 28 * and author(s) shall not be used in advertising or otherwise to promote 29 * the sale, use or other dealings in this Software without prior written 106 * then in a second step get filtered and all the modes actually supported by 133 * And it is copied from xf86CVTmode in xserver/hw/xfree86/modes/xf86cvt.c. 137 * The modeline based on the CVT algorithm stored in a drm_display_mode object. 252 /* 9. Find number of lines in sync + backporch */ in drm_cvt_mode() 258 /* 10. Find number of lines in bac in drm_cvt_mode() 1915 drm_mode_convert_to_umode(struct drm_mode_modeinfo *out, const struct drm_display_mode *in) drm_mode_convert_to_umode() argument 1970 drm_mode_convert_umode(struct drm_device *dev, struct drm_display_mode *out, const struct drm_mode_modeinfo *in) drm_mode_convert_umode() argument [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/ai_sample/ext_util/ |
H A D | posix_help.c | 4 * you may not use this file except in compliance with the License.
9 * Unless required by applicable law or agreed to in writing, software
47 chn->in = fds[0];
in SkPairCreate() 123 if (chn->in >= 0) {
in SkPairDestroy() 124 if (close(chn->in) < 0) {
in SkPairDestroy() 127 chn->in = -1;
in SkPairDestroy()
|
H A D | posix_help.h | 4 * you may not use this file except in compliance with the License.
9 * Unless required by applicable law or agreed to in writing, software
22 #include <netinet/in.h>
36 int in; // in fd
member
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/csf/ |
H A D | mali_kbase_csf_tiler_heap_debugfs.c | 11 * This program is distributed in the hope that it will be useful, 35 * Return: 0 in any case. 70 * for all tiler heaps in a context. 75 * Return: 0 in any case. 83 seq_printf(file, "Total number of chunks of all heaps in the context: %lu\n", in kbasep_csf_tiler_heap_total_debugfs_show() 85 seq_printf(file, "Total allocated memory of all heaps in the context: %llu\n", in kbasep_csf_tiler_heap_total_debugfs_show() 87 seq_printf(file, "Peak allocated tiler heap memory in the context: %llu\n", in kbasep_csf_tiler_heap_total_debugfs_show() 93 static int kbasep_csf_tiler_heap_debugfs_open(struct inode *in, struct file *file) in kbasep_csf_tiler_heap_debugfs_open() argument 95 return single_open(file, kbasep_csf_tiler_heap_debugfs_show, in->i_private); in kbasep_csf_tiler_heap_debugfs_open() 98 static int kbasep_csf_tiler_heap_total_debugfs_open(struct inode *in, struc argument [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/ |
H A D | mali_kbase_ioctl.h | 64 * @nr_atoms: Number of entries in the array 87 * @flags may be used in the future to request a different format for the 121 * @in: Input parameters 130 } in; member 147 * @in: Input parameters 154 } in; member 220 * @counter: A counter of disjoint events in the kernel 249 * specified in @va_pages may be ignored. 261 * @user_addr: The address where it is mapped in user space 282 * @size: A size in byte 293 } in; global() member 362 } in; global() member 390 } in; global() member [all...] |