| /linux/include/net/ |
| H A D | llc_c_ac.h | 23 struct sock; 97 typedef int (*llc_conn_action_t)(struct sock *sk, struct sk_buff *skb); 99 int llc_conn_ac_clear_remote_busy(struct sock *sk, struct sk_buff *skb); 100 int llc_conn_ac_conn_ind(struct sock *sk, struct sk_buff *skb); 101 int llc_conn_ac_conn_confirm(struct sock *sk, struct sk_buff *skb); 102 int llc_conn_ac_data_ind(struct sock *sk, struct sk_buff *skb); 103 int llc_conn_ac_disc_ind(struct sock *sk, struct sk_buff *skb); 104 int llc_conn_ac_rst_ind(struct sock *sk, struct sk_buff *skb); 105 int llc_conn_ac_rst_confirm(struct sock *sk, struct sk_buff *skb); 106 int llc_conn_ac_clear_remote_busy_if_f_eq_1(struct sock *sk, [all …]
|
| H A D | llc_c_ev.h | 15 #include <net/sock.h> 128 typedef int (*llc_conn_ev_t)(struct sock *sk, struct sk_buff *skb); 129 typedef int (*llc_conn_ev_qfyr_t)(struct sock *sk, struct sk_buff *skb); 131 int llc_conn_ev_conn_req(struct sock *sk, struct sk_buff *skb); 132 int llc_conn_ev_data_req(struct sock *sk, struct sk_buff *skb); 133 int llc_conn_ev_disc_req(struct sock *sk, struct sk_buff *skb); 134 int llc_conn_ev_rst_req(struct sock *sk, struct sk_buff *skb); 135 int llc_conn_ev_local_busy_detected(struct sock *sk, struct sk_buff *skb); 136 int llc_conn_ev_local_busy_cleared(struct sock *sk, struct sk_buff *skb); 137 int llc_conn_ev_rx_bad_pdu(struct sock *sk, struct sk_buff *skb); [all …]
|
| H A D | sock.h | 9 * Version: @(#)sock.h 1.0.4 05/13/93 103 struct sock; 154 * for struct sock and struct inet_timewait_sock. 200 * offset(struct sock, sk_refcnt) == 128 on 64bit arches 206 struct sock *skc_listener; /* request_sock */ 245 * struct sock - network layer representation of sockets 250 * @sk_kern_sock: True if sock is using kernel lock classes 252 * @sk_wq: sock wait queue and async head 287 * @sk_prot_creator: sk_prot of original sock creator (see ipv6_setsockopt, 312 * @sk_timer: sock cleanup timer [all …]
|
| H A D | inet_connection_sock.h | 36 int (*queue_xmit)(struct sock *sk, struct sk_buff *skb, struct flowi *fl); 38 int (*rebuild_header)(struct sock *sk); 39 void (*sk_rx_dst_set)(struct sock *sk, const struct sk_buff *skb); 40 int (*conn_request)(struct sock *sk, struct sk_buff *skb); 41 struct sock *(*syn_recv_sock)(const struct sock *sk, struct sk_buff *skb, 46 void (*opt_child_init)(struct sock *newsk, 47 const struct sock *sk)); 48 int (*setsockopt)(struct sock *sk, int level, int optname, 50 int (*getsockopt)(struct sock *sk, int level, int optname, 52 void (*mtu_reduced)(struct sock *sk); [all …]
|
| H A D | tcp.h | 37 #include <net/sock.h> 68 void tcp_time_wait(struct sock *sk, int state, int timeo); 299 static inline bool tcp_under_memory_pressure(const struct sock *sk) in tcp_under_memory_pressure() 327 static inline void tcp_wmem_free_skb(struct sock *sk, struct sk_buff *skb) in tcp_wmem_free_skb() 337 void sk_forced_mem_schedule(struct sock *sk, int size); 339 bool tcp_check_oom(const struct sock *sk, int shift); 362 void tcp_shutdown(struct sock *sk, int how); 366 void tcp_remove_empty_skb(struct sock *sk); 367 int tcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t size); 368 int tcp_sendmsg_locked(struct sock *sk, struct msghdr *msg, size_t size); [all …]
|
| H A D | sock_reuseport.h | 9 #include <net/sock.h> 28 struct bpf_prog __rcu *prog; /* optional BPF sock selector */ 29 struct sock *socks[] __counted_by(max_socks); 32 extern int reuseport_alloc(struct sock *sk, bool bind_inany); 33 extern int reuseport_add_sock(struct sock *sk, struct sock *sk2, 35 extern void reuseport_detach_sock(struct sock *sk); 36 void reuseport_stop_listen_sock(struct sock *sk); 37 extern struct sock *reuseport_select_sock(struct sock *sk, 41 struct sock *reuseport_migrate_sock(struct sock *sk, 42 struct sock *migrating_sk, [all …]
|
| /linux/drivers/pcmcia/ |
| H A D | db1xxx_ss.c | 71 static int db1300_card_inserted(struct db1x_pcmcia_sock *sock) in db1300_card_inserted() argument 77 static int db1200_card_inserted(struct db1x_pcmcia_sock *sock) in db1200_card_inserted() argument 82 return sigstat & 1 << (8 + 2 * sock->nr); in db1200_card_inserted() 86 static int db1000_card_inserted(struct db1x_pcmcia_sock *sock) in db1000_card_inserted() argument 88 return !gpio_get_value(sock->insert_gpio); in db1000_card_inserted() 91 static int db1x_card_inserted(struct db1x_pcmcia_sock *sock) in db1x_card_inserted() argument 93 switch (sock->board_type) { in db1x_card_inserted() 95 return db1200_card_inserted(sock); in db1x_card_inserted() 97 return db1300_card_inserted(sock); in db1x_card_inserted() 99 return db1000_card_inserted(sock); in db1x_card_inserted() [all …]
|
| H A D | xxs1500_ss.c | 71 struct xxs1500_pcmcia_sock *sock = data; in cdirq() local 73 pcmcia_parse_events(&sock->socket, SS_DETECT); in cdirq() 81 struct xxs1500_pcmcia_sock *sock = to_xxs_socket(skt); in xxs1500_pcmcia_configure() local 97 changed = state->flags ^ sock->old_flags; in xxs1500_pcmcia_configure() 110 sock->old_flags = state->flags; in xxs1500_pcmcia_configure() 179 struct xxs1500_pcmcia_sock *sock = to_xxs_socket(skt); in au1x00_pcmcia_set_io_map() local 181 map->start = (u32)sock->virt_io; in au1x00_pcmcia_set_io_map() 190 struct xxs1500_pcmcia_sock *sock = to_xxs_socket(skt); in au1x00_pcmcia_set_mem_map() local 193 map->static_start = sock->phys_attr + map->card_start; in au1x00_pcmcia_set_mem_map() 195 map->static_start = sock->phys_mem + map->card_start; in au1x00_pcmcia_set_mem_map() [all …]
|
| /linux/drivers/memstick/host/ |
| H A D | tifm_ms.c | 85 struct tifm_dev *sock = host->dev; in tifm_ms_read_data() local 98 while (!(TIFM_MS_STAT_EMP & readl(sock->addr + SOCK_MS_STATUS))) { in tifm_ms_read_data() 101 *(unsigned int *)(buf + off) = __raw_readl(sock->addr in tifm_ms_read_data() 108 && !(TIFM_MS_STAT_EMP & readl(sock->addr + SOCK_MS_STATUS))) { in tifm_ms_read_data() 109 host->io_word = readl(sock->addr + SOCK_MS_DATA); in tifm_ms_read_data() 125 struct tifm_dev *sock = host->dev; in tifm_ms_write_data() local 137 && !(TIFM_MS_STAT_FUL & readl(sock->addr + SOCK_MS_STATUS))) { in tifm_ms_write_data() 138 writel(TIFM_MS_SYS_FDIR | readl(sock->addr + SOCK_MS_SYSTEM), in tifm_ms_write_data() 139 sock->addr + SOCK_MS_SYSTEM); in tifm_ms_write_data() 140 writel(host->io_word, sock->addr + SOCK_MS_DATA); in tifm_ms_write_data() [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | tcp_ca_kfunc.c | 7 extern void bbr_init(struct sock *sk) __ksym; 8 extern void bbr_main(struct sock *sk, u32 ack, int flag, const struct rate_sample *rs) __ksym; 9 extern u32 bbr_sndbuf_expand(struct sock *sk) __ksym; 10 extern u32 bbr_undo_cwnd(struct sock *sk) __ksym; 11 extern void bbr_cwnd_event_tx_start(struct sock *sk) __ksym; 12 extern u32 bbr_ssthresh(struct sock *sk) __ksym; 13 extern u32 bbr_min_tso_segs(struct sock *sk) __ksym; 14 extern void bbr_set_state(struct sock *sk, u8 new_state) __ksym; 16 extern void dctcp_init(struct sock *sk) __ksym; 17 extern void dctcp_update_alpha(struct sock *s [all...] |
| /linux/drivers/misc/ |
| H A D | tifm_core.c | 34 static int tifm_dev_match(struct tifm_dev *sock, struct tifm_device_id *id) in tifm_dev_match() argument 36 if (sock->type == id->type) in tifm_dev_match() 43 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); in tifm_bus_match() local 50 if (tifm_dev_match(sock, ids)) in tifm_bus_match() 60 const struct tifm_dev *sock = container_of_const(dev, struct tifm_dev, dev); in tifm_uevent() local 62 if (add_uevent_var(env, "TIFM_CARD_TYPE=%s", tifm_media_type_name(sock->type, 1))) in tifm_uevent() 70 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); in tifm_device_probe() local 77 rc = drv->probe(sock); in tifm_device_probe() 85 static void tifm_dummy_event(struct tifm_dev *sock) in tifm_dummy_event() argument 92 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); in tifm_device_remove() local [all …]
|
| /linux/net/handshake/ |
| H A D | handshake-test.c | 13 #include <net/sock.h> 148 struct socket *sock; in handshake_req_submit_test1() local 153 &sock, 1); in handshake_req_submit_test1() 157 result = handshake_req_submit(sock, NULL, GFP_KERNEL); in handshake_req_submit_test1() 162 sock_release(sock); in handshake_req_submit_test1() 186 struct socket *sock; in handshake_req_submit_test3() local 194 &sock, 1); in handshake_req_submit_test3() 196 sock->file = NULL; in handshake_req_submit_test3() 199 result = handshake_req_submit(sock, req, GFP_KERNEL); in handshake_req_submit_test3() 205 sock_release(sock); in handshake_req_submit_test3() [all …]
|
| /linux/net/ |
| H A D | socket.c | 101 #include <net/sock.h> 112 #include <trace/events/sock.h> 142 struct socket *sock = f->private_data; in sock_show_fdinfo() local 143 const struct proto_ops *ops = READ_ONCE(sock->ops); in sock_show_fdinfo() 146 ops->show_fdinfo(m, sock); in sock_show_fdinfo() 510 * and file struct implicitly stored in sock->file. 524 * @sock: socket 528 * Returns the &file bound with @sock, implicitly storing it 529 * in sock->file. If dname is %NULL, sets to "". 531 * On failure @sock is released, and an ERR pointer is returned. [all …]
|
| /linux/net/nfc/ |
| H A D | rawsock.c | 23 static void nfc_sock_link(struct nfc_sock_list *l, struct sock *sk) in nfc_sock_link() 30 static void nfc_sock_unlink(struct nfc_sock_list *l, struct sock *sk) in nfc_sock_unlink() 37 static void rawsock_write_queue_purge(struct sock *sk) in rawsock_write_queue_purge() 47 static void rawsock_report_error(struct sock *sk, int err) in rawsock_report_error() 58 static int rawsock_release(struct socket *sock) in rawsock_release() argument 60 struct sock *sk = sock->sk; in rawsock_release() 62 pr_debug("sock=%p sk=%p\n", sock, sk); in rawsock_release() 67 if (sock->type == SOCK_RAW) in rawsock_release() 87 static int rawsock_connect(struct socket *sock, struct sockaddr_unsized *_addr, in rawsock_connect() argument 90 struct sock *sk = sock->sk; in rawsock_connect() [all …]
|
| H A D | llcp_commands.c | 242 int nfc_llcp_parse_connection_tlv(struct nfc_llcp_sock *sock, in nfc_llcp_parse_connection_tlv() argument 250 if (sock == NULL) in nfc_llcp_parse_connection_tlv() 261 sock->remote_miu = llcp_tlv_miux(tlv) + 128; in nfc_llcp_parse_connection_tlv() 264 sock->remote_rw = llcp_tlv_rw(tlv); in nfc_llcp_parse_connection_tlv() 277 pr_debug("sock %p rw %d miu %d\n", sock, in nfc_llcp_parse_connection_tlv() 278 sock->remote_rw, sock->remote_miu); in nfc_llcp_parse_connection_tlv() 313 static struct sk_buff *llcp_allocate_pdu(struct nfc_llcp_sock *sock, in llcp_allocate_pdu() argument 319 if (sock->ssap == 0) in llcp_allocate_pdu() 322 skb = nfc_alloc_send_skb(sock->dev, &sock->sk, MSG_DONTWAIT, in llcp_allocate_pdu() 329 skb = llcp_add_header(skb, sock->dsap, sock->ssap, cmd); in llcp_allocate_pdu() [all …]
|
| H A D | llcp_sock.c | 17 static int sock_wait_state(struct sock *sk, int state, unsigned long timeo) in sock_wait_state() 59 static int llcp_sock_bind(struct socket *sock, struct sockaddr_unsized *addr, int alen) in llcp_sock_bind() argument 61 struct sock *sk = sock->sk; in llcp_sock_bind() 149 static int llcp_raw_sock_bind(struct socket *sock, struct sockaddr_unsized *addr, in llcp_raw_sock_bind() argument 152 struct sock *sk = sock->sk; in llcp_raw_sock_bind() 204 static int llcp_sock_listen(struct socket *sock, int backlog) in llcp_sock_listen() argument 206 struct sock *sk = sock->sk; in llcp_sock_listen() 213 if ((sock->type != SOCK_SEQPACKET && sock->type != SOCK_STREAM) || in llcp_sock_listen() 231 static int nfc_llcp_setsockopt(struct socket *sock, int level, int optname, in nfc_llcp_setsockopt() argument 234 struct sock *sk = sock->sk; in nfc_llcp_setsockopt() [all …]
|
| /linux/drivers/net/ovpn/ |
| H A D | socket.c | 24 struct ovpn_socket *sock = container_of(kref, struct ovpn_socket, in ovpn_socket_release_kref() local 27 if (sock->sk->sk_protocol == IPPROTO_UDP) in ovpn_socket_release_kref() 28 ovpn_udp_socket_detach(sock); in ovpn_socket_release_kref() 29 else if (sock->sk->sk_protocol == IPPROTO_TCP) in ovpn_socket_release_kref() 30 ovpn_tcp_socket_detach(sock); in ovpn_socket_release_kref() 36 * @sock: the RCU protected peer socket 43 static bool ovpn_socket_put(struct ovpn_peer *peer, struct ovpn_socket *sock) in ovpn_socket_put() argument 45 return kref_put(&sock->refcount, ovpn_socket_release_kref); in ovpn_socket_put() 68 struct ovpn_socket *sock; in ovpn_socket_release() local 73 sock = rcu_replace_pointer(peer->sock, NULL, true); in ovpn_socket_release() [all …]
|
| /linux/net/bluetooth/rfcomm/ |
| H A D | sock.c | 43 static void rfcomm_sock_close(struct sock *sk); 44 static void rfcomm_sock_kill(struct sock *sk); 52 struct sock *sk = d->owner; in rfcomm_sk_data_ready() 66 struct sock *sk = d->owner, *parent; in rfcomm_sk_state_change() 106 static struct sock *__rfcomm_get_listen_sock_by_addr(u8 channel, bdaddr_t *src) in __rfcomm_get_listen_sock_by_addr() 108 struct sock *sk = NULL; in __rfcomm_get_listen_sock_by_addr() 127 static struct sock *rfcomm_get_sock_by_channel(int state, u8 channel, bdaddr_t *src) in rfcomm_get_sock_by_channel() 129 struct sock *sk = NULL, *sk1 = NULL; in rfcomm_get_sock_by_channel() 163 static void rfcomm_sock_destruct(struct sock *sk) in rfcomm_sock_destruct() 183 static void rfcomm_sock_cleanup_listen(struct sock *parent) in rfcomm_sock_cleanup_listen() [all …]
|
| /linux/net/phonet/ |
| H A D | socket.c | 19 #include <net/sock.h> 28 static int pn_socket_release(struct socket *sock) in pn_socket_release() argument 30 struct sock *sk = sock->sk; in pn_socket_release() 33 sock->sk = NULL; in pn_socket_release() 64 * Also grab sock if it was found. Remember to sock_put it later. 66 struct sock *pn_find_sock_by_sa(struct net *net, const struct sockaddr_pn *spn) in pn_find_sock_by_sa() 68 struct sock *sknode; in pn_find_sock_by_sa() 69 struct sock *rval = NULL; in pn_find_sock_by_sa() 111 struct sock *sknode; in pn_deliver_sock_broadcast() 132 int pn_sock_hash(struct sock *sk) in pn_sock_hash() [all …]
|
| /linux/net/dccp/ |
| H A D | dccp.h | |
| /linux/drivers/platform/x86/amd/hsmp/ |
| H A D | acpi.c | 46 static int amd_hsmp_acpi_rdwr(struct hsmp_socket *sock, u32 offset, in amd_hsmp_acpi_rdwr() argument 50 iowrite32(*value, sock->virt_base_addr + offset); in amd_hsmp_acpi_rdwr() 52 *value = ioread32(sock->virt_base_addr + offset); in amd_hsmp_acpi_rdwr() 86 struct hsmp_socket *sock = data; in hsmp_resource() local 95 sock->mbinfo.base_addr = r.start; in hsmp_resource() 96 sock->mbinfo.size = resource_size(&r); in hsmp_resource() 107 static int hsmp_read_acpi_dsd(struct hsmp_socket *sock) in hsmp_read_acpi_dsd() argument 116 status = acpi_evaluate_object_typed(ACPI_HANDLE(sock->dev), "_DSD", NULL, in hsmp_read_acpi_dsd() 119 dev_err(sock->dev, "Failed to read mailbox reg offsets from DSD table, err: %s\n", in hsmp_read_acpi_dsd() 142 dev_err(sock->dev, "Invalid hsmp _DSD table data\n"); in hsmp_read_acpi_dsd() [all …]
|
| /linux/net/llc/ |
| H A D | llc_c_ev.c | 39 #include <net/sock.h> 75 static u16 llc_util_nr_inside_tx_window(struct sock *sk, u8 nr) in llc_util_nr_inside_tx_window() 99 int llc_conn_ev_conn_req(struct sock *sk, struct sk_buff *skb) in llc_conn_ev_conn_req() 107 int llc_conn_ev_data_req(struct sock *sk, struct sk_buff *skb) in llc_conn_ev_data_req() 115 int llc_conn_ev_disc_req(struct sock *sk, struct sk_buff *skb) in llc_conn_ev_disc_req() 123 int llc_conn_ev_rst_req(struct sock *sk, struct sk_buff *skb) in llc_conn_ev_rst_req() 131 int llc_conn_ev_local_busy_detected(struct sock *sk, struct sk_buff *skb) in llc_conn_ev_local_busy_detected() 139 int llc_conn_ev_local_busy_cleared(struct sock *sk, struct sk_buff *skb) in llc_conn_ev_local_busy_cleared() 147 int llc_conn_ev_rx_bad_pdu(struct sock *sk, struct sk_buff *skb) in llc_conn_ev_rx_bad_pdu() 152 int llc_conn_ev_rx_disc_cmd_pbit_set_x(struct sock *sk, struct sk_buff *skb) in llc_conn_ev_rx_disc_cmd_pbit_set_x() [all …]
|
| /linux/net/atm/ |
| H A D | svc.c | 22 #include <net/sock.h> /* for sock_no_* */ 36 static int svc_create(struct net *net, struct socket *sock, int protocol, 46 static int svc_shutdown(struct socket *sock, int how) in svc_shutdown() argument 55 struct sock *sk = sk_atm(vcc); in svc_disconnect() 80 static int svc_release(struct socket *sock) in svc_release() argument 82 struct sock *sk = sock->sk; in svc_release() 86 vcc = ATM_SD(sock); in svc_release() 95 vcc_release(sock); in svc_release() 100 static int svc_bind(struct socket *sock, struc argument 156 svc_connect(struct socket * sock,struct sockaddr * sockaddr,int sockaddr_len,int flags) svc_connect() argument 287 svc_listen(struct socket * sock,int backlog) svc_listen() argument 327 svc_accept(struct socket * sock,struct socket * newsock,struct proto_accept_arg * arg) svc_accept() argument 426 svc_getname(struct socket * sock,struct sockaddr * sockaddr,int peer) svc_getname() argument 458 svc_setsockopt(struct socket * sock,int level,int optname,sockptr_t optval,unsigned int optlen) svc_setsockopt() argument 503 svc_getsockopt(struct socket * sock,int level,int optname,char __user * optval,int __user * optlen) svc_getsockopt() argument 531 svc_addparty(struct socket * sock,struct sockaddr * sockaddr,int sockaddr_len,int flags) svc_addparty() argument 561 svc_dropparty(struct socket * sock,int ep_ref) svc_dropparty() argument 588 svc_ioctl(struct socket * sock,unsigned int cmd,unsigned long arg) svc_ioctl() argument 618 svc_compat_ioctl(struct socket * sock,unsigned int cmd,unsigned long arg) svc_compat_ioctl() argument 660 svc_create(struct net * net,struct socket * sock,int protocol,int kern) svc_create() argument [all...] |
| /linux/tools/testing/selftests/net/netfilter/ |
| H A D | conntrack_dump_flush.c | 101 static int conntrack_data_insert(struct mnl_socket *sock, struct nlmsghdr *nlh, in conntrack_data_insert() argument 109 portid = mnl_socket_get_portid(sock); in conntrack_data_insert() 119 if (mnl_socket_sendto(sock, nlh, nlh->nlmsg_len) < 0) { in conntrack_data_insert() 124 ret = mnl_socket_recvfrom(sock, buf, MNL_SOCKET_BUFFER_SIZE); in conntrack_data_insert() 145 static int conntrack_data_generate_v4(struct mnl_socket *sock, uint32_t src_ip, in conntrack_data_generate_v4() argument 174 return conntrack_data_insert(sock, nlh, zone); in conntrack_data_generate_v4() 177 static int conntrack_data_generate_v6(struct mnl_socket *sock, in conntrack_data_generate_v6() argument 210 return conntrack_data_insert(sock, nlh, zone); in conntrack_data_generate_v6() 219 static int conntracK_count_zone(struct mnl_socket *sock, uint16_t zone) in conntracK_count_zone() argument 228 portid = mnl_socket_get_portid(sock); in conntracK_count_zone() [all …]
|
| /linux/net/tls/ |
| H A D | tls.h | 127 struct sock *sk; 139 struct tls_context *tls_ctx_create(struct sock *sk); 140 void tls_ctx_free(struct sock *sk, struct tls_context *ctx); 141 void update_sk_prot(struct sock *sk, struct tls_context *ctx); 143 int wait_on_pending_writer(struct sock *sk, long *timeo); 144 void tls_err_abort(struct sock *sk, int err); 150 int tls_set_sw_offload(struct sock *sk, int tx, 153 void tls_sw_strparser_arm(struct sock *sk, struct tls_context *ctx); 155 int tls_sw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size); 156 void tls_sw_splice_eof(struct socket *sock); [all …]
|