/Linux-v5.10/include/rdma/ |
D | ib_umem.h | 38 unsigned long pgsz) in ib_umem_num_dma_blocks() argument 40 return (size_t)((ALIGN(umem->iova + umem->length, pgsz) - in ib_umem_num_dma_blocks() 41 ALIGN_DOWN(umem->iova, pgsz))) / in ib_umem_num_dma_blocks() 42 pgsz; in ib_umem_num_dma_blocks() 52 unsigned long pgsz) in __rdma_umem_block_iter_start() argument 54 __rdma_block_iter_start(biter, umem->sg_head.sgl, umem->nmap, pgsz); in __rdma_umem_block_iter_start() 68 #define rdma_umem_for_each_dma_block(umem, biter, pgsz) \ argument 69 for (__rdma_umem_block_iter_start(biter, umem, pgsz); \
|
D | ib_verbs.h | 2798 unsigned long pgsz); 2822 #define rdma_for_each_block(sglist, biter, nents, pgsz) \ argument 2824 pgsz); \
|
/Linux-v5.10/drivers/iommu/ |
D | omap-iommu.h | 24 u32 pgsz, prsvd, valid; member 194 #define get_cam_va_mask(pgsz) \ argument 195 (((pgsz) == MMU_CAM_PGSZ_16M) ? 0xff000000 : \ 196 ((pgsz) == MMU_CAM_PGSZ_1M) ? 0xfff00000 : \ 197 ((pgsz) == MMU_CAM_PGSZ_64K) ? 0xffff0000 : \ 198 ((pgsz) == MMU_CAM_PGSZ_4K) ? 0xfffff000 : 0)
|
D | omap-iommu.c | 227 attr <<= (((e->pgsz == MMU_CAM_PGSZ_4K) || in get_iopte_attr() 228 (e->pgsz == MMU_CAM_PGSZ_64K)) ? 0 : 6); in get_iopte_attr() 309 if (e->da & ~(get_cam_va_mask(e->pgsz))) { in iotlb_alloc_cr() 319 cr->cam = (e->da & MMU_CAM_VATAG_MASK) | e->prsvd | e->pgsz | e->valid; in iotlb_alloc_cr() 631 switch (e->pgsz) { in iopgtable_store_entry_core() 1310 static u32 iotlb_init_entry(struct iotlb_entry *e, u32 da, u32 pa, int pgsz) in iotlb_init_entry() argument 1317 e->pgsz = pgsz; in iotlb_init_entry() 1322 return iopgsz_to_bytes(e->pgsz); in iotlb_init_entry()
|
/Linux-v5.10/tools/perf/jvmti/ |
D | jvmti_agent.c | 199 long pgsz; in perf_open_marker_file() local 201 pgsz = sysconf(_SC_PAGESIZE); in perf_open_marker_file() 202 if (pgsz == -1) in perf_open_marker_file() 216 marker_addr = mmap(NULL, pgsz, PROT_READ|PROT_EXEC, MAP_PRIVATE, fd, 0); in perf_open_marker_file() 223 long pgsz; in perf_close_marker_file() local 228 pgsz = sysconf(_SC_PAGESIZE); in perf_close_marker_file() 229 if (pgsz == -1) in perf_close_marker_file() 232 munmap(marker_addr, pgsz); in perf_close_marker_file()
|
/Linux-v5.10/drivers/infiniband/hw/bnxt_re/ |
D | qplib_rcfw.c | 472 u8 pgsz, lvl; in bnxt_qplib_init_rcfw() local 494 pgsz = bnxt_qplib_base_pg_size(&ctx->qpc_tbl); in bnxt_qplib_init_rcfw() 495 req.qpc_pg_size_qpc_lvl = (pgsz << CMDQ_INITIALIZE_FW_QPC_PG_SIZE_SFT) | in bnxt_qplib_init_rcfw() 498 pgsz = bnxt_qplib_base_pg_size(&ctx->mrw_tbl); in bnxt_qplib_init_rcfw() 499 req.mrw_pg_size_mrw_lvl = (pgsz << CMDQ_INITIALIZE_FW_QPC_PG_SIZE_SFT) | in bnxt_qplib_init_rcfw() 502 pgsz = bnxt_qplib_base_pg_size(&ctx->srqc_tbl); in bnxt_qplib_init_rcfw() 503 req.srq_pg_size_srq_lvl = (pgsz << CMDQ_INITIALIZE_FW_QPC_PG_SIZE_SFT) | in bnxt_qplib_init_rcfw() 506 pgsz = bnxt_qplib_base_pg_size(&ctx->cq_tbl); in bnxt_qplib_init_rcfw() 507 req.cq_pg_size_cq_lvl = (pgsz << CMDQ_INITIALIZE_FW_QPC_PG_SIZE_SFT) | in bnxt_qplib_init_rcfw() 510 pgsz = bnxt_qplib_base_pg_size(&ctx->tim_tbl); in bnxt_qplib_init_rcfw() [all …]
|
/Linux-v5.10/drivers/pci/ |
D | iov.c | 607 u32 pgsz; in sriov_init() local 635 pci_read_config_dword(dev, pos + PCI_SRIOV_SUP_PGSIZE, &pgsz); in sriov_init() 637 pgsz &= ~((1 << i) - 1); in sriov_init() 638 if (!pgsz) in sriov_init() 641 pgsz &= ~(pgsz - 1); in sriov_init() 642 pci_write_config_dword(dev, pos + PCI_SRIOV_SYS_PGSIZE, pgsz); in sriov_init() 680 iov->pgsz = pgsz; in sriov_init() 746 pci_write_config_dword(dev, iov->pos + PCI_SRIOV_SYS_PGSIZE, iov->pgsz); in sriov_restore_state()
|
D | pci.h | 334 u32 pgsz; /* Page size for BAR alignment */ member
|
/Linux-v5.10/drivers/mtd/nand/raw/ |
D | nandsim.c | 203 #define NS_RAW_OFFSET_OOB(ns) (NS_RAW_OFFSET(ns) + ns->geom.pgsz) 317 uint pgsz; /* NAND flash page size, bytes */ member 654 ns->geom.pgsz = mtd->writesize; in ns_init() 657 ns->geom.pgszoob = ns->geom.pgsz + ns->geom.oobsz; in ns_init() 658 ns->geom.pgnum = div_u64(ns->geom.totsz, ns->geom.pgsz); in ns_init() 662 ns->geom.pgsec = ns->geom.secsz / ns->geom.pgsz; in ns_init() 666 if (ns->geom.pgsz == 512) { in ns_init() 670 } else if (ns->geom.pgsz == 2048) { in ns_init() 672 } else if (ns->geom.pgsz == 4096) { in ns_init() 675 NS_ERR("init_nandsim: unknown page size %u\n", ns->geom.pgsz); in ns_init() [all …]
|
/Linux-v5.10/drivers/net/ethernet/chelsio/libcxgb/ |
D | libcxgb_ppm.c | 65 int cxgbi_ppm_find_page_index(struct cxgbi_ppm *ppm, unsigned long pgsz) in cxgbi_ppm_find_page_index() argument 71 if (pgsz == 1UL << (DDP_PGSZ_BASE_SHIFT + in cxgbi_ppm_find_page_index() 74 __func__, ppm->ndev->name, pgsz, i); in cxgbi_ppm_find_page_index() 78 pr_info("ippm: ddp page size %lu not supported.\n", pgsz); in cxgbi_ppm_find_page_index()
|
D | libcxgb_ppm.h | 317 int cxgbi_ppm_find_page_index(struct cxgbi_ppm *ppm, unsigned long pgsz);
|
/Linux-v5.10/arch/mips/sgi-ip22/ |
D | ip28-berr.c | 314 unsigned int pgsz = (ctl & 2) ? 14:12; /* 16k:4k */ in check_microtlb() local 317 pte += 8*((vaddr >> pgsz) & 0x1ff); in check_microtlb() 327 a += vaddr & ((1 << pgsz) - 1); in check_microtlb()
|
/Linux-v5.10/drivers/net/ethernet/qlogic/qed/ |
D | qed_sriov.h | 99 u32 pgsz; /* page size for BAR alignment */ member
|
D | qed_sriov.c | 369 pos + PCI_SRIOV_SUP_PGSIZE, &iov->pgsz); in qed_iov_pci_cfg_info() 383 iov->nr_virtfn, iov->offset, iov->stride, iov->pgsz); in qed_iov_pci_cfg_info()
|
/Linux-v5.10/drivers/hwtracing/intel_th/ |
D | msu.c | 1391 size_t pgsz = PFN_DOWN(sg->length); in msc_buffer_get_page() local 1393 if (pgoff < pgsz) in msc_buffer_get_page() 1396 pgoff -= pgsz; in msc_buffer_get_page()
|
/Linux-v5.10/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_sriov.h | 56 u32 pgsz; /* page size for BAR alignment */ member
|
D | bnx2x_sriov.c | 1120 pci_read_config_dword(dev, pos + PCI_SRIOV_SUP_PGSIZE, &iov->pgsz); in bnx2x_sriov_pci_cfg_info() 1150 iov->initial, iov->nr_virtfn, iov->offset, iov->stride, iov->pgsz); in bnx2x_sriov_info()
|
/Linux-v5.10/drivers/infiniband/core/ |
D | verbs.c | 2895 unsigned long pgsz) in __rdma_block_iter_start() argument 2902 biter->__pg_bit = __fls(pgsz); in __rdma_block_iter_start()
|