/net/bluetooth/rfcomm/ |
D | core.c | 54 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/ |
D | core.c | 50 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 …]
|
D | netdev.c | 53 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/tipc/ |
D | server.c | 110 static struct tipc_conn *tipc_conn_lookup(struct tipc_server *s, int conid) in tipc_conn_lookup() argument 114 spin_lock_bh(&s->idr_lock); in tipc_conn_lookup() 115 con = idr_find(&s->conn_idr, conid); in tipc_conn_lookup() 118 spin_unlock_bh(&s->idr_lock); in tipc_conn_lookup() 176 struct tipc_server *s = con->server; in tipc_close_conn() local 180 s->tipc_conn_shutdown(con->conid, con->usr_data); in tipc_close_conn() 182 spin_lock_bh(&s->idr_lock); in tipc_close_conn() 183 idr_remove(&s->conn_idr, con->conid); in tipc_close_conn() 184 s->idr_in_use--; in tipc_close_conn() 185 spin_unlock_bh(&s->idr_lock); in tipc_close_conn() [all …]
|
D | subscr.c | 166 subscr_send_event(sub, sub->evt.s.seq.lower, sub->evt.s.seq.upper, in subscr_timeout() 231 static void subscr_cancel(struct tipc_subscr *s, in subscr_cancel() argument 241 if (!memcmp(s, &sub->evt.s, sizeof(struct tipc_subscr))) { in subscr_cancel() 265 static int subscr_subscribe(struct tipc_subscr *s, in subscr_subscribe() argument 272 swap = !(s->filter & (TIPC_SUB_PORTS | TIPC_SUB_SERVICE)); in subscr_subscribe() 275 if (s->filter & htohl(TIPC_SUB_CANCEL, swap)) { in subscr_subscribe() 276 s->filter &= ~htohl(TIPC_SUB_CANCEL, swap); in subscr_subscribe() 277 subscr_cancel(s, subscriber); in subscr_subscribe() 296 sub->seq.type = htohl(s->seq.type, swap); in subscr_subscribe() 297 sub->seq.lower = htohl(s->seq.lower, swap); in subscr_subscribe() [all …]
|
D | bcast.c | 675 struct tipc_bearer *s = bcbearer->bpairs[bp_index].secondary; in tipc_bcbearer_send() local 676 struct tipc_bearer *bp[2] = {p, s}; in tipc_bcbearer_send() 774 struct tipc_stats *s; in tipc_bclink_stats() local 781 s = &bcl->stats; in tipc_bclink_stats() 788 s->recv_info, s->recv_fragments, in tipc_bclink_stats() 789 s->recv_fragmented, s->recv_bundles, in tipc_bclink_stats() 790 s->recv_bundled); in tipc_bclink_stats() 793 s->sent_info, s->sent_fragments, in tipc_bclink_stats() 794 s->sent_fragmented, s->sent_bundles, in tipc_bclink_stats() 795 s->sent_bundled); in tipc_bclink_stats() [all …]
|
/net/sched/ |
D | cls_rsvp.h | 135 struct rsvp_session *s; in rsvp_classify() local 175 for (s = rcu_dereference_bh(head->ht[h1]); s; in rsvp_classify() 176 s = rcu_dereference_bh(s->next)) { in rsvp_classify() 177 if (dst[RSVP_DST_LEN-1] == s->dst[RSVP_DST_LEN - 1] && in rsvp_classify() 178 protocol == s->protocol && in rsvp_classify() 179 !(s->dpi.mask & in rsvp_classify() 180 (*(u32 *)(xprt + s->dpi.offset) ^ s->dpi.key)) && in rsvp_classify() 182 dst[0] == s->dst[0] && in rsvp_classify() 183 dst[1] == s->dst[1] && in rsvp_classify() 184 dst[2] == s->dst[2] && in rsvp_classify() [all …]
|
/net/ceph/ |
D | debugfs.c | 32 static int monmap_show(struct seq_file *s, void *p) in monmap_show() argument 35 struct ceph_client *client = s->private; in monmap_show() 40 seq_printf(s, "epoch %d\n", client->monc.monmap->epoch); in monmap_show() 45 seq_printf(s, "\t%s%lld\t%s\n", in monmap_show() 52 static int osdmap_show(struct seq_file *s, void *p) in osdmap_show() argument 55 struct ceph_client *client = s->private; in osdmap_show() 62 seq_printf(s, "epoch %d\n", map->epoch); in osdmap_show() 63 seq_printf(s, "flags%s%s\n", in osdmap_show() 71 seq_printf(s, "pool %lld pg_num %u (%d) read_tier %lld write_tier %lld\n", in osdmap_show() 80 seq_printf(s, "osd%d\t%s\t%3d%%\t(%s)\t%3d%%\n", in osdmap_show() [all …]
|
/net/netfilter/ipvs/ |
D | ip_vs_est.c | 65 struct ip_vs_cpu_stats *s = per_cpu_ptr(stats, i); in ip_vs_read_cpu_stats() local 69 sum->conns += s->ustats.conns; in ip_vs_read_cpu_stats() 70 sum->inpkts += s->ustats.inpkts; in ip_vs_read_cpu_stats() 71 sum->outpkts += s->ustats.outpkts; in ip_vs_read_cpu_stats() 73 start = u64_stats_fetch_begin(&s->syncp); in ip_vs_read_cpu_stats() 74 inbytes = s->ustats.inbytes; in ip_vs_read_cpu_stats() 75 outbytes = s->ustats.outbytes; in ip_vs_read_cpu_stats() 76 } while (u64_stats_fetch_retry(&s->syncp, start)); in ip_vs_read_cpu_stats() 81 sum->conns = s->ustats.conns; in ip_vs_read_cpu_stats() 82 sum->inpkts = s->ustats.inpkts; in ip_vs_read_cpu_stats() [all …]
|
D | ip_vs_dh.c | 92 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 …]
|
D | ip_vs_sh.c | 108 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 …]
|
D | ip_vs_sync.c | 532 struct ip_vs_sync_conn_v0 *s; in ip_vs_sync_conn_v0() local 578 s = (struct ip_vs_sync_conn_v0 *) buff->head; in ip_vs_sync_conn_v0() 581 s->reserved = 0; in ip_vs_sync_conn_v0() 582 s->protocol = cp->protocol; in ip_vs_sync_conn_v0() 583 s->cport = cp->cport; in ip_vs_sync_conn_v0() 584 s->vport = cp->vport; in ip_vs_sync_conn_v0() 585 s->dport = cp->dport; in ip_vs_sync_conn_v0() 586 s->caddr = cp->caddr.ip; in ip_vs_sync_conn_v0() 587 s->vaddr = cp->vaddr.ip; in ip_vs_sync_conn_v0() 588 s->daddr = cp->daddr.ip; in ip_vs_sync_conn_v0() [all …]
|
/net/ax25/ |
D | ax25_dev.c | 96 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() 124 while (s != NULL && s->next != NULL) { in ax25_dev_device_down() 125 if (s->next == ax25_dev) { in ax25_dev_device_down() 126 s->next = ax25_dev->next; in ax25_dev_device_down() 133 s = s->next; in ax25_dev_device_down() [all …]
|
D | ax25_addr.c | 51 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 …]
|
D | ax25_route.c | 47 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 …]
|
D | af_ax25.c | 83 ax25_cb *s; in ax25_kill_by_device() local 90 ax25_for_each(s, &ax25_list) { in ax25_kill_by_device() 91 if (s->ax25_dev == ax25_dev) { in ax25_kill_by_device() 92 s->ax25_dev = NULL; in ax25_kill_by_device() 94 ax25_disconnect(s, ENETUNREACH); in ax25_kill_by_device() 159 ax25_cb *s; in ax25_find_listener() local 162 ax25_for_each(s, &ax25_list) { in ax25_find_listener() 163 if ((s->iamdigi && !digi) || (!s->iamdigi && digi)) in ax25_find_listener() 165 if (s->sk && !ax25cmp(&s->source_addr, addr) && in ax25_find_listener() 166 s->sk->sk_type == type && s->sk->sk_state == TCP_LISTEN) { in ax25_find_listener() [all …]
|
/net/netfilter/ |
D | nf_conntrack_standalone.c | 40 print_tuple(struct seq_file *s, const struct nf_conntrack_tuple *tuple, in print_tuple() argument 44 return l3proto->print_tuple(s, tuple) || l4proto->print_tuple(s, tuple); in print_tuple() 109 static void *ct_seq_next(struct seq_file *s, void *v, loff_t *pos) in ct_seq_next() argument 112 return ct_get_next(s, v); in ct_seq_next() 115 static void ct_seq_stop(struct seq_file *s, void *v) in ct_seq_stop() argument 122 static int ct_show_secctx(struct seq_file *s, const struct nf_conn *ct) in ct_show_secctx() argument 132 ret = seq_printf(s, "secctx=%s ", secctx); in ct_show_secctx() 138 static inline int ct_show_secctx(struct seq_file *s, const struct nf_conn *ct) in ct_show_secctx() argument 145 static int ct_show_delta_time(struct seq_file *s, const struct nf_conn *ct) in ct_show_delta_time() argument 147 struct ct_iter_state *st = s->private; in ct_show_delta_time() [all …]
|
D | xt_multiport.c | 35 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/ipv4/netfilter/ |
D | nf_conntrack_l3proto_ipv4_compat.c | 84 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 int ct_show_secctx(struct seq_file *s, const struct nf_conn *ct) in ct_show_secctx() argument 107 ret = seq_printf(s, "secctx=%s ", secctx); in ct_show_secctx() 113 static inline int ct_show_secctx(struct seq_file *s, const struct nf_conn *ct) in ct_show_secctx() argument 119 static int ct_seq_show(struct seq_file *s, void *v) in ct_seq_show() argument 144 if (seq_printf(s, "%-8s %u %ld ", in ct_seq_show() 150 if (l4proto->print_conntrack && l4proto->print_conntrack(s, ct)) in ct_seq_show() 153 if (print_tuple(s, &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple, in ct_seq_show() [all …]
|
/net/rose/ |
D | rose_route.c | 208 struct rose_node *s; in rose_remove_node() local 210 if ((s = rose_node_list) == rose_node) { in rose_remove_node() 216 while (s != NULL && s->next != NULL) { in rose_remove_node() 217 if (s->next == rose_node) { in rose_remove_node() 218 s->next = rose_node->next; in rose_remove_node() 223 s = s->next; in rose_remove_node() 232 struct rose_neigh *s; in rose_remove_neigh() local 239 if ((s = rose_neigh_list) == rose_neigh) { in rose_remove_neigh() 248 while (s != NULL && s->next != NULL) { in rose_remove_neigh() 249 if (s->next == rose_neigh) { in rose_remove_neigh() [all …]
|
/net/sunrpc/ |
D | sysctl.c | 79 char tmpbuf[20], c, *s; in proc_dodebug() local 106 for (s = tmpbuf, value = 0; '0' <= *s && *s <= '9'; s++, left--) in proc_dodebug() 107 value = 10 * value + (*s - '0'); in proc_dodebug() 108 if (*s && !isspace(*s)) in proc_dodebug() 110 while (left && isspace(*s)) in proc_dodebug() 111 left--, s++; in proc_dodebug()
|
/net/netlabel/ |
D | netlabel_addrlist.h | 72 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/core/ |
D | utils.c | 127 const char *s; in in4_pton() local 136 s = src; in in4_pton() 141 c = xdigit2bin(srclen > 0 ? *s : '\0', delim); in in4_pton() 165 s++; in in4_pton() 172 *end = s; in in4_pton() 193 const char *s, *tok = NULL; in in6_pton() local 203 s = src; in in6_pton() 211 c = xdigit2bin(srclen > 0 ? *s : '\0', delim); in in6_pton() 249 tok = s + 1; in in6_pton() 254 ret = in4_pton(tok ? tok : s, srclen + (int)(s - tok), d, delim, &s); in in6_pton() [all …]
|
/net/netrom/ |
D | nr_route.c | 484 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/ipx/ |
D | ipx_proc.c | 105 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 …]
|