Lines Matching refs:attr_mem
44 void __iomem *attr_mem; member
277 if (hw_priv->attr_mem == NULL) { in prism2_plx_cor_sreset()
286 corsave = readb(hw_priv->attr_mem + hw_priv->cor_offset); in prism2_plx_cor_sreset()
288 hw_priv->attr_mem + hw_priv->cor_offset); in prism2_plx_cor_sreset()
291 hw_priv->attr_mem + hw_priv->cor_offset); in prism2_plx_cor_sreset()
302 if (hw_priv->attr_mem == NULL) { in prism2_plx_genesis_reset()
313 corsave = readb(hw_priv->attr_mem + hw_priv->cor_offset); in prism2_plx_genesis_reset()
315 hw_priv->attr_mem + hw_priv->cor_offset); in prism2_plx_genesis_reset()
317 writeb(hcr, hw_priv->attr_mem + hw_priv->cor_offset + 2); in prism2_plx_genesis_reset()
320 hw_priv->attr_mem + hw_priv->cor_offset); in prism2_plx_genesis_reset()
335 static int prism2_plx_check_cis(void __iomem *attr_mem, int attr_len, in prism2_plx_check_cis() argument
354 cis[i] = readb(attr_mem + 2 * i); in prism2_plx_check_cis()
437 void __iomem *attr_mem = NULL; in prism2_plx_probe() local
463 attr_mem = NULL; /* no access to PC Card attribute memory */ in prism2_plx_probe()
489 attr_mem = ioremap(pccard_attr_mem, pccard_attr_len); in prism2_plx_probe()
490 if (attr_mem == NULL) { in prism2_plx_probe()
500 if (prism2_plx_check_cis(attr_mem, pccard_attr_len, in prism2_plx_probe()
512 attr_mem + cor_offset); in prism2_plx_probe()
547 hw_priv->attr_mem = attr_mem; in prism2_plx_probe()
571 if (attr_mem) in prism2_plx_probe()
572 iounmap(attr_mem); in prism2_plx_probe()
598 if (hw_priv->attr_mem) in prism2_plx_remove()
599 iounmap(hw_priv->attr_mem); in prism2_plx_remove()