Lines Matching refs:nmap_index
2321 int nmap_index, page_index;
2387 for (nmap_index = 0; nmap_index < chunk->nmap; ++nmap_index) {
2388 if (sg_dma_address(&chunk->page_list[nmap_index]) & ~PAGE_MASK) {
2392 (unsigned int) sg_dma_address(&chunk->page_list[nmap_index]));
2398 if (!sg_dma_len(&chunk->page_list[nmap_index])) {
2408 region_length += sg_dma_len(&chunk->page_list[nmap_index]);
2409 chunk_pages = sg_dma_len(&chunk->page_list[nmap_index]) >> 12;
2483 (sg_dma_address(&chunk->page_list[nmap_index])+
2486 last_dma_addr = sg_dma_address(&chunk->page_list[nmap_index])+
2489 first_dma_addr = sg_dma_address(&chunk->page_list[nmap_index])+
2496 cpu_to_le32((u32)(sg_dma_address(&chunk->page_list[nmap_index])+
2499 cpu_to_le32((u32)((((u64)(sg_dma_address(&chunk->page_list[nmap_index])+
2613 for (nmap_index = 0; nmap_index < chunk->nmap; ++nmap_index) {
2614 chunk_pages = sg_dma_len(&chunk->page_list[nmap_index]) >> 12;
2615 chunk_pages += (sg_dma_len(&chunk->page_list[nmap_index]) & (4096-1)) ? 1 : 0;
2619 (sg_dma_address(&chunk->page_list[nmap_index])+
2622 (sg_dma_address(&chunk->page_list[nmap_index])+