Lines Matching refs:p_dev
47 struct pcmcia_device *p_dev; member
725 ret = request_irq(card->p_dev->irq, if_cs_interrupt, in if_cs_prog_firmware()
743 free_irq(card->p_dev->irq, card); in if_cs_prog_firmware()
779 static void if_cs_release(struct pcmcia_device *p_dev) in if_cs_release() argument
781 struct if_cs_card *card = p_dev->priv; in if_cs_release()
783 free_irq(p_dev->irq, card); in if_cs_release()
784 pcmcia_disable_device(p_dev); in if_cs_release()
790 static int if_cs_ioprobe(struct pcmcia_device *p_dev, void *priv_data) in if_cs_ioprobe() argument
792 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in if_cs_ioprobe()
793 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; in if_cs_ioprobe()
795 if (p_dev->resource[1]->end) { in if_cs_ioprobe()
801 return pcmcia_request_io(p_dev); in if_cs_ioprobe()
804 static int if_cs_probe(struct pcmcia_device *p_dev) in if_cs_probe() argument
815 card->p_dev = p_dev; in if_cs_probe()
816 p_dev->priv = card; in if_cs_probe()
818 p_dev->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IO; in if_cs_probe()
820 if (pcmcia_loop_config(p_dev, if_cs_ioprobe, NULL)) { in if_cs_probe()
830 if (!p_dev->irq) in if_cs_probe()
834 card->iobase = ioport_map(p_dev->resource[0]->start, in if_cs_probe()
835 resource_size(p_dev->resource[0])); in if_cs_probe()
842 ret = pcmcia_enable_device(p_dev); in if_cs_probe()
849 lbs_deb_cs("irq %d, io %pR", p_dev->irq, p_dev->resource[0]); in if_cs_probe()
857 card->model = get_model(p_dev->manf_id, p_dev->card_id); in if_cs_probe()
860 p_dev->manf_id, p_dev->card_id); in if_cs_probe()
889 priv = lbs_add_card(card, &p_dev->dev); in if_cs_probe()
904 ret = lbs_get_firmware_async(priv, &p_dev->dev, card->model, fw_table, in if_cs_probe()
918 pcmcia_disable_device(p_dev); in if_cs_probe()
924 static void if_cs_detach(struct pcmcia_device *p_dev) in if_cs_detach() argument
926 struct if_cs_card *card = p_dev->priv; in if_cs_detach()
931 if_cs_release(p_dev); in if_cs_detach()