Lines Matching refs:port_attribute

67 struct port_attribute {  struct
69 ssize_t (*show)(struct ib_port *, struct port_attribute *, char *buf); argument
70 ssize_t (*store)(struct ib_port *, struct port_attribute *, argument
75 struct port_attribute port_attr_##_name = __ATTR(_name, _mode, _show, _store)
78 struct port_attribute port_attr_##_name = __ATTR_RO(_name)
81 struct port_attribute attr;
102 struct port_attribute *port_attr = in port_attr_show()
103 container_of(attr, struct port_attribute, attr); in port_attr_show()
116 struct port_attribute *port_attr = in port_attr_store()
117 container_of(attr, struct port_attribute, attr); in port_attr_store()
133 struct port_attribute *port_attr = in gid_attr_show()
134 container_of(attr, struct port_attribute, attr); in gid_attr_show()
148 static ssize_t state_show(struct ib_port *p, struct port_attribute *unused, in state_show()
172 static ssize_t lid_show(struct ib_port *p, struct port_attribute *unused, in lid_show()
186 struct port_attribute *unused, in lid_mask_count_show()
199 static ssize_t sm_lid_show(struct ib_port *p, struct port_attribute *unused, in sm_lid_show()
212 static ssize_t sm_sl_show(struct ib_port *p, struct port_attribute *unused, in sm_sl_show()
225 static ssize_t cap_mask_show(struct ib_port *p, struct port_attribute *unused, in cap_mask_show()
238 static ssize_t rate_show(struct ib_port *p, struct port_attribute *unused, in rate_show()
291 static ssize_t phys_state_show(struct ib_port *p, struct port_attribute *unused, in phys_state_show()
314 static ssize_t link_layer_show(struct ib_port *p, struct port_attribute *unused, in link_layer_show()
364 struct ib_port *p, struct port_attribute *attr, char *buf, in _show_port_gid_attr()
381 static ssize_t show_port_gid(struct ib_port *p, struct port_attribute *attr, in show_port_gid()
411 struct port_attribute *attr, char *buf) in show_port_gid_attr_ndev()
417 struct port_attribute *attr, in show_port_gid_attr_gid_type()
423 static ssize_t show_port_pkey(struct ib_port *p, struct port_attribute *attr, in show_port_pkey()
502 static ssize_t show_pma_counter(struct ib_port *p, struct port_attribute *attr, in show_pma_counter()
717 struct port_attribute *, char *buf), in alloc_group_attrs() argument