Home
last modified time | relevance | path

Searched refs:page_idx (Results 1 – 6 of 6) sorted by relevance

/drivers/dma/
Diovlock.c158 int page_idx; in dma_memcpy_to_iovec() local
174 page_idx = (((unsigned long)iov[iovec_idx].iov_base & PAGE_MASK) in dma_memcpy_to_iovec()
183 page_list->pages[page_idx], in dma_memcpy_to_iovec()
202 page_idx++; in dma_memcpy_to_iovec()
220 int page_idx; in dma_memcpy_pg_to_iovec() local
243 page_idx = (((unsigned long)iov[iovec_idx].iov_base & PAGE_MASK) in dma_memcpy_pg_to_iovec()
252 page_list->pages[page_idx], in dma_memcpy_pg_to_iovec()
272 page_idx++; in dma_memcpy_pg_to_iovec()
/drivers/net/ethernet/mellanox/mlx4/
Dicm.h65 int page_idx; member
99 iter->page_idx = 0; in mlx4_icm_first()
109 if (++iter->page_idx >= iter->chunk->nsg) { in mlx4_icm_next()
117 iter->page_idx = 0; in mlx4_icm_next()
123 return sg_dma_address(&iter->chunk->mem[iter->page_idx]); in mlx4_icm_addr()
128 return sg_dma_len(&iter->chunk->mem[iter->page_idx]); in mlx4_icm_size()
/drivers/infiniband/hw/mthca/
Dmthca_memfree.h77 int page_idx; member
106 iter->page_idx = 0; in mthca_icm_first()
116 if (++iter->page_idx >= iter->chunk->nsg) { in mthca_icm_next()
124 iter->page_idx = 0; in mthca_icm_next()
130 return sg_dma_address(&iter->chunk->mem[iter->page_idx]); in mthca_icm_addr()
135 return sg_dma_len(&iter->chunk->mem[iter->page_idx]); in mthca_icm_size()
/drivers/net/ethernet/brocade/bna/
Dbna_types.h468 int page_idx; member
603 int page_idx; member
668 int page_idx; member
Dbna_tx_rx.c2456 q0->rcb->page_idx = dpage_idx; in bna_rx_create()
2485 q1->rcb->page_idx = hpage_idx; in bna_rx_create()
2520 rxp->cq.ccb->page_idx = cpage_idx; in bna_rx_create()
3468 int page_idx; in bna_tx_create() local
3539 page_idx = 0; in bna_tx_create()
3583 res_u.mem_info.mdl[page_idx]); in bna_tx_create()
3584 txq->tcb->page_idx = page_idx; in bna_tx_create()
3586 page_idx += page_count; in bna_tx_create()
/drivers/scsi/cxgbi/
Dlibcxgbi.c951 static unsigned char page_idx = DDP_PGIDX_MAX; variable
995 if (page_idx == DDP_PGIDX_MAX) { in ddp_setup_host_page_size()
996 page_idx = ddp_find_page_index(PAGE_SIZE); in ddp_setup_host_page_size()
998 if (page_idx == DDP_PGIDX_MAX) { in ddp_setup_host_page_size()
1004 page_idx = ddp_find_page_index(PAGE_SIZE); in ddp_setup_host_page_size()
1006 pr_info("system PAGE %lu, ddp idx %u.\n", PAGE_SIZE, page_idx); in ddp_setup_host_page_size()
1312 if (page_idx >= DDP_PGIDX_MAX || !cdev->ddp || in cxgbi_ddp_reserve()
1315 "pgidx %u, xfer %u, NO ddp.\n", page_idx, xferlen); in cxgbi_ddp_reserve()
2266 err = csk->cdev->csk_ddp_setup_pgidx(csk, csk->tid, page_idx, 0); in cxgbi_bind_conn()