Lines Matching refs:link

63 static int spectrum_cs_config(struct pcmcia_device *link);
64 static void spectrum_cs_release(struct pcmcia_device *link);
77 spectrum_reset(struct pcmcia_device *link, int idle) in spectrum_reset() argument
84 if (!pcmcia_dev_present(link)) in spectrum_reset()
88 ret = pcmcia_read_config_byte(link, CISREG_COR, &save_cor); in spectrum_reset()
93 ret = pcmcia_write_config_byte(link, CISREG_COR, in spectrum_reset()
100 ret = pcmcia_read_config_byte(link, CISREG_CCSR, &ccsr); in spectrum_reset()
109 ret = pcmcia_write_config_byte(link, CISREG_CCSR, ccsr); in spectrum_reset()
115 ret = pcmcia_write_config_byte(link, CISREG_COR, in spectrum_reset()
134 struct pcmcia_device *link = card->p_dev; in spectrum_cs_hard_reset() local
137 spectrum_reset(link, 0); in spectrum_cs_hard_reset()
146 struct pcmcia_device *link = card->p_dev; in spectrum_cs_stop_firmware() local
148 return spectrum_reset(link, idle); in spectrum_cs_stop_firmware()
156 spectrum_cs_probe(struct pcmcia_device *link) in spectrum_cs_probe() argument
161 priv = alloc_orinocodev(sizeof(*card), &link->dev, in spectrum_cs_probe()
169 card->p_dev = link; in spectrum_cs_probe()
170 link->priv = priv; in spectrum_cs_probe()
172 return spectrum_cs_config(link); in spectrum_cs_probe()
175 static void spectrum_cs_detach(struct pcmcia_device *link) in spectrum_cs_detach() argument
177 struct orinoco_private *priv = link->priv; in spectrum_cs_detach()
181 spectrum_cs_release(link); in spectrum_cs_detach()
196 spectrum_cs_config(struct pcmcia_device *link) in spectrum_cs_config() argument
198 struct orinoco_private *priv = link->priv; in spectrum_cs_config()
203 link->config_flags |= CONF_AUTO_SET_VPP | CONF_AUTO_CHECK_VCC | in spectrum_cs_config()
206 link->config_flags &= ~CONF_AUTO_CHECK_VCC; in spectrum_cs_config()
207 ret = pcmcia_loop_config(link, spectrum_cs_config_check, NULL); in spectrum_cs_config()
216 mem = ioport_map(link->resource[0]->start, in spectrum_cs_config()
217 resource_size(link->resource[0])); in spectrum_cs_config()
227 ret = pcmcia_request_irq(link, orinoco_interrupt); in spectrum_cs_config()
231 ret = pcmcia_enable_device(link); in spectrum_cs_config()
246 if (orinoco_if_add(priv, link->resource[0]->start, in spectrum_cs_config()
247 link->irq, NULL) != 0) { in spectrum_cs_config()
255 spectrum_cs_release(link); in spectrum_cs_config()
260 spectrum_cs_release(struct pcmcia_device *link) in spectrum_cs_release() argument
262 struct orinoco_private *priv = link->priv; in spectrum_cs_release()
271 pcmcia_disable_device(link); in spectrum_cs_release()
278 spectrum_cs_suspend(struct pcmcia_device *link) in spectrum_cs_suspend() argument
280 struct orinoco_private *priv = link->priv; in spectrum_cs_suspend()
289 spectrum_cs_resume(struct pcmcia_device *link) in spectrum_cs_resume() argument
291 struct orinoco_private *priv = link->priv; in spectrum_cs_resume()