Home
last modified time | relevance | path

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

12

/Linux-v6.6/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_wq.c45 ((void *)((wqs)->page_vaddr[(wq)->page_idx]) \
49 ((wqs)->page_paddr[(wq)->page_idx] \
53 ((void *)((wqs)->shadow_page_vaddr[(wq)->page_idx]) \
137 static int wqs_allocate_page(struct hinic_wqs *wqs, int page_idx) in wqs_allocate_page() argument
139 return queue_alloc_page(wqs->hwif, &wqs->page_vaddr[page_idx], in wqs_allocate_page()
140 &wqs->page_paddr[page_idx], in wqs_allocate_page()
141 &wqs->shadow_page_vaddr[page_idx], in wqs_allocate_page()
150 static void wqs_free_page(struct hinic_wqs *wqs, int page_idx) in wqs_free_page() argument
156 wqs->page_vaddr[page_idx], in wqs_free_page()
157 (dma_addr_t)wqs->page_paddr[page_idx]); in wqs_free_page()
[all …]
Dhinic_hw_wq.h18 int page_idx; member
25 int page_idx; member
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx4/
Dicm.h75 int page_idx; member
103 iter->page_idx = 0; in mlx4_icm_first()
113 if (++iter->page_idx >= iter->chunk->nsg) { in mlx4_icm_next()
121 iter->page_idx = 0; in mlx4_icm_next()
128 return iter->chunk->buf[iter->page_idx].dma_addr; in mlx4_icm_addr()
130 return sg_dma_address(&iter->chunk->sg[iter->page_idx]); in mlx4_icm_addr()
136 return iter->chunk->buf[iter->page_idx].size; in mlx4_icm_size()
138 return sg_dma_len(&iter->chunk->sg[iter->page_idx]); in mlx4_icm_size()
/Linux-v6.6/drivers/infiniband/hw/mlx5/
Ddm.c24 u64 page_idx = 0; in mlx5_cmd_alloc_memic() local
44 while (page_idx < num_memic_hw_pages) { in mlx5_cmd_alloc_memic()
46 page_idx = bitmap_find_next_zero_area(dm->memic_alloc_pages, in mlx5_cmd_alloc_memic()
48 page_idx, in mlx5_cmd_alloc_memic()
51 if (page_idx < num_memic_hw_pages) in mlx5_cmd_alloc_memic()
53 page_idx, num_pages); in mlx5_cmd_alloc_memic()
57 if (page_idx >= num_memic_hw_pages) in mlx5_cmd_alloc_memic()
61 hw_start_addr + (page_idx * PAGE_SIZE)); in mlx5_cmd_alloc_memic()
67 page_idx, num_pages); in mlx5_cmd_alloc_memic()
71 page_idx++; in mlx5_cmd_alloc_memic()
[all …]
/Linux-v6.6/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()
/Linux-v6.6/drivers/infiniband/sw/siw/
Dsiw_mem.h60 unsigned int page_idx = (addr - umem->fp_addr) >> PAGE_SHIFT, in siw_get_upage() local
61 chunk_idx = page_idx >> CHUNK_SHIFT, in siw_get_upage()
62 page_in_chunk = page_idx & ~CHUNK_MASK; in siw_get_upage()
64 if (likely(page_idx < umem->num_pages)) in siw_get_upage()
/Linux-v6.6/drivers/infiniband/hw/hns/
Dhns_roce_hem.h91 int page_idx; member
143 iter->page_idx = 0; in hns_roce_hem_first()
153 if (++iter->page_idx >= iter->chunk->nsg) { in hns_roce_hem_next()
161 iter->page_idx = 0; in hns_roce_hem_next()
167 return sg_dma_address(&iter->chunk->mem[iter->page_idx]); in hns_roce_hem_addr()
/Linux-v6.6/sound/soc/sof/amd/
Dacp-stream.c34 int page_idx; in acp_dsp_stream_config() local
106 for (page_idx = 0; page_idx < stream->num_pages; page_idx++) { in acp_dsp_stream_config()
107 addr = snd_sgbuf_get_addr(stream->dmab, page_idx * PAGE_SIZE); in acp_dsp_stream_config()
Dacp-loader.c113 u16 page_idx; in configure_pte_for_fw_loading() local
136 for (page_idx = 0; page_idx < num_pages; page_idx++) { in configure_pte_for_fw_loading()
/Linux-v6.6/sound/soc/amd/acp/
Dacp-platform.c155 u16 page_idx; in config_acp_dma() local
159 for (page_idx = 0; page_idx < num_pages; page_idx++) { in config_acp_dma()
/Linux-v6.6/sound/soc/amd/ps/
Dps-pdm-dma.c159 u16 page_idx; in acp63_config_dma() local
169 for (page_idx = 0; page_idx < rtd->num_pages; page_idx++) { in acp63_config_dma()
Dps-sdw-dma.c143 u16 page_idx; in acp63_config_dma() local
155 for (page_idx = 0; page_idx < stream->num_pages; page_idx++) { in acp63_config_dma()
/Linux-v6.6/sound/soc/amd/yc/
Dacp6x-pdm-dma.c155 u16 page_idx; in acp6x_config_dma() local
167 for (page_idx = 0; page_idx < rtd->num_pages; page_idx++) { in acp6x_config_dma()
/Linux-v6.6/sound/soc/amd/renoir/
Dacp3x-pdm-dma.c178 u16 page_idx; in config_acp_dma() local
191 for (page_idx = 0; page_idx < rtd->num_pages; page_idx++) { in config_acp_dma()
/Linux-v6.6/sound/soc/amd/raven/
Dacp3x-pcm-dma.c109 u16 page_idx; in config_acp3x_dma() local
141 for (page_idx = 0; page_idx < rtd->num_pages; page_idx++) { in config_acp3x_dma()
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
Drx.h19 u32 page_idx);
Drx.c252 u32 page_idx) in mlx5e_xsk_skb_from_cqe_mpwrq_linear() argument
254 struct mlx5e_xdp_buff *mxbuf = xsk_buff_to_mxbuf(wi->alloc_units.xsk_buffs[page_idx]); in mlx5e_xsk_skb_from_cqe_mpwrq_linear()
294 __set_bit(page_idx, wi->skip_release_bitmap); /* non-atomic */ in mlx5e_xsk_skb_from_cqe_mpwrq_linear()
/Linux-v6.6/drivers/vfio/
Diova_bitmap.c411 unsigned int page_idx = cur_bit / BITS_PER_PAGE; in iova_bitmap_set() local
417 kaddr = kmap_local_page(mapped->pages[page_idx]); in iova_bitmap_set()
/Linux-v6.6/sound/soc/amd/vangogh/
Dacp5x-pcm-dma.c105 u16 page_idx; in config_acp5x_dma() local
136 for (page_idx = 0; page_idx < rtd->num_pages; page_idx++) { in config_acp5x_dma()
/Linux-v6.6/fs/f2fs/
Dfile.c3485 pgoff_t page_idx = 0, last_idx; in f2fs_release_compress_blocks() local
3537 while (page_idx < last_idx) { in f2fs_release_compress_blocks()
3542 ret = f2fs_get_dnode_of_data(&dn, page_idx, LOOKUP_NODE); in f2fs_release_compress_blocks()
3545 page_idx = f2fs_get_next_page_offset(&dn, in f2fs_release_compress_blocks()
3546 page_idx); in f2fs_release_compress_blocks()
3554 count = min(end_offset - dn.ofs_in_node, last_idx - page_idx); in f2fs_release_compress_blocks()
3564 page_idx += count; in f2fs_release_compress_blocks()
3658 pgoff_t page_idx = 0, last_idx; in f2fs_reserve_compress_blocks() local
3692 while (page_idx < last_idx) { in f2fs_reserve_compress_blocks()
3697 ret = f2fs_get_dnode_of_data(&dn, page_idx, LOOKUP_NODE); in f2fs_reserve_compress_blocks()
[all …]
/Linux-v6.6/mm/
Dpercpu-vm.c14 unsigned int cpu, int page_idx) in pcpu_chunk_page() argument
19 return vmalloc_to_page((void *)pcpu_chunk_addr(chunk, cpu, page_idx)); in pcpu_chunk_page()
/Linux-v6.6/Documentation/translations/zh_CN/mm/
Dhugetlbfs_reserv.rst323 围是[page_idx, page_idx + 1]。
/Linux-v6.6/drivers/mmc/host/
Dusdhi6rol0.c181 int page_idx; /* page index within an SG segment */ member
419 (host->page_idx << PAGE_SHIFT) + data->blksz - blk_head) in usdhi6_sg_unmap()
443 host->page_idx++; in usdhi6_sg_advance()
453 host->page_idx++; in usdhi6_sg_advance()
463 done = (host->page_idx << PAGE_SHIFT) + host->offset; in usdhi6_sg_advance()
489 host->page_idx = 0; in usdhi6_sg_advance()
506 host->pg.page = nth_page(sg_page(host->sg), host->page_idx); in usdhi6_sg_advance()
1011 host->page_idx = 0; in usdhi6_rq_start()
1722 data->flags & MMC_DATA_READ ? 'R' : 'W', host->page_idx, in usdhi6_timeout_work()
/Linux-v6.6/fs/ubifs/
Dfile.c723 int err, page_idx, page_cnt, ret = 0, n = 0; in ubifs_do_bulk_read() local
782 for (page_idx = 1; page_idx < page_cnt; page_idx++) { in ubifs_do_bulk_read()
783 pgoff_t page_offset = offset + page_idx; in ubifs_do_bulk_read()
801 ui->last_page_read = offset + page_idx - 1; in ubifs_do_bulk_read()
/Linux-v6.6/sound/soc/amd/
Dacp-pcm-dma.c301 u16 page_idx; in acp_pte_config() local
307 for (page_idx = 0; page_idx < (num_of_pages); page_idx++) { in acp_pte_config()
309 acp_reg_write((offset + (page_idx * 8)), in acp_pte_config()
318 acp_reg_write((offset + (page_idx * 8) + 4), in acp_pte_config()

12