Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 309) sorted by relevance

12345678910>>...13

/net/bridge/
Dbr_stp.c29 void br_set_state(struct net_bridge_port *p, unsigned int state) in br_set_state() argument
32 .orig_dev = p->dev, in br_set_state()
39 p->state = state; in br_set_state()
40 err = switchdev_port_attr_set(p->dev, &attr); in br_set_state()
42 br_warn(p->br, "error setting offload STP state on port %u(%s)\n", in br_set_state()
43 (unsigned int) p->port_no, p->dev->name); in br_set_state()
45 br_info(p->br, "port %u(%s) entered %s state\n", in br_set_state()
46 (unsigned int) p->port_no, p->dev->name, in br_set_state()
47 br_port_state_names[p->state]); in br_set_state()
53 struct net_bridge_port *p; in br_get_port() local
[all …]
Dbr_if.c64 void br_port_carrier_check(struct net_bridge_port *p, bool *notified) in br_port_carrier_check() argument
66 struct net_device *dev = p->dev; in br_port_carrier_check()
67 struct net_bridge *br = p->br; in br_port_carrier_check()
69 if (!(p->flags & BR_ADMIN_COST) && in br_port_carrier_check()
71 p->path_cost = port_cost(dev); in br_port_carrier_check()
79 if (p->state == BR_STATE_DISABLED) { in br_port_carrier_check()
80 br_stp_enable_port(p); in br_port_carrier_check()
84 if (p->state != BR_STATE_DISABLED) { in br_port_carrier_check()
85 br_stp_disable_port(p); in br_port_carrier_check()
92 static void br_port_set_promisc(struct net_bridge_port *p) in br_port_set_promisc() argument
[all …]
Dbr_sysfs_if.c44 static ssize_t show_##_name(struct net_bridge_port *p, char *buf) \
46 return sprintf(buf, "%d\n", !!(p->flags & _mask)); \
48 static int store_##_name(struct net_bridge_port *p, unsigned long v) \
50 return store_flag(p, v, _mask); \
55 static int store_flag(struct net_bridge_port *p, unsigned long v, in store_flag() argument
58 unsigned long flags = p->flags; in store_flag()
66 if (flags != p->flags) { in store_flag()
67 err = br_switchdev_set_port_flag(p, flags, mask); in store_flag()
71 p->flags = flags; in store_flag()
72 br_port_flags_change(p, mask); in store_flag()
[all …]
Dbr_stp_if.c33 void br_init_port(struct net_bridge_port *p) in br_init_port() argument
37 p->port_id = br_make_port_id(p->priority, p->port_no); in br_init_port()
38 br_become_designated_port(p); in br_init_port()
39 br_set_state(p, BR_STATE_BLOCKING); in br_init_port()
40 p->topology_change_ack = 0; 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()
45 netdev_err(p->dev, "failed to offload ageing time\n"); in br_init_port()
51 struct net_bridge_port *p; in br_stp_enable_bridge() local
60 list_for_each_entry(p, &br->port_list, list) { in br_stp_enable_bridge()
[all …]
Dbr_stp_timer.c19 struct net_bridge_port *p; in br_is_designated_for_some_port() local
21 list_for_each_entry(p, &br->port_list, list) { in br_is_designated_for_some_port()
22 if (p->state != BR_STATE_DISABLED && in br_is_designated_for_some_port()
23 !memcmp(&p->designated_bridge, &br->bridge_id, 8)) in br_is_designated_for_some_port()
48 struct net_bridge_port *p = from_timer(p, t, message_age_timer); in br_message_age_timer_expired() local
49 struct net_bridge *br = p->br; in br_message_age_timer_expired()
50 const bridge_id *id = &p->designated_bridge; in br_message_age_timer_expired()
53 if (p->state == BR_STATE_DISABLED) in br_message_age_timer_expired()
57 (unsigned int) p->port_no, p->dev->name, in br_message_age_timer_expired()
66 if (p->state == BR_STATE_DISABLED) in br_message_age_timer_expired()
[all …]
/net/mac80211/
Drc80211_minstrel_ht_debugfs.c32 minstrel_ht_stats_dump(struct minstrel_ht_sta *mi, int i, char *p) in minstrel_ht_stats_dump() argument
41 return p; in minstrel_ht_stats_dump()
63 p += sprintf(p, "HT%c0 ", htmode); in minstrel_ht_stats_dump()
64 p += sprintf(p, "%cGI ", gimode); in minstrel_ht_stats_dump()
65 p += sprintf(p, "%d ", mg->streams); in minstrel_ht_stats_dump()
67 p += sprintf(p, "VHT%c0 ", htmode); in minstrel_ht_stats_dump()
68 p += sprintf(p, "%cGI ", gimode); in minstrel_ht_stats_dump()
69 p += sprintf(p, "%d ", mg->streams); in minstrel_ht_stats_dump()
71 p += sprintf(p, "CCK "); in minstrel_ht_stats_dump()
72 p += sprintf(p, "%cP ", j < 4 ? 'L' : 'S'); in minstrel_ht_stats_dump()
[all …]
Ddebugfs_sta.c110 char buf[17*IEEE80211_NUM_ACS], *p = buf; in sta_num_ps_buf_frames_read() local
114 p += scnprintf(p, sizeof(buf)+buf-p, "AC%d: %d\n", ac, in sta_num_ps_buf_frames_read()
117 return simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); in sta_num_ps_buf_frames_read()
124 char buf[15*IEEE80211_NUM_TIDS], *p = buf; in sta_last_seq_ctrl_read() local
128 p += scnprintf(p, sizeof(buf)+buf-p, "%x ", in sta_last_seq_ctrl_read()
130 p += scnprintf(p, sizeof(buf)+buf-p, "\n"); in sta_last_seq_ctrl_read()
131 return simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); in sta_last_seq_ctrl_read()
143 char *buf = kzalloc(bufsz, GFP_KERNEL), *p = buf; in sta_aqm_read() local
154 p += scnprintf(p, in sta_aqm_read()
155 bufsz+buf-p, in sta_aqm_read()
[all …]
Drc80211_minstrel_debugfs.c63 char *p; in minstrel_stats_open() local
70 p = ms->buf; in minstrel_stats_open()
71 p += sprintf(p, "\n"); in minstrel_stats_open()
72 p += sprintf(p, in minstrel_stats_open()
74 p += sprintf(p, in minstrel_stats_open()
81 *(p++) = (i == mi->max_tp_rate[0]) ? 'A' : ' '; in minstrel_stats_open()
82 *(p++) = (i == mi->max_tp_rate[1]) ? 'B' : ' '; in minstrel_stats_open()
83 *(p++) = (i == mi->max_tp_rate[2]) ? 'C' : ' '; in minstrel_stats_open()
84 *(p++) = (i == mi->max_tp_rate[3]) ? 'D' : ' '; in minstrel_stats_open()
85 *(p++) = (i == mi->max_prob_rate) ? 'P' : ' '; in minstrel_stats_open()
[all …]
/net/x25/
Dx25_facilities.c44 unsigned char *p; in x25_parse_facilities() local
68 p = skb->data + 1; in x25_parse_facilities()
71 switch (*p & X25_FAC_CLASS_MASK) { in x25_parse_facilities()
75 switch (*p) { in x25_parse_facilities()
77 if((p[1] & 0x81) == 0x81) { in x25_parse_facilities()
78 facilities->reverse = p[1] & 0x81; in x25_parse_facilities()
83 if((p[1] & 0x01) == 0x01) { in x25_parse_facilities()
84 facilities->reverse = p[1] & 0x01; in x25_parse_facilities()
89 if((p[1] & 0x80) == 0x80) { in x25_parse_facilities()
90 facilities->reverse = p[1] & 0x80; in x25_parse_facilities()
[all …]
/net/rose/
Drose_subr.c239 static int rose_parse_national(unsigned char *p, struct rose_facilities_struct *facilities, int len) in rose_parse_national() argument
246 switch (*p & 0xC0) { in rose_parse_national()
250 p += 2; in rose_parse_national()
258 if (*p == FAC_NATIONAL_RAND) in rose_parse_national()
259 facilities->rand = ((p[1] << 8) & 0xFF00) + ((p[2] << 0) & 0x00FF); 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()
279 if (*p == FAC_NATIONAL_DEST_DIGI) { in rose_parse_national()
283 memcpy(&facilities->source_digis[0], p + 2, AX25_ADDR_LEN); in rose_parse_national()
[all …]
/net/ceph/
Dosdmap.c55 static int crush_decode_uniform_bucket(void **p, void *end, in crush_decode_uniform_bucket() argument
58 dout("crush_decode_uniform_bucket %p to %p\n", *p, end); in crush_decode_uniform_bucket()
59 ceph_decode_need(p, end, (1+b->h.size) * sizeof(u32), bad); in crush_decode_uniform_bucket()
60 b->item_weight = ceph_decode_32(p); in crush_decode_uniform_bucket()
66 static int crush_decode_list_bucket(void **p, void *end, in crush_decode_list_bucket() argument
70 dout("crush_decode_list_bucket %p to %p\n", *p, end); in crush_decode_list_bucket()
77 ceph_decode_need(p, end, 2 * b->h.size * sizeof(u32), bad); in crush_decode_list_bucket()
79 b->item_weights[j] = ceph_decode_32(p); in crush_decode_list_bucket()
80 b->sum_weights[j] = ceph_decode_32(p); in crush_decode_list_bucket()
87 static int crush_decode_tree_bucket(void **p, void *end, in crush_decode_tree_bucket() argument
[all …]
Dcls_lock_client.c34 void *p, *end; in ceph_cls_lock() local
54 p = page_address(lock_op_page); in ceph_cls_lock()
55 end = p + lock_op_buf_size; in ceph_cls_lock()
58 ceph_start_encoding(&p, 1, 1, in ceph_cls_lock()
60 ceph_encode_string(&p, end, lock_name, name_len); in ceph_cls_lock()
61 ceph_encode_8(&p, type); in ceph_cls_lock()
62 ceph_encode_string(&p, end, cookie, cookie_len); in ceph_cls_lock()
63 ceph_encode_string(&p, end, tag, tag_len); in ceph_cls_lock()
64 ceph_encode_string(&p, end, desc, desc_len); in ceph_cls_lock()
67 ceph_encode_timespec64(p, &mtime); in ceph_cls_lock()
[all …]
Dauth.c89 int ceph_auth_entity_name_encode(const char *name, void **p, void *end) in ceph_auth_entity_name_encode() argument
93 if (*p + 2*sizeof(u32) + len > end) in ceph_auth_entity_name_encode()
95 ceph_encode_32(p, CEPH_ENTITY_TYPE_CLIENT); in ceph_auth_entity_name_encode()
96 ceph_encode_32(p, len); in ceph_auth_entity_name_encode()
97 ceph_encode_copy(p, name, len); in ceph_auth_entity_name_encode()
108 void *p = monhdr + 1, *end = buf + len, *lenp; in ceph_auth_build_hello() local
118 ceph_encode_32(&p, CEPH_AUTH_UNKNOWN); /* no protocol, yet */ in ceph_auth_build_hello()
120 lenp = p; in ceph_auth_build_hello()
121 p += sizeof(u32); in ceph_auth_build_hello()
123 ceph_decode_need(&p, end, 1 + sizeof(u32), bad); in ceph_auth_build_hello()
[all …]
/net/sunrpc/xprtrdma/
Dsvc_rdma_recvfrom.c409 static __be32 *xdr_check_read_list(__be32 *p, const __be32 *end) in xdr_check_read_list() argument
415 while (*p++ != xdr_zero) { in xdr_check_read_list()
417 position = be32_to_cpup(p++); in xdr_check_read_list()
419 } else if (be32_to_cpup(p++) != position) { in xdr_check_read_list()
422 p++; /* handle */ in xdr_check_read_list()
423 if (be32_to_cpup(p++) > MAX_BYTES_SPECIAL_SEG) in xdr_check_read_list()
425 p += 2; /* offset */ in xdr_check_read_list()
427 if (p > end) in xdr_check_read_list()
430 return p; in xdr_check_read_list()
438 static __be32 *xdr_check_write_chunk(__be32 *p, const __be32 *end, in xdr_check_write_chunk() argument
[all …]
/net/sunrpc/auth_gss/
Dgss_rpc_xdr.c13 __be32 *p; in gssx_enc_bool() local
15 p = xdr_reserve_space(xdr, 4); in gssx_enc_bool()
16 if (unlikely(p == NULL)) in gssx_enc_bool()
18 *p = v ? xdr_one : xdr_zero; in gssx_enc_bool()
24 __be32 *p; in gssx_dec_bool() local
26 p = xdr_inline_decode(xdr, 4); in gssx_dec_bool()
27 if (unlikely(p == NULL)) in gssx_dec_bool()
29 *v = be32_to_cpu(*p); in gssx_dec_bool()
36 __be32 *p; in gssx_enc_buffer() local
38 p = xdr_reserve_space(xdr, sizeof(u32) + buf->len); in gssx_enc_buffer()
[all …]
Dgss_krb5_mech.c170 get_key(const void *p, const void *end, in get_key() argument
176 p = simple_get_bytes(p, end, &alg, sizeof(alg)); in get_key()
177 if (IS_ERR(p)) in get_key()
192 p = ERR_PTR(-EINVAL); in get_key()
195 p = simple_get_netobj(p, end, &key); in get_key()
196 if (IS_ERR(p)) in get_key()
213 return p; in get_key()
219 p = ERR_PTR(-EINVAL); in get_key()
221 return p; in get_key()
225 gss_import_v1_context(const void *p, const void *end, struct krb5_ctx *ctx) in gss_import_v1_context() argument
[all …]
/net/ipv4/
Dinetpeer.c107 struct inet_peer *p; in lookup() local
118 p = rb_entry(parent, struct inet_peer, rb_node); in lookup()
119 cmp = inetpeer_addr_cmp(daddr, &p->daddr); in lookup()
121 if (!refcount_inc_not_zero(&p->refcnt)) in lookup()
123 return p; in lookup()
127 gc_stack[(*gc_cnt)++] = p; in lookup()
152 struct inet_peer *p; in inet_peer_gc() local
166 p = gc_stack[i]; in inet_peer_gc()
171 delta = (__u32)jiffies - READ_ONCE(p->dtime); in inet_peer_gc()
173 if (delta < ttl || !refcount_dec_if_one(&p->refcnt)) in inet_peer_gc()
[all …]
/net/sunrpc/
Dauth_unix.c107 __be32 *p, *cred_len, *gidarr_len; in unx_marshal() local
115 p = xdr_reserve_space(xdr, 3 * sizeof(*p)); in unx_marshal()
116 if (!p) in unx_marshal()
118 *p++ = rpc_auth_unix; in unx_marshal()
119 cred_len = p++; in unx_marshal()
120 *p++ = xdr_zero; /* stamp */ in unx_marshal()
124 p = xdr_reserve_space(xdr, 3 * sizeof(*p)); in unx_marshal()
125 if (!p) in unx_marshal()
127 *p++ = cpu_to_be32(from_kuid_munged(userns, cred->cr_cred->fsuid)); in unx_marshal()
128 *p++ = cpu_to_be32(from_kgid_munged(userns, cred->cr_cred->fsgid)); in unx_marshal()
[all …]
/net/sched/
Dact_pedit.c150 struct tcf_pedit *p; in tcf_pedit_init() local
215 p = to_pedit(*a); in tcf_pedit_init()
216 spin_lock_bh(&p->tcf_lock); in tcf_pedit_init()
219 (p->tcfp_nkeys && p->tcfp_nkeys != parm->nkeys)) { in tcf_pedit_init()
222 spin_unlock_bh(&p->tcf_lock); in tcf_pedit_init()
226 kfree(p->tcfp_keys); in tcf_pedit_init()
227 p->tcfp_keys = keys; in tcf_pedit_init()
228 p->tcfp_nkeys = parm->nkeys; in tcf_pedit_init()
230 memcpy(p->tcfp_keys, parm->keys, ksize); in tcf_pedit_init()
231 p->tcfp_off_max_hint = 0; in tcf_pedit_init()
[all …]
Dact_mpls.c24 struct tcf_mpls_params *p, bool set_bos) in tcf_mpls_get_lse() argument
31 if (p->tcfm_label != ACT_MPLS_LABEL_NOT_SET) { in tcf_mpls_get_lse()
33 new_lse |= p->tcfm_label << MPLS_LS_LABEL_SHIFT; in tcf_mpls_get_lse()
35 if (p->tcfm_ttl) { in tcf_mpls_get_lse()
37 new_lse |= p->tcfm_ttl << MPLS_LS_TTL_SHIFT; in tcf_mpls_get_lse()
39 if (p->tcfm_tc != ACT_MPLS_TC_NOT_SET) { in tcf_mpls_get_lse()
41 new_lse |= p->tcfm_tc << MPLS_LS_TC_SHIFT; in tcf_mpls_get_lse()
43 if (p->tcfm_bos != ACT_MPLS_BOS_NOT_SET) { in tcf_mpls_get_lse()
45 new_lse |= p->tcfm_bos << MPLS_LS_S_SHIFT; in tcf_mpls_get_lse()
57 struct tcf_mpls_params *p; in tcf_mpls_act() local
[all …]
/net/netfilter/ipvs/
Dip_vs_conn.c122 static unsigned int ip_vs_conn_hashkey_param(const struct ip_vs_conn_param *p, in ip_vs_conn_hashkey_param() argument
128 if (p->pe_data && p->pe->hashkey_raw) in ip_vs_conn_hashkey_param()
129 return p->pe->hashkey_raw(p, ip_vs_conn_rnd, inverse) & in ip_vs_conn_hashkey_param()
133 addr = p->caddr; in ip_vs_conn_hashkey_param()
134 port = p->cport; in ip_vs_conn_hashkey_param()
136 addr = p->vaddr; in ip_vs_conn_hashkey_param()
137 port = p->vport; 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()
145 struct ip_vs_conn_param p; in ip_vs_conn_hashkey_conn() local
148 &cp->caddr, cp->cport, NULL, 0, &p); in ip_vs_conn_hashkey_conn()
[all …]
Dip_vs_pe_sip.c67 ip_vs_sip_fill_param(struct ip_vs_conn_param *p, struct sk_buff *skb) in ip_vs_sip_fill_param() argument
74 retc = ip_vs_fill_iph_skb(p->af, skb, false, &iph); in ip_vs_sip_fill_param()
98 p->pe_data = kmemdup(dptr + matchoff, matchlen, GFP_ATOMIC); in ip_vs_sip_fill_param()
99 if (!p->pe_data) in ip_vs_sip_fill_param()
102 p->pe_data_len = matchlen; in ip_vs_sip_fill_param()
107 static bool ip_vs_sip_ct_match(const struct ip_vs_conn_param *p, in ip_vs_sip_ct_match() argument
113 if (ct->af == p->af && in ip_vs_sip_ct_match()
114 ip_vs_addr_equal(p->af, p->caddr, &ct->caddr) && in ip_vs_sip_ct_match()
117 ip_vs_addr_equal(p->protocol == IPPROTO_IP ? AF_UNSPEC : p->af, in ip_vs_sip_ct_match()
118 p->vaddr, &ct->vaddr) && in ip_vs_sip_ct_match()
[all …]
/net/ipv6/ila/
Dila_common.c16 void ila_init_saved_csum(struct ila_params *p) in ila_init_saved_csum() argument
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()
26 static __wsum get_csum_diff_iaddr(struct ila_addr *iaddr, struct ila_params *p) in get_csum_diff_iaddr() argument
28 if (p->locator_match.v64) in get_csum_diff_iaddr()
29 return p->csum_diff; in get_csum_diff_iaddr()
31 return compute_csum_diff8((__be32 *)&p->locator, in get_csum_diff_iaddr()
35 static __wsum get_csum_diff(struct ipv6hdr *ip6h, struct ila_params *p) in get_csum_diff() argument
[all …]
/net/tipc/
Dname_table.c228 struct publication *p; in tipc_service_insert_publ() local
238 list_for_each_entry(p, &sr->all_publ, all_publ) { in tipc_service_insert_publ()
239 if (p->key == key && (!p->node || p->node == node)) in tipc_service_insert_publ()
244 p = tipc_publ_create(type, lower, upper, scope, node, port, key); in tipc_service_insert_publ()
245 if (!p) in tipc_service_insert_publ()
248 list_add(&p->local_publ, &sr->local_publ); in tipc_service_insert_publ()
249 list_add(&p->all_publ, &sr->all_publ); in tipc_service_insert_publ()
253 tipc_sub_report_overlap(sub, p->lower, p->upper, TIPC_PUBLISHED, in tipc_service_insert_publ()
254 p->port, p->node, p->scope, first); in tipc_service_insert_publ()
256 return p; in tipc_service_insert_publ()
[all …]
/net/ipv6/
Daddrlabel.c114 static bool __ip6addrlbl_match(const struct ip6addrlbl_entry *p, in __ip6addrlbl_match() argument
118 if (p->ifindex && p->ifindex != ifindex) in __ip6addrlbl_match()
120 if (p->addrtype && p->addrtype != addrtype) in __ip6addrlbl_match()
122 if (!ipv6_prefix_equal(addr, &p->prefix, p->prefixlen)) in __ip6addrlbl_match()
131 struct ip6addrlbl_entry *p; in __ipv6_addr_label() local
133 hlist_for_each_entry_rcu(p, &net->ipv6.ip6addrlbl_table.head, list) { in __ipv6_addr_label()
134 if (__ip6addrlbl_match(p, addr, type, ifindex)) in __ipv6_addr_label()
135 return p; in __ipv6_addr_label()
144 struct ip6addrlbl_entry *p; in ipv6_addr_label() local
149 p = __ipv6_addr_label(net, addr, type, ifindex); in ipv6_addr_label()
[all …]

12345678910>>...13