Searched refs:port_attribute (Results 1 – 1 of 1) sorted by relevance
/linux-3.4.99/drivers/infiniband/core/ |
D | sysfs.c | 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() [all …]
|