Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/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]) \
136 static int wqs_allocate_page(struct hinic_wqs *wqs, int page_idx) in wqs_allocate_page() argument
138 return queue_alloc_page(wqs->hwif, &wqs->page_vaddr[page_idx], in wqs_allocate_page()
139 &wqs->page_paddr[page_idx], in wqs_allocate_page()
140 &wqs->shadow_page_vaddr[page_idx], in wqs_allocate_page()
149 static void wqs_free_page(struct hinic_wqs *wqs, int page_idx) in wqs_free_page() argument
155 wqs->page_vaddr[page_idx], in wqs_free_page()
156 (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
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/
Dcmd.c62 u64 page_idx = 0; in mlx5_cmd_alloc_memic() local
82 while (page_idx < num_memic_hw_pages) { in mlx5_cmd_alloc_memic()
84 page_idx = bitmap_find_next_zero_area(dm->memic_alloc_pages, in mlx5_cmd_alloc_memic()
86 page_idx, in mlx5_cmd_alloc_memic()
89 if (page_idx < num_memic_hw_pages) in mlx5_cmd_alloc_memic()
91 page_idx, num_pages); in mlx5_cmd_alloc_memic()
95 if (page_idx >= num_memic_hw_pages) in mlx5_cmd_alloc_memic()
99 hw_start_addr + (page_idx * PAGE_SIZE)); in mlx5_cmd_alloc_memic()
105 page_idx, num_pages); in mlx5_cmd_alloc_memic()
109 page_idx++; in mlx5_cmd_alloc_memic()
Dmain.c2098 clear_bit(mentry->page_idx, var_table->bitmap); in mlx5_ib_mmap_free()
2104 mlx5_cmd_free_uar(dev->mdev, mentry->page_idx); in mlx5_ib_mmap_free()
2365 u16 page_idx; in handle_alloc_dm_memic() local
2381 page_idx = dm->mentry.rdma_entry.start_pgoff & 0xFFFF; in handle_alloc_dm_memic()
2384 &page_idx, in handle_alloc_dm_memic()
2385 sizeof(page_idx)); in handle_alloc_dm_memic()
3634 u32 page_idx; in alloc_var_entry() local
3643 page_idx = find_first_zero_bit(var_table->bitmap, in alloc_var_entry()
3645 if (page_idx >= var_table->num_var_hw_entries) { in alloc_var_entry()
3651 set_bit(page_idx, var_table->bitmap); in alloc_var_entry()
[all …]
Dmlx5_ib.h556 u32 page_idx; member
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
Dhns_roce_hem.h97 int page_idx; member
150 iter->page_idx = 0; in hns_roce_hem_first()
160 if (++iter->page_idx >= iter->chunk->nsg) { in hns_roce_hem_next()
168 iter->page_idx = 0; in hns_roce_hem_next()
174 return sg_dma_address(&iter->chunk->mem[iter->page_idx]); in hns_roce_hem_addr()
/kernel/linux/linux-5.10/drivers/infiniband/sw/siw/
Dsiw_mem.h65 unsigned int page_idx = (addr - umem->fp_addr) >> PAGE_SHIFT, in siw_get_upage() local
66 chunk_idx = page_idx >> CHUNK_SHIFT, in siw_get_upage()
67 page_in_chunk = page_idx & ~CHUNK_MASK; in siw_get_upage()
69 if (likely(page_idx < umem->num_pages)) in siw_get_upage()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
Drx.c30 u32 page_idx) in mlx5e_xsk_skb_from_cqe_mpwrq_linear() argument
32 struct xdp_buff *xdp = wi->umr.dma_info[page_idx].xsk; in mlx5e_xsk_skb_from_cqe_mpwrq_linear()
70 __set_bit(page_idx, wi->xdp_xmit_bitmap); /* non-atomic */ in mlx5e_xsk_skb_from_cqe_mpwrq_linear()
Drx.h16 u32 page_idx);
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/sound/soc/amd/raven/
Dacp3x-pcm-dma.c111 u16 page_idx; in config_acp3x_dma() local
143 for (page_idx = 0; page_idx < rtd->num_pages; page_idx++) { in config_acp3x_dma()
/kernel/linux/linux-5.10/mm/
Dpercpu-vm.c13 unsigned int cpu, int page_idx) in pcpu_chunk_page() argument
18 return vmalloc_to_page((void *)pcpu_chunk_addr(chunk, cpu, page_idx)); in pcpu_chunk_page()
Dpercpu.c263 static int __maybe_unused pcpu_page_idx(unsigned int cpu, int page_idx) in pcpu_page_idx() argument
265 return pcpu_unit_map[cpu] * pcpu_unit_pages + page_idx; in pcpu_page_idx()
268 static unsigned long pcpu_unit_page_offset(unsigned int cpu, int page_idx) in pcpu_unit_page_offset() argument
270 return pcpu_unit_offsets[cpu] + (page_idx << PAGE_SHIFT); in pcpu_unit_page_offset()
274 unsigned int cpu, int page_idx) in pcpu_chunk_addr() argument
277 pcpu_unit_page_offset(cpu, page_idx); in pcpu_chunk_addr()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Den_rx.c59 u16 cqe_bcnt, u32 head_offset, u32 page_idx);
62 u16 cqe_bcnt, u32 head_offset, u32 page_idx);
1341 u32 page_idx = wqe_offset >> PAGE_SHIFT; in mlx5e_handle_rx_cqe_mpwrq_rep() local
1369 rq, wi, cqe_bcnt, head_offset, page_idx); in mlx5e_handle_rx_cqe_mpwrq_rep()
1403 u16 cqe_bcnt, u32 head_offset, u32 page_idx) in mlx5e_skb_from_cqe_mpwrq_nonlinear() argument
1406 struct mlx5e_dma_info *di = &wi->umr.dma_info[page_idx]; in mlx5e_skb_from_cqe_mpwrq_nonlinear()
1449 u16 cqe_bcnt, u32 head_offset, u32 page_idx) in mlx5e_skb_from_cqe_mpwrq_linear() argument
1451 struct mlx5e_dma_info *di = &wi->umr.dma_info[page_idx]; in mlx5e_skb_from_cqe_mpwrq_linear()
1477 __set_bit(page_idx, wi->xdp_xmit_bitmap); /* non-atomic */ in mlx5e_skb_from_cqe_mpwrq_linear()
1501 u32 page_idx = wqe_offset >> PAGE_SHIFT; in mlx5e_handle_rx_cqe_mpwrq() local
[all …]
Den.h542 u16 cqe_bcnt, u32 head_offset, u32 page_idx);
/kernel/linux/linux-5.10/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()
1712 data->flags & MMC_DATA_READ ? 'R' : 'W', host->page_idx, in usdhi6_timeout_work()
/kernel/linux/linux-5.10/fs/ubifs/
Dfile.c724 int err, page_idx, page_cnt, ret = 0, n = 0; in ubifs_do_bulk_read() local
783 for (page_idx = 1; page_idx < page_cnt; page_idx++) { in ubifs_do_bulk_read()
784 pgoff_t page_offset = offset + page_idx; in ubifs_do_bulk_read()
802 ui->last_page_read = offset + page_idx - 1; in ubifs_do_bulk_read()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/fs/f2fs/
Dfile.c3512 pgoff_t page_idx = 0, last_idx; in f2fs_release_compress_blocks() local
3563 while (page_idx < last_idx) { in f2fs_release_compress_blocks()
3568 ret = f2fs_get_dnode_of_data(&dn, page_idx, LOOKUP_NODE); in f2fs_release_compress_blocks()
3571 page_idx = f2fs_get_next_page_offset(&dn, in f2fs_release_compress_blocks()
3572 page_idx); in f2fs_release_compress_blocks()
3580 count = min(end_offset - dn.ofs_in_node, last_idx - page_idx); in f2fs_release_compress_blocks()
3590 page_idx += count; in f2fs_release_compress_blocks()
3682 pgoff_t page_idx = 0, last_idx; in f2fs_reserve_compress_blocks() local
3716 while (page_idx < last_idx) { in f2fs_reserve_compress_blocks()
3721 ret = f2fs_get_dnode_of_data(&dn, page_idx, LOOKUP_NODE); in f2fs_reserve_compress_blocks()
[all …]
/kernel/linux/linux-5.10/drivers/input/touchscreen/
Draydium_i2c_ts.c610 u16 page_idx, const void *data, size_t len) in raydium_i2c_fw_write_page() argument
621 buf[BL_PAGE_STR] = page_idx ? 0xff : 0; in raydium_i2c_fw_write_page()
635 page_idx, i, error); in raydium_i2c_fw_write_page()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ttm.c1072 uint64_t page_idx = 1; in amdgpu_ttm_gart_bind() local
1074 r = amdgpu_gart_bind(adev, gtt->offset, page_idx, in amdgpu_ttm_gart_bind()
1087 gtt->offset + (page_idx << PAGE_SHIFT), in amdgpu_ttm_gart_bind()
1088 ttm->num_pages - page_idx, in amdgpu_ttm_gart_bind()
1089 &ttm->pages[page_idx], in amdgpu_ttm_gart_bind()
1090 &(gtt->ttm.dma_address[page_idx]), flags); in amdgpu_ttm_gart_bind()
/kernel/linux/linux-5.10/drivers/md/
Draid1.c2630 int page_idx = 0; in raid1_sync_request() local
2861 page = resync_fetch_page(rp, page_idx); in raid1_sync_request()
2873 } while (++page_idx < RESYNC_PAGES); in raid1_sync_request()
/kernel/linux/linux-5.10/Documentation/vm/
Dhugetlbfs_reserv.rst431 [page_idx, page_idx + 1).

12