Lines Matching full:slave
15 ssize_t (*show)(struct slave *, char *);
21 static ssize_t state_show(struct slave *slave, char *buf) in state_show() argument
23 switch (bond_slave_state(slave)) { in state_show()
34 static ssize_t mii_status_show(struct slave *slave, char *buf) in mii_status_show() argument
36 return sysfs_emit(buf, "%s\n", bond_slave_link_status(slave->link)); in mii_status_show()
40 static ssize_t link_failure_count_show(struct slave *slave, char *buf) in link_failure_count_show() argument
42 return sysfs_emit(buf, "%d\n", slave->link_failure_count); in link_failure_count_show()
46 static ssize_t perm_hwaddr_show(struct slave *slave, char *buf) in perm_hwaddr_show() argument
49 slave->dev->addr_len, in perm_hwaddr_show()
50 slave->perm_hwaddr); in perm_hwaddr_show()
54 static ssize_t queue_id_show(struct slave *slave, char *buf) in queue_id_show() argument
56 return sysfs_emit(buf, "%d\n", READ_ONCE(slave->queue_id)); in queue_id_show()
60 static ssize_t ad_aggregator_id_show(struct slave *slave, char *buf) in ad_aggregator_id_show() argument
64 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in ad_aggregator_id_show()
65 agg = SLAVE_AD_INFO(slave)->port.aggregator; in ad_aggregator_id_show()
75 static ssize_t ad_actor_oper_port_state_show(struct slave *slave, char *buf) in ad_actor_oper_port_state_show() argument
79 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in ad_actor_oper_port_state_show()
80 ad_port = &SLAVE_AD_INFO(slave)->port; in ad_actor_oper_port_state_show()
90 static ssize_t ad_partner_oper_port_state_show(struct slave *slave, char *buf) in ad_partner_oper_port_state_show() argument
94 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in ad_partner_oper_port_state_show()
95 ad_port = &SLAVE_AD_INFO(slave)->port; in ad_partner_oper_port_state_show()
123 struct slave *slave = to_slave(kobj); in slave_show() local
125 return slave_attr->show(slave, buf); in slave_show()
132 int bond_sysfs_slave_add(struct slave *slave) in bond_sysfs_slave_add() argument
134 return sysfs_create_files(&slave->kobj, slave_attrs); in bond_sysfs_slave_add()
137 void bond_sysfs_slave_del(struct slave *slave) in bond_sysfs_slave_del() argument
139 sysfs_remove_files(&slave->kobj, slave_attrs); in bond_sysfs_slave_del()