Lines Matching refs:mlx4_port
368 struct mlx4_port { struct
382 struct mlx4_port *p = container_of(kobj, struct mlx4_port, kobj); in mlx4_port_release() argument
397 ssize_t (*show)(struct mlx4_port *, struct port_attribute *, char *buf);
398 ssize_t (*store)(struct mlx4_port *, struct port_attribute *,
407 struct mlx4_port *p = container_of(kobj, struct mlx4_port, kobj); in port_attr_show()
420 struct mlx4_port *p = container_of(kobj, struct mlx4_port, kobj); in port_attr_store()
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()
492 static ssize_t show_port_gid_idx(struct mlx4_port *p, in show_port_gid_idx()
499 alloc_group_attrs(ssize_t (*show)(struct mlx4_port *, in alloc_group_attrs() argument
501 ssize_t (*store)(struct mlx4_port *, struct port_attribute *, in alloc_group_attrs() argument
547 struct mlx4_port *p = in sysfs_show_smi_enabled()
548 container_of(attr, struct mlx4_port, smi_enabled); in sysfs_show_smi_enabled()
563 struct mlx4_port *p = in sysfs_show_enable_smi_admin()
564 container_of(attr, struct mlx4_port, enable_smi_admin); in sysfs_show_enable_smi_admin()
579 struct mlx4_port *p = in sysfs_store_enable_smi_admin()
580 container_of(attr, struct mlx4_port, enable_smi_admin); in sysfs_store_enable_smi_admin()
592 static int add_vf_smi_entries(struct mlx4_port *p) in add_vf_smi_entries()
627 static void remove_vf_smi_entries(struct mlx4_port *p) in remove_vf_smi_entries()
641 struct mlx4_port *p; in add_port()
714 struct mlx4_port *mport; in register_one_pkey_tree()
754 mport = container_of(p, struct mlx4_port, kobj); in register_one_pkey_tree()
789 struct mlx4_port *port; in unregister_pkey_tree()
799 port = container_of(p, struct mlx4_port, kobj); in unregister_pkey_tree()