Lines Matching defs:link
318 struct pcmcia_device *link = dev->p_dev;
327 ret = pcmcia_modify_configuration(link, &mod);
336 static void pcmciamtd_release(struct pcmcia_device *link)
338 struct pcmciamtd_dev *dev = link->priv;
340 DEBUG(3, "link = 0x%p", link);
342 if (link->win) {
348 pcmcia_disable_device(link);
490 static int pcmciamtd_config(struct pcmcia_device *link)
492 struct pcmciamtd_dev *dev = link->priv;
500 DEBUG(3, "link=0x%p", link);
502 card_settings(dev, link, &new_name);
527 link->win = (window_handle_t)link;
535 ret = pcmcia_request_window(link, &req, &link->win);
550 pcmciamtd_release(link);
556 DEBUG(2, "window handle = 0x%8.8lx", (unsigned long)link->win);
561 pcmciamtd_release(link);
569 dev->pcmcia_map.map_priv_2 = (unsigned long)link->win;
571 dev->vpp = (vpp) ? vpp : link->socket->socket.Vpp;
572 link->conf.Attributes = 0;
574 link->conf.Vpp = dev->vpp;
576 link->conf.Vpp = 0;
579 link->conf.IntType = INT_MEMORY;
580 link->conf.ConfigIndex = 0;
582 ret = pcmcia_request_configuration(link, &link->conf);
608 pcmciamtd_release(link);
652 pcmciamtd_release(link);
659 pcmciamtd_release(link);
668 /* get_lock(link); */
677 /* free_lock(link); */
689 static void pcmciamtd_detach(struct pcmcia_device *link)
691 struct pcmciamtd_dev *dev = link->priv;
693 DEBUG(3, "link=0x%p", link);
702 pcmciamtd_release(link);
711 static int pcmciamtd_probe(struct pcmcia_device *link)
720 dev->p_dev = link;
721 link->priv = dev;
723 link->conf.Attributes = 0;
724 link->conf.IntType = INT_MEMORY;
726 return pcmciamtd_config(link);