Home
last modified time | relevance | path

Searched refs:port_attribute (Results 1 – 2 of 2) sorted by relevance

/linux-4.1.27/drivers/infiniband/core/
Dsysfs.c51 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 …]
/linux-4.1.27/drivers/infiniband/hw/mlx4/
Dsysfs.c394 struct port_attribute { struct
396 ssize_t (*show)(struct mlx4_port *, struct port_attribute *, char *buf); argument
397 ssize_t (*store)(struct mlx4_port *, struct port_attribute *, argument
404 struct port_attribute *port_attr = in port_attr_show()
405 container_of(attr, struct port_attribute, attr); in port_attr_show()
417 struct port_attribute *port_attr = in port_attr_store()
418 container_of(attr, struct port_attribute, attr); in port_attr_store()
437 struct port_attribute attr;
442 static ssize_t show_port_pkey(struct mlx4_port *p, struct port_attribute *attr, in show_port_pkey()
459 static ssize_t store_port_pkey(struct mlx4_port *p, struct port_attribute *attr, in store_port_pkey()
[all …]