Lines Matching refs:port_attribute

51 struct port_attribute {  struct
53 ssize_t (*show)(struct ib_port *, struct port_attribute *, char *buf); argument
54 ssize_t (*store)(struct ib_port *, struct port_attribute *, argument
59 struct port_attribute port_attr_##_name = __ATTR(_name, _mode, _show, _store)
62 struct port_attribute port_attr_##_name = __ATTR_RO(_name)
65 struct port_attribute attr;
73 struct port_attribute *port_attr = in port_attr_show()
74 container_of(attr, struct port_attribute, attr); in port_attr_show()
87 static ssize_t state_show(struct ib_port *p, struct port_attribute *unused, in state_show()
111 static ssize_t lid_show(struct ib_port *p, struct port_attribute *unused, in lid_show()
125 struct port_attribute *unused, in lid_mask_count_show()
138 static ssize_t sm_lid_show(struct ib_port *p, struct port_attribute *unused, in sm_lid_show()
151 static ssize_t sm_sl_show(struct ib_port *p, struct port_attribute *unused, in sm_sl_show()
164 static ssize_t cap_mask_show(struct ib_port *p, struct port_attribute *unused, in cap_mask_show()
177 static ssize_t rate_show(struct ib_port *p, struct port_attribute *unused, in rate_show()
225 static ssize_t phys_state_show(struct ib_port *p, struct port_attribute *unused, in phys_state_show()
248 static ssize_t link_layer_show(struct ib_port *p, struct port_attribute *unused, in link_layer_show()
284 static ssize_t show_port_gid(struct ib_port *p, struct port_attribute *attr, in show_port_gid()
299 static ssize_t show_port_pkey(struct ib_port *p, struct port_attribute *attr, in show_port_pkey()
320 static ssize_t show_pma_counter(struct ib_port *p, struct port_attribute *attr, in show_pma_counter()
479 struct port_attribute *, char *buf), in alloc_group_attrs() argument