Lines Matching refs:bar

84 	a->xdi_adapter.sdram_bar = a->resources.pci.bar[0];  in diva_pri_set_addresses()
98 int bar = 0; in diva_pri_init_card() local
123 for (bar = 0; bar < 5; bar++) { in diva_pri_init_card()
124 a->resources.pci.bar[bar] = in diva_pri_init_card()
126 a->resources.pci.func, bar, in diva_pri_init_card()
128 if (!a->resources.pci.bar[bar] in diva_pri_init_card()
129 || (a->resources.pci.bar[bar] == 0xFFFFFFF0)) { in diva_pri_init_card()
130 DBG_ERR(("A: invalid bar[%d]=%08x", bar, in diva_pri_init_card()
131 a->resources.pci.bar[bar])) in diva_pri_init_card()
147 for (bar = 0; bar < 5; bar++) { in diva_pri_init_card()
148 a->resources.pci.addr[bar] = in diva_pri_init_card()
149 divasa_remap_pci_bar(a, bar, a->resources.pci.bar[bar], in diva_pri_init_card()
150 bar_length[bar]); in diva_pri_init_card()
151 if (!a->resources.pci.addr[bar]) { in diva_pri_init_card()
153 a->controller, bar)) in diva_pri_init_card()
169 serNo = a->resources.pci.bar[1] & 0xffff0000; in diva_pri_init_card()
263 int bar = 0; in diva_pri_cleanup_adapter() local
283 for (bar = 0; bar < 5; bar++) { in diva_pri_cleanup_adapter()
284 if (a->resources.pci.bar[bar] in diva_pri_cleanup_adapter()
285 && a->resources.pci.addr[bar]) { in diva_pri_cleanup_adapter()
286 divasa_unmap_pci_bar(a->resources.pci.addr[bar]); in diva_pri_cleanup_adapter()
287 a->resources.pci.bar[bar] = 0; in diva_pri_cleanup_adapter()
288 a->resources.pci.addr[bar] = NULL; in diva_pri_cleanup_adapter()
648 *data++ = a->resources.pci.bar[i]; in diva_pri_cmd_card_proc()
807 addr4 = a->resources.pci.bar[4]; in pri_get_serial_number()
808 addr3 = a->resources.pci.bar[3]; /* flash */ in pri_get_serial_number()
809 addr1 = a->resources.pci.bar[1]; /* unused */ in pri_get_serial_number()
831 addr1 = a->resources.pci.bar[1]; in pri_get_serial_number()
832 a->resources.pci.bar[1] = a->resources.pci.bar[4]; in pri_get_serial_number()
833 a->resources.pci.bar[4] = addr1; in pri_get_serial_number()