Home
last modified time | relevance | path

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

123456

/net/bluetooth/rfcomm/
Dcore.c53 static int rfcomm_send_frame(struct rfcomm_session *s, u8 *data, int len);
54 static int rfcomm_send_sabm(struct rfcomm_session *s, u8 dlci);
55 static int rfcomm_send_disc(struct rfcomm_session *s, u8 dlci);
57 static int rfcomm_send_nsc(struct rfcomm_session *s, int cr, u8 type);
58 static int rfcomm_send_pn(struct rfcomm_session *s, int cr, struct rfcomm_dlc *d);
59 static int rfcomm_send_msc(struct rfcomm_session *s, int cr, u8 dlci, u8 v24_sig);
60 static int rfcomm_send_test(struct rfcomm_session *s, int cr, u8 *pattern, int len);
61 static int rfcomm_send_credits(struct rfcomm_session *s, u8 addr, u8 credits);
64 static void rfcomm_process_connect(struct rfcomm_session *s);
71 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%%\t%2d\n", in osdmap_show()
96 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.c544 struct ip_vs_sync_conn_v0 *s; in ip_vs_sync_conn_v0() local
590 s = (struct ip_vs_sync_conn_v0 *) buff->head; in ip_vs_sync_conn_v0()
593 s->reserved = 0; in ip_vs_sync_conn_v0()
594 s->protocol = cp->protocol; in ip_vs_sync_conn_v0()
595 s->cport = cp->cport; in ip_vs_sync_conn_v0()
596 s->vport = cp->vport; in ip_vs_sync_conn_v0()
597 s->dport = cp->dport; in ip_vs_sync_conn_v0()
598 s->caddr = cp->caddr.ip; in ip_vs_sync_conn_v0()
599 s->vaddr = cp->vaddr.ip; in ip_vs_sync_conn_v0()
600 s->daddr = cp->daddr.ip; in ip_vs_sync_conn_v0()
[all …]
/net/sched/
Dact_sample.c48 struct tcf_sample *s; in tcf_sample_init() local
107 s = to_sample(*a); in tcf_sample_init()
109 spin_lock_bh(&s->tcf_lock); in tcf_sample_init()
111 s->rate = rate; in tcf_sample_init()
112 s->psample_group_num = psample_group_num; in tcf_sample_init()
113 psample_group = rcu_replace_pointer(s->psample_group, psample_group, in tcf_sample_init()
114 lockdep_is_held(&s->tcf_lock)); in tcf_sample_init()
117 s->truncate = true; in tcf_sample_init()
118 s->trunc_size = nla_get_u32(tb[TCA_SAMPLE_TRUNC_SIZE]); in tcf_sample_init()
120 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/
Dsubscr.c46 struct tipc_subscr *s = &sub->evt.s; in tipc_sub_send_event() local
58 tipc_evt_write(evt, found_lower, s->seq.lower); in tipc_sub_send_event()
59 tipc_evt_write(evt, found_upper, s->seq.upper); in tipc_sub_send_event()
90 struct tipc_service_range *sr = &sub->s.seq; in tipc_sub_report_overlap()
91 u32 filter = sub->s.filter; in tipc_sub_report_overlap()
132 struct tipc_subscr *s, in tipc_sub_subscribe() argument
135 u32 lower = tipc_sub_read(s, seq.lower); in tipc_sub_subscribe()
136 u32 upper = tipc_sub_read(s, seq.upper); in tipc_sub_subscribe()
137 u32 filter = tipc_sub_read(s, filter); in tipc_sub_subscribe()
156 memcpy(&sub->evt.s, s, sizeof(*s)); in tipc_sub_subscribe()
[all …]
Dtopsrv.c116 static void tipc_conn_delete_sub(struct tipc_conn *con, struct tipc_subscr *s);
126 struct tipc_topsrv *s = con->server; in tipc_conn_kref_release() local
129 spin_lock_bh(&s->idr_lock); in tipc_conn_kref_release()
130 idr_remove(&s->conn_idr, con->conid); in tipc_conn_kref_release()
131 s->idr_in_use--; in tipc_conn_kref_release()
132 spin_unlock_bh(&s->idr_lock); in tipc_conn_kref_release()
179 static struct tipc_conn *tipc_conn_alloc(struct tipc_topsrv *s, struct socket *sock) in tipc_conn_alloc() argument
196 spin_lock_bh(&s->idr_lock); in tipc_conn_alloc()
197 ret = idr_alloc(&s->conn_idr, con, 0, 0, GFP_ATOMIC); in tipc_conn_alloc()
200 spin_unlock_bh(&s->idr_lock); in tipc_conn_alloc()
[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()
126 while (s != NULL && s->next != NULL) { in ax25_dev_device_down()
127 if (s->next == ax25_dev) { in ax25_dev_device_down()
128 s->next = ax25_dev->next; in ax25_dev_device_down()
137 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 …]
Daf_ax25.c79 ax25_cb *s; in ax25_kill_by_device() local
87 ax25_for_each(s, &ax25_list) { in ax25_kill_by_device()
88 if (s->ax25_dev == ax25_dev) { in ax25_kill_by_device()
89 sk = s->sk; in ax25_kill_by_device()
92 ax25_disconnect(s, ENETUNREACH); in ax25_kill_by_device()
93 s->ax25_dev = NULL; in ax25_kill_by_device()
100 ax25_disconnect(s, ENETUNREACH); in ax25_kill_by_device()
101 s->ax25_dev = NULL; in ax25_kill_by_device()
171 ax25_cb *s; in ax25_find_listener() local
174 ax25_for_each(s, &ax25_list) { in ax25_find_listener()
[all …]
/net/netfilter/
Dnf_conntrack_standalone.c38 print_tuple(struct seq_file *s, const struct nf_conntrack_tuple *tuple, in print_tuple() argument
43 seq_printf(s, "src=%pI4 dst=%pI4 ", in print_tuple()
47 seq_printf(s, "src=%pI6 dst=%pI6 ", in print_tuple()
56 seq_printf(s, "type=%u code=%u id=%u ", in print_tuple()
62 seq_printf(s, "sport=%hu dport=%hu ", in print_tuple()
68 seq_printf(s, "sport=%hu dport=%hu ", in print_tuple()
74 seq_printf(s, "sport=%hu dport=%hu ", in print_tuple()
79 seq_printf(s, "sport=%hu dport=%hu ", in print_tuple()
84 seq_printf(s, "type=%u code=%u id=%u ", in print_tuple()
90 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.c458 struct nr_node *s; in nr_dec_obs() local
463 nr_node_for_each_safe(s, nodet, &nr_node_list) { in nr_dec_obs()
464 nr_node_lock(s); in nr_dec_obs()
465 for (i = 0; i < s->count; i++) { in nr_dec_obs()
466 switch (s->routes[i].obs_count) { in nr_dec_obs()
471 nr_neigh = s->routes[i].neighbour; in nr_dec_obs()
479 s->count--; in nr_dec_obs()
483 s->routes[0] = s->routes[1]; in nr_dec_obs()
486 s->routes[1] = s->routes[2]; in nr_dec_obs()
494 s->routes[i].obs_count--; in nr_dec_obs()
[all …]
/net/unix/
Dscm.c32 struct sock *s = sock->sk; in unix_get_socket() local
35 if (s && sock->ops && sock->ops->family == PF_UNIX) in unix_get_socket()
36 u_sock = s; in unix_get_socket()
50 struct sock *s = unix_get_socket(fp); in unix_inflight() local
54 if (s) { in unix_inflight()
55 struct unix_sock *u = unix_sk(s); in unix_inflight()
73 struct sock *s = unix_get_socket(fp); in unix_notinflight() local
77 if (s) { in unix_notinflight()
78 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