Searched refs:usize (Results 1 – 8 of 8) sorted by relevance
/drivers/acpi/apei/ |
D | erst-dbg.c | 91 size_t usize, loff_t *off) in erst_dbg_read() argument 148 if (len > usize) in erst_dbg_read() 161 size_t usize, loff_t *off) in erst_dbg_write() argument 169 if (usize > ERST_DBG_RECORD_LEN_MAX) { in erst_dbg_write() 176 if (usize > erst_dbg_buf_len) { in erst_dbg_write() 179 p = kmalloc(usize, GFP_KERNEL); in erst_dbg_write() 184 erst_dbg_buf_len = usize; in erst_dbg_write() 186 rc = copy_from_user(erst_dbg_buf, ubuf, usize); in erst_dbg_write() 193 if (rcd->record_length != usize) in erst_dbg_write() 200 return rc < 0 ? rc : usize; in erst_dbg_write()
|
/drivers/gpu/drm/ |
D | drm_ioctl.c | 694 unsigned int usize, asize, drv_size; in drm_ioctl() local 721 usize = _IOC_SIZE(cmd); in drm_ioctl() 722 asize = max(usize, drv_size); in drm_ioctl() 753 if (asize > usize) in drm_ioctl() 754 memset(kdata + usize, 0, asize - usize); in drm_ioctl() 759 usize) != 0) { in drm_ioctl() 764 memset(kdata, 0, usize); in drm_ioctl() 780 usize) != 0) in drm_ioctl()
|
/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_chardev.c | 935 unsigned int usize, asize; in kfd_ioctl() local 947 usize = asize = _IOC_SIZE(cmd); in kfd_ioctl() 982 if (asize > usize) in kfd_ioctl() 983 memset(kdata + usize, 0, asize - usize); in kfd_ioctl() 987 if (copy_from_user(kdata, (void __user *)arg, usize) != 0) { in kfd_ioctl() 992 memset(kdata, 0, usize); in kfd_ioctl() 998 if (copy_to_user((void __user *)arg, kdata, usize) != 0) in kfd_ioctl()
|
/drivers/pci/pcie/aer/ |
D | aer_inject.c | 461 size_t usize, loff_t *off) in aer_inject_write() argument 468 if (usize < offsetof(struct aer_error_inj, domain) || in aer_inject_write() 469 usize > sizeof(einj)) in aer_inject_write() 473 if (copy_from_user(&einj, ubuf, usize)) in aer_inject_write() 477 return ret ? ret : usize; in aer_inject_write()
|
/drivers/xen/ |
D | mcelog.c | 107 size_t usize, loff_t *off) in xen_mce_chrdev_read() argument 119 if (*off != 0 || usize < XEN_MCE_LOG_LEN*sizeof(struct xen_mce)) in xen_mce_chrdev_read()
|
/drivers/media/v4l2-core/ |
D | videobuf2-dma-sg.c | 342 unsigned long usize = vma->vm_end - vma->vm_start; in vb2_dma_sg_mmap() local 360 usize -= PAGE_SIZE; in vb2_dma_sg_mmap() 361 } while (usize > 0); in vb2_dma_sg_mmap()
|
/drivers/crypto/qat/qat_common/ |
D | qat_hal.c | 1041 int usize = 0; in qat_hal_concat_micro_code() local 1047 usize = ARRAY_SIZE(inst_4b); in qat_hal_concat_micro_code() 1049 for (i = 0; i < usize; i++) in qat_hal_concat_micro_code()
|
/drivers/media/platform/coda/ |
D | coda-common.c | 1088 unsigned int max_w, max_h, usize, csize; in set_default_params() local 1094 usize = max_w * max_h * 3 / 2; in set_default_params() 1095 csize = coda_estimate_sizeimage(ctx, usize, max_w, max_h); in set_default_params() 1110 ctx->q_data[V4L2_M2M_SRC].sizeimage = usize; in set_default_params() 1117 ctx->q_data[V4L2_M2M_DST].sizeimage = usize; in set_default_params()
|