Lines Matching refs:sr
81 struct resource *sr; in db1x_register_pcmcia_socket() local
90 sr = kcalloc(cnt, sizeof(struct resource), GFP_KERNEL); in db1x_register_pcmcia_socket()
91 if (!sr) in db1x_register_pcmcia_socket()
100 sr[0].name = "pcmcia-attr"; in db1x_register_pcmcia_socket()
101 sr[0].flags = IORESOURCE_MEM; in db1x_register_pcmcia_socket()
102 sr[0].start = pcmcia_attr_start; in db1x_register_pcmcia_socket()
103 sr[0].end = pcmcia_attr_end; in db1x_register_pcmcia_socket()
105 sr[1].name = "pcmcia-mem"; in db1x_register_pcmcia_socket()
106 sr[1].flags = IORESOURCE_MEM; in db1x_register_pcmcia_socket()
107 sr[1].start = pcmcia_mem_start; in db1x_register_pcmcia_socket()
108 sr[1].end = pcmcia_mem_end; in db1x_register_pcmcia_socket()
110 sr[2].name = "pcmcia-io"; in db1x_register_pcmcia_socket()
111 sr[2].flags = IORESOURCE_MEM; in db1x_register_pcmcia_socket()
112 sr[2].start = pcmcia_io_start; in db1x_register_pcmcia_socket()
113 sr[2].end = pcmcia_io_end; in db1x_register_pcmcia_socket()
115 sr[3].name = "insert"; in db1x_register_pcmcia_socket()
116 sr[3].flags = IORESOURCE_IRQ; in db1x_register_pcmcia_socket()
117 sr[3].start = sr[3].end = cd_irq; in db1x_register_pcmcia_socket()
119 sr[4].name = "card"; in db1x_register_pcmcia_socket()
120 sr[4].flags = IORESOURCE_IRQ; in db1x_register_pcmcia_socket()
121 sr[4].start = sr[4].end = card_irq; in db1x_register_pcmcia_socket()
125 sr[i].name = "stschg"; in db1x_register_pcmcia_socket()
126 sr[i].flags = IORESOURCE_IRQ; in db1x_register_pcmcia_socket()
127 sr[i].start = sr[i].end = stschg_irq; in db1x_register_pcmcia_socket()
131 sr[i].name = "eject"; in db1x_register_pcmcia_socket()
132 sr[i].flags = IORESOURCE_IRQ; in db1x_register_pcmcia_socket()
133 sr[i].start = sr[i].end = eject_irq; in db1x_register_pcmcia_socket()
136 pd->resource = sr; in db1x_register_pcmcia_socket()
145 kfree(sr); in db1x_register_pcmcia_socket()