Lines Matching refs:chain_idx
137 int chain_idx; in mptscsih_getFreeChainBuffer() local
149 chain_idx = offset / ioc->req_sz; in mptscsih_getFreeChainBuffer()
153 ioc->name, chainBuf, ioc->ChainBuffer, offset, chain_idx)); in mptscsih_getFreeChainBuffer()
156 chain_idx = MPT_HOST_NO_CHAIN; in mptscsih_getFreeChainBuffer()
162 *retIndex = chain_idx; in mptscsih_getFreeChainBuffer()
185 int chain_idx = MPT_HOST_NO_CHAIN; in mptscsih_AddSGE() local
356 ioc->ChainToChain[chain_idx] = newIndex; in mptscsih_AddSGE()
360 chain_idx = newIndex; in mptscsih_AddSGE()
361 chain_dma_off = ioc->req_sz * chain_idx; in mptscsih_AddSGE()
378 ioc->name, psge, chain_idx)); in mptscsih_AddSGE()
1454 int chain_idx; in mptscsih_freeChainBuffers() local
1460 chain_idx = ioc->ReqToChain[req_idx]; in mptscsih_freeChainBuffers()
1463 while (chain_idx != MPT_HOST_NO_CHAIN) { in mptscsih_freeChainBuffers()
1466 next = ioc->ChainToChain[chain_idx]; in mptscsih_freeChainBuffers()
1471 ioc->ChainToChain[chain_idx] = MPT_HOST_NO_CHAIN; in mptscsih_freeChainBuffers()
1474 + (chain_idx * ioc->req_sz)); in mptscsih_freeChainBuffers()
1481 ioc->name, chain_idx)); in mptscsih_freeChainBuffers()
1484 chain_idx = next; in mptscsih_freeChainBuffers()