Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/infiniband/core/
Dsysfs.c67 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()
[all …]
/Linux-v4.19/drivers/infiniband/hw/mlx4/
Dsysfs.c395 struct port_attribute { struct
397 ssize_t (*show)(struct mlx4_port *, struct port_attribute *, char *buf); argument
398 ssize_t (*store)(struct mlx4_port *, struct port_attribute *, argument
405 struct port_attribute *port_attr = in port_attr_show()
406 container_of(attr, struct port_attribute, attr); in port_attr_show()
418 struct port_attribute *port_attr = in port_attr_store()
419 container_of(attr, struct port_attribute, attr); in port_attr_store()
438 struct port_attribute attr;
443 static ssize_t show_port_pkey(struct mlx4_port *p, struct port_attribute *attr, in show_port_pkey()
460 static ssize_t store_port_pkey(struct mlx4_port *p, struct port_attribute *attr, in store_port_pkey()
[all …]