/linux-6.1.9/include/rdma/ |
D | ib_umem.h | 56 unsigned long pgsz) in ib_umem_dma_offset() argument 59 (pgsz - 1); in ib_umem_dma_offset() 63 unsigned long pgsz) in ib_umem_num_dma_blocks() argument 65 return (size_t)((ALIGN(umem->iova + umem->length, pgsz) - in ib_umem_num_dma_blocks() 66 ALIGN_DOWN(umem->iova, pgsz))) / in ib_umem_num_dma_blocks() 67 pgsz; in ib_umem_num_dma_blocks() 77 unsigned long pgsz) in __rdma_umem_block_iter_start() argument 80 umem->sgt_append.sgt.nents, pgsz); in __rdma_umem_block_iter_start() 94 #define rdma_umem_for_each_dma_block(umem, biter, pgsz) \ argument 95 for (__rdma_umem_block_iter_start(biter, umem, pgsz); \
|
D | ib_verbs.h | 2867 unsigned long pgsz); 2891 #define rdma_for_each_block(sglist, biter, nents, pgsz) \ argument 2893 pgsz); \
|
/linux-6.1.9/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 | 226 attr <<= (((e->pgsz == MMU_CAM_PGSZ_4K) || in get_iopte_attr() 227 (e->pgsz == MMU_CAM_PGSZ_64K)) ? 0 : 6); in get_iopte_attr() 308 if (e->da & ~(get_cam_va_mask(e->pgsz))) { in iotlb_alloc_cr() 318 cr->cam = (e->da & MMU_CAM_VATAG_MASK) | e->prsvd | e->pgsz | e->valid; in iotlb_alloc_cr() 630 switch (e->pgsz) { in iopgtable_store_entry_core() 1306 static u32 iotlb_init_entry(struct iotlb_entry *e, u32 da, u32 pa, int pgsz) in iotlb_init_entry() argument 1313 e->pgsz = pgsz; in iotlb_init_entry() 1318 return iopgsz_to_bytes(e->pgsz); in iotlb_init_entry()
|
/linux-6.1.9/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-6.1.9/drivers/infiniband/hw/bnxt_re/ |
D | qplib_rcfw.c | 476 u8 pgsz, lvl; in bnxt_qplib_init_rcfw() local 498 pgsz = bnxt_qplib_base_pg_size(&ctx->qpc_tbl); in bnxt_qplib_init_rcfw() 499 req.qpc_pg_size_qpc_lvl = (pgsz << CMDQ_INITIALIZE_FW_QPC_PG_SIZE_SFT) | in bnxt_qplib_init_rcfw() 502 pgsz = bnxt_qplib_base_pg_size(&ctx->mrw_tbl); in bnxt_qplib_init_rcfw() 503 req.mrw_pg_size_mrw_lvl = (pgsz << CMDQ_INITIALIZE_FW_QPC_PG_SIZE_SFT) | in bnxt_qplib_init_rcfw() 506 pgsz = bnxt_qplib_base_pg_size(&ctx->srqc_tbl); in bnxt_qplib_init_rcfw() 507 req.srq_pg_size_srq_lvl = (pgsz << CMDQ_INITIALIZE_FW_QPC_PG_SIZE_SFT) | in bnxt_qplib_init_rcfw() 510 pgsz = bnxt_qplib_base_pg_size(&ctx->cq_tbl); in bnxt_qplib_init_rcfw() 511 req.cq_pg_size_cq_lvl = (pgsz << CMDQ_INITIALIZE_FW_QPC_PG_SIZE_SFT) | in bnxt_qplib_init_rcfw() 514 pgsz = bnxt_qplib_base_pg_size(&ctx->tim_tbl); in bnxt_qplib_init_rcfw() [all …]
|
/linux-6.1.9/drivers/pci/ |
D | iov.c | 745 u32 pgsz; in sriov_init() local 773 pci_read_config_dword(dev, pos + PCI_SRIOV_SUP_PGSIZE, &pgsz); in sriov_init() 775 pgsz &= ~((1 << i) - 1); in sriov_init() 776 if (!pgsz) in sriov_init() 779 pgsz &= ~(pgsz - 1); in sriov_init() 780 pci_write_config_dword(dev, pos + PCI_SRIOV_SYS_PGSIZE, pgsz); in sriov_init() 818 iov->pgsz = pgsz; in sriov_init() 884 pci_write_config_dword(dev, iov->pos + PCI_SRIOV_SYS_PGSIZE, iov->pgsz); in sriov_restore_state()
|
D | pci.h | 292 u32 pgsz; /* Page size for BAR alignment */ member
|
/linux-6.1.9/drivers/mtd/nand/raw/ |
D | nandsim.c | 202 #define NS_RAW_OFFSET_OOB(ns) (NS_RAW_OFFSET(ns) + ns->geom.pgsz) 319 uint pgsz; /* NAND flash page size, bytes */ member 656 ns->geom.pgsz = mtd->writesize; in ns_init() 659 ns->geom.pgszoob = ns->geom.pgsz + ns->geom.oobsz; in ns_init() 660 ns->geom.pgnum = div_u64(ns->geom.totsz, ns->geom.pgsz); in ns_init() 664 ns->geom.pgsec = ns->geom.secsz / ns->geom.pgsz; in ns_init() 668 if (ns->geom.pgsz == 512) { in ns_init() 672 } else if (ns->geom.pgsz == 2048) { in ns_init() 674 } else if (ns->geom.pgsz == 4096) { in ns_init() 677 NS_ERR("init_nandsim: unknown page size %u\n", ns->geom.pgsz); in ns_init() [all …]
|
/linux-6.1.9/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-6.1.9/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-6.1.9/tools/testing/selftests/bpf/prog_tests/ |
D | bpf_iter.c | 1503 int pgsz, shift; in test_task_vma_offset_common() local 1511 for (pgsz = getpagesize(), shift = 0; pgsz > 1; pgsz >>= 1, shift++) in test_task_vma_offset_common()
|
/linux-6.1.9/drivers/net/ethernet/qlogic/qed/ |
D | qed_sriov.h | 100 u32 pgsz; /* page size for BAR alignment */ member
|
D | qed_sriov.c | 371 pos + PCI_SRIOV_SUP_PGSIZE, &iov->pgsz); in qed_iov_pci_cfg_info() 385 iov->nr_virtfn, iov->offset, iov->stride, iov->pgsz); in qed_iov_pci_cfg_info()
|
/linux-6.1.9/drivers/hwtracing/intel_th/ |
D | msu.c | 1415 size_t pgsz = PFN_DOWN(sg->length); in msc_buffer_get_page() local 1417 if (pgoff < pgsz) in msc_buffer_get_page() 1420 pgoff -= pgsz; in msc_buffer_get_page()
|
/linux-6.1.9/drivers/scsi/mpi3mr/ |
D | mpi3mr_os.c | 1004 if (tgtdev->dev_spec.pcie_inf.pgsz == 0) in mpi3mr_update_sdev() 1009 ((1 << tgtdev->dev_spec.pcie_inf.pgsz) - 1)); in mpi3mr_update_sdev() 1165 tgtdev->dev_spec.pcie_inf.pgsz = 12; in mpi3mr_update_tgtdev() 1169 tgtdev->dev_spec.pcie_inf.pgsz = pcieinf->page_size; in mpi3mr_update_tgtdev() 4310 if (tgt_dev->dev_spec.pcie_inf.pgsz == 0) in mpi3mr_slave_configure() 4315 ((1 << tgt_dev->dev_spec.pcie_inf.pgsz) - 1)); in mpi3mr_slave_configure()
|
D | mpi3mr_app.c | 740 if (tgtdev->dev_spec.pcie_inf.pgsz == 0) { in mpi3mr_build_nvme_prp() 748 dev_pgsz = 1 << (tgtdev->dev_spec.pcie_inf.pgsz); in mpi3mr_build_nvme_prp()
|
D | mpi3mr.h | 620 u8 pgsz; member
|
/linux-6.1.9/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_sriov.h | 56 u32 pgsz; /* page size for BAR alignment */ member
|
D | bnx2x_sriov.c | 1133 pci_read_config_dword(dev, pos + PCI_SRIOV_SUP_PGSIZE, &iov->pgsz); in bnx2x_sriov_pci_cfg_info() 1163 iov->initial, iov->nr_virtfn, iov->offset, iov->stride, iov->pgsz); in bnx2x_sriov_info()
|
/linux-6.1.9/drivers/infiniband/core/ |
D | verbs.c | 2946 unsigned long pgsz) in __rdma_block_iter_start() argument 2953 biter->__pg_bit = __fls(pgsz); in __rdma_block_iter_start()
|