Lines Matching refs:p_dev
1516 info->p_dev = link; in nsp_cs_probe()
1541 static int nsp_cs_config_check(struct pcmcia_device *p_dev, void *priv_data) in nsp_cs_config_check() argument
1545 if (p_dev->config_index == 0) in nsp_cs_config_check()
1549 if (pcmcia_request_io(p_dev) != 0) in nsp_cs_config_check()
1552 if (resource_size(p_dev->resource[2])) { in nsp_cs_config_check()
1553 p_dev->resource[2]->flags |= (WIN_DATA_WIDTH_16 | in nsp_cs_config_check()
1556 if (p_dev->resource[2]->end < 0x1000) in nsp_cs_config_check()
1557 p_dev->resource[2]->end = 0x1000; in nsp_cs_config_check()
1558 if (pcmcia_request_window(p_dev, p_dev->resource[2], 0) != 0) in nsp_cs_config_check()
1560 if (pcmcia_map_mem_page(p_dev, p_dev->resource[2], in nsp_cs_config_check()
1561 p_dev->card_addr) != 0) in nsp_cs_config_check()
1565 ioremap_nocache(p_dev->resource[2]->start, in nsp_cs_config_check()
1566 resource_size(p_dev->resource[2])); in nsp_cs_config_check()
1567 data->MmioLength = resource_size(p_dev->resource[2]); in nsp_cs_config_check()
1574 pcmcia_disable_device(p_dev); in nsp_cs_config_check()