/linux/drivers/message/fusion/ |
H A D | mptctl.c | 126 static int mptctl_do_mpt_command(MPT_ADAPTER *iocp, struct mpt_ioctl_command karg, void __user *mfP… 1229 struct mpt_ioctl_iocinfo *karg; in mptctl_getiocinfo() local 1251 karg = memdup_user(uarg, data_size); in mptctl_getiocinfo() 1252 if (IS_ERR(karg)) { in mptctl_getiocinfo() 1254 __FILE__, __LINE__, PTR_ERR(karg)); in mptctl_getiocinfo() 1255 return PTR_ERR(karg); in mptctl_getiocinfo() 1259 if (karg->hdr.maxDataSize != data_size) { in mptctl_getiocinfo() 1263 kfree(karg); in mptctl_getiocinfo() 1274 karg->adapterType = MPT_IOCTL_INTERFACE_SAS; in mptctl_getiocinfo() 1276 karg->adapterType = MPT_IOCTL_INTERFACE_FC; in mptctl_getiocinfo() [all …]
|
/linux/fs/proc/ |
H A D | task_mmu.c | 456 struct procmap_query karg; in do_procmap_query() local 472 err = copy_struct_from_user(&karg, sizeof(karg), uarg, usize); in do_procmap_query() 477 if (karg.query_flags & ~PROCMAP_QUERY_VALID_FLAGS_MASK) in do_procmap_query() 480 if (!!karg.vma_name_size != !!karg.vma_name_addr) in do_procmap_query() 482 if (!!karg.build_id_size != !!karg.build_id_addr) in do_procmap_query() 495 vma = query_matching_vma(mm, karg.query_addr, karg.query_flags); in do_procmap_query() 502 karg.vma_start = vma->vm_start; in do_procmap_query() 503 karg.vma_end = vma->vm_end; in do_procmap_query() 505 karg.vma_flags = 0; in do_procmap_query() 507 karg.vma_flags |= PROCMAP_QUERY_VMA_READABLE; in do_procmap_query() [all …]
|
/linux/drivers/media/mc/ |
H A D | mc-device.c | 383 static long copy_arg_from_user(void *karg, void __user *uarg, unsigned int cmd) in copy_arg_from_user() argument 386 copy_from_user(karg, uarg, _IOC_SIZE(cmd))) in copy_arg_from_user() 392 static long copy_arg_to_user(void __user *uarg, void *karg, unsigned int cmd) in copy_arg_to_user() argument 395 copy_to_user(uarg, karg, _IOC_SIZE(cmd))) in copy_arg_to_user() 421 long (*arg_from_user)(void *karg, void __user *uarg, unsigned int cmd); 422 long (*arg_to_user)(void __user *uarg, void *karg, unsigned int cmd); 441 char __karg[256], *karg = __karg; in media_device_ioctl() local 451 karg = kmalloc(_IOC_SIZE(info->cmd), GFP_KERNEL); in media_device_ioctl() 452 if (!karg) in media_device_ioctl() 457 ret = info->arg_from_user(karg, arg, cmd); in media_device_ioctl() [all …]
|
/linux/include/net/phonet/ |
H A D | phonet.h | 120 int karg; in phonet_sk_ioctl() local 125 if (get_user(karg, (int __user *)arg)) in phonet_sk_ioctl() 128 return sk->sk_prot->ioctl(sk, cmd, &karg); in phonet_sk_ioctl()
|
/linux/drivers/char/ |
H A D | lp.c | 702 s32 karg[2]; in lp_set_timeout32() local 704 if (copy_from_user(karg, arg, sizeof(karg))) in lp_set_timeout32() 707 return lp_set_timeout(minor, karg[0], karg[1]); in lp_set_timeout32() 712 s64 karg[2]; in lp_set_timeout64() local 714 if (copy_from_user(karg, arg, sizeof(karg))) in lp_set_timeout64() 719 karg[1] >>= 32; in lp_set_timeout64() 721 return lp_set_timeout(minor, karg[0], karg[1]); in lp_set_timeout64()
|
/linux/net/phonet/ |
H A D | datagram.c | 31 static int pn_ioctl(struct sock *sk, int cmd, int *karg) in pn_ioctl() argument 39 *karg = skb ? skb->len : 0; in pn_ioctl() 45 u32 res = *karg; in pn_ioctl()
|
H A D | pep.c | 951 static int pep_ioctl(struct sock *sk, int cmd, int *karg) in pep_ioctl() argument 963 *karg = pep_first_packet_length(sk); in pep_ioctl()
|
/linux/net/l2tp/ |
H A D | l2tp_ip.c | 590 int l2tp_ioctl(struct sock *sk, int cmd, int *karg) in l2tp_ioctl() argument 596 *karg = sk_wmem_alloc_get(sk); in l2tp_ioctl() 601 *karg = skb ? skb->len : 0; in l2tp_ioctl()
|
H A D | l2tp_core.h | 272 int l2tp_ioctl(struct sock *sk, int cmd, int *karg);
|
/linux/net/dccp/ |
H A D | proto.c | 369 int dccp_ioctl(struct sock *sk, int cmd, int *karg) in dccp_ioctl() argument 380 *karg = sk_wmem_alloc_get(sk); in dccp_ioctl() 390 *karg = 0; in dccp_ioctl() 398 *karg = skb->len; in dccp_ioctl()
|
H A D | dccp.h | 295 int dccp_ioctl(struct sock *sk, int cmd, int *karg);
|
/linux/drivers/scsi/mpi3mr/ |
H A D | mpi3mr_app.c | 2305 struct mpi3mr_bsg_mptcmd *karg; in mpi3mr_bsg_process_mpt_cmds() local 2326 karg = (struct mpi3mr_bsg_mptcmd *)&bsg_req->cmd.mptcmd; in mpi3mr_bsg_process_mpt_cmds() 2328 mrioc = mpi3mr_bsg_verify_adapter(karg->mrioc_id); in mpi3mr_bsg_process_mpt_cmds() 2347 if (karg->timeout < MPI3MR_APP_DEFAULT_TIMEOUT) in mpi3mr_bsg_process_mpt_cmds() 2348 karg->timeout = MPI3MR_APP_DEFAULT_TIMEOUT; in mpi3mr_bsg_process_mpt_cmds() 2357 bufcnt = karg->buf_entry_list.num_of_entries; in mpi3mr_bsg_process_mpt_cmds() 2385 buf_entries = karg->buf_entry_list.buf_entry; in mpi3mr_bsg_process_mpt_cmds() 2695 (karg->timeout * HZ)); in mpi3mr_bsg_process_mpt_cmds() 2707 __func__, karg->timeout); in mpi3mr_bsg_process_mpt_cmds() 2723 karg->timeout, mpi_header->function_dependent); in mpi3mr_bsg_process_mpt_cmds()
|
/linux/net/core/ |
H A D | sock.c | 4271 void __user *arg, void *karg, size_t size) in sock_ioctl_inout() argument 4275 if (copy_from_user(karg, arg, size)) in sock_ioctl_inout() 4278 ret = READ_ONCE(sk->sk_prot)->ioctl(sk, cmd, karg); in sock_ioctl_inout() 4282 if (copy_to_user(arg, karg, size)) in sock_ioctl_inout() 4295 int ret, karg = 0; in sock_ioctl_out() local 4297 ret = READ_ONCE(sk->sk_prot)->ioctl(sk, cmd, &karg); in sock_ioctl_out() 4301 return put_user(karg, (int __user *)arg); in sock_ioctl_out()
|
/linux/include/net/ |
H A D | udp.h | 411 int udp_ioctl(struct sock *sk, int cmd, int *karg);
|
H A D | sock.h | 1237 int *karg); 2935 void __user *arg, void *karg, size_t size);
|
H A D | tcp.h | 344 int tcp_ioctl(struct sock *sk, int cmd, int *karg);
|
/linux/net/mptcp/ |
H A D | protocol.c | 3714 static int mptcp_ioctl(struct sock *sk, int cmd, int *karg) in mptcp_ioctl() argument 3726 *karg = mptcp_inq_hint(sk); in mptcp_ioctl() 3731 *karg = mptcp_ioctl_outq(msk, READ_ONCE(msk->snd_una)); in mptcp_ioctl() 3736 *karg = mptcp_ioctl_outq(msk, msk->snd_nxt); in mptcp_ioctl()
|
/linux/net/ipv4/ |
H A D | udp.c | 1842 int udp_ioctl(struct sock *sk, int cmd, int *karg) in udp_ioctl() argument 1847 *karg = sk_wmem_alloc_get(sk); in udp_ioctl() 1853 *karg = max_t(int, 0, first_packet_length(sk)); in udp_ioctl()
|
H A D | tcp.c | 618 int tcp_ioctl(struct sock *sk, int cmd, int *karg) in tcp_ioctl() argument 660 *karg = answ; in tcp_ioctl()
|
/linux/net/sctp/ |
H A D | socket.c | 4912 static int sctp_ioctl(struct sock *sk, int cmd, int *karg) in sctp_ioctl() argument 4928 *karg = 0; in sctp_ioctl() 4936 *karg = skb->len; in sctp_ioctl()
|