Lines Matching defs:link
49 static void sl811_cs_release(struct pcmcia_device * link);
107 * initialized already because of the link order dependency created
116 static void sl811_cs_detach(struct pcmcia_device *link)
118 dev_dbg(&link->dev, "sl811_cs_detach\n");
120 sl811_cs_release(link);
123 kfree(link->priv);
126 static void sl811_cs_release(struct pcmcia_device * link)
128 dev_dbg(&link->dev, "sl811_cs_release\n");
130 pcmcia_disable_device(link);
180 static int sl811_cs_config(struct pcmcia_device *link)
182 struct device *parent = &link->dev;
185 dev_dbg(&link->dev, "sl811_cs_config\n");
187 if (pcmcia_loop_config(link, sl811_cs_config_check, NULL))
191 if (resource_size(link->resource[0]) < 2)
194 if (!link->irq)
197 ret = pcmcia_request_configuration(link, &link->conf);
201 dev_info(&link->dev, "index 0x%02x: ",
202 link->conf.ConfigIndex);
203 if (link->conf.Vpp)
204 printk(", Vpp %d.%d", link->conf.Vpp/10, link->conf.Vpp%10);
205 printk(", irq %d", link->irq);
206 printk(", io %pR", link->resource[0]);
209 if (sl811_hc_init(parent, link->resource[0]->start, link->irq)
213 sl811_cs_release(link);
219 static int sl811_cs_probe(struct pcmcia_device *link)
226 local->p_dev = link;
227 link->priv = local;
229 link->conf.Attributes = 0;
230 link->conf.IntType = INT_MEMORY_AND_IO;
232 return sl811_cs_config(link);