| /net/bluetooth/rfcomm/ |
| A D | core.c | 240 BT_DBG("session %p state %ld", s, s->state); in rfcomm_session_timeout() 255 BT_DBG("session %p state %ld", s, s->state); in rfcomm_session_clear_timer() 1280 s = rfcomm_session_close(s, err); in rfcomm_recv_dm() 1315 s = rfcomm_session_close(s, err); in rfcomm_recv_disc() 1776 s = rfcomm_recv_disc(s, dlci); in rfcomm_recv_frame() 1781 s = rfcomm_recv_ua(s, dlci); in rfcomm_recv_frame() 1785 s = rfcomm_recv_dm(s, dlci); in rfcomm_recv_frame() 1945 s = rfcomm_recv_frame(s, skb); in rfcomm_process_rx() 1996 BT_DBG("%p state %ld", s, s->state); in rfcomm_check_connection() 2035 s = rfcomm_check_connection(s); in rfcomm_process_sessions() [all …]
|
| /net/bluetooth/bnep/ |
| A D | core.c | 50 struct bnep_session *s; in __bnep_get_session() local 56 return s; in __bnep_get_session() 68 list_del(&s->list); in __bnep_unlink_session() 171 s->mc_filter = 0; in bnep_ctrl_set_mcfilter() 174 set_bit(bnep_mc_hash(s->dev->broadcast), (ulong *) &s->mc_filter); in bnep_ctrl_set_mcfilter() 533 fput(s->sock->file); in bnep_session() 600 s->dev = dev; in bnep_add_connection() 601 s->sock = sock; in bnep_add_connection() 631 s->task = kthread_run(bnep_session, s, "kbnepd %s", dev->name); in bnep_add_connection() 665 if (s) { in bnep_del_connection() [all …]
|
| A 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/ceph/ |
| A D | debugfs.c | 156 seq_putc(s, '\n'); in monc_show() 189 seq_puts(s, "\t["); in dump_target() 206 seq_puts(s, "\tP"); in dump_target() 231 seq_putc(s, '\n'); in dump_request() 304 seq_puts(s, "MIN"); in dump_hoid() 313 seq_putc(s, ':'); in dump_hoid() 315 seq_putc(s, ':'); in dump_hoid() 317 seq_putc(s, ':'); in dump_hoid() 334 seq_putc(s, '\t'); in dump_backoffs() 336 seq_putc(s, '\n'); in dump_backoffs() [all …]
|
| /net/netfilter/ipvs/ |
| A D | ip_vs_mh.c | 111 l = &s->lookup[0]; in ip_vs_mh_reset() 134 if (s->gcd < 1) in ip_vs_mh_permutate() 152 ds->turns = ((lw / s->gcd) >> s->rshift) ? : (lw != 0); in ip_vs_mh_permutate() 172 if (s->gcd < 1) { in ip_vs_mh_populate() 378 kfree(s); in ip_vs_mh_state_free() 387 s = kzalloc(sizeof(*s), GFP_KERNEL); in ip_vs_mh_init_svc() 388 if (!s) in ip_vs_mh_init_svc() 394 kfree(s); in ip_vs_mh_init_svc() 398 generate_hash_secret(&s->hash1, &s->hash2); in ip_vs_mh_init_svc() 400 s->rshift = ip_vs_mh_shift_weight(svc, s->gcd); in ip_vs_mh_init_svc() [all …]
|
| A D | ip_vs_ftp.c | 102 char *s, c; in ip_vs_ftp_get_addrport() local 178 s++; in ip_vs_ftp_get_addrport() 185 s++; in ip_vs_ftp_get_addrport() 194 s++; in ip_vs_ftp_get_addrport() 199 s++; in ip_vs_ftp_get_addrport() 203 if (in6_pton(s, data_limit - s, (u8 *)addr, edelim, in ip_vs_ftp_get_addrport() 207 if (in4_pton(s, data_limit - s, (u8 *)addr, edelim, in ip_vs_ftp_get_addrport() 216 s++; in ip_vs_ftp_get_addrport() 226 if (s == data_limit || !hport || *s != edelim) in ip_vs_ftp_get_addrport() 228 s++; in ip_vs_ftp_get_addrport() [all …]
|
| A D | ip_vs_dh.c | 106 b = &s->buckets[0]; in ip_vs_dh_reassign() 140 b = &s->buckets[0]; in ip_vs_dh_flush() 154 struct ip_vs_dh_state *s; in ip_vs_dh_init_svc() local 158 if (s == NULL) in ip_vs_dh_init_svc() 161 svc->sched_data = s; in ip_vs_dh_init_svc() 167 ip_vs_dh_reassign(s, svc); in ip_vs_dh_init_svc() 175 struct ip_vs_dh_state *s = svc->sched_data; in ip_vs_dh_done_svc() local 178 ip_vs_dh_flush(s); in ip_vs_dh_done_svc() 181 kfree_rcu(s, rcu_head); in ip_vs_dh_done_svc() 193 ip_vs_dh_reassign(s, svc); in ip_vs_dh_dest_changed() [all …]
|
| A D | ip_vs_sh.c | 172 b = &s->buckets[0]; in ip_vs_sh_reassign() 216 b = &s->buckets[0]; in ip_vs_sh_flush() 230 struct ip_vs_sh_state *s; in ip_vs_sh_init_svc() local 234 if (s == NULL) in ip_vs_sh_init_svc() 237 svc->sched_data = s; in ip_vs_sh_init_svc() 243 ip_vs_sh_reassign(s, svc); in ip_vs_sh_init_svc() 251 struct ip_vs_sh_state *s = svc->sched_data; in ip_vs_sh_done_svc() local 254 ip_vs_sh_flush(s); in ip_vs_sh_done_svc() 257 kfree_rcu(s, rcu_head); in ip_vs_sh_done_svc() 269 ip_vs_sh_reassign(s, svc); in ip_vs_sh_dest_changed() [all …]
|
| A D | ip_vs_sync.c | 593 s->reserved = 0; 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() 998 s->protocol); in ip_vs_process_message_v0() 1014 s->cport, in ip_vs_process_message_v0() 1020 (union nf_inet_addr *)&s->daddr, s->dport, in ip_vs_process_message_v0() 1156 s->v4.protocol); in ip_vs_proc_sync_conn() 1179 (union nf_inet_addr *)&s->v4.daddr, s->v4.dport, in ip_vs_proc_sync_conn() 1180 ntohl(s->v4.timeout), ntohl(s->v4.fwmark), in ip_vs_proc_sync_conn() 1186 (union nf_inet_addr *)&s->v6.daddr, s->v6.dport, in ip_vs_proc_sync_conn() [all …]
|
| A D | ip_vs_est.c | 83 struct ip_vs_stats *s; in ip_vs_chain_estimation() local 114 spin_lock(&s->lock); in ip_vs_chain_estimation() 116 s->kstats.conns = kconns; in ip_vs_chain_estimation() 117 s->kstats.inpkts = kinpkts; in ip_vs_chain_estimation() 118 s->kstats.outpkts = koutpkts; in ip_vs_chain_estimation() 119 s->kstats.inbytes = kinbytes; in ip_vs_chain_estimation() 120 s->kstats.outbytes = koutbytes; in ip_vs_chain_estimation() 143 spin_unlock(&s->lock); in ip_vs_chain_estimation() 640 struct ip_vs_stats *s; in ip_vs_est_calc_limits() local 655 if (!s) in ip_vs_est_calc_limits() [all …]
|
| /net/sched/ |
| A D | act_sample.c | 48 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() 117 s->truncate = true; in tcf_sample_init() 120 spin_unlock_bh(&s->tcf_lock); in tcf_sample_init() 204 md.trunc_size = s->truncate ? s->trunc_size : skb->len; in tcf_sample_act() 230 .index = s->tcf_index, in tcf_sample_dump() 236 spin_lock_bh(&s->tcf_lock); in tcf_sample_dump() 237 opt.action = s->tcf_action; in tcf_sample_dump() [all …]
|
| /net/tipc/ |
| A D | subscr.c | 46 struct tipc_subscr *s = &sub->evt.s; in tipc_sub_send_event() local 91 u32 filter = sub->s.filter; in tipc_sub_report_overlap() 132 struct tipc_subscr *s, in tipc_sub_subscribe() argument 137 u32 filter = tipc_sub_read(s, filter); in tipc_sub_subscribe() 156 memcpy(&sub->evt.s, s, sizeof(*s)); in tipc_sub_subscribe() 157 sub->s.seq.type = tipc_sub_read(s, seq.type); in tipc_sub_subscribe() 158 sub->s.seq.lower = lower; in tipc_sub_subscribe() 159 sub->s.seq.upper = upper; in tipc_sub_subscribe() 160 sub->s.filter = filter; in tipc_sub_subscribe() 161 sub->s.timeout = tipc_sub_read(s, timeout); in tipc_sub_subscribe() [all …]
|
| A D | topsrv.c | 132 s->idr_in_use--; in tipc_conn_kref_release() 205 s->idr_in_use++; in tipc_conn_alloc() 208 con->server = s; in tipc_conn_alloc() 239 if (!s || !memcmp(s, &sub->evt.s, sizeof(*s))) { in tipc_conn_delete_sub() 242 if (s) in tipc_conn_delete_sub() 393 struct tipc_subscr s; in tipc_conn_rcv_from_sock() local 397 iov.iov_base = &s; in tipc_conn_rcv_from_sock() 398 iov.iov_len = sizeof(s); in tipc_conn_rcv_from_sock() 404 if (ret == sizeof(s)) { in tipc_conn_rcv_from_sock() 636 if (!s->rcv_wq) { in tipc_topsrv_work_start() [all …]
|
| /net/ipv4/netfilter/ |
| A D | nf_nat_snmp_basic_main.c | 69 unsigned char s[12] = {0,}; in fast_csum() local 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() 85 s[0] = ~s[0]; in fast_csum() 86 s[1] = ~s[1]; in fast_csum() 87 s[2] = ~s[2]; in fast_csum() [all …]
|
| /net/ax25/ |
| A D | ax25_route.c | 49 s = ax25_rt; in ax25_rt_device_down() 52 if (s->dev == dev) { 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() 62 kfree(s); in ax25_rt_device_down() 163 s = ax25_rt; in ax25_rt_del() 409 s = ax25_rt; in ax25_rt_free() 412 kfree(s->digipeat); in ax25_rt_free() [all …]
|
| A D | ax25_addr.c | 48 char c, *s; in ax2asc() local 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 85 if (*s != '\0' && *s != '-') in asc2ax() 86 addr->ax25_call[n] = *s++; in asc2ax() 93 if (*s++ == '\0') { in asc2ax() [all …]
|
| A D | ax25_dev.c | 101 ax25_dev *s, *ax25_dev; in ax25_dev_device_down() local 117 list_for_each_entry(s, &ax25_dev_list, list) in ax25_dev_device_down() 118 if (s->forward == dev) in ax25_dev_device_down() 119 s->forward = NULL; in ax25_dev_device_down() 121 list_for_each_entry(s, &ax25_dev_list, list) { in ax25_dev_device_down() 122 if (s == ax25_dev) { in ax25_dev_device_down() 123 list_del(&s->list); in ax25_dev_device_down() 193 ax25_dev *s, *n; in ax25_dev_free() local 197 netdev_put(s->dev, &s->dev_tracker); in ax25_dev_free() 198 list_del(&s->list); in ax25_dev_free() [all …]
|
| A D | af_ax25.c | 79 ax25_cb *s; in ax25_kill_by_device() local 175 ax25_cb *s; in ax25_find_listener() local 179 if ((s->iamdigi && !digi) || (!s->iamdigi && digi)) in ax25_find_listener() 181 if (s->sk && !ax25cmp(&s->source_addr, addr) && in ax25_find_listener() 184 if (s->ax25_dev == NULL || s->ax25_dev->dev == dev) { in ax25_find_listener() 203 ax25_cb *s; in ax25_get_socket() local 207 if (s->sk && !ax25cmp(&s->source_addr, my_addr) && in ax25_get_socket() 228 ax25_cb *s; in ax25_find_cb() local 232 if (s->sk && s->sk->sk_type != SOCK_SEQPACKET) in ax25_find_cb() 243 if (s->digipeat != NULL && s->digipeat->ndigi != 0) in ax25_find_cb() [all …]
|
| /net/netfilter/ |
| A D | nf_conntrack_standalone.c | 41 seq_printf(s, "src=%pI4 dst=%pI4 ", in print_tuple() 45 seq_printf(s, "src=%pI6 dst=%pI6 ", in print_tuple() 349 if (seq_has_overflowed(s)) in ct_seq_show() 355 seq_puts(s, "[UNREPLIED] "); in ct_seq_show() 364 seq_puts(s, "[HW_OFFLOAD] "); in ct_seq_show() 366 seq_puts(s, "[OFFLOAD] "); in ct_seq_show() 368 seq_puts(s, "[ASSURED] "); in ct_seq_show() 370 if (seq_has_overflowed(s)) in ct_seq_show() 377 ct_show_secctx(s, ct); in ct_seq_show() 379 ct_show_delta_time(s, ct); in ct_seq_show() [all …]
|
| A D | xt_multiport.c | 32 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/ |
| A D | rose_route.c | 204 struct rose_node *s; in rose_remove_node() local 212 while (s != NULL && s->next != NULL) { in rose_remove_node() 219 s = s->next; in rose_remove_node() 244 while (s != NULL && s->next != NULL) { in rose_remove_neigh() 254 s = s->next; in rose_remove_neigh() 277 while (s != NULL && s->next != NULL) { in rose_remove_route() 284 s = s->next; in rose_remove_route() 535 if (s->neigh1->dev == dev || s->neigh2->dev == dev) 569 if (s->use == 0 && !s->loopback) { in rose_clear_routes() 570 s->count = 0; in rose_clear_routes() [all …]
|
| /net/netrom/ |
| A D | nr_route.c | 453 struct nr_node *s; in nr_dec_obs() local 459 nr_node_lock(s); in nr_dec_obs() 474 s->count--; in nr_dec_obs() 478 s->routes[0] = s->routes[1]; in nr_dec_obs() 481 s->routes[1] = s->routes[2]; in nr_dec_obs() 495 if (s->count <= 0) in nr_dec_obs() 497 nr_node_unlock(s); in nr_dec_obs() 714 nr_neigh = s; in nr_link_failed() 976 while(s->count) { in nr_rt_free() 977 s->count--; in nr_rt_free() [all …]
|
| /net/netlabel/ |
| A D | netlabel_addrlist.h | 58 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() 140 struct list_head *i = s; in __af6list_valid_rcu() [all …]
|
| /net/core/ |
| A D | utils.c | 122 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() 244 tok = s + 1; in in6_pton() 249 ret = in4_pton(tok ? tok : s, srclen + (int)(s - tok), d, delim, &s); in in6_pton() 277 s++; in in6_pton() [all …]
|
| /net/mac80211/ |
| A D | sta_info.h | 1041 r = STA_STATS_FIELD(BW, s->bw); in sta_stats_encode_rate() 1043 if (s->enc_flags & RX_ENC_FLAG_SHORT_GI) in sta_stats_encode_rate() 1046 switch (s->encoding) { in sta_stats_encode_rate() 1049 r |= STA_STATS_FIELD(VHT_NSS, s->nss); in sta_stats_encode_rate() 1063 r |= STA_STATS_FIELD(HE_NSS, s->nss); in sta_stats_encode_rate() 1065 r |= STA_STATS_FIELD(HE_GI, s->he_gi); in sta_stats_encode_rate() 1066 r |= STA_STATS_FIELD(HE_RU, s->he_ru); in sta_stats_encode_rate() 1067 r |= STA_STATS_FIELD(HE_DCM, s->he_dcm); in sta_stats_encode_rate() 1071 r |= STA_STATS_FIELD(EHT_NSS, s->nss); in sta_stats_encode_rate() 1073 r |= STA_STATS_FIELD(EHT_GI, s->eht.gi); in sta_stats_encode_rate() [all …]
|