Lines Matching refs:port_attribute
68 struct port_attribute { struct
70 ssize_t (*show)(struct ib_port *, struct port_attribute *, char *buf); argument
71 ssize_t (*store)(struct ib_port *, struct port_attribute *, argument
76 struct port_attribute port_attr_##_name = __ATTR(_name, _mode, _show, _store)
79 struct port_attribute port_attr_##_name = __ATTR_RO(_name)
82 struct port_attribute attr;
103 struct port_attribute *port_attr = in port_attr_show()
104 container_of(attr, struct port_attribute, attr); in port_attr_show()
117 struct port_attribute *port_attr = in port_attr_store()
118 container_of(attr, struct port_attribute, attr); in port_attr_store()
134 struct port_attribute *port_attr = in gid_attr_show()
135 container_of(attr, struct port_attribute, attr); in gid_attr_show()
149 static ssize_t state_show(struct ib_port *p, struct port_attribute *unused, in state_show()
173 static ssize_t lid_show(struct ib_port *p, struct port_attribute *unused, in lid_show()
187 struct port_attribute *unused, in lid_mask_count_show()
200 static ssize_t sm_lid_show(struct ib_port *p, struct port_attribute *unused, in sm_lid_show()
213 static ssize_t sm_sl_show(struct ib_port *p, struct port_attribute *unused, in sm_sl_show()
226 static ssize_t cap_mask_show(struct ib_port *p, struct port_attribute *unused, in cap_mask_show()
239 static ssize_t rate_show(struct ib_port *p, struct port_attribute *unused, in rate_show()
310 static ssize_t phys_state_show(struct ib_port *p, struct port_attribute *unused, in phys_state_show()
325 static ssize_t link_layer_show(struct ib_port *p, struct port_attribute *unused, in link_layer_show()
380 struct ib_port *p, struct port_attribute *attr, char *buf, in _show_port_gid_attr()
398 static ssize_t show_port_gid(struct ib_port *p, struct port_attribute *attr, in show_port_gid()
428 struct port_attribute *attr, char *buf) in show_port_gid_attr_ndev()
434 struct port_attribute *attr, in show_port_gid_attr_gid_type()
440 static ssize_t show_port_pkey(struct ib_port *p, struct port_attribute *attr, in show_port_pkey()
517 static ssize_t show_pma_counter(struct ib_port *p, struct port_attribute *attr, in show_pma_counter()
737 struct port_attribute *, char *buf), in alloc_group_attrs() argument