Lines Matching refs:link

104 static int com20020_config(struct pcmcia_device *link);
105 static void com20020_release(struct pcmcia_device *link);
153 static void com20020_detach(struct pcmcia_device *link) in com20020_detach() argument
155 struct com20020_dev *info = link->priv; in com20020_detach()
158 dev_dbg(&link->dev, "detach...\n"); in com20020_detach()
160 dev_dbg(&link->dev, "com20020_detach\n"); in com20020_detach()
162 dev_dbg(&link->dev, "unregister...\n"); in com20020_detach()
172 com20020_release(link); in com20020_detach()
175 dev_dbg(&link->dev, "unlinking...\n"); in com20020_detach()
176 if (link->priv) { in com20020_detach()
179 dev_dbg(&link->dev, "kfree...\n"); in com20020_detach()
182 dev_dbg(&link->dev, "kfree2...\n"); in com20020_detach()
188 static int com20020_config(struct pcmcia_device *link) in com20020_config() argument
196 info = link->priv; in com20020_config()
199 dev_dbg(&link->dev, "config...\n"); in com20020_config()
201 dev_dbg(&link->dev, "com20020_config\n"); in com20020_config()
203 dev_dbg(&link->dev, "baseport1 is %Xh\n", in com20020_config()
204 (unsigned int)link->resource[0]->start); in com20020_config()
207 link->io_lines = 16; in com20020_config()
209 if (!link->resource[0]->start) { in com20020_config()
211 link->resource[0]->start = ioaddr; in com20020_config()
212 i = pcmcia_request_io(link); in com20020_config()
217 i = pcmcia_request_io(link); in com20020_config()
221 dev_dbg(&link->dev, "requestIO failed totally!\n"); in com20020_config()
225 ioaddr = dev->base_addr = link->resource[0]->start; in com20020_config()
226 dev_dbg(&link->dev, "got ioaddr %Xh\n", ioaddr); in com20020_config()
228 dev_dbg(&link->dev, "request IRQ %d\n", in com20020_config()
229 link->irq); in com20020_config()
230 if (!link->irq) { in com20020_config()
231 dev_dbg(&link->dev, "requestIRQ failed totally!\n"); in com20020_config()
235 dev->irq = link->irq; in com20020_config()
237 ret = pcmcia_enable_device(link); in com20020_config()
250 SET_NETDEV_DEV(dev, &link->dev); in com20020_config()
255 dev_notice(&link->dev, in com20020_config()
265 dev_dbg(&link->dev, "com20020_config failed...\n"); in com20020_config()
266 com20020_release(link); in com20020_config()
270 static void com20020_release(struct pcmcia_device *link) in com20020_release() argument
272 dev_dbg(&link->dev, "com20020_release\n"); in com20020_release()
273 pcmcia_disable_device(link); in com20020_release()
276 static int com20020_suspend(struct pcmcia_device *link) in com20020_suspend() argument
278 struct com20020_dev *info = link->priv; in com20020_suspend()
281 if (link->open) in com20020_suspend()
287 static int com20020_resume(struct pcmcia_device *link) in com20020_resume() argument
289 struct com20020_dev *info = link->priv; in com20020_resume()
292 if (link->open) { in com20020_resume()