/net/ |
D | compat.c | 38 struct sockaddr __user **save_addr) in __get_compat_msghdr() 84 struct compat_msghdr __user *umsg, in get_compat_msghdr() 85 struct sockaddr __user **save_addr, in get_compat_msghdr() 108 ((void __user *)((char __user *)(cmsg) + sizeof(struct compat_cmsghdr))) 116 (struct compat_cmsghdr __user *)((msg)->msg_control_user) : \ 117 (struct compat_cmsghdr __user *)NULL) 123 ((char __user *)(ucmsg) - (char __user *)(mhdr)->msg_control_user))) 125 static inline struct compat_cmsghdr __user *cmsg_compat_nxthdr(struct msghdr *msg, in cmsg_compat_nxthdr() 126 struct compat_cmsghdr __user *cmsg, int cmsg_len) in cmsg_compat_nxthdr() 128 char __user *ptr = (char __user *)cmsg + CMSG_COMPAT_ALIGN(cmsg_len); in cmsg_compat_nxthdr() [all …]
|
D | socket.c | 248 int move_addr_to_kernel(void __user *uaddr, int ulen, struct sockaddr_storage *kaddr) in move_addr_to_kernel() 277 void __user *uaddr, int __user *ulen) in move_addr_to_user() 1174 void __user *uarg); 1178 void __user *uarg)) in brioctl_set() 1187 struct ifreq *ifr, void __user *uarg) in br_ioctl_call() 1203 static int (*vlan_ioctl_hook) (struct net *, void __user *arg); 1205 void vlan_ioctl_set(int (*hook) (struct net *, void __user *)) in vlan_ioctl_set() argument 1220 void __user *argp = (void __user *)arg; in sock_do_ioctl() 1221 void __user *data; in sock_do_ioctl() 1255 void __user *argp = (void __user *)arg; in sock_ioctl() [all …]
|
/net/atm/ |
D | ioctl.c | 58 void __user *argp = (void __user *)arg; in do_vcc_ioctl() 59 void __user *buf; in do_vcc_ioctl() 60 int __user *len; in do_vcc_ioctl() 71 (int __user *)argp) ? -EFAULT : 0; in do_vcc_ioctl() 86 error = put_user(amount, (int __user *)argp) ? -EFAULT : 0; in do_vcc_ioctl() 128 error = get_user(backend, (atm_backend_t __user *)argp); in do_vcc_ioctl() 173 struct compat_atm_iobuf __user *ciobuf = argp; in do_vcc_ioctl() 181 struct atm_iobuf __user *iobuf = argp; in do_vcc_ioctl() 192 struct compat_atmif_sioc __user *csioc = argp; in do_vcc_ioctl() 203 struct atmif_sioc __user *sioc = argp; in do_vcc_ioctl() [all …]
|
D | resources.h | 17 int atm_getnames(void __user *buf, int __user *iobuf_len); 18 int atm_dev_ioctl(unsigned int cmd, void __user *buf, int __user *sioc_len,
|
D | pppoatm.c | 375 return put_user(chan_to_pvcc(chan)->flags, (int __user *) arg) in pppoatm_devppp_ioctl() 378 return get_user(chan_to_pvcc(chan)->flags, (int __user *) arg) in pppoatm_devppp_ioctl() 389 static int pppoatm_assign_vcc(struct atm_vcc *atmvcc, void __user *arg) in pppoatm_assign_vcc() 443 void __user *argp = (void __user *)arg; in pppoatm_ioctl() 450 if (get_user(b, (atm_backend_t __user *) argp)) in pppoatm_ioctl() 462 chan), (int __user *) argp) ? -EFAULT : 0; in pppoatm_ioctl() 465 chan), (int __user *) argp) ? -EFAULT : 0; in pppoatm_ioctl()
|
D | resources.c | 175 static int fetch_stats(struct atm_dev *dev, struct atm_dev_stats __user *arg, in fetch_stats() 194 int atm_getnames(void __user *buf, int __user *iobuf_len) in atm_getnames() 227 int atm_dev_ioctl(unsigned int cmd, void __user *buf, int __user *sioc_len, in atm_dev_ioctl()
|
/net/dccp/ |
D | ccid.h | 80 u32 __user *optval, 81 int __user *optlen); 84 u32 __user *optval, 85 int __user *optlen); 109 char __user *, int __user *); 243 u32 __user *optval, int __user *optlen) in ccid_hc_rx_getsockopt() 254 u32 __user *optval, int __user *optlen) in ccid_hc_tx_getsockopt()
|
/net/mac80211/ |
D | debugfs.c | 20 int mac80211_format_buffer(char __user *userbuf, size_t count, in mac80211_format_buffer() 35 static ssize_t name## _read(struct file *file, char __user *userbuf, \ 76 char __user *user_buf, in aqm_read() 117 const char __user *user_buf, in aqm_write() 153 char __user *user_buf, in airtime_flags_read() 174 const char __user *user_buf, in airtime_flags_write() 205 char __user *user_buf, in aql_pending_read() 235 char __user *user_buf, in aql_txq_limit_read() 262 const char __user *user_buf, in aql_txq_limit_write() 314 static ssize_t aql_enable_read(struct file *file, char __user *user_buf, in aql_enable_read() [all …]
|
D | debugfs_key.c | 19 char __user *userbuf, \ 70 char __user *userbuf, in key_algorithm_read() 83 static ssize_t key_tx_spec_write(struct file *file, const char __user *userbuf, in key_tx_spec_write() 118 static ssize_t key_tx_spec_read(struct file *file, char __user *userbuf, in key_tx_spec_read() 157 static ssize_t key_rx_spec_read(struct file *file, char __user *userbuf, in key_rx_spec_read() 225 static ssize_t key_replays_read(struct file *file, char __user *userbuf, in key_replays_read() 258 static ssize_t key_icverrors_read(struct file *file, char __user *userbuf, in key_icverrors_read() 283 static ssize_t key_mic_failures_read(struct file *file, char __user *userbuf, in key_mic_failures_read() 299 static ssize_t key_key_read(struct file *file, char __user *userbuf, in key_key_read()
|
D | debugfs_sta.c | 23 char __user *userbuf, \ 86 static ssize_t sta_flags_read(struct file *file, char __user *userbuf, in sta_flags_read() 107 char __user *userbuf, in sta_num_ps_buf_frames_read() 122 static ssize_t sta_last_seq_ctrl_read(struct file *file, char __user *userbuf, in sta_last_seq_ctrl_read() 138 static ssize_t sta_aqm_read(struct file *file, char __user *userbuf, in sta_aqm_read() 198 static ssize_t sta_airtime_read(struct file *file, char __user *userbuf, in sta_airtime_read() 232 static ssize_t sta_airtime_write(struct file *file, const char __user *userbuf, in sta_airtime_write() 251 static ssize_t sta_aql_read(struct file *file, char __user *userbuf, in sta_aql_read() 286 static ssize_t sta_aql_write(struct file *file, const char __user *userbuf, in sta_aql_write() 315 static ssize_t sta_agg_status_read(struct file *file, char __user *userbuf, in sta_agg_status_read() [all …]
|
/net/ethtool/ |
D | ioctl.c | 78 static int ethtool_get_features(struct net_device *dev, void __user *useraddr) in ethtool_get_features() 85 u32 __user *sizeaddr; in ethtool_get_features() 117 static int ethtool_set_features(struct net_device *dev, void __user *useraddr) in ethtool_set_features() 246 char __user *useraddr, u32 ethcmd) in ethtool_get_one_feature() 260 void __user *useraddr, u32 ethcmd) in ethtool_set_one_feature() 450 const void __user *from) in load_link_ksettings_from_user() 494 store_link_ksettings_for_user(void __user *to, in store_link_ksettings_for_user() 518 void __user *useraddr) in ethtool_get_link_ksettings() 575 void __user *useraddr) in ethtool_set_link_ksettings() 648 static int ethtool_get_settings(struct net_device *dev, void __user *useraddr) in ethtool_get_settings() [all …]
|
/net/mptcp/ |
D | sockopt.c | 894 char __user *optval, int __user *optlen) in mptcp_getsockopt_first_sf_only() 971 static int mptcp_getsockopt_info(struct mptcp_sock *msk, char __user *optval, int __user *optlen) in mptcp_getsockopt_info() 993 char __user *optval, in mptcp_put_subflow_data() 995 int __user *optlen) in mptcp_put_subflow_data() 1014 char __user *optval, in mptcp_get_subflow_data() 1015 int __user *optlen) in mptcp_get_subflow_data() 1051 static int mptcp_getsockopt_tcpinfo(struct mptcp_sock *msk, char __user *optval, in mptcp_getsockopt_tcpinfo() 1052 int __user *optlen) in mptcp_getsockopt_tcpinfo() 1058 char __user *infoptr; in mptcp_getsockopt_tcpinfo() 1143 static int mptcp_getsockopt_subflow_addrs(struct mptcp_sock *msk, char __user *optval, in mptcp_getsockopt_subflow_addrs() [all …]
|
/net/bridge/ |
D | br_ioctl.c | 56 static int get_fdb_entries(struct net_bridge *br, void __user *userbuf, in get_fdb_entries() 108 void __user **argp, void __user *data) in br_dev_read_uargs() 131 *argp = (void __user *)args[1]; in br_dev_read_uargs() 145 void __user *data, int cmd) in br_dev_siocdevprivate() 150 void __user *argp; in br_dev_siocdevprivate() 189 if (copy_to_user((void __user *)args[1], &b, sizeof(b))) in br_dev_siocdevprivate() 339 static int old_deviceless(struct net *net, void __user *data) in old_deviceless() 342 void __user *argp; in old_deviceless() 398 struct ifreq *ifr, void __user *uarg) in br_ioctl_stub()
|
/net/sctp/ |
D | socket.c | 1387 char __user *optval, in sctp_getsockopt_connectx3() 1388 int __user *optlen) in sctp_getsockopt_connectx3() 5408 char __user *optval, in sctp_getsockopt_sctp_status() 5409 int __user *optlen) in sctp_getsockopt_sctp_status() 5488 char __user *optval, in sctp_getsockopt_peer_addr_info() 5489 int __user *optlen) in sctp_getsockopt_peer_addr_info() 5551 char __user *optval, int __user *optlen) in sctp_getsockopt_disable_fragments() 5572 static int sctp_getsockopt_events(struct sock *sk, int len, char __user *optval, in sctp_getsockopt_events() 5573 int __user *optlen) in sctp_getsockopt_events() 5607 static int sctp_getsockopt_autoclose(struct sock *sk, int len, char __user *optval, int __user *opt… in sctp_getsockopt_autoclose() [all …]
|
/net/bluetooth/hidp/ |
D | sock.c | 50 static int do_hidp_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp) in do_hidp_sock_ioctl() 128 return do_hidp_sock_ioctl(sock, cmd, (void __user *)arg); in hidp_sock_ioctl() 150 void __user *argp = compat_ptr(arg); in hidp_sock_compat_ioctl() 155 u32 __user *p = argp; in hidp_sock_compat_ioctl() 181 if (copy_from_user(&ca32, (void __user *) arg, sizeof(ca32))) in hidp_sock_compat_ioctl()
|
/net/bluetooth/ |
D | hci_debugfs.c | 36 char __user *user_buf, \ 49 const char __user *user_buf, \ 277 static ssize_t use_debug_keys_read(struct file *file, char __user *user_buf, in use_debug_keys_read() 295 static ssize_t sc_only_mode_read(struct file *file, char __user *user_buf, in sc_only_mode_read() 431 static ssize_t ssp_debug_mode_read(struct file *file, char __user *user_buf, in ssp_debug_mode_read() 504 char __user *user_buf, in force_bredr_smp_read() 517 const char __user *user_buf, in force_bredr_smp_write() 749 char __user *user_buf, in force_static_address_read() 762 const char __user *user_buf, in force_static_address_write() 1151 char __user *user_buf, in force_no_mitm_read() [all …]
|
/net/bluetooth/bnep/ |
D | sock.c | 53 static int do_bnep_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp) in do_bnep_sock_ioctl() 139 return do_bnep_sock_ioctl(sock, cmd, (void __user *)arg); in bnep_sock_ioctl() 145 void __user *argp = compat_ptr(arg); in bnep_sock_compat_ioctl() 148 unsigned __user *p = argp; in bnep_sock_compat_ioctl()
|
/net/bluetooth/cmtp/ |
D | sock.c | 66 static int do_cmtp_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp) in do_cmtp_sock_ioctl() 141 return do_cmtp_sock_ioctl(sock, cmd, (void __user *)arg); in cmtp_sock_ioctl() 147 void __user *argp = compat_ptr(arg); in cmtp_sock_compat_ioctl() 150 u32 __user *p = argp; in cmtp_sock_compat_ioctl()
|
/net/bpf/ |
D | bpf_dummy_struct_ops.c | 25 void __user *ctx_in; in dummy_ops_init_args() 26 void __user *u_state; in dummy_ops_init_args() 54 void __user *u_state; in dummy_ops_copy_args() 78 union bpf_attr __user *uattr) in bpf_struct_ops_test_run()
|
D | test_run.c | 436 union bpf_attr __user *uattr, const void *data, in bpf_test_finish() 440 void __user *data_out = u64_to_user_ptr(kattr->test.data_out); in bpf_test_finish() 629 void __user *data_in = u64_to_user_ptr(kattr->test.data_in); in BTF_ID_FLAGS() 653 union bpf_attr __user *uattr) in bpf_prog_test_run_tracing() 724 union bpf_attr __user *uattr) in bpf_prog_test_run_raw_tp() 726 void __user *ctx_in = u64_to_user_ptr(kattr->test.ctx_in); in bpf_prog_test_run_raw_tp() 782 void __user *data_in = u64_to_user_ptr(kattr->test.ctx_in); in bpf_ctx_init() 783 void __user *data_out = u64_to_user_ptr(kattr->test.ctx_out); in bpf_ctx_init() 812 union bpf_attr __user *uattr, const void *data, in bpf_ctx_finish() 815 void __user *data_out = u64_to_user_ptr(kattr->test.ctx_out); in bpf_ctx_finish() [all …]
|
/net/bridge/netfilter/ |
D | ebtables.c | 69 static int ebt_standard_compat_to_user(void __user *dst, const void *src) in ebt_standard_compat_to_user() 490 if ((char __user *)repl->hook_entry[i] == in ebt_verify_pointers() 1379 struct ebt_counter __user *counters, in do_update_counters() 1440 static inline int ebt_obj_to_user(char __user *um, const char *_name, in ebt_obj_to_user() 1451 put_user(revision, (u8 __user *)(um + EBT_EXTENSION_MAXNAMELEN)) || in ebt_obj_to_user() 1452 put_user(datasize, (int __user *)(um + EBT_EXTENSION_MAXNAMELEN + 1)) || in ebt_obj_to_user() 1461 const char *base, char __user *ubase) in ebt_match_to_user() 1470 const char *base, char __user *ubase) in ebt_watcher_to_user() 1479 char __user *ubase) in ebt_entry_to_user() 1482 char __user *hlp; in ebt_entry_to_user() [all …]
|
/net/rds/ |
D | info.h | 24 int rds_info_getsockopt(struct socket *sock, int optname, char __user *optval, 25 int __user *optlen);
|
/net/ipv4/ |
D | udp_impl.h | 18 char __user *optval, int __user *optlen);
|
/net/ipv6/ |
D | udp_impl.h | 20 char __user *optval, int __user *optlen);
|
/net/sunrpc/ |
D | cache.c | 826 static ssize_t cache_read(struct file *filp, char __user *buf, size_t count, in cache_read() 908 static ssize_t cache_do_downcall(char *kaddr, const char __user *buf, in cache_do_downcall() 925 const char __user *buf, in cache_downcall() 946 static ssize_t cache_write(struct file *filp, const char __user *buf, in cache_write() 1019 return put_user(len, (int __user *)arg); in cache_ioctl() 1497 static ssize_t read_flush(struct file *file, char __user *buf, in read_flush() 1509 static ssize_t write_flush(struct file *file, const char __user *buf, in write_flush() 1552 static ssize_t cache_read_procfs(struct file *filp, char __user *buf, in cache_read_procfs() 1560 static ssize_t cache_write_procfs(struct file *filp, const char __user *buf, in cache_write_procfs() 1643 static ssize_t read_flush_procfs(struct file *filp, char __user *buf, in read_flush_procfs() [all …]
|