Lines Matching refs:minsz
655 unsigned long minsz; in afu_ioctl_get_info() local
657 minsz = offsetofend(struct dfl_fpga_port_info, num_umsgs); in afu_ioctl_get_info()
659 if (copy_from_user(&info, arg, minsz)) in afu_ioctl_get_info()
662 if (info.argsz < minsz) in afu_ioctl_get_info()
683 unsigned long minsz; in afu_ioctl_get_region_info() local
686 minsz = offsetofend(struct dfl_fpga_port_region_info, offset); in afu_ioctl_get_region_info()
688 if (copy_from_user(&rinfo, arg, minsz)) in afu_ioctl_get_region_info()
691 if (rinfo.argsz < minsz || rinfo.padding) in afu_ioctl_get_region_info()
712 unsigned long minsz; in afu_ioctl_dma_map() local
715 minsz = offsetofend(struct dfl_fpga_port_dma_map, iova); in afu_ioctl_dma_map()
717 if (copy_from_user(&map, arg, minsz)) in afu_ioctl_dma_map()
720 if (map.argsz < minsz || map.flags) in afu_ioctl_dma_map()
744 unsigned long minsz; in afu_ioctl_dma_unmap() local
746 minsz = offsetofend(struct dfl_fpga_port_dma_unmap, iova); in afu_ioctl_dma_unmap()
748 if (copy_from_user(&unmap, arg, minsz)) in afu_ioctl_dma_unmap()
751 if (unmap.argsz < minsz || unmap.flags) in afu_ioctl_dma_unmap()