Searched refs:kbuf (Results 1 – 7 of 7) sorted by relevance
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/ |
D | osal_device.c | 227 char *kbuf = NULL; in __osal_unlocked_ioctl() local 249 kbuf = (char *)vmalloc(_IOC_SIZE(cmd)); in __osal_unlocked_ioctl() 250 if (kbuf == NULL) { in __osal_unlocked_ioctl() 255 if (copy_from_user(kbuf, (char *)(uintptr_t)arg, _IOC_SIZE(cmd))) { in __osal_unlocked_ioctl() 256 vfree(kbuf); in __osal_unlocked_ioctl() 257 kbuf = NULL; in __osal_unlocked_ioctl() 262 vfree(kbuf); in __osal_unlocked_ioctl() 263 kbuf = NULL; in __osal_unlocked_ioctl() 266 …ret = pdata->dev->fops->unlocked_ioctl (cmd, (unsigned long)(uintptr_t)kbuf, (void *)&(pdata->data… in __osal_unlocked_ioctl() 273 kbuf = vmalloc(_IOC_SIZE(cmd)); in __osal_unlocked_ioctl() [all …]
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/ |
D | mali_kbase_vinstr.c | 727 u8 *kbuf = NULL; in kbasep_vinstr_hwcnt_reader_ioctl_put_buffer() local 740 kbuf = stack_kbuf; in kbasep_vinstr_hwcnt_reader_ioctl_put_buffer() 742 kbuf = kzalloc(max_size, GFP_KERNEL); in kbasep_vinstr_hwcnt_reader_ioctl_put_buffer() 743 if (unlikely(!kbuf)) { in kbasep_vinstr_hwcnt_reader_ioctl_put_buffer() 752 if (unlikely(copy_from_user(kbuf, buffer, size))) { in kbasep_vinstr_hwcnt_reader_ioctl_put_buffer() 763 if (unlikely(kbuf[i] != 0)) { in kbasep_vinstr_hwcnt_reader_ioctl_put_buffer() 770 meta = (struct kbase_hwcnt_reader_metadata *)kbuf; in kbasep_vinstr_hwcnt_reader_ioctl_put_buffer() 778 if (unlikely(kbuf != stack_kbuf)) { in kbasep_vinstr_hwcnt_reader_ioctl_put_buffer() 779 kfree(kbuf); in kbasep_vinstr_hwcnt_reader_ioctl_put_buffer()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ |
D | mali_kbase_vinstr.c | 772 u8 *kbuf = NULL; in kbasep_vinstr_hwcnt_reader_ioctl_put_buffer() local 783 kbuf = stack_kbuf; in kbasep_vinstr_hwcnt_reader_ioctl_put_buffer() 785 kbuf = kzalloc(max_size, GFP_KERNEL); in kbasep_vinstr_hwcnt_reader_ioctl_put_buffer() 786 if (unlikely(!kbuf)) in kbasep_vinstr_hwcnt_reader_ioctl_put_buffer() 794 if (unlikely(copy_from_user(kbuf, buffer, size))) { in kbasep_vinstr_hwcnt_reader_ioctl_put_buffer() 805 if (unlikely(kbuf[i] != 0)) { in kbasep_vinstr_hwcnt_reader_ioctl_put_buffer() 812 meta = (struct kbase_hwcnt_reader_metadata *)kbuf; in kbasep_vinstr_hwcnt_reader_ioctl_put_buffer() 826 if (unlikely(kbuf != stack_kbuf)) in kbasep_vinstr_hwcnt_reader_ioctl_put_buffer() 827 kfree(kbuf); in kbasep_vinstr_hwcnt_reader_ioctl_put_buffer()
|
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/mmz/ |
D | drv_media_mem.h | 219 …_mmb_t *hil_mmb_alloc(const char *name, HI_U32 size, HI_U32 align, const char *mmz_name, int kbuf);
|
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/bridge/synopsys/ |
D | dw-hdmi.c | 4253 char kbuf[0x19]; in dw_hdmi_ctrl_write() local 4255 if (copy_from_user(kbuf, buf, count)) { in dw_hdmi_ctrl_write() 4258 if (sscanf(kbuf, "%x%x", ®, &val) == -1) { in dw_hdmi_ctrl_write() 4301 char kbuf[0x19]; in dw_hdmi_phy_write() local 4303 if (copy_from_user(kbuf, buf, count)) { in dw_hdmi_phy_write() 4306 if (sscanf(kbuf, "%x%x", ®, &val) == -1) { in dw_hdmi_phy_write()
|
/device/soc/rockchip/common/sdk_linux/kernel/bpf/ |
D | verifier.c | 284 n = vscnprintf(log->kbuf, BPF_VERIFIER_TMP_LOG_SIZE, fmt, args); in bpf_verifier_vlog() 289 log->kbuf[n] = '\0'; in bpf_verifier_vlog() 292 pr_err("BPF:%s\n", log->kbuf); in bpf_verifier_vlog() 295 if (!copy_to_user(log->ubuf + log->len_used, log->kbuf, n + 1)) { in bpf_verifier_vlog()
|
/device/board/hihope/dayu210/kernel/kernel_patch/linux-5.10/dayu210_patch/ |
D | kernel.patch | 12243 + char kbuf[25]; 12245 + if (copy_from_user(kbuf, buf, count)) 12247 + if (sscanf(kbuf, "%x%x", ®, &val) == -1) 12292 + char kbuf[25]; 12294 + if (copy_from_user(kbuf, buf, count)) 12296 + if (sscanf(kbuf, "%x%x", ®, &val) == -1)
|