| /net/bridge/ |
| A D | br_stp.c | 50 p->port_no, netdev_name(p->dev)); in br_set_state() 55 (unsigned int) p->port_no, p->dev->name); in br_set_state() 58 (unsigned int) p->port_no, p->dev->name, in br_set_state() 80 if (!p) in br_port_get_stp_state() 128 if (p->designated_cost + p->path_cost < in br_should_become_root_port() 131 else if (p->designated_cost + p->path_cost > in br_should_become_root_port() 157 (unsigned int) p->port_no, p->dev->name); in br_root_port_block() 280 if (p) in br_transmit_tcn() 311 if (p->port_id < p->designated_port) in br_should_become_designated_port() 426 p->designated_port = p->port_id; in br_become_designated_port() [all …]
|
| A D | br_if.c | 112 br_fdb_unsync_static(p->br, p); in br_port_set_promisc() 131 err = br_fdb_sync_static(p->br, p); in br_port_clear_promisc() 256 br_fdb_unsync_static(p->br, p); in nbp_delete_promisc() 263 kfree(p); in release_nbp() 431 p = kzalloc(sizeof(*p), GFP_KERNEL); in new_nbp() 435 p->br = br; in new_nbp() 448 kfree(p); in new_nbp() 452 return p; in new_nbp() 733 if (!p || p->br != br) in br_del_if() 740 del_nbp(p); in br_del_if() [all …]
|
| A D | br_sysfs_if.c | 63 unsigned long flags = p->flags; in store_flag() 71 if (flags != p->flags) { in store_flag() 78 p->flags = flags; in store_flag() 178 br_fdb_delete_by_port(p->br, p, 0, 0); // Don't delete local entry in store_flush() 193 p->group_fwd_mask = v; in store_group_fwd_mask() 387 strscpy(p->sysfs_name, p->dev->name, IFNAMSIZ); in br_sysfs_addif() 388 return sysfs_create_link(br->ifobj, &p->kobj, p->sysfs_name); in br_sysfs_addif() 400 if (!strncmp(p->sysfs_name, p->dev->name, IFNAMSIZ)) in br_sysfs_renameif() 404 p->sysfs_name, p->dev->name); in br_sysfs_renameif() 407 p->sysfs_name, p->dev->name); in br_sysfs_renameif() [all …]
|
| A D | br_stp_if.c | 37 p->port_id = br_make_port_id(p->priority, p->port_no); in br_init_port() 41 p->config_pending = 0; in br_init_port() 43 err = __set_ageing_time(p->dev, p->br->ageing_time); in br_init_port() 61 if (netif_running(p->dev) && netif_oper_up(p->dev)) in br_stp_enable_bridge() 62 br_stp_enable_port(p); in br_stp_enable_bridge() 76 br_stp_disable_port(p); in br_stp_disable_bridge() 93 br_init_port(p); in br_stp_enable_port() 108 p->config_pending = 0; in br_stp_disable_port() 321 p->priority = newprio; in br_stp_set_port_priority() 322 if (!memcmp(&p->br->bridge_id, &p->designated_bridge, 8) && in br_stp_set_port_priority() [all …]
|
| A D | br_mrp.c | 93 if (p && p->dev->ifindex == ifindex) in br_mrp_unique_ifindex() 97 if (p && p->dev->ifindex == ifindex) in br_mrp_unique_ifindex() 101 if (p && p->dev->ifindex == ifindex) in br_mrp_unique_ifindex() 189 if (!p) in br_mrp_alloc_test_skb() 246 if (!p) in br_mrp_alloc_in_test_skb() 310 if (p) { in br_mrp_test_work_expired() 444 if (p) in br_mrp_del_impl() 596 if (!p || !(p->flags & BR_MRP_AWARE)) in br_mrp_set_port_state() 622 if (!p || !(p->flags & BR_MRP_AWARE)) in br_mrp_set_port_role() 625 mrp = br_mrp_find_port(p->br, p); in br_mrp_set_port_role() [all …]
|
| A D | br_stp_timer.c | 19 struct net_bridge_port *p; in br_is_designated_for_some_port() local 48 struct net_bridge_port *p = timer_container_of(p, t, in br_message_age_timer_expired() local 58 (unsigned int) p->port_no, p->dev->name, in br_message_age_timer_expired() 82 struct net_bridge_port *p = timer_container_of(p, t, in br_forward_delay_timer_expired() local 87 (unsigned int) p->port_no, p->dev->name); in br_forward_delay_timer_expired() 133 struct net_bridge_port *p = timer_container_of(p, t, hold_timer); in br_hold_timer_expired() local 136 (unsigned int) p->port_no, p->dev->name); in br_hold_timer_expired() 138 spin_lock(&p->br->lock); in br_hold_timer_expired() 139 if (p->config_pending) in br_hold_timer_expired() 140 br_transmit_config(p); in br_hold_timer_expired() [all …]
|
| A D | br_switchdev.c | 63 if (p->hwdom) in nbp_switchdev_frame_mark() 87 .orig_dev = p->dev, in br_switchdev_set_port_flag() 141 item->info.dev = (!p || item->is_local) ? br->dev : p->dev; in br_switchdev_fdb_populate() 263 p->offload_count++; in nbp_switchdev_add() 268 p->ppid = ppid; in nbp_switchdev_add() 269 p->offload_count = 1; in nbp_switchdev_add() 288 p->offload_count--; in nbp_switchdev_del() 290 if (p->offload_count) in nbp_switchdev_del() 293 if (p->hwdom) in nbp_switchdev_del() 520 pp = &p->next) { in br_switchdev_mdb_complete() [all …]
|
| A D | br_forward.c | 26 vg = nbp_vlan_group_rcu(p); in should_deliver() 27 return ((p->flags & BR_HAIRPIN_MODE) || skb->dev != p->dev) && in should_deliver() 28 (br_mst_is_enabled(p->br) || p->state == BR_STATE_FORWARDING) && in should_deliver() 30 !br_skb_isolated(p, skb); in should_deliver() 194 br_multicast_count(p->br, p, skb, igmp_type, BR_MCAST_DIR_TX); in maybe_deliver() 196 return p; in maybe_deliver() 206 struct net_bridge_port *p; in br_flood() local 310 p = NULL; in br_multicast_flood() 314 while (p || rp) { in br_multicast_flood() 317 lport = p ? p->key.port : NULL; in br_multicast_flood() [all …]
|
| A D | br_netlink.c | 107 if (p) in br_get_link_af_size_filtered() 116 if (p && (p->flags & BR_VLAN_TUNNEL)) in br_get_link_af_size_filtered() 701 if (p) { in br_vlan_info() 717 if (p) { in br_vlan_info() 820 if (!p || !(p->flags & BR_VLAN_TUNNEL)) in br_afspec() 853 if (!p) { in br_afspec() 1021 br_fdb_delete_by_port(p->br, p, 0, 0); in br_setport() 1781 if (!p) in br_get_linkxstats_size() 1820 if (!p) in br_fill_linkxstats() 1822 br = p->br; in br_fill_linkxstats() [all …]
|
| /net/mac80211/ |
| A D | rc80211_minstrel_ht_debugfs.c | 86 p += sprintf(p, "OFDM "); in minstrel_ht_stats_dump() 87 p += sprintf(p, "1 "); in minstrel_ht_stats_dump() 89 p += sprintf(p, "CCK "); in minstrel_ht_stats_dump() 91 p += sprintf(p, "1 "); in minstrel_ht_stats_dump() 159 p += sprintf(p, "\n"); in minstrel_ht_stats_open() 160 p += sprintf(p, in minstrel_ht_stats_open() 162 p += sprintf(p, in minstrel_ht_stats_open() 231 p += sprintf(p, "OFDM,,1,"); in minstrel_ht_stats_csv_dump() 233 p += sprintf(p, "CCK,"); in minstrel_ht_stats_csv_dump() 235 p += sprintf(p, "1,"); in minstrel_ht_stats_csv_dump() [all …]
|
| A D | debugfs_sta.c | 161 p += scnprintf(p, bufsz + buf - p, in sta_aqm_read() 213 p += scnprintf(p, bufsz + buf - p, in sta_airtime_read() 266 p += scnprintf(p, bufsz + buf - p, in sta_aql_read() 318 p += scnprintf(p, bufsz + buf - p, in sta_agg_status_do_read() 540 p += scnprintf(p, bufsz + buf - p, in link_sta_ht_capa_read() 620 p += scnprintf(p, bufsz + buf - p, in link_sta_vht_capa_read() 624 p += scnprintf(p, bufsz + buf - p, in link_sta_vht_capa_read() 628 p += scnprintf(p, bufsz + buf - p, in link_sta_vht_capa_read() 636 p += scnprintf(p, bufsz + buf - p, in link_sta_vht_capa_read() 642 p += scnprintf(p, bufsz + buf - p, in link_sta_vht_capa_read() [all …]
|
| /net/x25/ |
| A D | x25_facilities.c | 111 p[0], p[1]); in x25_parse_facilities() 114 p += 2; in x25_parse_facilities() 134 p[0], p[1], p[2]); in x25_parse_facilities() 137 p += 3; in x25_parse_facilities() 145 p[0], p[1], p[2], p[3]); in x25_parse_facilities() 154 if (p[1] > X25_MAX_DTE_FACIL_LEN || p[1] <= 1) in x25_parse_facilities() 159 memcpy(dte_facs->calling_ae, &p[3], p[1] - 1); in x25_parse_facilities() 163 if (p[1] > X25_MAX_DTE_FACIL_LEN || p[1] <= 1) in x25_parse_facilities() 168 memcpy(dte_facs->called_ae, &p[3], p[1] - 1); in x25_parse_facilities() 173 "length %d\n", p[0], p[1]); in x25_parse_facilities() [all …]
|
| /net/rose/ |
| A D | rose_subr.c | 250 p += 2; in rose_parse_national() 260 p += 3; in rose_parse_national() 268 p += 4; in rose_parse_national() 276 l = p[1]; in rose_parse_national() 343 p += 2; in rose_parse_ccitt() 351 p += 3; in rose_parse_ccitt() 359 p += 4; in rose_parse_ccitt() 367 l = p[1]; in rose_parse_ccitt() 407 p++; in rose_parse_facilities() 501 *p++ = 0x47; *p++ = 0x00; *p++ = 0x11; in rose_create_facilities() [all …]
|
| /net/sunrpc/auth_gss/ |
| A D | gss_rpc_xdr.c | 13 __be32 *p; in gssx_enc_bool() local 24 __be32 *p; in gssx_dec_bool() local 36 __be32 *p; in gssx_enc_buffer() local 39 if (!p) in gssx_enc_buffer() 51 if (!p) in gssx_enc_in_token() 128 if (!p) in dummy_enc_opt_array() 130 *p = 0; in dummy_enc_opt_array() 615 p = xdr_encode_hyper(p, ctx->lifetime); in gssx_enc_ctx() 618 p = xdr_encode_hyper(p, ctx->ctx_flags); in gssx_enc_ctx() 678 p = xdr_decode_hyper(p, &ctx->lifetime); in gssx_dec_ctx() [all …]
|
| /net/ceph/ |
| A D | osdmap.c | 486 i, (int)(*p-start), *p, end); in crush_decode() 521 b->size, (int)(*p-start), *p, end); in crush_decode() 574 i, (int)(*p-start), *p, end); in crush_decode() 580 i, (int)(*p-start), *p, end); in crush_decode() 827 *p += len; in decode_pool() 1320 *p -= 1; in get_osdmap_client_data_v() 1777 *p += len; in osdmap_decode() 1798 *p = end; in osdmap_decode() 1871 *p += len; in decode_new_up_state_weight() 2007 crush_decode(*p, min(*p + len, end))); in osdmap_apply_incremental() [all …]
|
| A D | cls_lock_client.c | 36 void *p, *end; in ceph_cls_lock() local 63 ceph_encode_8(&p, type); in ceph_cls_lock() 71 ceph_encode_8(&p, flags); in ceph_cls_lock() 101 void *p, *end; in ceph_cls_unlock() local 154 void *p, *end; in ceph_cls_break_lock() local 201 void *p, *end; in ceph_cls_set_cookie() local 224 ceph_encode_8(&p, type); in ceph_cls_set_cookie() 344 void *p, *end; in ceph_cls_lock_info() local 378 end = p + reply_len; in ceph_cls_lock_info() 397 void *p, *end; in ceph_cls_assert_locked() local [all …]
|
| A D | auth.c | 136 lenp = p; in ceph_auth_build_hello() 168 void *p; in build_request() local 171 p = buf; in build_request() 220 payload = p; in ceph_handle_auth_reply() 432 void *p; in ceph_auth_get_request() local 448 p = buf; in ceph_auth_get_request() 454 lenp = p; in ceph_auth_get_request() 554 void *p; in ceph_auth_get_authorizer() local 562 p = buf; in ceph_auth_get_authorizer() 583 void *p; in ceph_auth_handle_svc_reply_more() local [all …]
|
| A D | decode.c | 10 ceph_decode_entity_addr_versioned(void **p, void *end, in ceph_decode_entity_addr_versioned() argument 24 struct_end = *p + struct_len; in ceph_decode_entity_addr_versioned() 30 ceph_decode_32_safe(p, end, addr_len, bad); in ceph_decode_entity_addr_versioned() 43 *p = struct_end; in ceph_decode_entity_addr_versioned() 56 ceph_decode_skip_n(p, end, 3, bad); in ceph_decode_entity_addr_legacy() 65 ceph_decode_copy_safe(p, end, &addr->in_addr, in ceph_decode_entity_addr_legacy() 79 ceph_decode_8_safe(p, end, marker, bad); in ceph_decode_entity_addr() 107 ceph_decode_8_safe(p, end, marker, e_inval); in ceph_decode_entity_addrvec() 183 ceph_encode_8(p, 1); /* marker */ in ceph_encode_entity_addr() 190 ceph_encode_32(p, addr_len); in ceph_encode_entity_addr() [all …]
|
| /net/ipv4/ |
| A D | inetpeer.c | 115 return p; in lookup() 153 p = gc_stack[i]; in inet_peer_gc() 161 p = gc_stack[i]; in inet_peer_gc() 162 if (p) { in inet_peer_gc() 184 if (p) in inet_getpeer() 185 return p; in inet_getpeer() 195 if (!p) { in inet_getpeer() 197 if (p) { in inet_getpeer() 219 return p; in inet_getpeer() 278 while (p) { in inetpeer_invalidate_tree() [all …]
|
| /net/tipc/ |
| A D | name_table.c | 197 while ((p = rb_parent(n)) && n == p->rb_right) in service_range_match_next() 198 n = p; in service_range_match_next() 199 if (!p) in service_range_match_next() 209 n = p; in service_range_match_next() 235 if (!p) in tipc_publ_create() 247 return p; in tipc_publ_create() 353 p->sr.type, p->sr.lower, p->sr.upper, in tipc_service_insert_publ() 372 p->sr.type, p->sr.lower, p->sr.upper); in tipc_service_insert_publ() 485 if (!p) in tipc_nametbl_insert_publ() 517 if (!p) in tipc_nametbl_remove_publ() [all …]
|
| /net/netfilter/ipvs/ |
| A D | ip_vs_conn.c | 128 if (p->pe_data && p->pe->hashkey_raw) in ip_vs_conn_hashkey_param() 140 return ip_vs_conn_hashkey(p->ipvs, p->af, p->protocol, addr, port); in ip_vs_conn_hashkey_param() 306 IP_VS_DBG_ADDR(p->af, p->caddr), ntohs(p->cport), in ip_vs_conn_in_get() 307 IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport), in ip_vs_conn_in_get() 362 if (p->pe == cp->pe && p->pe->ct_match(p, cp)) { in ip_vs_ct_in_get() 374 p->af, p->vaddr, &cp->vaddr) && in ip_vs_ct_in_get() 390 IP_VS_DBG_ADDR(p->af, p->caddr), ntohs(p->cport), in ip_vs_ct_in_get() 391 IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport), in ip_vs_ct_in_get() 427 if (p->cport == sport && cp->af == p->af && in ip_vs_conn_out_get() 444 IP_VS_DBG_ADDR(p->af, p->caddr), ntohs(p->cport), in ip_vs_conn_out_get() [all …]
|
| /net/sunrpc/ |
| A D | auth_unix.c | 123 p = xdr_reserve_space(xdr, 3 * sizeof(*p)); in unx_marshal() 124 if (!p) in unx_marshal() 132 p = xdr_reserve_space(xdr, 3 * sizeof(*p)); in unx_marshal() 133 if (!p) in unx_marshal() 145 if (!p) in unx_marshal() 150 p = xdr_reserve_space(xdr, 2 * sizeof(*p)); in unx_marshal() 151 if (!p) in unx_marshal() 176 __be32 *p; in unx_validate() local 179 p = xdr_inline_decode(xdr, 2 * sizeof(*p)); in unx_validate() 180 if (!p) in unx_validate() [all …]
|
| /net/rxrpc/ |
| A D | oob.c | 71 struct rb_node *p; in rxrpc_find_pending_oob() local 75 while (p) { in rxrpc_find_pending_oob() 79 p = p->rb_left; in rxrpc_find_pending_oob() 81 p = p->rb_right; in rxrpc_find_pending_oob() 100 p = *pp; in rxrpc_add_pending_oob() 132 if (len != sizeof(p->oob_id) || p->have_oob_id) in rxrpc_sendmsg_oob_cmsg() 134 memcpy(&p->oob_id, CMSG_DATA(cmsg), sizeof(p->oob_id)); in rxrpc_sendmsg_oob_cmsg() 143 if (len != sizeof(p->abort_code) || p->abort_code) in rxrpc_sendmsg_oob_cmsg() 145 memcpy(&p->abort_code, CMSG_DATA(cmsg), sizeof(p->abort_code)); in rxrpc_sendmsg_oob_cmsg() 233 if (p.have_oob_id) in rxrpc_sendmsg_oob() [all …]
|
| /net/sched/ |
| A D | act_mpls.c | 35 if (p->tcfm_ttl) { in tcf_mpls_get_lse() 77 switch (p->tcfm_action) { in tcf_mpls_act() 123 return p->action; in tcf_mpls_act() 282 p = kzalloc(sizeof(*p), GFP_KERNEL); in tcf_mpls_init() 283 if (!p) { in tcf_mpls_init() 301 p = rcu_replace_pointer(m->mpls_p, p, lockdep_is_held(&m->tcf_lock)); in tcf_mpls_init() 306 if (p) in tcf_mpls_init() 307 kfree_rcu(p, rcu); in tcf_mpls_init() 324 if (p) in tcf_mpls_cleanup() 325 kfree_rcu(p, rcu); in tcf_mpls_cleanup() [all …]
|
| /net/ipv6/ila/ |
| A D | ila_common.c | 18 if (!p->locator_match.v64) in ila_init_saved_csum() 21 p->csum_diff = compute_csum_diff8( in ila_init_saved_csum() 22 (__be32 *)&p->locator, in ila_init_saved_csum() 23 (__be32 *)&p->locator_match); in ila_init_saved_csum() 28 if (p->locator_match.v64) in get_csum_diff_iaddr() 29 return p->csum_diff; in get_csum_diff_iaddr() 41 struct ila_params *p) in ila_csum_do_neutral_fmt() argument 64 struct ila_params *p) in ila_csum_do_neutral_nofmt() argument 75 struct ila_params *p) in ila_csum_adjust_transport() argument 126 switch (p->csum_mode) { in ila_update_ipv6_locator() [all …]
|