Lines Matching refs:link

104 static int com20020_config(struct pcmcia_device *link);
105 static void com20020_release(struct pcmcia_device *link);
160 static void com20020_detach(struct pcmcia_device *link) in com20020_detach() argument
162 struct com20020_dev *info = link->priv; in com20020_detach()
165 dev_dbg(&link->dev, "detach...\n"); in com20020_detach()
167 dev_dbg(&link->dev, "com20020_detach\n"); in com20020_detach()
169 dev_dbg(&link->dev, "unregister...\n"); in com20020_detach()
179 com20020_release(link); in com20020_detach()
182 dev_dbg(&link->dev, "unlinking...\n"); in com20020_detach()
183 if (link->priv) { in com20020_detach()
186 dev_dbg(&link->dev, "kfree...\n"); in com20020_detach()
189 dev_dbg(&link->dev, "kfree2...\n"); in com20020_detach()
195 static int com20020_config(struct pcmcia_device *link) in com20020_config() argument
203 info = link->priv; in com20020_config()
206 dev_dbg(&link->dev, "config...\n"); in com20020_config()
208 dev_dbg(&link->dev, "com20020_config\n"); in com20020_config()
210 dev_dbg(&link->dev, "baseport1 is %Xh\n", in com20020_config()
211 (unsigned int)link->resource[0]->start); in com20020_config()
214 link->io_lines = 16; in com20020_config()
216 if (!link->resource[0]->start) { in com20020_config()
218 link->resource[0]->start = ioaddr; in com20020_config()
219 i = pcmcia_request_io(link); in com20020_config()
224 i = pcmcia_request_io(link); in com20020_config()
228 dev_dbg(&link->dev, "requestIO failed totally!\n"); in com20020_config()
232 ioaddr = dev->base_addr = link->resource[0]->start; in com20020_config()
233 dev_dbg(&link->dev, "got ioaddr %Xh\n", ioaddr); in com20020_config()
235 dev_dbg(&link->dev, "request IRQ %d\n", in com20020_config()
236 link->irq); in com20020_config()
237 if (!link->irq) { in com20020_config()
238 dev_dbg(&link->dev, "requestIRQ failed totally!\n"); in com20020_config()
242 dev->irq = link->irq; in com20020_config()
244 ret = pcmcia_enable_device(link); in com20020_config()
257 SET_NETDEV_DEV(dev, &link->dev); in com20020_config()
262 dev_notice(&link->dev, in com20020_config()
272 dev_dbg(&link->dev, "com20020_config failed...\n"); in com20020_config()
273 com20020_release(link); in com20020_config()
277 static void com20020_release(struct pcmcia_device *link) in com20020_release() argument
279 dev_dbg(&link->dev, "com20020_release\n"); in com20020_release()
280 pcmcia_disable_device(link); in com20020_release()
283 static int com20020_suspend(struct pcmcia_device *link) in com20020_suspend() argument
285 struct com20020_dev *info = link->priv; in com20020_suspend()
288 if (link->open) in com20020_suspend()
294 static int com20020_resume(struct pcmcia_device *link) in com20020_resume() argument
296 struct com20020_dev *info = link->priv; in com20020_resume()
299 if (link->open) { in com20020_resume()