34 #include <linux/slab.h>
35 #include <linux/export.h>
73 if (dev_ctx->intf == intf) {
95 mlx4_add_device(intf, priv);
110 mlx4_remove_device(intf, priv);
128 if (dev_ctx->
intf->event)
129 dev_ctx->
intf->event(dev, dev_ctx->
context, type, param);
131 spin_unlock_irqrestore(&priv->
ctx_lock, flags);
143 mlx4_add_device(intf, priv);
146 if (!mlx4_is_slave(dev))
157 if (!mlx4_is_slave(dev))
162 mlx4_remove_device(intf, priv);
179 if (dev_ctx->
intf->protocol == proto && dev_ctx->
intf->get_dev) {
180 result = dev_ctx->
intf->get_dev(dev, dev_ctx->
context, port);
184 spin_unlock_irqrestore(&priv->
ctx_lock, flags);