• Home
  • Raw
  • Download

Lines Matching refs:p

37 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()
69 static ssize_t show_designated_bridge(struct net_bridge_port *p, char *buf) in show_designated_bridge() argument
71 return br_show_bridge_id(buf, &p->designated_bridge); in show_designated_bridge()
75 static ssize_t show_designated_port(struct net_bridge_port *p, char *buf) in show_designated_port() argument
77 return sprintf(buf, "%d\n", p->designated_port); in show_designated_port()
81 static ssize_t show_designated_cost(struct net_bridge_port *p, char *buf) in show_designated_cost() argument
83 return sprintf(buf, "%d\n", p->designated_cost); in show_designated_cost()
87 static ssize_t show_port_id(struct net_bridge_port *p, char *buf) in show_port_id() argument
89 return sprintf(buf, "0x%x\n", p->port_id); in show_port_id()
93 static ssize_t show_port_no(struct net_bridge_port *p, char *buf) in show_port_no() argument
95 return sprintf(buf, "0x%x\n", p->port_no); in show_port_no()
100 static ssize_t show_change_ack(struct net_bridge_port *p, char *buf) in show_change_ack() argument
102 return sprintf(buf, "%d\n", p->topology_change_ack); in show_change_ack()
106 static ssize_t show_config_pending(struct net_bridge_port *p, char *buf) in show_config_pending() argument
108 return sprintf(buf, "%d\n", p->config_pending); in show_config_pending()
112 static ssize_t show_port_state(struct net_bridge_port *p, char *buf) in show_port_state() argument
114 return sprintf(buf, "%d\n", p->state); in show_port_state()
118 static ssize_t show_message_age_timer(struct net_bridge_port *p, in show_message_age_timer() argument
121 return sprintf(buf, "%ld\n", br_timer_value(&p->message_age_timer)); in show_message_age_timer()
125 static ssize_t show_forward_delay_timer(struct net_bridge_port *p, in show_forward_delay_timer() argument
128 return sprintf(buf, "%ld\n", br_timer_value(&p->forward_delay_timer)); in show_forward_delay_timer()
132 static ssize_t show_hold_timer(struct net_bridge_port *p, in show_hold_timer() argument
135 return sprintf(buf, "%ld\n", br_timer_value(&p->hold_timer)); in show_hold_timer()
139 static ssize_t store_flush(struct net_bridge_port *p, unsigned long v) in store_flush() argument
141 br_fdb_delete_by_port(p->br, p, 0); // Don't delete local entry in store_flush()
172 struct net_bridge_port * p = to_brport(kobj); in brport_show() local
174 return brport_attr->show(p, buf); in brport_show()
182 struct net_bridge_port * p = to_brport(kobj); in brport_store() local
193 if (p->dev && p->br && brport_attr->store) { in brport_store()
194 spin_lock_bh(&p->br->lock); in brport_store()
195 ret = brport_attr->store(p, val); in brport_store()
196 spin_unlock_bh(&p->br->lock); in brport_store()
215 int br_sysfs_addif(struct net_bridge_port *p) in br_sysfs_addif() argument
217 struct net_bridge *br = p->br; in br_sysfs_addif()
221 err = sysfs_create_link(&p->kobj, &br->dev->dev.kobj, in br_sysfs_addif()
227 err = sysfs_create_file(&p->kobj, &((*a)->attr)); in br_sysfs_addif()
232 err = sysfs_create_link(br->ifobj, &p->kobj, p->dev->name); in br_sysfs_addif()