• Home
  • Raw
  • Download

Lines Matching refs:intf

41 	struct mlx4_interface  *intf;  member
49 static void mlx4_add_device(struct mlx4_interface *intf, struct mlx4_priv *priv) in mlx4_add_device() argument
57 dev_ctx->intf = intf; in mlx4_add_device()
58 dev_ctx->context = intf->add(&priv->dev); in mlx4_add_device()
68 static void mlx4_remove_device(struct mlx4_interface *intf, struct mlx4_priv *priv) in mlx4_remove_device() argument
73 if (dev_ctx->intf == intf) { in mlx4_remove_device()
78 intf->remove(&priv->dev, dev_ctx->context); in mlx4_remove_device()
84 int mlx4_register_interface(struct mlx4_interface *intf) in mlx4_register_interface() argument
88 if (!intf->add || !intf->remove) in mlx4_register_interface()
93 list_add_tail(&intf->list, &intf_list); in mlx4_register_interface()
95 mlx4_add_device(intf, priv); in mlx4_register_interface()
103 void mlx4_unregister_interface(struct mlx4_interface *intf) in mlx4_unregister_interface() argument
110 mlx4_remove_device(intf, priv); in mlx4_unregister_interface()
112 list_del(&intf->list); in mlx4_unregister_interface()
128 if (dev_ctx->intf->event) in mlx4_dispatch_event()
129 dev_ctx->intf->event(dev, dev_ctx->context, type, param); in mlx4_dispatch_event()
137 struct mlx4_interface *intf; in mlx4_register_device() local
142 list_for_each_entry(intf, &intf_list, list) in mlx4_register_device()
143 mlx4_add_device(intf, priv); in mlx4_register_device()
155 struct mlx4_interface *intf; in mlx4_unregister_device() local
161 list_for_each_entry(intf, &intf_list, list) in mlx4_unregister_device()
162 mlx4_remove_device(intf, priv); in mlx4_unregister_device()
179 if (dev_ctx->intf->protocol == proto && dev_ctx->intf->get_dev) { in mlx4_get_protocol_dev()
180 result = dev_ctx->intf->get_dev(dev, dev_ctx->context, port); in mlx4_get_protocol_dev()