Home
last modified time | relevance | path

Searched refs:karg (Results 1 – 20 of 20) sorted by relevance

/linux/drivers/message/fusion/
H A Dmptctl.c126 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 Dtask_mmu.c456 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 Dmc-device.c383 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 Dphonet.h120 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 Dlp.c702 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 Ddatagram.c31 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 Dpep.c951 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 Dl2tp_ip.c590 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 Dl2tp_core.h272 int l2tp_ioctl(struct sock *sk, int cmd, int *karg);
/linux/net/dccp/
H A Dproto.c369 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 Ddccp.h295 int dccp_ioctl(struct sock *sk, int cmd, int *karg);
/linux/drivers/scsi/mpi3mr/
H A Dmpi3mr_app.c2305 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 Dsock.c4271 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 Dudp.h411 int udp_ioctl(struct sock *sk, int cmd, int *karg);
H A Dsock.h1237 int *karg);
2935 void __user *arg, void *karg, size_t size);
H A Dtcp.h344 int tcp_ioctl(struct sock *sk, int cmd, int *karg);
/linux/net/mptcp/
H A Dprotocol.c3714 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 Dudp.c1842 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 Dtcp.c618 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 Dsocket.c4912 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()