Home
last modified time | relevance | path

Searched refs:_IOC_SIZE (Results 1 - 23 of 23) sorted by relevance

/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/osal/
H A Ddrv_osal_init_linux.c171 if (_IOC_SIZE(cmd) > sizeof(cmd_param)) { in hi_cipher_ioctl()
172 hi_log_error("Invalid cmd param size %d!\n", _IOC_SIZE(cmd)); in hi_cipher_ioctl()
176 if (((crypto_ioc_dir(cmd) == CRYPTO_IOC_W) || (crypto_ioc_dir(cmd) == CRYPTO_IOC_RW)) && (_IOC_SIZE(cmd) != 0)) { in hi_cipher_ioctl()
178 (void __user *)(hi_uintptr_t)arg, _IOC_SIZE(cmd)); in hi_cipher_ioctl()
191 if (((crypto_ioc_dir(cmd) == CRYPTO_IOC_R) || (crypto_ioc_dir(cmd) == CRYPTO_IOC_RW)) && (_IOC_SIZE(cmd) != 0)) { in hi_cipher_ioctl()
192 ret = crypto_copy_to_user((hi_void __user *)(hi_uintptr_t)arg, _IOC_SIZE(cmd), in hi_cipher_ioctl()
193 (const hi_void *)cmd_param, _IOC_SIZE(cmd)); in hi_cipher_ioctl()
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/mmz/
H A Ddrv_mmz_compat.c132 if (sizeof(compat_mmb) != _IOC_SIZE(cmd) || arg == 0) { in compat_mmz_userdev_ioctl_m()
133 hi_mmz_warn("_IOC_SIZE(cmd) = %d, arg = 0x%08lX\n", _IOC_SIZE(cmd), arg); in compat_mmz_userdev_ioctl_m()
144 if (copy_from_user(&compat_mmb, (void __user *)(uintptr_t)arg, _IOC_SIZE(cmd))) { in compat_mmz_userdev_ioctl_m()
169 if (copy_to_user((void __user *)(uintptr_t)arg, &compat_mmb, _IOC_SIZE(cmd))) { in compat_mmz_userdev_ioctl_m()
192 if (sizeof(compat_mmb) != _IOC_SIZE(cmd)) { in compat_mmz_userdev_ioctl_c()
193 hi_mmz_warn("_IOC_SIZE(cmd) = %d, arg = 0x%08lX\n", _IOC_SIZE(cmd), arg); in compat_mmz_userdev_ioctl_c()
207 if (copy_from_user(&compat_mmb, (void __user *)(uintptr_t)arg, _IOC_SIZE(cmd))) { in compat_mmz_userdev_ioctl_c()
H A Ddrv_mmz_userdev.c858 if (size != _IOC_SIZE(cmd) || arg == 0) { in mmz_userdev_ioctl_get_data()
859 hi_mmz_error("_IOC_SIZE(cmd) = %d, arg = 0x%08lX\n", _IOC_SIZE(cmd), arg); in mmz_userdev_ioctl_get_data()
869 if (copy_from_user(data, (void *)(uintptr_t)arg, _IOC_SIZE(cmd))) { in mmz_userdev_ioctl_get_data()
933 if (copy_to_user((void *)(uintptr_t)arg, &mi, _IOC_SIZE(cmd))) { in mmz_userdev_ioctl()
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/
H A Dosal_device.c233 if (((_IOC_SIZE(cmd) == 0) && (_IOC_DIR(cmd) != _IOC_NONE))) { in __osal_unlocked_ioctl()
249 kbuf = (char *)vmalloc(_IOC_SIZE(cmd)); in __osal_unlocked_ioctl()
255 if (copy_from_user(kbuf, (char *)(uintptr_t)arg, _IOC_SIZE(cmd))) { in __osal_unlocked_ioctl()
273 kbuf = vmalloc(_IOC_SIZE(cmd)); in __osal_unlocked_ioctl()
281 if (copy_to_user((char *)(uintptr_t)arg, kbuf, _IOC_SIZE(cmd))) { in __osal_unlocked_ioctl()
287 kbuf = vmalloc(_IOC_SIZE(cmd)); in __osal_unlocked_ioctl()
293 if (copy_from_user(kbuf, (char *)(uintptr_t)arg, _IOC_SIZE(cmd))) { in __osal_unlocked_ioctl()
306 if (copy_to_user((char *)(uintptr_t)arg, kbuf, _IOC_SIZE(cmd))) { in __osal_unlocked_ioctl()
346 if ((_IOC_SIZE(cmd) == 0) && (_IOC_DIR(cmd) != _IOC_NONE)) { in __osal_compat_ioctl()
362 kbuf = (char *)vmalloc(_IOC_SIZE(cm in __osal_compat_ioctl()
[all...]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/mmz/
H A Dmmz_userdev.c714 if ((_IOC_SIZE(cmd) > sizeof(mi)) || (arg == 0)) {
715 error_mmz("_IOC_SIZE(cmd)=%d, arg==0x%08lX\n", _IOC_SIZE(cmd), arg);
720 if (copy_from_user(&mi, (void *)(uintptr_t)arg, _IOC_SIZE(cmd))) {
729 if (copy_to_user((void *)(uintptr_t)arg, &mi, _IOC_SIZE(cmd))) {
774 if ((_IOC_SIZE(cmd) != sizeof(area)) || (arg == 0)) {
775 error_mmz("_IOC_SIZE(cmd)=%d, arg==0x%08lx\n", _IOC_SIZE(cmd), arg);
780 if (copy_from_user(&area, (void *)(uintptr_t)arg, _IOC_SIZE(cmd))) {
850 if ((_IOC_SIZE(cm
[all...]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/include/
H A Dosal_ioctl.h162 #ifndef _IOC_SIZE
163 #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) macro
/device/soc/hisilicon/hi3516dv300/sdk_linux/include/
H A Dosal_ioctl.h159 #ifndef _IOC_SIZE
160 #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) macro
/device/soc/hisilicon/hi3516dv300/sdk_liteos/include/
H A Dosal_ioctl.h159 #ifndef _IOC_SIZE
160 #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) macro
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/include/
H A Dosal_ioctl.h98 #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) macro
/device/soc/rockchip/common/sdk_linux/drivers/dma-buf/
H A Ddma-heap.c178 drv_size = _IOC_SIZE(kcmd); in dma_heap_ioctl()
179 out_size = _IOC_SIZE(ucmd); in dma_heap_ioctl()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/
H A Dmali_kbase_vinstr.c987 cli, arg, _IOC_SIZE(cmd)); in kbasep_vinstr_hwcnt_reader_ioctl()
1005 cli, (void __user *)arg, _IOC_SIZE(cmd)); in kbasep_vinstr_hwcnt_reader_ioctl()
1009 cli, (void __user *)arg, _IOC_SIZE(cmd)); in kbasep_vinstr_hwcnt_reader_ioctl()
H A Dmali_kbase_core_linux.c1547 BUILD_BUG_ON(sizeof(param) != _IOC_SIZE(cmd)); \
1563 BUILD_BUG_ON(sizeof(param) != _IOC_SIZE(cmd)); \
1580 BUILD_BUG_ON(sizeof(param) != _IOC_SIZE(cmd)); \
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/
H A Dmali_kbase_vinstr.c925 rcode = kbasep_vinstr_hwcnt_reader_ioctl_get_api_version(cli, arg, _IOC_SIZE(cmd)); in kbasep_vinstr_hwcnt_reader_ioctl()
940 rcode = kbasep_vinstr_hwcnt_reader_ioctl_get_buffer(cli, (void __user *)arg, _IOC_SIZE(cmd)); in kbasep_vinstr_hwcnt_reader_ioctl()
943 rcode = kbasep_vinstr_hwcnt_reader_ioctl_put_buffer(cli, (void __user *)arg, _IOC_SIZE(cmd)); in kbasep_vinstr_hwcnt_reader_ioctl()
H A Dmali_kbase_core_linux.c1619 BUILD_BUG_ON(sizeof(param) != _IOC_SIZE(cmd)); \
1631 BUILD_BUG_ON(sizeof(param) != _IOC_SIZE(cmd)); \
1645 BUILD_BUG_ON(sizeof(param) != _IOC_SIZE(cmd)); \
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/
H A Ddrm_ioctl.c847 drv_size = _IOC_SIZE(ioctl->cmd); in drm_ioctl()
848 out_size = in_size = _IOC_SIZE(cmd); in drm_ioctl()
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/osal/
H A Dosal_device.c274 arg_size = _IOC_SIZE(cmd); in osal_ioctl()
/device/soc/rockchip/common/sdk_linux/drivers/spi/
H A Dspidev.c315 tmp = _IOC_SIZE(cmd); in spidev_get_ioc_message()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/umplock/
H A Dumplock_driver.c430 uint32_t size = _IOC_SIZE(cmd); in umplock_driver_ioctl()
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/
H A Dmali_kbase_core_linux.c1259 u32 size = _IOC_SIZE(cmd); in kbase_legacy_ioctl()
1695 BUILD_BUG_ON(sizeof(param) != _IOC_SIZE(cmd)); \
1708 BUILD_BUG_ON(sizeof(param) != _IOC_SIZE(cmd)); \
1722 BUILD_BUG_ON(sizeof(param) != _IOC_SIZE(cmd)); \
H A Dmali_kbase_vinstr.c1502 rcode = kbasep_vinstr_hwcnt_reader_ioctl_get_buffer(cli, (void __user *)arg, _IOC_SIZE(cmd)); in kbasep_vinstr_hwcnt_reader_ioctl()
1505 rcode = kbasep_vinstr_hwcnt_reader_ioctl_put_buffer(cli, (void __user *)arg, _IOC_SIZE(cmd)); in kbasep_vinstr_hwcnt_reader_ioctl()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/
H A Dmali_kbase_core_linux.c1293 u32 size = _IOC_SIZE(cmd); in kbase_legacy_ioctl()
1774 BUILD_BUG_ON(sizeof(param) != _IOC_SIZE(cmd)); \
1787 BUILD_BUG_ON(sizeof(param) != _IOC_SIZE(cmd)); \
1801 BUILD_BUG_ON(sizeof(param) != _IOC_SIZE(cmd)); \
H A Dmali_kbase_vinstr.c1598 cli, (void __user *)arg, _IOC_SIZE(cmd)); in kbasep_vinstr_hwcnt_reader_ioctl()
1602 cli, (void __user *)arg, _IOC_SIZE(cmd)); in kbasep_vinstr_hwcnt_reader_ioctl()
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/nouveau/
H A Dnouveau_drm.c1130 ret = usif_ioctl(filp, (void __user *)arg, _IOC_SIZE(cmd)); in nouveau_drm_ioctl()

Completed in 46 milliseconds