/Linux-v5.15/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_wq.c | 45 ((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 …]
|
D | hinic_hw_wq.h | 18 int page_idx; member 25 int page_idx; member
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx4/ |
D | icm.h | 75 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-v5.15/drivers/infiniband/hw/mlx5/ |
D | dm.c | 24 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 …]
|
D | main.c | 2130 clear_bit(mentry->page_idx, var_table->bitmap); in mlx5_ib_mmap_free() 2136 mlx5_cmd_free_uar(dev->mdev, mentry->page_idx); in mlx5_ib_mmap_free() 3362 u32 page_idx; in alloc_var_entry() local 3371 page_idx = find_first_zero_bit(var_table->bitmap, in alloc_var_entry() 3373 if (page_idx >= var_table->num_var_hw_entries) { in alloc_var_entry() 3379 set_bit(page_idx, var_table->bitmap); in alloc_var_entry() 3383 (page_idx * var_table->stride_size); in alloc_var_entry() 3384 entry->page_idx = page_idx; in alloc_var_entry() 3396 clear_bit(page_idx, var_table->bitmap); in alloc_var_entry() 3433 &entry->page_idx, sizeof(entry->page_idx)); in UVERBS_HANDLER() [all …]
|
/Linux-v5.15/drivers/infiniband/hw/mthca/ |
D | mthca_memfree.h | 77 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-v5.15/drivers/infiniband/sw/siw/ |
D | siw_mem.h | 60 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-v5.15/drivers/infiniband/hw/hns/ |
D | hns_roce_hem.h | 91 int page_idx; member 144 iter->page_idx = 0; in hns_roce_hem_first() 154 if (++iter->page_idx >= iter->chunk->nsg) { in hns_roce_hem_next() 162 iter->page_idx = 0; in hns_roce_hem_next() 168 return sg_dma_address(&iter->chunk->mem[iter->page_idx]); in hns_roce_hem_addr()
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/ |
D | rx.c | 30 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()
|
D | rx.h | 16 u32 page_idx);
|
/Linux-v5.15/sound/soc/amd/renoir/ |
D | acp3x-pdm-dma.c | 172 u16 page_idx; in config_acp_dma() local 185 for (page_idx = 0; page_idx < rtd->num_pages; page_idx++) { in config_acp_dma()
|
/Linux-v5.15/sound/soc/amd/raven/ |
D | acp3x-pcm-dma.c | 109 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-v5.15/sound/soc/amd/vangogh/ |
D | acp5x-pcm-dma.c | 105 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-v5.15/fs/f2fs/ |
D | file.c | 3414 pgoff_t page_idx = 0, last_idx; in f2fs_release_compress_blocks() local 3464 while (page_idx < last_idx) { in f2fs_release_compress_blocks() 3469 ret = f2fs_get_dnode_of_data(&dn, page_idx, LOOKUP_NODE); in f2fs_release_compress_blocks() 3472 page_idx = f2fs_get_next_page_offset(&dn, in f2fs_release_compress_blocks() 3473 page_idx); in f2fs_release_compress_blocks() 3481 count = min(end_offset - dn.ofs_in_node, last_idx - page_idx); in f2fs_release_compress_blocks() 3491 page_idx += count; in f2fs_release_compress_blocks() 3583 pgoff_t page_idx = 0, last_idx; in f2fs_reserve_compress_blocks() local 3617 while (page_idx < last_idx) { in f2fs_reserve_compress_blocks() 3622 ret = f2fs_get_dnode_of_data(&dn, page_idx, LOOKUP_NODE); in f2fs_reserve_compress_blocks() [all …]
|
/Linux-v5.15/mm/ |
D | percpu-vm.c | 14 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()
|
D | percpu.c | 269 static int __maybe_unused pcpu_page_idx(unsigned int cpu, int page_idx) in pcpu_page_idx() argument 271 return pcpu_unit_map[cpu] * pcpu_unit_pages + page_idx; in pcpu_page_idx() 274 static unsigned long pcpu_unit_page_offset(unsigned int cpu, int page_idx) in pcpu_unit_page_offset() argument 276 return pcpu_unit_offsets[cpu] + (page_idx << PAGE_SHIFT); in pcpu_unit_page_offset() 280 unsigned int cpu, int page_idx) in pcpu_chunk_addr() argument 283 pcpu_unit_page_offset(cpu, page_idx); in pcpu_chunk_addr()
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_rx.c | 59 u16 cqe_bcnt, u32 head_offset, u32 page_idx); 62 u16 cqe_bcnt, u32 head_offset, u32 page_idx); 1338 u32 page_idx = wqe_offset >> PAGE_SHIFT; in mlx5e_handle_rx_cqe_mpwrq_rep() local 1366 rq, wi, cqe_bcnt, head_offset, page_idx); in mlx5e_handle_rx_cqe_mpwrq_rep() 1400 u16 cqe_bcnt, u32 head_offset, u32 page_idx) in mlx5e_skb_from_cqe_mpwrq_nonlinear() argument 1403 struct mlx5e_dma_info *di = &wi->umr.dma_info[page_idx]; in mlx5e_skb_from_cqe_mpwrq_nonlinear() 1446 u16 cqe_bcnt, u32 head_offset, u32 page_idx) in mlx5e_skb_from_cqe_mpwrq_linear() argument 1448 struct mlx5e_dma_info *di = &wi->umr.dma_info[page_idx]; in mlx5e_skb_from_cqe_mpwrq_linear() 1474 __set_bit(page_idx, wi->xdp_xmit_bitmap); /* non-atomic */ in mlx5e_skb_from_cqe_mpwrq_linear() 1498 u32 page_idx = wqe_offset >> PAGE_SHIFT; in mlx5e_handle_rx_cqe_mpwrq() local [all …]
|
D | en.h | 574 u16 cqe_bcnt, u32 head_offset, u32 page_idx);
|
/Linux-v5.15/drivers/mmc/host/ |
D | usdhi6rol0.c | 181 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-v5.15/sound/soc/amd/ |
D | acp-pcm-dma.c | 301 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()
|
/Linux-v5.15/fs/ubifs/ |
D | file.c | 724 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()
|
/Linux-v5.15/drivers/input/touchscreen/ |
D | raydium_i2c_ts.c | 610 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()
|
/Linux-v5.15/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_ttm.c | 839 uint64_t page_idx = 1; in amdgpu_ttm_gart_bind() local 841 r = amdgpu_gart_bind(adev, gtt->offset, page_idx, in amdgpu_ttm_gart_bind() 854 gtt->offset + (page_idx << PAGE_SHIFT), in amdgpu_ttm_gart_bind() 855 ttm->num_pages - page_idx, in amdgpu_ttm_gart_bind() 856 &(gtt->ttm.dma_address[page_idx]), flags); in amdgpu_ttm_gart_bind()
|
/Linux-v5.15/fs/ntfs3/ |
D | fsntfs.c | 1471 u32 add, off, page_idx; in ntfs_bio_pages() local 1492 page_idx = 0; in ntfs_bio_pages() 1499 new = ntfs_alloc_bio(nr_pages - page_idx); in ntfs_bio_pages() 1526 page_idx += 1; in ntfs_bio_pages() 1527 if (WARN_ON(page_idx >= nr_pages)) { in ntfs_bio_pages() 1531 page = pages[page_idx]; in ntfs_bio_pages()
|
/Linux-v5.15/drivers/md/ |
D | raid1.c | 2655 int page_idx = 0; in raid1_sync_request() local 2886 page = resync_fetch_page(rp, page_idx); in raid1_sync_request() 2898 } while (++page_idx < RESYNC_PAGES); in raid1_sync_request()
|