Home
last modified time | relevance | path

Searched refs:s (Results 1 – 25 of 150) sorted by relevance

123456

/net/bluetooth/bnep/
Dcore.c50 struct bnep_session *s; in __bnep_get_session() local
54 list_for_each_entry(s, &bnep_session_list, list) in __bnep_get_session()
55 if (ether_addr_equal(dst, s->eh.h_source)) in __bnep_get_session()
56 return s; in __bnep_get_session()
61 static void __bnep_link_session(struct bnep_session *s) in __bnep_link_session() argument
63 list_add(&s->list, &bnep_session_list); in __bnep_link_session()
66 static void __bnep_unlink_session(struct bnep_session *s) in __bnep_unlink_session() argument
68 list_del(&s->list); in __bnep_unlink_session()
71 static int bnep_send(struct bnep_session *s, void *data, size_t len) in bnep_send() argument
73 struct socket *sock = s->sock; in bnep_send()
[all …]
Dnetdev.c53 struct bnep_session *s = netdev_priv(dev); in bnep_net_set_mc_list() local
54 struct sock *sk = s->sock->sk; in bnep_net_set_mc_list()
122 static int bnep_net_mc_filter(struct sk_buff *skb, struct bnep_session *s) in bnep_net_mc_filter() argument
126 if ((eh->h_dest[0] & 1) && !test_bit(bnep_mc_hash(eh->h_dest), (ulong *) &s->mc_filter)) in bnep_net_mc_filter()
148 static int bnep_net_proto_filter(struct sk_buff *skb, struct bnep_session *s) in bnep_net_proto_filter() argument
151 struct bnep_proto_filter *f = s->proto_filter; in bnep_net_proto_filter()
167 struct bnep_session *s = netdev_priv(dev); in bnep_net_xmit() local
168 struct sock *sk = s->sock->sk; in bnep_net_xmit()
173 if (bnep_net_mc_filter(skb, s)) { in bnep_net_xmit()
180 if (bnep_net_proto_filter(skb, s)) { in bnep_net_xmit()
/net/bluetooth/rfcomm/
Dcore.c54 static int rfcomm_send_frame(struct rfcomm_session *s, u8 *data, int len);
55 static int rfcomm_send_sabm(struct rfcomm_session *s, u8 dlci);
56 static int rfcomm_send_disc(struct rfcomm_session *s, u8 dlci);
58 static int rfcomm_send_nsc(struct rfcomm_session *s, int cr, u8 type);
59 static int rfcomm_send_pn(struct rfcomm_session *s, int cr, struct rfcomm_dlc *d);
60 static int rfcomm_send_msc(struct rfcomm_session *s, int cr, u8 dlci, u8 v24_sig);
61 static int rfcomm_send_test(struct rfcomm_session *s, int cr, u8 *pattern, int len);
62 static int rfcomm_send_credits(struct rfcomm_session *s, u8 addr, u8 credits);
65 static void rfcomm_process_connect(struct rfcomm_session *s);
72 static struct rfcomm_session *rfcomm_session_del(struct rfcomm_session *s);
[all …]
/net/tipc/
Dserver.c123 static struct tipc_conn *tipc_conn_lookup(struct tipc_server *s, int conid) in tipc_conn_lookup() argument
127 spin_lock_bh(&s->idr_lock); in tipc_conn_lookup()
128 con = idr_find(&s->conn_idr, conid); in tipc_conn_lookup()
131 spin_unlock_bh(&s->idr_lock); in tipc_conn_lookup()
189 struct tipc_server *s = con->server; in tipc_close_conn() local
193 s->tipc_conn_shutdown(con->conid, con->usr_data); in tipc_close_conn()
195 spin_lock_bh(&s->idr_lock); in tipc_close_conn()
196 idr_remove(&s->conn_idr, con->conid); in tipc_close_conn()
197 s->idr_in_use--; in tipc_close_conn()
198 spin_unlock_bh(&s->idr_lock); in tipc_close_conn()
[all …]
Dsubscr.c126 tipc_subscrp_send_event(sub, sub->evt.s.seq.lower, sub->evt.s.seq.upper, in tipc_subscrp_timeout()
199 static void tipc_subscrp_cancel(struct tipc_subscr *s, in tipc_subscrp_cancel() argument
208 if (!memcmp(s, &sub->evt.s, sizeof(struct tipc_subscr))) { in tipc_subscrp_cancel()
219 static int tipc_subscrp_create(struct net *net, struct tipc_subscr *s, in tipc_subscrp_create() argument
228 swap = !(s->filter & (TIPC_SUB_PORTS | TIPC_SUB_SERVICE)); in tipc_subscrp_create()
231 if (s->filter & htohl(TIPC_SUB_CANCEL, swap)) { in tipc_subscrp_create()
232 s->filter &= ~htohl(TIPC_SUB_CANCEL, swap); in tipc_subscrp_create()
233 tipc_subscrp_cancel(s, subscriber); in tipc_subscrp_create()
253 sub->seq.type = htohl(s->seq.type, swap); in tipc_subscrp_create()
254 sub->seq.lower = htohl(s->seq.lower, swap); in tipc_subscrp_create()
[all …]
/net/sched/
Dcls_rsvp.h135 struct rsvp_session *s; in rsvp_classify() local
176 for (s = rcu_dereference_bh(head->ht[h1]); s; in rsvp_classify()
177 s = rcu_dereference_bh(s->next)) { in rsvp_classify()
178 if (dst[RSVP_DST_LEN-1] == s->dst[RSVP_DST_LEN - 1] && in rsvp_classify()
179 protocol == s->protocol && in rsvp_classify()
180 !(s->dpi.mask & in rsvp_classify()
181 (*(u32 *)(xprt + s->dpi.offset) ^ s->dpi.key)) && in rsvp_classify()
183 dst[0] == s->dst[0] && in rsvp_classify()
184 dst[1] == s->dst[1] && in rsvp_classify()
185 dst[2] == s->dst[2] && in rsvp_classify()
[all …]
/net/netfilter/ipvs/
Dip_vs_est.c67 struct ip_vs_cpu_stats *s = per_cpu_ptr(stats, i); in ip_vs_read_cpu_stats() local
73 start = u64_stats_fetch_begin(&s->syncp); in ip_vs_read_cpu_stats()
74 conns = s->cnt.conns; in ip_vs_read_cpu_stats()
75 inpkts = s->cnt.inpkts; in ip_vs_read_cpu_stats()
76 outpkts = s->cnt.outpkts; in ip_vs_read_cpu_stats()
77 inbytes = s->cnt.inbytes; in ip_vs_read_cpu_stats()
78 outbytes = s->cnt.outbytes; in ip_vs_read_cpu_stats()
79 } while (u64_stats_fetch_retry(&s->syncp, start)); in ip_vs_read_cpu_stats()
88 start = u64_stats_fetch_begin(&s->syncp); in ip_vs_read_cpu_stats()
89 sum->conns = s->cnt.conns; in ip_vs_read_cpu_stats()
[all …]
Dip_vs_dh.c92 ip_vs_dh_get(int af, struct ip_vs_dh_state *s, const union nf_inet_addr *addr) in ip_vs_dh_get() argument
94 return rcu_dereference(s->buckets[ip_vs_dh_hashkey(af, addr)].dest); in ip_vs_dh_get()
102 ip_vs_dh_reassign(struct ip_vs_dh_state *s, struct ip_vs_service *svc) in ip_vs_dh_reassign() argument
110 b = &s->buckets[0]; in ip_vs_dh_reassign()
138 static void ip_vs_dh_flush(struct ip_vs_dh_state *s) in ip_vs_dh_flush() argument
144 b = &s->buckets[0]; in ip_vs_dh_flush()
158 struct ip_vs_dh_state *s; in ip_vs_dh_init_svc() local
161 s = kzalloc(sizeof(struct ip_vs_dh_state), GFP_KERNEL); in ip_vs_dh_init_svc()
162 if (s == NULL) in ip_vs_dh_init_svc()
165 svc->sched_data = s; in ip_vs_dh_init_svc()
[all …]
Dip_vs_sh.c108 ip_vs_sh_get(struct ip_vs_service *svc, struct ip_vs_sh_state *s, in ip_vs_sh_get() argument
112 struct ip_vs_dest *dest = rcu_dereference(s->buckets[hash].dest); in ip_vs_sh_get()
125 ip_vs_sh_get_fallback(struct ip_vs_service *svc, struct ip_vs_sh_state *s, in ip_vs_sh_get_fallback() argument
134 dest = rcu_dereference(s->buckets[ihash].dest); in ip_vs_sh_get_fallback()
149 dest = rcu_dereference(s->buckets[hash].dest); in ip_vs_sh_get_fallback()
167 ip_vs_sh_reassign(struct ip_vs_sh_state *s, struct ip_vs_service *svc) in ip_vs_sh_reassign() argument
176 b = &s->buckets[0]; in ip_vs_sh_reassign()
214 static void ip_vs_sh_flush(struct ip_vs_sh_state *s) in ip_vs_sh_flush() argument
220 b = &s->buckets[0]; in ip_vs_sh_flush()
234 struct ip_vs_sh_state *s; in ip_vs_sh_init_svc() local
[all …]
Dip_vs_sync.c541 struct ip_vs_sync_conn_v0 *s; in ip_vs_sync_conn_v0() local
587 s = (struct ip_vs_sync_conn_v0 *) buff->head; in ip_vs_sync_conn_v0()
590 s->reserved = 0; in ip_vs_sync_conn_v0()
591 s->protocol = cp->protocol; in ip_vs_sync_conn_v0()
592 s->cport = cp->cport; in ip_vs_sync_conn_v0()
593 s->vport = cp->vport; in ip_vs_sync_conn_v0()
594 s->dport = cp->dport; in ip_vs_sync_conn_v0()
595 s->caddr = cp->caddr.ip; in ip_vs_sync_conn_v0()
596 s->vaddr = cp->vaddr.ip; in ip_vs_sync_conn_v0()
597 s->daddr = cp->daddr.ip; in ip_vs_sync_conn_v0()
[all …]
/net/ceph/
Ddebugfs.c33 static int monmap_show(struct seq_file *s, void *p) in monmap_show() argument
36 struct ceph_client *client = s->private; in monmap_show()
41 seq_printf(s, "epoch %d\n", client->monc.monmap->epoch); in monmap_show()
46 seq_printf(s, "\t%s%lld\t%s\n", in monmap_show()
53 static int osdmap_show(struct seq_file *s, void *p) in osdmap_show() argument
56 struct ceph_client *client = s->private; in osdmap_show()
63 seq_printf(s, "epoch %d\n", map->epoch); in osdmap_show()
64 seq_printf(s, "flags%s%s\n", in osdmap_show()
72 seq_printf(s, "pool %lld pg_num %u (%d) read_tier %lld write_tier %lld\n", in osdmap_show()
81 seq_printf(s, "osd%d\t%s\t%3d%%\t(%s)\t%3d%%\n", in osdmap_show()
[all …]
/net/netfilter/
Dnf_conntrack_standalone.c40 print_tuple(struct seq_file *s, const struct nf_conntrack_tuple *tuple, in print_tuple() argument
44 l3proto->print_tuple(s, tuple); in print_tuple()
45 l4proto->print_tuple(s, tuple); in print_tuple()
110 static void *ct_seq_next(struct seq_file *s, void *v, loff_t *pos) in ct_seq_next() argument
113 return ct_get_next(s, v); in ct_seq_next()
116 static void ct_seq_stop(struct seq_file *s, void *v) in ct_seq_stop() argument
123 static void ct_show_secctx(struct seq_file *s, const struct nf_conn *ct) in ct_show_secctx() argument
133 seq_printf(s, "secctx=%s ", secctx); in ct_show_secctx()
138 static inline void ct_show_secctx(struct seq_file *s, const struct nf_conn *ct) in ct_show_secctx() argument
144 static void ct_show_zone(struct seq_file *s, const struct nf_conn *ct, in ct_show_zone() argument
[all …]
Dxt_multiport.c35 u_int16_t s, e; in ports_match_v1() local
38 s = minfo->ports[i]; in ports_match_v1()
43 pr_debug("src or dst matches with %d-%d?\n", s, e); in ports_match_v1()
46 && src >= s && src <= e) in ports_match_v1()
49 && dst >= s && dst <= e) in ports_match_v1()
52 && ((dst >= s && dst <= e) in ports_match_v1()
53 || (src >= s && src <= e))) in ports_match_v1()
57 pr_debug("src or dst matches with %d?\n", s); in ports_match_v1()
60 && src == s) in ports_match_v1()
63 && dst == s) in ports_match_v1()
[all …]
/net/ax25/
Dax25_dev.c96 ax25_dev *s, *ax25_dev; in ax25_dev_device_down() local
112 for (s = ax25_dev_list; s != NULL; s = s->next) in ax25_dev_device_down()
113 if (s->forward == dev) in ax25_dev_device_down()
114 s->forward = NULL; in ax25_dev_device_down()
116 if ((s = ax25_dev_list) == ax25_dev) { in ax25_dev_device_down()
117 ax25_dev_list = s->next; in ax25_dev_device_down()
125 while (s != NULL && s->next != NULL) { in ax25_dev_device_down()
126 if (s->next == ax25_dev) { in ax25_dev_device_down()
127 s->next = ax25_dev->next; in ax25_dev_device_down()
135 s = s->next; in ax25_dev_device_down()
[all …]
Dax25_addr.c51 char c, *s; in ax2asc() local
54 for (n = 0, s = buf; n < 6; n++) { in ax2asc()
57 if (c != ' ') *s++ = c; in ax2asc()
60 *s++ = '-'; in ax2asc()
63 *s++ = '1'; in ax2asc()
67 *s++ = n + '0'; in ax2asc()
68 *s++ = '\0'; in ax2asc()
84 const char *s; in asc2ax() local
87 for (s = callsign, n = 0; n < 6; n++) { in asc2ax()
88 if (*s != '\0' && *s != '-') in asc2ax()
[all …]
Dax25_route.c47 ax25_route *s, *t, *ax25_rt; in ax25_rt_device_down() local
52 s = ax25_rt; in ax25_rt_device_down()
55 if (s->dev == dev) { in ax25_rt_device_down()
56 if (ax25_route_list == s) { in ax25_rt_device_down()
57 ax25_route_list = s->next; in ax25_rt_device_down()
58 kfree(s->digipeat); in ax25_rt_device_down()
59 kfree(s); in ax25_rt_device_down()
62 if (t->next == s) { in ax25_rt_device_down()
63 t->next = s->next; in ax25_rt_device_down()
64 kfree(s->digipeat); in ax25_rt_device_down()
[all …]
Daf_ax25.c82 ax25_cb *s; in ax25_kill_by_device() local
89 ax25_for_each(s, &ax25_list) { in ax25_kill_by_device()
90 if (s->ax25_dev == ax25_dev) { in ax25_kill_by_device()
92 lock_sock(s->sk); in ax25_kill_by_device()
93 s->ax25_dev = NULL; in ax25_kill_by_device()
94 release_sock(s->sk); in ax25_kill_by_device()
95 ax25_disconnect(s, ENETUNREACH); in ax25_kill_by_device()
160 ax25_cb *s; in ax25_find_listener() local
163 ax25_for_each(s, &ax25_list) { in ax25_find_listener()
164 if ((s->iamdigi && !digi) || (!s->iamdigi && digi)) in ax25_find_listener()
[all …]
/net/ipv4/netfilter/
Dnf_conntrack_l3proto_ipv4_compat.c84 static void *ct_seq_next(struct seq_file *s, void *v, loff_t *pos) in ct_seq_next() argument
87 return ct_get_next(s, v); in ct_seq_next()
90 static void ct_seq_stop(struct seq_file *s, void *v) in ct_seq_stop() argument
97 static void ct_show_secctx(struct seq_file *s, const struct nf_conn *ct) in ct_show_secctx() argument
107 seq_printf(s, "secctx=%s ", secctx); in ct_show_secctx()
112 static inline void ct_show_secctx(struct seq_file *s, const struct nf_conn *ct) in ct_show_secctx() argument
117 static int ct_seq_show(struct seq_file *s, void *v) in ct_seq_show() argument
142 seq_printf(s, "%-8s %u %ld ", in ct_seq_show()
148 l4proto->print_conntrack(s, ct); in ct_seq_show()
150 if (seq_has_overflowed(s)) in ct_seq_show()
[all …]
/net/rose/
Drose_route.c207 struct rose_node *s; in rose_remove_node() local
209 if ((s = rose_node_list) == rose_node) { in rose_remove_node()
215 while (s != NULL && s->next != NULL) { in rose_remove_node()
216 if (s->next == rose_node) { in rose_remove_node()
217 s->next = rose_node->next; in rose_remove_node()
222 s = s->next; in rose_remove_node()
231 struct rose_neigh *s; in rose_remove_neigh() local
238 if ((s = rose_neigh_list) == rose_neigh) { in rose_remove_neigh()
247 while (s != NULL && s->next != NULL) { in rose_remove_neigh()
248 if (s->next == rose_neigh) { in rose_remove_neigh()
[all …]
/net/core/
Dutils.c124 const char *s; in in4_pton() local
133 s = src; in in4_pton()
138 c = xdigit2bin(srclen > 0 ? *s : '\0', delim); in in4_pton()
162 s++; in in4_pton()
169 *end = s; in in4_pton()
190 const char *s, *tok = NULL; in in6_pton() local
200 s = src; in in6_pton()
208 c = xdigit2bin(srclen > 0 ? *s : '\0', delim); in in6_pton()
246 tok = s + 1; in in6_pton()
251 ret = in4_pton(tok ? tok : s, srclen + (int)(s - tok), d, delim, &s); in in6_pton()
[all …]
/net/netlabel/
Dnetlabel_addrlist.h72 static inline struct netlbl_af4list *__af4list_valid(struct list_head *s, in __af4list_valid() argument
75 struct list_head *i = s; in __af4list_valid()
76 struct netlbl_af4list *n = __af4list_entry(s); in __af4list_valid()
84 static inline struct netlbl_af4list *__af4list_valid_rcu(struct list_head *s, in __af4list_valid_rcu() argument
87 struct list_head *i = s; in __af4list_valid_rcu()
88 struct netlbl_af4list *n = __af4list_entry(s); in __af4list_valid_rcu()
139 static inline struct netlbl_af6list *__af6list_valid(struct list_head *s, in __af6list_valid() argument
142 struct list_head *i = s; in __af6list_valid()
143 struct netlbl_af6list *n = __af6list_entry(s); in __af6list_valid()
151 static inline struct netlbl_af6list *__af6list_valid_rcu(struct list_head *s, in __af6list_valid_rcu() argument
[all …]
/net/netrom/
Dnr_route.c484 struct nr_node *s; in nr_dec_obs() local
489 nr_node_for_each_safe(s, nodet, &nr_node_list) { in nr_dec_obs()
490 nr_node_lock(s); in nr_dec_obs()
491 for (i = 0; i < s->count; i++) { in nr_dec_obs()
492 switch (s->routes[i].obs_count) { in nr_dec_obs()
497 nr_neigh = s->routes[i].neighbour; in nr_dec_obs()
505 s->count--; in nr_dec_obs()
509 s->routes[0] = s->routes[1]; in nr_dec_obs()
512 s->routes[1] = s->routes[2]; in nr_dec_obs()
519 s->routes[i].obs_count--; in nr_dec_obs()
[all …]
/net/unix/
Dscm.c31 struct sock *s = sock->sk; in unix_get_socket() local
34 if (s && sock->ops && sock->ops->family == PF_UNIX) in unix_get_socket()
35 u_sock = s; in unix_get_socket()
46 struct sock *s = unix_get_socket(fp); in unix_inflight() local
50 if (s) { in unix_inflight()
51 struct unix_sock *u = unix_sk(s); in unix_inflight()
68 struct sock *s = unix_get_socket(fp); in unix_notinflight() local
72 if (s) { in unix_notinflight()
73 struct unix_sock *u = unix_sk(s); in unix_notinflight()
/net/ipx/
Dipx_proc.c105 struct sock *s = NULL; in ipx_get_socket_idx() local
110 sk_for_each(s, &i->if_sklist) { in ipx_get_socket_idx()
117 if (s) in ipx_get_socket_idx()
122 s = NULL; in ipx_get_socket_idx()
124 return s; in ipx_get_socket_idx()
179 struct sock *s; in ipx_seq_socket_show() local
194 s = v; in ipx_seq_socket_show()
195 ipxs = ipx_sk(s); in ipx_seq_socket_show()
205 if (s->sk_state != TCP_ESTABLISHED) in ipx_seq_socket_show()
217 sk_wmem_alloc_get(s), in ipx_seq_socket_show()
[all …]
/net/sunrpc/
Dsysctl.c79 char tmpbuf[20], c, *s = NULL; in proc_dodebug() local
106 value = simple_strtol(tmpbuf, &s, 0); in proc_dodebug()
107 if (s) { in proc_dodebug()
108 left -= (s - tmpbuf); in proc_dodebug()
109 if (left && !isspace(*s)) in proc_dodebug()
111 while (left && isspace(*s)) in proc_dodebug()
112 left--, s++; in proc_dodebug()

123456