• Home
  • Raw
  • Download

Lines Matching refs:slave

15 	ssize_t (*show)(struct slave *, char *);
27 static ssize_t state_show(struct slave *slave, char *buf) in state_show() argument
29 switch (bond_slave_state(slave)) { in state_show()
40 static ssize_t mii_status_show(struct slave *slave, char *buf) in mii_status_show() argument
42 return sprintf(buf, "%s\n", bond_slave_link_status(slave->link)); in mii_status_show()
46 static ssize_t link_failure_count_show(struct slave *slave, char *buf) in link_failure_count_show() argument
48 return sprintf(buf, "%d\n", slave->link_failure_count); in link_failure_count_show()
52 static ssize_t perm_hwaddr_show(struct slave *slave, char *buf) in perm_hwaddr_show() argument
55 slave->dev->addr_len, in perm_hwaddr_show()
56 slave->perm_hwaddr); in perm_hwaddr_show()
60 static ssize_t queue_id_show(struct slave *slave, char *buf) in queue_id_show() argument
62 return sprintf(buf, "%d\n", slave->queue_id); in queue_id_show()
66 static ssize_t ad_aggregator_id_show(struct slave *slave, char *buf) in ad_aggregator_id_show() argument
70 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in ad_aggregator_id_show()
71 agg = SLAVE_AD_INFO(slave)->port.aggregator; in ad_aggregator_id_show()
81 static ssize_t ad_actor_oper_port_state_show(struct slave *slave, char *buf) in ad_actor_oper_port_state_show() argument
85 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in ad_actor_oper_port_state_show()
86 ad_port = &SLAVE_AD_INFO(slave)->port; in ad_actor_oper_port_state_show()
96 static ssize_t ad_partner_oper_port_state_show(struct slave *slave, char *buf) in ad_partner_oper_port_state_show() argument
100 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in ad_partner_oper_port_state_show()
101 ad_port = &SLAVE_AD_INFO(slave)->port; in ad_partner_oper_port_state_show()
129 struct slave *slave = to_slave(kobj); in slave_show() local
131 return slave_attr->show(slave, buf); in slave_show()
138 int bond_sysfs_slave_add(struct slave *slave) in bond_sysfs_slave_add() argument
140 return sysfs_create_files(&slave->kobj, slave_attrs); in bond_sysfs_slave_add()
143 void bond_sysfs_slave_del(struct slave *slave) in bond_sysfs_slave_del() argument
145 sysfs_remove_files(&slave->kobj, slave_attrs); in bond_sysfs_slave_del()