• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/wireless/libertas/

Lines Matching defs:p_dev

60 	struct pcmcia_device *p_dev;
292 static inline int if_cs_hw_is_cf8305(struct pcmcia_device *p_dev)
294 return (p_dev->manf_id == CF8305_MANFID &&
295 p_dev->card_id == CF8305_CARDID);
298 static inline int if_cs_hw_is_cf8381(struct pcmcia_device *p_dev)
300 return (p_dev->manf_id == CF8381_MANFID &&
301 p_dev->card_id == CF8381_CARDID);
304 static inline int if_cs_hw_is_cf8385(struct pcmcia_device *p_dev)
306 return (p_dev->manf_id == CF8385_MANFID &&
307 p_dev->card_id == CF8385_CARDID);
592 &card->p_dev->dev);
665 &card->p_dev->dev);
771 static void if_cs_release(struct pcmcia_device *p_dev)
773 struct if_cs_card *card = p_dev->priv;
777 free_irq(p_dev->irq, card);
778 pcmcia_disable_device(p_dev);
796 static int if_cs_ioprobe(struct pcmcia_device *p_dev,
802 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
803 p_dev->resource[0]->start = cfg->io.win[0].base;
804 p_dev->resource[0]->end = cfg->io.win[0].len;
807 p_dev->conf.Attributes |= CONF_ENABLE_IRQ;
816 return pcmcia_request_io(p_dev);
819 static int if_cs_probe(struct pcmcia_device *p_dev)
833 card->p_dev = p_dev;
834 p_dev->priv = card;
836 p_dev->conf.Attributes = 0;
837 p_dev->conf.IntType = INT_MEMORY_AND_IO;
839 if (pcmcia_loop_config(p_dev, if_cs_ioprobe, NULL)) {
850 if (!p_dev->irq)
854 card->iobase = ioport_map(p_dev->resource[0]->start,
855 resource_size(p_dev->resource[0]));
867 ret = pcmcia_request_configuration(p_dev, &p_dev->conf);
874 lbs_deb_cs("irq %d, io %pR", p_dev->irq, p_dev->resource[0]);
884 if (if_cs_hw_is_cf8305(p_dev)) {
894 if (if_cs_hw_is_cf8381(p_dev) && prod_id < IF_CS_CF8381_B3_REV) {
900 if (if_cs_hw_is_cf8385(p_dev) && prod_id < IF_CS_CF8385_B1_REV) {
908 if (ret == 0 && !if_cs_hw_is_cf8305(p_dev))
914 priv = lbs_add_card(card, &p_dev->dev);
930 ret = request_irq(p_dev->irq, if_cs_interrupt,
956 pcmcia_disable_device(p_dev);
969 static void if_cs_detach(struct pcmcia_device *p_dev)
971 struct if_cs_card *card = p_dev->priv;
978 if_cs_release(p_dev);