Home
last modified time | relevance | path

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

123456

/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/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/ceph/
Ddebugfs.c34 static int monmap_show(struct seq_file *s, void *p) in monmap_show() argument
37 struct ceph_client *client = s->private; in monmap_show()
42 seq_printf(s, "epoch %d\n", client->monc.monmap->epoch); in monmap_show()
47 seq_printf(s, "\t%s%lld\t%s\n", in monmap_show()
54 static int osdmap_show(struct seq_file *s, void *p) in osdmap_show() argument
57 struct ceph_client *client = s->private; in osdmap_show()
66 seq_printf(s, "epoch %u barrier %u flags 0x%x\n", map->epoch, in osdmap_show()
73 …seq_printf(s, "pool %lld '%s' type %d size %d min_size %d pg_num %u pg_num_mask %d flags 0x%llx lf… in osdmap_show()
84 seq_printf(s, "osd%d\t%s\t%3d%%\t(%s)\t%3d%%\n", in osdmap_show()
94 seq_printf(s, "pg_temp %llu.%x [", pg->pgid.pool, in osdmap_show()
[all …]
/net/netfilter/ipvs/
Dip_vs_mh.c105 static void ip_vs_mh_reset(struct ip_vs_mh_state *s) in ip_vs_mh_reset() argument
111 l = &s->lookup[0]; in ip_vs_mh_reset()
122 static int ip_vs_mh_permutate(struct ip_vs_mh_state *s, in ip_vs_mh_permutate() argument
134 if (s->gcd < 1) in ip_vs_mh_permutate()
139 ds = &s->dest_setup[0]; in ip_vs_mh_permutate()
144 dest->port, &s->hash1, 0) % in ip_vs_mh_permutate()
147 dest->port, &s->hash2, 0) % in ip_vs_mh_permutate()
152 ds->turns = ((lw / s->gcd) >> s->rshift) ? : (lw != 0); in ip_vs_mh_permutate()
159 static int ip_vs_mh_populate(struct ip_vs_mh_state *s, in ip_vs_mh_populate() argument
172 if (s->gcd < 1) { in ip_vs_mh_populate()
[all …]
Dip_vs_est.c63 struct ip_vs_cpu_stats *s = per_cpu_ptr(stats, i); in ip_vs_read_cpu_stats() local
69 start = u64_stats_fetch_begin(&s->syncp); in ip_vs_read_cpu_stats()
70 conns = s->cnt.conns; in ip_vs_read_cpu_stats()
71 inpkts = s->cnt.inpkts; in ip_vs_read_cpu_stats()
72 outpkts = s->cnt.outpkts; in ip_vs_read_cpu_stats()
73 inbytes = s->cnt.inbytes; in ip_vs_read_cpu_stats()
74 outbytes = s->cnt.outbytes; in ip_vs_read_cpu_stats()
75 } while (u64_stats_fetch_retry(&s->syncp, start)); in ip_vs_read_cpu_stats()
84 start = u64_stats_fetch_begin(&s->syncp); in ip_vs_read_cpu_stats()
85 sum->conns = s->cnt.conns; in ip_vs_read_cpu_stats()
[all …]
Dip_vs_ftp.c102 char *s, c; in ip_vs_ftp_get_addrport() local
119 s = data + plen; in ip_vs_ftp_get_addrport()
123 for (;; s++) { in ip_vs_ftp_get_addrport()
124 if (s == data_limit) in ip_vs_ftp_get_addrport()
130 if (!ext && isdigit(*s)) in ip_vs_ftp_get_addrport()
132 if (*s == skip) in ip_vs_ftp_get_addrport()
134 } else if (*s != skip) { in ip_vs_ftp_get_addrport()
142 for (data = s; ; data++) { in ip_vs_ftp_get_addrport()
160 *start = s; in ip_vs_ftp_get_addrport()
166 if (s == data_limit) in ip_vs_ftp_get_addrport()
[all …]
Dip_vs_dh.c88 ip_vs_dh_get(int af, struct ip_vs_dh_state *s, const union nf_inet_addr *addr) in ip_vs_dh_get() argument
90 return rcu_dereference(s->buckets[ip_vs_dh_hashkey(af, addr)].dest); in ip_vs_dh_get()
98 ip_vs_dh_reassign(struct ip_vs_dh_state *s, struct ip_vs_service *svc) in ip_vs_dh_reassign() argument
106 b = &s->buckets[0]; in ip_vs_dh_reassign()
134 static void ip_vs_dh_flush(struct ip_vs_dh_state *s) in ip_vs_dh_flush() argument
140 b = &s->buckets[0]; in ip_vs_dh_flush()
154 struct ip_vs_dh_state *s; in ip_vs_dh_init_svc() local
157 s = kzalloc(sizeof(struct ip_vs_dh_state), GFP_KERNEL); in ip_vs_dh_init_svc()
158 if (s == NULL) in ip_vs_dh_init_svc()
161 svc->sched_data = s; in ip_vs_dh_init_svc()
[all …]
Dip_vs_sh.c104 ip_vs_sh_get(struct ip_vs_service *svc, struct ip_vs_sh_state *s, in ip_vs_sh_get() argument
108 struct ip_vs_dest *dest = rcu_dereference(s->buckets[hash].dest); in ip_vs_sh_get()
121 ip_vs_sh_get_fallback(struct ip_vs_service *svc, struct ip_vs_sh_state *s, in ip_vs_sh_get_fallback() argument
130 dest = rcu_dereference(s->buckets[ihash].dest); in ip_vs_sh_get_fallback()
145 dest = rcu_dereference(s->buckets[hash].dest); in ip_vs_sh_get_fallback()
163 ip_vs_sh_reassign(struct ip_vs_sh_state *s, struct ip_vs_service *svc) in ip_vs_sh_reassign() argument
172 b = &s->buckets[0]; in ip_vs_sh_reassign()
210 static void ip_vs_sh_flush(struct ip_vs_sh_state *s) in ip_vs_sh_flush() argument
216 b = &s->buckets[0]; in ip_vs_sh_flush()
230 struct ip_vs_sh_state *s; in ip_vs_sh_init_svc() local
[all …]
Dip_vs_sync.c547 struct ip_vs_sync_conn_v0 *s; in ip_vs_sync_conn_v0() local
593 s = (struct ip_vs_sync_conn_v0 *) buff->head; in ip_vs_sync_conn_v0()
596 s->reserved = 0; in ip_vs_sync_conn_v0()
597 s->protocol = cp->protocol; in ip_vs_sync_conn_v0()
598 s->cport = cp->cport; in ip_vs_sync_conn_v0()
599 s->vport = cp->vport; in ip_vs_sync_conn_v0()
600 s->dport = cp->dport; in ip_vs_sync_conn_v0()
601 s->caddr = cp->caddr.ip; in ip_vs_sync_conn_v0()
602 s->vaddr = cp->vaddr.ip; in ip_vs_sync_conn_v0()
603 s->daddr = cp->daddr.ip; in ip_vs_sync_conn_v0()
[all …]
/net/sched/
Dcls_rsvp.h131 struct rsvp_session *s; in rsvp_classify() local
170 for (s = rcu_dereference_bh(head->ht[h1]); s; in rsvp_classify()
171 s = rcu_dereference_bh(s->next)) { in rsvp_classify()
172 if (dst[RSVP_DST_LEN-1] == s->dst[RSVP_DST_LEN - 1] && in rsvp_classify()
173 protocol == s->protocol && in rsvp_classify()
174 !(s->dpi.mask & in rsvp_classify()
175 (*(u32 *)(xprt + s->dpi.offset) ^ s->dpi.key)) && in rsvp_classify()
177 dst[0] == s->dst[0] && in rsvp_classify()
178 dst[1] == s->dst[1] && in rsvp_classify()
179 dst[2] == s->dst[2] && in rsvp_classify()
[all …]
Dact_sample.c47 struct tcf_sample *s; in tcf_sample_init() local
99 s = to_sample(*a); in tcf_sample_init()
101 spin_lock_bh(&s->tcf_lock); in tcf_sample_init()
103 s->rate = rate; in tcf_sample_init()
104 s->psample_group_num = psample_group_num; in tcf_sample_init()
105 rcu_swap_protected(s->psample_group, psample_group, in tcf_sample_init()
106 lockdep_is_held(&s->tcf_lock)); in tcf_sample_init()
109 s->truncate = true; in tcf_sample_init()
110 s->trunc_size = nla_get_u32(tb[TCA_SAMPLE_TRUNC_SIZE]); in tcf_sample_init()
112 spin_unlock_bh(&s->tcf_lock); in tcf_sample_init()
[all …]
/net/ipv4/netfilter/
Dnf_nat_snmp_basic_main.c69 unsigned char s[12] = {0,}; in fast_csum() local
73 memcpy(&s[1], &ctx->from, 4); in fast_csum()
74 memcpy(&s[7], &ctx->to, 4); in fast_csum()
75 s[0] = ~0; in fast_csum()
76 s[1] = ~s[1]; in fast_csum()
77 s[2] = ~s[2]; in fast_csum()
78 s[3] = ~s[3]; in fast_csum()
79 s[4] = ~s[4]; in fast_csum()
80 s[5] = ~0; in fast_csum()
83 memcpy(&s[0], &ctx->from, 4); in fast_csum()
[all …]
/net/tipc/
Dtopsrv.c117 static void tipc_conn_delete_sub(struct tipc_conn *con, struct tipc_subscr *s);
127 struct tipc_topsrv *s = con->server; in tipc_conn_kref_release() local
130 spin_lock_bh(&s->idr_lock); in tipc_conn_kref_release()
131 idr_remove(&s->conn_idr, con->conid); in tipc_conn_kref_release()
132 s->idr_in_use--; in tipc_conn_kref_release()
133 spin_unlock_bh(&s->idr_lock); in tipc_conn_kref_release()
180 static struct tipc_conn *tipc_conn_alloc(struct tipc_topsrv *s) in tipc_conn_alloc() argument
197 spin_lock_bh(&s->idr_lock); in tipc_conn_alloc()
198 ret = idr_alloc(&s->conn_idr, con, 0, 0, GFP_ATOMIC); in tipc_conn_alloc()
201 spin_unlock_bh(&s->idr_lock); in tipc_conn_alloc()
[all …]
Dsubscr.c80 struct tipc_subscr *s = &sub->evt.s; in tipc_sub_report_overlap() local
81 u32 filter = tipc_sub_read(s, filter); in tipc_sub_report_overlap()
84 seq.type = tipc_sub_read(s, seq.type); in tipc_sub_report_overlap()
85 seq.lower = tipc_sub_read(s, seq.lower); in tipc_sub_report_overlap()
86 seq.upper = tipc_sub_read(s, seq.upper); in tipc_sub_report_overlap()
106 struct tipc_subscr *s = &sub->evt.s; in tipc_sub_timeout() local
109 tipc_sub_send_event(sub, s->seq.lower, s->seq.upper, in tipc_sub_timeout()
131 struct tipc_subscr *s, in tipc_sub_subscribe() argument
134 u32 filter = tipc_sub_read(s, filter); in tipc_sub_subscribe()
139 (tipc_sub_read(s, seq.lower) > tipc_sub_read(s, seq.upper))) { in tipc_sub_subscribe()
[all …]
/net/ax25/
Dax25_dev.c93 ax25_dev *s, *ax25_dev; in ax25_dev_device_down() local
109 for (s = ax25_dev_list; s != NULL; s = s->next) in ax25_dev_device_down()
110 if (s->forward == dev) in ax25_dev_device_down()
111 s->forward = NULL; in ax25_dev_device_down()
113 if ((s = ax25_dev_list) == ax25_dev) { in ax25_dev_device_down()
114 ax25_dev_list = s->next; in ax25_dev_device_down()
122 while (s != NULL && s->next != NULL) { in ax25_dev_device_down()
123 if (s->next == ax25_dev) { in ax25_dev_device_down()
124 s->next = ax25_dev->next; in ax25_dev_device_down()
132 s = s->next; in ax25_dev_device_down()
[all …]
Dax25_route.c44 ax25_route *s, *t, *ax25_rt; in ax25_rt_device_down() local
49 s = ax25_rt; in ax25_rt_device_down()
52 if (s->dev == dev) { in ax25_rt_device_down()
53 if (ax25_route_list == s) { in ax25_rt_device_down()
54 ax25_route_list = s->next; in ax25_rt_device_down()
55 kfree(s->digipeat); in ax25_rt_device_down()
56 kfree(s); in ax25_rt_device_down()
59 if (t->next == s) { in ax25_rt_device_down()
60 t->next = s->next; in ax25_rt_device_down()
61 kfree(s->digipeat); in ax25_rt_device_down()
[all …]
Dax25_addr.c48 char c, *s; in ax2asc() local
51 for (n = 0, s = buf; n < 6; n++) { in ax2asc()
54 if (c != ' ') *s++ = c; in ax2asc()
57 *s++ = '-'; in ax2asc()
60 *s++ = '1'; in ax2asc()
64 *s++ = n + '0'; in ax2asc()
65 *s++ = '\0'; in ax2asc()
81 const char *s; in asc2ax() local
84 for (s = callsign, n = 0; n < 6; n++) { in asc2ax()
85 if (*s != '\0' && *s != '-') in asc2ax()
[all …]
/net/netfilter/
Dnf_conntrack_standalone.c35 print_tuple(struct seq_file *s, const struct nf_conntrack_tuple *tuple, in print_tuple() argument
40 seq_printf(s, "src=%pI4 dst=%pI4 ", in print_tuple()
44 seq_printf(s, "src=%pI6 dst=%pI6 ", in print_tuple()
53 seq_printf(s, "type=%u code=%u id=%u ", in print_tuple()
59 seq_printf(s, "sport=%hu dport=%hu ", in print_tuple()
65 seq_printf(s, "sport=%hu dport=%hu ", in print_tuple()
71 seq_printf(s, "sport=%hu dport=%hu ", in print_tuple()
76 seq_printf(s, "sport=%hu dport=%hu ", in print_tuple()
81 seq_printf(s, "type=%u code=%u id=%u ", in print_tuple()
87 seq_printf(s, "srckey=0x%x dstkey=0x%x ", in print_tuple()
[all …]
Dxt_multiport.c32 u_int16_t s, e; in ports_match_v1() local
35 s = minfo->ports[i]; in ports_match_v1()
40 pr_debug("src or dst matches with %d-%d?\n", s, e); in ports_match_v1()
44 if (src >= s && src <= e) in ports_match_v1()
48 if (dst >= s && dst <= e) in ports_match_v1()
52 if ((dst >= s && dst <= e) || in ports_match_v1()
53 (src >= s && src <= e)) in ports_match_v1()
61 pr_debug("src or dst matches with %d?\n", s); in ports_match_v1()
65 if (src == s) in ports_match_v1()
69 if (dst == s) in ports_match_v1()
[all …]
/net/rose/
Drose_route.c204 struct rose_node *s; in rose_remove_node() local
206 if ((s = rose_node_list) == rose_node) { in rose_remove_node()
212 while (s != NULL && s->next != NULL) { in rose_remove_node()
213 if (s->next == rose_node) { in rose_remove_node()
214 s->next = rose_node->next; in rose_remove_node()
219 s = s->next; in rose_remove_node()
228 struct rose_neigh *s; in rose_remove_neigh() local
235 if ((s = rose_neigh_list) == rose_neigh) { in rose_remove_neigh()
244 while (s != NULL && s->next != NULL) { in rose_remove_neigh()
245 if (s->next == rose_neigh) { in rose_remove_neigh()
[all …]
/net/netlabel/
Dnetlabel_addrlist.h58 static inline struct netlbl_af4list *__af4list_valid(struct list_head *s, in __af4list_valid() argument
61 struct list_head *i = s; in __af4list_valid()
62 struct netlbl_af4list *n = __af4list_entry(s); in __af4list_valid()
70 static inline struct netlbl_af4list *__af4list_valid_rcu(struct list_head *s, in __af4list_valid_rcu() argument
73 struct list_head *i = s; in __af4list_valid_rcu()
74 struct netlbl_af4list *n = __af4list_entry(s); in __af4list_valid_rcu()
125 static inline struct netlbl_af6list *__af6list_valid(struct list_head *s, in __af6list_valid() argument
128 struct list_head *i = s; in __af6list_valid()
129 struct netlbl_af6list *n = __af6list_entry(s); in __af6list_valid()
137 static inline struct netlbl_af6list *__af6list_valid_rcu(struct list_head *s, in __af6list_valid_rcu() argument
[all …]
/net/netrom/
Dnr_route.c455 struct nr_node *s; in nr_dec_obs() local
460 nr_node_for_each_safe(s, nodet, &nr_node_list) { in nr_dec_obs()
461 nr_node_lock(s); in nr_dec_obs()
462 for (i = 0; i < s->count; i++) { in nr_dec_obs()
463 switch (s->routes[i].obs_count) { in nr_dec_obs()
468 nr_neigh = s->routes[i].neighbour; in nr_dec_obs()
476 s->count--; in nr_dec_obs()
480 s->routes[0] = s->routes[1]; in nr_dec_obs()
483 s->routes[1] = s->routes[2]; in nr_dec_obs()
490 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()
49 struct sock *s = unix_get_socket(fp); in unix_inflight() local
53 if (s) { in unix_inflight()
54 struct unix_sock *u = unix_sk(s); in unix_inflight()
70 struct sock *s = unix_get_socket(fp); in unix_notinflight() local
74 if (s) { in unix_notinflight()
75 struct unix_sock *u = unix_sk(s); in unix_notinflight()
/net/core/
Dutils.c122 const char *s; in in4_pton() local
131 s = src; in in4_pton()
136 c = xdigit2bin(srclen > 0 ? *s : '\0', delim); in in4_pton()
160 s++; in in4_pton()
167 *end = s; in in4_pton()
188 const char *s, *tok = NULL; in in6_pton() local
198 s = src; in in6_pton()
206 c = xdigit2bin(srclen > 0 ? *s : '\0', delim); in in6_pton()
244 tok = s + 1; in in6_pton()
249 ret = in4_pton(tok ? tok : s, srclen + (int)(s - tok), d, delim, &s); in in6_pton()
[all …]

123456