Lines Matching refs:index
213 tsunami_pchip *pchip = hose->index ? TSUNAMI_pchip1 : TSUNAMI_pchip0; in tsunami_pci_tbi()
282 tsunami_init_one_pchip(tsunami_pchip *pchip, int index) in tsunami_init_one_pchip() argument
290 if (index == 0) in tsunami_init_one_pchip()
302 = (TSUNAMI_MEM(index) & 0xffffffffff) | 0x80000000000; in tsunami_init_one_pchip()
304 = (TSUNAMI_IO(index) & 0xffffffffff) | 0x80000000000; in tsunami_init_one_pchip()
306 hose->config_space_base = TSUNAMI_CONF(index); in tsunami_init_one_pchip()
307 hose->index = index; in tsunami_init_one_pchip()
309 hose->io_space->start = TSUNAMI_IO(index) - TSUNAMI_IO_BIAS; in tsunami_init_one_pchip()
311 hose->io_space->name = pci_io_names[index]; in tsunami_init_one_pchip()
314 hose->mem_space->start = TSUNAMI_MEM(index) - TSUNAMI_MEM_BIAS; in tsunami_init_one_pchip()
316 hose->mem_space->name = pci_mem_names[index]; in tsunami_init_one_pchip()
320 printk(KERN_ERR "Failed to request IO on hose %d\n", index); in tsunami_init_one_pchip()
322 printk(KERN_ERR "Failed to request MEM on hose %d\n", index); in tsunami_init_one_pchip()
329 saved_pchip[index].wsba[0] = pchip->wsba[0].csr; in tsunami_init_one_pchip()
330 saved_pchip[index].wsm[0] = pchip->wsm[0].csr; in tsunami_init_one_pchip()
331 saved_pchip[index].tba[0] = pchip->tba[0].csr; in tsunami_init_one_pchip()
333 saved_pchip[index].wsba[1] = pchip->wsba[1].csr; in tsunami_init_one_pchip()
334 saved_pchip[index].wsm[1] = pchip->wsm[1].csr; in tsunami_init_one_pchip()
335 saved_pchip[index].tba[1] = pchip->tba[1].csr; in tsunami_init_one_pchip()
337 saved_pchip[index].wsba[2] = pchip->wsba[2].csr; in tsunami_init_one_pchip()
338 saved_pchip[index].wsm[2] = pchip->wsm[2].csr; in tsunami_init_one_pchip()
339 saved_pchip[index].tba[2] = pchip->tba[2].csr; in tsunami_init_one_pchip()
341 saved_pchip[index].wsba[3] = pchip->wsba[3].csr; in tsunami_init_one_pchip()
342 saved_pchip[index].wsm[3] = pchip->wsm[3].csr; in tsunami_init_one_pchip()
343 saved_pchip[index].tba[3] = pchip->tba[3].csr; in tsunami_init_one_pchip()
437 tsunami_kill_one_pchip(tsunami_pchip *pchip, int index) in tsunami_kill_one_pchip() argument
439 pchip->wsba[0].csr = saved_pchip[index].wsba[0]; in tsunami_kill_one_pchip()
440 pchip->wsm[0].csr = saved_pchip[index].wsm[0]; in tsunami_kill_one_pchip()
441 pchip->tba[0].csr = saved_pchip[index].tba[0]; in tsunami_kill_one_pchip()
443 pchip->wsba[1].csr = saved_pchip[index].wsba[1]; in tsunami_kill_one_pchip()
444 pchip->wsm[1].csr = saved_pchip[index].wsm[1]; in tsunami_kill_one_pchip()
445 pchip->tba[1].csr = saved_pchip[index].tba[1]; in tsunami_kill_one_pchip()
447 pchip->wsba[2].csr = saved_pchip[index].wsba[2]; in tsunami_kill_one_pchip()
448 pchip->wsm[2].csr = saved_pchip[index].wsm[2]; in tsunami_kill_one_pchip()
449 pchip->tba[2].csr = saved_pchip[index].tba[2]; in tsunami_kill_one_pchip()
451 pchip->wsba[3].csr = saved_pchip[index].wsba[3]; in tsunami_kill_one_pchip()
452 pchip->wsm[3].csr = saved_pchip[index].wsm[3]; in tsunami_kill_one_pchip()
453 pchip->tba[3].csr = saved_pchip[index].tba[3]; in tsunami_kill_one_pchip()