Lines Matching refs:chain_idx
444 int chain_idx; in mptscsih_getFreeChainBuffer() local
454 chain_idx = offset / hd->ioc->req_sz; in mptscsih_getFreeChainBuffer()
459 chain_idx = MPT_HOST_NO_CHAIN; in mptscsih_getFreeChainBuffer()
464 *retIndex = chain_idx; in mptscsih_getFreeChainBuffer()
491 int chain_idx = MPT_HOST_NO_CHAIN; in mptscsih_AddSGE() local
676 hd->ChainToChain[chain_idx] = newIndex; in mptscsih_AddSGE()
680 chain_idx = newIndex; in mptscsih_AddSGE()
681 chain_dma_off = hd->ioc->req_sz * chain_idx; in mptscsih_AddSGE()
698 psge, chain_idx)); in mptscsih_AddSGE()
2723 int chain_idx; in mptscsih_freeChainBuffers() local
2729 chain_idx = hd->ReqToChain[req_idx]; in mptscsih_freeChainBuffers()
2732 while (chain_idx != MPT_HOST_NO_CHAIN) { in mptscsih_freeChainBuffers()
2735 next = hd->ChainToChain[chain_idx]; in mptscsih_freeChainBuffers()
2740 hd->ChainToChain[chain_idx] = MPT_HOST_NO_CHAIN; in mptscsih_freeChainBuffers()
2743 + (chain_idx * hd->ioc->req_sz)); in mptscsih_freeChainBuffers()
2750 hd->ioc->name, chain_idx)); in mptscsih_freeChainBuffers()
2753 chain_idx = next; in mptscsih_freeChainBuffers()