Lines Matching refs:link
105 static int com20020_config(struct pcmcia_device *link);
106 static void com20020_release(struct pcmcia_device *link);
161 static void com20020_detach(struct pcmcia_device *link) in com20020_detach() argument
163 struct com20020_dev *info = link->priv; in com20020_detach()
166 dev_dbg(&link->dev, "detach...\n"); in com20020_detach()
168 dev_dbg(&link->dev, "com20020_detach\n"); in com20020_detach()
170 dev_dbg(&link->dev, "unregister...\n"); in com20020_detach()
180 com20020_release(link); in com20020_detach()
183 dev_dbg(&link->dev, "unlinking...\n"); in com20020_detach()
184 if (link->priv) { in com20020_detach()
187 dev_dbg(&link->dev, "kfree...\n"); in com20020_detach()
190 dev_dbg(&link->dev, "kfree2...\n"); in com20020_detach()
196 static int com20020_config(struct pcmcia_device *link) in com20020_config() argument
204 info = link->priv; in com20020_config()
207 dev_dbg(&link->dev, "config...\n"); in com20020_config()
209 dev_dbg(&link->dev, "com20020_config\n"); in com20020_config()
211 dev_dbg(&link->dev, "baseport1 is %Xh\n", in com20020_config()
212 (unsigned int)link->resource[0]->start); in com20020_config()
215 link->io_lines = 16; in com20020_config()
217 if (!link->resource[0]->start) { in com20020_config()
219 link->resource[0]->start = ioaddr; in com20020_config()
220 i = pcmcia_request_io(link); in com20020_config()
225 i = pcmcia_request_io(link); in com20020_config()
229 dev_dbg(&link->dev, "requestIO failed totally!\n"); in com20020_config()
233 ioaddr = dev->base_addr = link->resource[0]->start; in com20020_config()
234 dev_dbg(&link->dev, "got ioaddr %Xh\n", ioaddr); in com20020_config()
236 dev_dbg(&link->dev, "request IRQ %d\n", in com20020_config()
237 link->irq); in com20020_config()
238 if (!link->irq) { in com20020_config()
239 dev_dbg(&link->dev, "requestIRQ failed totally!\n"); in com20020_config()
243 dev->irq = link->irq; in com20020_config()
245 ret = pcmcia_enable_device(link); in com20020_config()
258 SET_NETDEV_DEV(dev, &link->dev); in com20020_config()
263 dev_notice(&link->dev, in com20020_config()
273 dev_dbg(&link->dev, "com20020_config failed...\n"); in com20020_config()
274 com20020_release(link); in com20020_config()
278 static void com20020_release(struct pcmcia_device *link) in com20020_release() argument
280 dev_dbg(&link->dev, "com20020_release\n"); in com20020_release()
281 pcmcia_disable_device(link); in com20020_release()
284 static int com20020_suspend(struct pcmcia_device *link) in com20020_suspend() argument
286 struct com20020_dev *info = link->priv; in com20020_suspend()
289 if (link->open) in com20020_suspend()
295 static int com20020_resume(struct pcmcia_device *link) in com20020_resume() argument
297 struct com20020_dev *info = link->priv; in com20020_resume()
300 if (link->open) { in com20020_resume()