Lines Matching refs:link
53 static int airo_config(struct pcmcia_device *link);
54 static void airo_release(struct pcmcia_device *link);
78 static void airo_detach(struct pcmcia_device *link) in airo_detach() argument
80 dev_dbg(&link->dev, "airo_detach\n"); in airo_detach()
82 airo_release(link); in airo_detach()
84 if (((struct local_info *)link->priv)->eth_dev) { in airo_detach()
85 stop_airo_card(((struct local_info *)link->priv)->eth_dev, in airo_detach()
88 ((struct local_info *)link->priv)->eth_dev = NULL; in airo_detach()
90 kfree(link->priv); in airo_detach()
102 static int airo_config(struct pcmcia_device *link) in airo_config() argument
106 dev_dbg(&link->dev, "airo_config\n"); in airo_config()
108 link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_VPP | in airo_config()
111 ret = pcmcia_loop_config(link, airo_cs_config_check, NULL); in airo_config()
115 if (!link->irq) in airo_config()
118 ret = pcmcia_enable_device(link); in airo_config()
121 ((struct local_info *)link->priv)->eth_dev = in airo_config()
122 init_airo_card(link->irq, in airo_config()
123 link->resource[0]->start, 1, &link->dev); in airo_config()
124 if (!((struct local_info *)link->priv)->eth_dev) in airo_config()
130 airo_release(link); in airo_config()
134 static void airo_release(struct pcmcia_device *link) in airo_release() argument
136 dev_dbg(&link->dev, "airo_release\n"); in airo_release()
137 pcmcia_disable_device(link); in airo_release()
140 static int airo_suspend(struct pcmcia_device *link) in airo_suspend() argument
142 struct local_info *local = link->priv; in airo_suspend()
149 static int airo_resume(struct pcmcia_device *link) in airo_resume() argument
151 struct local_info *local = link->priv; in airo_resume()
153 if (link->open) { in airo_resume()