/linux-6.6.21/drivers/message/fusion/ |
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-6.6.21/drivers/scsi/mpt3sas/ |
D | mpt3sas_ctl.c | 578 _ctl_set_task_mid(struct MPT3SAS_ADAPTER *ioc, struct mpt3_ioctl_command *karg, in _ctl_set_task_mid() argument 640 sz = min_t(u32, karg->max_reply_bytes, ioc->reply_sz); in _ctl_set_task_mid() 641 if (copy_to_user(karg->reply_frame_buf_ptr, ioc->ctl_cmds.reply, in _ctl_set_task_mid() 662 _ctl_do_mpt_command(struct MPT3SAS_ADAPTER *ioc, struct mpt3_ioctl_command karg, in _ctl_do_mpt_command() argument 704 if (karg.data_sge_offset * 4 > ioc->request_sz || in _ctl_do_mpt_command() 705 karg.data_sge_offset > (UINT_MAX / 4)) { in _ctl_do_mpt_command() 711 if (copy_from_user(mpi_request, mf, karg.data_sge_offset*4)) { in _ctl_do_mpt_command() 735 memcpy(request, mpi_request, karg.data_sge_offset*4); in _ctl_do_mpt_command() 737 data_out_sz = karg.data_out_size; in _ctl_do_mpt_command() 738 data_in_sz = karg.data_in_size; in _ctl_do_mpt_command() [all …]
|
/linux-6.6.21/drivers/media/mc/ |
D | mc-device.c | 387 static long copy_arg_from_user(void *karg, void __user *uarg, unsigned int cmd) in copy_arg_from_user() argument 390 copy_from_user(karg, uarg, _IOC_SIZE(cmd))) in copy_arg_from_user() 396 static long copy_arg_to_user(void __user *uarg, void *karg, unsigned int cmd) in copy_arg_to_user() argument 399 copy_to_user(uarg, karg, _IOC_SIZE(cmd))) in copy_arg_to_user() 425 long (*arg_from_user)(void *karg, void __user *uarg, unsigned int cmd); 426 long (*arg_to_user)(void __user *uarg, void *karg, unsigned int cmd); 445 char __karg[256], *karg = __karg; in media_device_ioctl() local 455 karg = kmalloc(_IOC_SIZE(info->cmd), GFP_KERNEL); in media_device_ioctl() 456 if (!karg) in media_device_ioctl() 461 ret = info->arg_from_user(karg, arg, cmd); in media_device_ioctl() [all …]
|
/linux-6.6.21/include/net/phonet/ |
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-6.6.21/drivers/char/ |
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-6.6.21/net/phonet/ |
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()
|
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-6.6.21/drivers/scsi/mpi3mr/ |
D | mpi3mr_app.c | 965 struct mpi3mr_bsg_mptcmd *karg; in mpi3mr_bsg_process_mpt_cmds() local 984 karg = (struct mpi3mr_bsg_mptcmd *)&bsg_req->cmd.mptcmd; in mpi3mr_bsg_process_mpt_cmds() 986 mrioc = mpi3mr_bsg_verify_adapter(karg->mrioc_id); in mpi3mr_bsg_process_mpt_cmds() 990 if (karg->timeout < MPI3MR_APP_DEFAULT_TIMEOUT) in mpi3mr_bsg_process_mpt_cmds() 991 karg->timeout = MPI3MR_APP_DEFAULT_TIMEOUT; in mpi3mr_bsg_process_mpt_cmds() 998 bufcnt = karg->buf_entry_list.num_of_entries; in mpi3mr_bsg_process_mpt_cmds() 1023 buf_entries = karg->buf_entry_list.buf_entry; in mpi3mr_bsg_process_mpt_cmds() 1293 (karg->timeout * HZ)); in mpi3mr_bsg_process_mpt_cmds() 1303 karg->timeout); in mpi3mr_bsg_process_mpt_cmds()
|
/linux-6.6.21/net/l2tp/ |
D | l2tp_ip.c | 565 int l2tp_ioctl(struct sock *sk, int cmd, int *karg) in l2tp_ioctl() argument 571 *karg = sk_wmem_alloc_get(sk); in l2tp_ioctl() 576 *karg = skb ? skb->len : 0; in l2tp_ioctl()
|
D | l2tp_core.h | 275 int l2tp_ioctl(struct sock *sk, int cmd, int *karg);
|
/linux-6.6.21/net/ipv4/ |
D | raw.c | 857 static int raw_ioctl(struct sock *sk, int cmd, int *karg) in raw_ioctl() argument 861 *karg = sk_wmem_alloc_get(sk); in raw_ioctl() 870 *karg = skb->len; in raw_ioctl() 872 *karg = 0; in raw_ioctl() 879 return ipmr_ioctl(sk, cmd, karg); in raw_ioctl()
|
D | udp.c | 1668 int udp_ioctl(struct sock *sk, int cmd, int *karg) in udp_ioctl() argument 1673 *karg = sk_wmem_alloc_get(sk); in udp_ioctl() 1679 *karg = max_t(int, 0, first_packet_length(sk)); in udp_ioctl()
|
D | tcp.c | 604 int tcp_ioctl(struct sock *sk, int cmd, int *karg) in tcp_ioctl() argument 646 *karg = answ; in tcp_ioctl()
|
/linux-6.6.21/net/ipv6/ |
D | raw.c | 1115 static int rawv6_ioctl(struct sock *sk, int cmd, int *karg) in rawv6_ioctl() argument 1119 *karg = sk_wmem_alloc_get(sk); in rawv6_ioctl() 1128 *karg = skb->len; in rawv6_ioctl() 1130 *karg = 0; in rawv6_ioctl() 1137 return ip6mr_ioctl(sk, cmd, karg); in rawv6_ioctl()
|
/linux-6.6.21/drivers/media/usb/uvc/ |
D | uvc_v4l2.c | 1473 } karg; in uvc_v4l2_compat_ioctl32() local 1479 ret = uvc_v4l2_get_xu_mapping(&karg.xmap, up); in uvc_v4l2_compat_ioctl32() 1482 ret = uvc_ioctl_xu_ctrl_map(handle->chain, &karg.xmap); in uvc_v4l2_compat_ioctl32() 1485 ret = uvc_v4l2_put_xu_mapping(&karg.xmap, up); in uvc_v4l2_compat_ioctl32() 1492 ret = uvc_v4l2_get_xu_query(&karg.xqry, up); in uvc_v4l2_compat_ioctl32() 1495 ret = uvc_xu_ctrl_query(handle->chain, &karg.xqry); in uvc_v4l2_compat_ioctl32() 1498 ret = uvc_v4l2_put_xu_query(&karg.xqry, up); in uvc_v4l2_compat_ioctl32()
|
/linux-6.6.21/net/ieee802154/ |
D | socket.c | 533 static int dgram_ioctl(struct sock *sk, int cmd, int *karg) in dgram_ioctl() argument 538 *karg = sk_wmem_alloc_get(sk); in dgram_ioctl() 547 *karg = 0; in dgram_ioctl() 555 *karg = skb->len - ieee802154_hdr_length(skb); in dgram_ioctl()
|
/linux-6.6.21/net/dccp/ |
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()
|
D | dccp.h | 295 int dccp_ioctl(struct sock *sk, int cmd, int *karg);
|
/linux-6.6.21/net/core/ |
D | sock.c | 4162 void __user *arg, void *karg, size_t size) in sock_ioctl_inout() argument 4166 if (copy_from_user(karg, arg, size)) in sock_ioctl_inout() 4169 ret = READ_ONCE(sk->sk_prot)->ioctl(sk, cmd, karg); in sock_ioctl_inout() 4173 if (copy_to_user(arg, karg, size)) in sock_ioctl_inout() 4186 int ret, karg = 0; in sock_ioctl_out() local 4188 ret = READ_ONCE(sk->sk_prot)->ioctl(sk, cmd, &karg); in sock_ioctl_out() 4192 return put_user(karg, (int __user *)arg); in sock_ioctl_out()
|
/linux-6.6.21/include/net/ |
D | udp.h | 285 int udp_ioctl(struct sock *sk, int cmd, int *karg);
|
D | sock.h | 1265 int *karg); 3024 void __user *arg, void *karg, size_t size);
|
D | tcp.h | 341 int tcp_ioctl(struct sock *sk, int cmd, int *karg);
|
/linux-6.6.21/net/mptcp/ |
D | protocol.c | 3690 static int mptcp_ioctl(struct sock *sk, int cmd, int *karg) in mptcp_ioctl() argument 3702 *karg = mptcp_inq_hint(sk); in mptcp_ioctl() 3707 *karg = mptcp_ioctl_outq(msk, READ_ONCE(msk->snd_una)); in mptcp_ioctl() 3712 *karg = mptcp_ioctl_outq(msk, msk->snd_nxt); in mptcp_ioctl()
|
/linux-6.6.21/net/sctp/ |
D | socket.c | 4906 static int sctp_ioctl(struct sock *sk, int cmd, int *karg) in sctp_ioctl() argument 4922 *karg = 0; in sctp_ioctl() 4930 *karg = skb->len; in sctp_ioctl()
|