Home
last modified time | relevance | path

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

123456789

/net/bridge/
Dbr_stp.c32 void br_log_state(const struct net_bridge_port *p) in br_log_state() argument
35 p->br->dev->name, p->port_no, p->dev->name, in br_log_state()
36 br_port_state_names[p->state]); in br_log_state()
43 struct net_bridge_port *p; in br_get_port() local
45 list_for_each_entry_rcu(p, &br->port_list, list) { in br_get_port()
46 if (p->port_no == port_no) in br_get_port()
47 return p; in br_get_port()
54 static int br_should_become_root_port(const struct net_bridge_port *p, in br_should_become_root_port() argument
61 br = p->br; in br_should_become_root_port()
62 if (p->state == BR_STATE_DISABLED || in br_should_become_root_port()
[all …]
Dbr_stp_if.c33 void br_init_port(struct net_bridge_port *p) in br_init_port() argument
35 p->port_id = br_make_port_id(p->priority, p->port_no); in br_init_port()
36 br_become_designated_port(p); in br_init_port()
37 p->state = BR_STATE_BLOCKING; in br_init_port()
38 p->topology_change_ack = 0; in br_init_port()
39 p->config_pending = 0; in br_init_port()
45 struct net_bridge_port *p; in br_stp_enable_bridge() local
53 list_for_each_entry(p, &br->port_list, list) { in br_stp_enable_bridge()
54 if ((p->dev->flags & IFF_UP) && netif_carrier_ok(p->dev)) in br_stp_enable_bridge()
55 br_stp_enable_port(p); in br_stp_enable_bridge()
[all …]
Dbr_if.c67 void br_port_carrier_check(struct net_bridge_port *p) in br_port_carrier_check() argument
69 struct net_device *dev = p->dev; in br_port_carrier_check()
70 struct net_bridge *br = p->br; in br_port_carrier_check()
73 p->path_cost = port_cost(dev); in br_port_carrier_check()
78 if (p->state == BR_STATE_DISABLED) in br_port_carrier_check()
79 br_stp_enable_port(p); in br_port_carrier_check()
81 if (p->state != BR_STATE_DISABLED) in br_port_carrier_check()
82 br_stp_disable_port(p); in br_port_carrier_check()
90 struct net_bridge_port *p in release_nbp() local
92 kfree(p); in release_nbp()
[all …]
Dbr_sysfs_if.c37 static ssize_t show_path_cost(struct net_bridge_port *p, char *buf) in show_path_cost() argument
39 return sprintf(buf, "%d\n", p->path_cost); in show_path_cost()
41 static ssize_t store_path_cost(struct net_bridge_port *p, unsigned long v) in store_path_cost() argument
43 br_stp_set_path_cost(p, v); in store_path_cost()
49 static ssize_t show_priority(struct net_bridge_port *p, char *buf) in show_priority() argument
51 return sprintf(buf, "%d\n", p->priority); in show_priority()
53 static ssize_t store_priority(struct net_bridge_port *p, unsigned long v) in store_priority() argument
57 br_stp_set_port_priority(p, v); in store_priority()
63 static ssize_t show_designated_root(struct net_bridge_port *p, char *buf) in show_designated_root() argument
65 return br_show_bridge_id(buf, &p->designated_root); in show_designated_root()
[all …]
Dbr_stp_timer.c23 struct net_bridge_port *p; in br_is_designated_for_some_port() local
25 list_for_each_entry(p, &br->port_list, list) { in br_is_designated_for_some_port()
26 if (p->state != BR_STATE_DISABLED && in br_is_designated_for_some_port()
27 !memcmp(&p->designated_bridge, &br->bridge_id, 8)) in br_is_designated_for_some_port()
50 struct net_bridge_port *p = (struct net_bridge_port *) arg; in br_message_age_timer_expired() local
51 struct net_bridge *br = p->br; in br_message_age_timer_expired()
52 const bridge_id *id = &p->designated_bridge; in br_message_age_timer_expired()
55 if (p->state == BR_STATE_DISABLED) in br_message_age_timer_expired()
64 p->port_no, p->dev->name); in br_message_age_timer_expired()
72 if (p->state == BR_STATE_DISABLED) in br_message_age_timer_expired()
[all …]
/net/x25/
Dx25_facilities.c37 unsigned char *p = skb->data; in x25_parse_facilities() local
38 unsigned int len = *p++; in x25_parse_facilities()
54 switch (*p & X25_FAC_CLASS_MASK) { in x25_parse_facilities()
56 switch (*p) { in x25_parse_facilities()
58 if((p[1] & 0x81) == 0x81) { in x25_parse_facilities()
59 facilities->reverse = p[1] & 0x81; in x25_parse_facilities()
64 if((p[1] & 0x01) == 0x01) { in x25_parse_facilities()
65 facilities->reverse = p[1] & 0x01; in x25_parse_facilities()
70 if((p[1] & 0x80) == 0x80) { in x25_parse_facilities()
71 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()
248 p += 2; in rose_parse_national()
254 if (*p == FAC_NATIONAL_RAND) in rose_parse_national()
255 facilities->rand = ((p[1] << 8) & 0xFF00) + ((p[2] << 0) & 0x00FF); in rose_parse_national()
256 p += 3; in rose_parse_national()
262 p += 4; in rose_parse_national()
268 l = p[1]; in rose_parse_national()
269 if (*p == FAC_NATIONAL_DEST_DIGI) { in rose_parse_national()
271 memcpy(&facilities->source_digis[0], p + 2, AX25_ADDR_LEN); in rose_parse_national()
[all …]
/net/sunrpc/auth_gss/
Dgss_krb5_mech.c52 simple_get_bytes(const void *p, const void *end, void *res, int len) in simple_get_bytes() argument
54 const void *q = (const void *)((const char *)p + len); in simple_get_bytes()
55 if (unlikely(q > end || q < p)) in simple_get_bytes()
57 memcpy(res, p, len); in simple_get_bytes()
62 simple_get_netobj(const void *p, const void *end, struct xdr_netobj *res) in simple_get_netobj() argument
67 p = simple_get_bytes(p, end, &len, sizeof(len)); in simple_get_netobj()
68 if (IS_ERR(p)) in simple_get_netobj()
69 return p; in simple_get_netobj()
70 q = (const void *)((const char *)p + len); in simple_get_netobj()
71 if (unlikely(q > end || q < p)) in simple_get_netobj()
[all …]
Dgss_spkm3_mech.c54 simple_get_bytes(const void *p, const void *end, void *res, int len) in simple_get_bytes() argument
56 const void *q = (const void *)((const char *)p + len); in simple_get_bytes()
57 if (unlikely(q > end || q < p)) in simple_get_bytes()
59 memcpy(res, p, len); in simple_get_bytes()
64 simple_get_netobj(const void *p, const void *end, struct xdr_netobj *res) in simple_get_netobj() argument
68 p = simple_get_bytes(p, end, &len, sizeof(len)); in simple_get_netobj()
69 if (IS_ERR(p)) in simple_get_netobj()
70 return p; in simple_get_netobj()
74 return p; in simple_get_netobj()
76 q = (const void *)((const char *)p + len); in simple_get_netobj()
[all …]
Dauth_gss.c129 simple_get_bytes(const void *p, const void *end, void *res, size_t len) in simple_get_bytes() argument
131 const void *q = (const void *)((const char *)p + len); in simple_get_bytes()
132 if (unlikely(q > end || q < p)) in simple_get_bytes()
134 memcpy(res, p, len); in simple_get_bytes()
139 simple_get_netobj(const void *p, const void *end, struct xdr_netobj *dest) in simple_get_netobj() argument
144 p = simple_get_bytes(p, end, &len, sizeof(len)); in simple_get_netobj()
145 if (IS_ERR(p)) in simple_get_netobj()
146 return p; in simple_get_netobj()
147 q = (const void *)((const char *)p + len); in simple_get_netobj()
148 if (unlikely(q > end || q < p)) in simple_get_netobj()
[all …]
/net/irda/
Dparameters.c83 irda_param_t p; in irda_insert_no_value() local
86 p.pi = pi; in irda_insert_no_value()
87 p.pl = 0; in irda_insert_no_value()
90 ret = (*func)(self, &p, PV_GET); in irda_insert_no_value()
93 irda_param_pack(buf, "bb", p.pi, p.pl); in irda_insert_no_value()
110 irda_param_t p; in irda_extract_no_value() local
114 irda_param_unpack(buf, "bb", &p.pi, &p.pl); in irda_extract_no_value()
117 ret = (*func)(self, &p, PV_PUT); in irda_extract_no_value()
131 irda_param_t p; in irda_insert_integer() local
135 p.pi = pi; /* In case handler needs to know */ in irda_insert_integer()
[all …]
/net/sched/
Dsch_dsmark.c47 static inline int dsmark_valid_index(struct dsmark_qdisc_data *p, u16 index) in dsmark_valid_index() argument
49 return (index <= p->indices && index > 0); in dsmark_valid_index()
57 struct dsmark_qdisc_data *p = qdisc_priv(sch); in dsmark_graft() local
60 sch, p, new, old); in dsmark_graft()
71 *old = p->q; in dsmark_graft()
72 p->q = new; in dsmark_graft()
82 struct dsmark_qdisc_data *p = qdisc_priv(sch); in dsmark_leaf() local
83 return p->q; in dsmark_leaf()
115 struct dsmark_qdisc_data *p = qdisc_priv(sch); in dsmark_change() local
122 "arg 0x%lx\n", sch, p, classid, parent, *arg); in dsmark_change()
[all …]
Dact_pedit.c46 struct tcf_pedit *p; in tcf_pedit_init() local
69 pc = tcf_hash_create(parm->index, est, a, sizeof(*p), bind, in tcf_pedit_init()
73 p = to_pedit(pc); in tcf_pedit_init()
81 p = to_pedit(pc); in tcf_pedit_init()
86 if (p->tcfp_nkeys && p->tcfp_nkeys != parm->nkeys) { in tcf_pedit_init()
93 spin_lock_bh(&p->tcf_lock); in tcf_pedit_init()
94 p->tcfp_flags = parm->flags; in tcf_pedit_init()
95 p->tcf_action = parm->action; in tcf_pedit_init()
97 kfree(p->tcfp_keys); in tcf_pedit_init()
98 p->tcfp_keys = keys; in tcf_pedit_init()
[all …]
Dcls_tcindex.c64 tcindex_lookup(struct tcindex_data *p, u16 key) in tcindex_lookup() argument
68 if (p->perfect) in tcindex_lookup()
69 return tcindex_filter_is_set(p->perfect + key) ? in tcindex_lookup()
70 p->perfect + key : NULL; in tcindex_lookup()
71 else if (p->h) { in tcindex_lookup()
72 for (f = p->h[key % p->hash]; f; f = f->next) in tcindex_lookup()
84 struct tcindex_data *p = PRIV(tp); in tcindex_classify() local
86 int key = (skb->tc_index & p->mask) >> p->shift; in tcindex_classify()
89 skb, tp, res, p); in tcindex_classify()
91 f = tcindex_lookup(p, key); in tcindex_classify()
[all …]
Dsch_atm.c84 struct atm_qdisc_data *p = qdisc_priv(sch); in lookup_flow() local
87 for (flow = p->flows; flow; flow = flow->next) in lookup_flow()
96 struct atm_qdisc_data *p = qdisc_priv(sch); in atm_tc_graft() local
100 sch, p, flow, new, old); in atm_tc_graft()
101 if (!find_flow(p, flow)) in atm_tc_graft()
122 struct atm_qdisc_data *p __maybe_unused = qdisc_priv(sch); in atm_tc_get()
125 pr_debug("atm_tc_get(sch %p,[qdisc %p],classid %x)\n", sch, p, classid); in atm_tc_get()
146 struct atm_qdisc_data *p = qdisc_priv(sch); in atm_tc_put() local
150 pr_debug("atm_tc_put(sch %p,[qdisc %p],flow %p)\n", sch, p, flow); in atm_tc_put()
154 for (prev = &p->flows; *prev; prev = &(*prev)->next) in atm_tc_put()
[all …]
Dact_nat.c53 struct tcf_nat *p; in tcf_nat_init() local
69 pc = tcf_hash_create(parm->index, est, a, sizeof(*p), bind, in tcf_nat_init()
73 p = to_tcf_nat(pc); in tcf_nat_init()
76 p = to_tcf_nat(pc); in tcf_nat_init()
83 spin_lock_bh(&p->tcf_lock); in tcf_nat_init()
84 p->old_addr = parm->old_addr; in tcf_nat_init()
85 p->new_addr = parm->new_addr; in tcf_nat_init()
86 p->mask = parm->mask; in tcf_nat_init()
87 p->flags = parm->flags; in tcf_nat_init()
89 p->tcf_action = parm->action; in tcf_nat_init()
[all …]
/net/mac80211/
Ddebugfs_sta.c108 char buf[15*NUM_RX_DATA_QUEUES], *p = buf; in sta_last_seq_ctrl_read() local
112 p += scnprintf(p, sizeof(buf)+buf-p, "%x ", in sta_last_seq_ctrl_read()
114 p += scnprintf(p, sizeof(buf)+buf-p, "\n"); in sta_last_seq_ctrl_read()
115 return simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); in sta_last_seq_ctrl_read()
122 char buf[768], *p = buf; in sta_agg_status_read() local
125 p += scnprintf(p, sizeof(buf)+buf-p, "Agg state for STA is:\n"); in sta_agg_status_read()
126 p += scnprintf(p, sizeof(buf)+buf-p, " STA next dialog_token is %d \n " in sta_agg_status_read()
130 p += scnprintf(p, sizeof(buf)+buf-p, "%5d", i); in sta_agg_status_read()
132 p += scnprintf(p, sizeof(buf)+buf-p, "\n RX :"); in sta_agg_status_read()
134 p += scnprintf(p, sizeof(buf)+buf-p, "%5d", in sta_agg_status_read()
[all …]
/net/9p/
Dutil.c54 struct p9_idpool *p; in p9_idpool_create() local
56 p = kmalloc(sizeof(struct p9_idpool), GFP_KERNEL); in p9_idpool_create()
57 if (!p) in p9_idpool_create()
60 spin_lock_init(&p->lock); in p9_idpool_create()
61 idr_init(&p->pool); in p9_idpool_create()
63 return p; in p9_idpool_create()
72 void p9_idpool_destroy(struct p9_idpool *p) in p9_idpool_destroy() argument
74 idr_destroy(&p->pool); in p9_idpool_destroy()
75 kfree(p); in p9_idpool_destroy()
87 int p9_idpool_get(struct p9_idpool *p) in p9_idpool_get() argument
[all …]
/net/ipv6/
Daddrlabel.c122 static inline void ip6addrlbl_free(struct ip6addrlbl_entry *p) in ip6addrlbl_free() argument
125 release_net(p->lbl_net); in ip6addrlbl_free()
127 kfree(p); in ip6addrlbl_free()
135 static inline int ip6addrlbl_hold(struct ip6addrlbl_entry *p) in ip6addrlbl_hold() argument
137 return atomic_inc_not_zero(&p->refcnt); in ip6addrlbl_hold()
140 static inline void ip6addrlbl_put(struct ip6addrlbl_entry *p) in ip6addrlbl_put() argument
142 if (atomic_dec_and_test(&p->refcnt)) in ip6addrlbl_put()
143 call_rcu(&p->rcu, ip6addrlbl_free_rcu); in ip6addrlbl_put()
148 struct ip6addrlbl_entry *p, in __ip6addrlbl_match() argument
152 if (!net_eq(ip6addrlbl_net(p), net)) in __ip6addrlbl_match()
[all …]
/net/dsa/
Dslave.c53 struct dsa_slave_priv *p = netdev_priv(dev); in dsa_slave_open() local
54 struct net_device *master = p->parent->master_netdev; in dsa_slave_open()
91 struct dsa_slave_priv *p = netdev_priv(dev); in dsa_slave_close() local
92 struct net_device *master = p->parent->master_netdev; in dsa_slave_close()
109 struct dsa_slave_priv *p = netdev_priv(dev); in dsa_slave_change_rx_flags() local
110 struct net_device *master = p->parent->master_netdev; in dsa_slave_change_rx_flags()
120 struct dsa_slave_priv *p = netdev_priv(dev); in dsa_slave_set_rx_mode() local
121 struct net_device *master = p->parent->master_netdev; in dsa_slave_set_rx_mode()
129 struct dsa_slave_priv *p = netdev_priv(dev); in dsa_slave_set_mac_address() local
130 struct net_device *master = p->parent->master_netdev; in dsa_slave_set_mac_address()
[all …]
/net/wanrouter/
Dwanproc.c110 struct wan_device *p = v; in config_show() local
116 if (!p->state) in config_show()
119 p->name, p->ioport, p->irq, p->dma, p->maddr, p->msize, in config_show()
120 p->hw_opt[0], p->hw_opt[1], p->hw_opt[2], p->hw_opt[3]); in config_show()
126 struct wan_device *p = v; in status_show() local
132 if (!p->state) in status_show()
135 p->name, in status_show()
136 PROT_DECODE(p->config_id), in status_show()
137 p->config_id == WANCONFIG_FR ? in status_show()
138 (p->station ? "Node" : "CPE") : in status_show()
[all …]
/net/ipv4/
Dinetpeer.c135 static void unlink_from_unused(struct inet_peer *p) in unlink_from_unused() argument
138 list_del_init(&p->unused); in unlink_from_unused()
271 static void unlink_from_pool(struct inet_peer *p) in unlink_from_pool() argument
283 if (atomic_read(&p->refcnt) == 1) { in unlink_from_pool()
286 if (lookup(p->v4daddr, stack) != p) in unlink_from_pool()
289 if (p->avl_left == peer_avl_empty) { in unlink_from_pool()
290 *delp[0] = p->avl_right; in unlink_from_pool()
295 t = lookup_rightempty(p); in unlink_from_pool()
302 t->avl_left = p->avl_left; in unlink_from_pool()
303 t->avl_right = p->avl_right; in unlink_from_pool()
[all …]
Dtcp_probe.c103 struct tcp_log *p = tcp_probe.log + tcp_probe.head; in jtcp_rcv_established() local
105 p->tstamp = ktime_get(); in jtcp_rcv_established()
106 p->saddr = inet->saddr; in jtcp_rcv_established()
107 p->sport = inet->sport; in jtcp_rcv_established()
108 p->daddr = inet->daddr; in jtcp_rcv_established()
109 p->dport = inet->dport; in jtcp_rcv_established()
110 p->length = skb->len; in jtcp_rcv_established()
111 p->snd_nxt = tp->snd_nxt; in jtcp_rcv_established()
112 p->snd_una = tp->snd_una; in jtcp_rcv_established()
113 p->snd_cwnd = tp->snd_cwnd; in jtcp_rcv_established()
[all …]
/net/sunrpc/
Dxdr.c22 xdr_encode_netobj(__be32 *p, const struct xdr_netobj *obj) in xdr_encode_netobj() argument
26 p[quadlen] = 0; /* zero trailing bytes */ in xdr_encode_netobj()
27 *p++ = htonl(obj->len); in xdr_encode_netobj()
28 memcpy(p, obj->data, obj->len); in xdr_encode_netobj()
29 return p + XDR_QUADLEN(obj->len); in xdr_encode_netobj()
34 xdr_decode_netobj(__be32 *p, struct xdr_netobj *obj) in xdr_decode_netobj() argument
38 if ((len = ntohl(*p++)) > XDR_MAX_NETOBJ) in xdr_decode_netobj()
41 obj->data = (u8 *) p; in xdr_decode_netobj()
42 return p + XDR_QUADLEN(len); in xdr_decode_netobj()
60 __be32 *xdr_encode_opaque_fixed(__be32 *p, const void *ptr, unsigned int nbytes) in xdr_encode_opaque_fixed() argument
[all …]
/net/xfrm/
Dxfrm_user.c106 static int verify_newsa_info(struct xfrm_usersa_info *p, in verify_newsa_info() argument
112 switch (p->family) { in verify_newsa_info()
129 switch (p->id.proto) { in verify_newsa_info()
189 switch (p->mode) { in verify_newsa_info()
210 struct xfrm_algo *p, *ualg; in attach_one_algo() local
223 p = kmemdup(ualg, xfrm_alg_len(ualg), GFP_KERNEL); in attach_one_algo()
224 if (!p) in attach_one_algo()
227 strcpy(p->alg_name, algo->name); in attach_one_algo()
228 *algpp = p; in attach_one_algo()
235 struct xfrm_algo_aead *p, *ualg; in attach_aead() local
[all …]

123456789