_IOC_SIZE
size_t usize = _IOC_SIZE(cmd);
p = memdup_user(arg, _IOC_SIZE(cmd));
hl_size = _IOC_SIZE(ioctl->cmd);
usize = asize = _IOC_SIZE(cmd);
*size = _IOC_SIZE(*cmd);
if (*size > _IOC_SIZE(*cmd)) {
drv_size = _IOC_SIZE(kcmd);
out_size = _IOC_SIZE(ucmd);
_IOC_SIZE(cmd) > sizeof(buffer))
if (copy_from_user(&buffer, arg, _IOC_SIZE(cmd)))
if (copy_to_user(arg, &buffer, _IOC_SIZE(cmd)))
amdkfd_size = _IOC_SIZE(ioctl->cmd);
usize = asize = _IOC_SIZE(cmd);
drv_size = _IOC_SIZE(ioctl->cmd);
out_size = in_size = _IOC_SIZE(cmd);
ret = nouveau_abi16_ioctl(filp, (void __user *)arg, _IOC_SIZE(cmd));
int len = _IOC_SIZE(cmd);
int len = _IOC_SIZE(cmd);
if (len > _IOC_SIZE(cmd))
len = _IOC_SIZE(cmd);
if (len > _IOC_SIZE(cmd))
len = _IOC_SIZE(cmd);
ret = assign_ctxt(fd, arg, _IOC_SIZE(cmd));
ret = get_ctxt_info(fd, arg, _IOC_SIZE(cmd));
ret = get_base_info(fd, arg, _IOC_SIZE(cmd));
ret = user_exp_rcv_setup(fd, arg, _IOC_SIZE(cmd));
ret = user_exp_rcv_clear(fd, arg, _IOC_SIZE(cmd));
ret = user_exp_rcv_invalid(fd, arg, _IOC_SIZE(cmd));
size = _IOC_SIZE(cmd);
return joydev_handle_JSIOCSAXMAP(joydev, argp, _IOC_SIZE(cmd));
len = min_t(size_t, _IOC_SIZE(cmd), sizeof(joydev->abspam));
return joydev_handle_JSIOCSBTNMAP(joydev, argp, _IOC_SIZE(cmd));
len = min_t(size_t, _IOC_SIZE(cmd), sizeof(joydev->keypam));
len = min_t(size_t, _IOC_SIZE(cmd), strlen(name) + 1);
size = _IOC_SIZE(cmd);
if (copy_to_user((void __user *)arg, parg, _IOC_SIZE(cmd)))
if (_IOC_SIZE(cmd) <= sizeof(sbuf)) {
mbuf = kmalloc(_IOC_SIZE(cmd), GFP_KERNEL);
if (copy_from_user(parg, (void __user *)arg, _IOC_SIZE(cmd)))
copy_from_user(karg, uarg, _IOC_SIZE(cmd)))
copy_to_user(uarg, karg, _IOC_SIZE(cmd)))
if (_IOC_SIZE(info->cmd) > sizeof(__karg)) {
karg = kmalloc(_IOC_SIZE(info->cmd), GFP_KERNEL);
unsigned int n = _IOC_SIZE(real_cmd);
if (!err && n < _IOC_SIZE(real_cmd))
memset((u8 *)parg + n, 0, _IOC_SIZE(real_cmd) - n);
if (copy_to_user(arg, parg, _IOC_SIZE(cmd)))
const size_t ioc_size = _IOC_SIZE(cmd);
return mptctl_getiocinfo(iocp, arg, _IOC_SIZE(cmd));
ret = mptctl_hp_hostinfo(iocp, arg, _IOC_SIZE(cmd));
if (_IOC_SIZE(cmd) != sizeof(raw))
if (copy_from_user(&raw, argp, _IOC_SIZE(cmd)))
if (_IOC_NR(cmd) <= 3 && _IOC_SIZE(cmd) == sizeof(compat_uptr_t)) {
size_t size = _IOC_SIZE(cmd);
if (_IOC_SIZE(cmd) != sizeof(*ioctl))
if (_IOC_SIZE(cmd) != sizeof(struct mpt3_ioctl_command32))
if (_IOC_SIZE(cmd) == sizeof(struct mpt3_ioctl_iocinfo))
if (_IOC_SIZE(cmd) == sizeof(struct mpt3_ioctl_command)) {
if (_IOC_SIZE(cmd) == sizeof(struct mpt3_ioctl_eventquery))
if (_IOC_SIZE(cmd) == sizeof(struct mpt3_ioctl_eventenable))
if (_IOC_SIZE(cmd) == sizeof(struct mpt3_ioctl_diag_reset))
if (_IOC_SIZE(cmd) == sizeof(struct mpt3_ioctl_btdh_mapping))
if (_IOC_SIZE(cmd) == sizeof(struct mpt3_diag_register))
if (_IOC_SIZE(cmd) == sizeof(struct mpt3_diag_unregister))
if (_IOC_SIZE(cmd) == sizeof(struct mpt3_diag_query))
if (_IOC_SIZE(cmd) == sizeof(struct mpt3_diag_release))
if (_IOC_SIZE(cmd) == sizeof(struct mpt3_diag_read_buffer))
if (_IOC_SIZE(cmd) == sizeof(struct mpt3_addnl_diag_query))
if (_IOC_SIZE(cmd) == sizeof(struct mpt3_enable_diag_sbr_reload))
if (_IOC_SIZE(cmd_in) != sizeof(mtc)) {
if (_IOC_SIZE(cmd_in) != sizeof(struct mtget)) {
if (_IOC_SIZE(cmd_in) != sizeof(struct mtpos)) {
tmp = _IOC_SIZE(cmd);
_IOC_TYPE(cmd), _IOC_NR(cmd), _IOC_SIZE(cmd), _IOC_DIR(cmd));
if (length > _IOC_SIZE(cmd))
length = _IOC_SIZE(cmd); /* truncate */
_IOC_SIZE(cmd) < sizeof(twoints)) {
_IOC_SIZE(cmd) < sizeof(twoints)) {
_IOC_SIZE(cmd) < sizeof(twoints)) {
size = _IOC_SIZE(ctl->ioctl_code);
ret = proc_conninfo_ex(ps, p, _IOC_SIZE(cmd));
if (copy_from_user(&entry, argp, _IOC_SIZE(cmd)))
ret = copy_to_user(argp, &entry, _IOC_SIZE(cmd));
_IOC_TYPE(cmd), _IOC_NR(cmd), _IOC_SIZE(cmd));
_IOC_SIZE(cmd));
if (_IOC_SIZE(req) && _IOC_SIZE(req) != size)
iov->iov_len = _IOC_SIZE(cmd);
size_t usize = _IOC_SIZE(ioctl);
size_t usize = _IOC_SIZE(ioctl);
size_t usize = _IOC_SIZE(cmd);
if (_IOC_SIZE(cmd_a) < min_size)
#define _SIOC_SIZE _IOC_SIZE
if (_IOC_SIZE(cmd) == sizeof(compat_uptr_t)) {
return seccomp_notify_addfd(filter, buf, _IOC_SIZE(cmd));
size = _IOC_SIZE(handler->cmd);
sz = _IOC_SIZE(cmd);
kvm_static_assert(!_IOC_SIZE(cmd) || sizeof(*arg) == _IOC_SIZE(cmd)); \