Lines Matching refs:chain_idx
139 int chain_idx; in mptscsih_getFreeChainBuffer() local
151 chain_idx = offset / ioc->req_sz; in mptscsih_getFreeChainBuffer()
155 ioc->name, chainBuf, ioc->ChainBuffer, offset, chain_idx)); in mptscsih_getFreeChainBuffer()
158 chain_idx = MPT_HOST_NO_CHAIN; in mptscsih_getFreeChainBuffer()
164 *retIndex = chain_idx; in mptscsih_getFreeChainBuffer()
187 int chain_idx = MPT_HOST_NO_CHAIN; in mptscsih_AddSGE() local
358 ioc->ChainToChain[chain_idx] = newIndex; in mptscsih_AddSGE()
362 chain_idx = newIndex; in mptscsih_AddSGE()
363 chain_dma_off = ioc->req_sz * chain_idx; in mptscsih_AddSGE()
380 ioc->name, psge, chain_idx)); in mptscsih_AddSGE()
1451 int chain_idx; in mptscsih_freeChainBuffers() local
1457 chain_idx = ioc->ReqToChain[req_idx]; in mptscsih_freeChainBuffers()
1460 while (chain_idx != MPT_HOST_NO_CHAIN) { in mptscsih_freeChainBuffers()
1463 next = ioc->ChainToChain[chain_idx]; in mptscsih_freeChainBuffers()
1468 ioc->ChainToChain[chain_idx] = MPT_HOST_NO_CHAIN; in mptscsih_freeChainBuffers()
1471 + (chain_idx * ioc->req_sz)); in mptscsih_freeChainBuffers()
1478 ioc->name, chain_idx)); in mptscsih_freeChainBuffers()
1481 chain_idx = next; in mptscsih_freeChainBuffers()