/linux/include/rdma/ |
A 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); \
|
A D | ib_verbs.h | 2857 unsigned long pgsz); 2881 #define rdma_for_each_block(sglist, biter, nents, pgsz) \ argument 2883 pgsz); \
|
/linux/drivers/iommu/ |
A 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)
|
A 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/tools/perf/jvmti/ |
A 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/drivers/infiniband/hw/bnxt_re/ |
A 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/drivers/pci/ |
A D | iov.c | 702 u32 pgsz; in sriov_init() local 730 pci_read_config_dword(dev, pos + PCI_SRIOV_SUP_PGSIZE, &pgsz); in sriov_init() 732 pgsz &= ~((1 << i) - 1); in sriov_init() 733 if (!pgsz) in sriov_init() 736 pgsz &= ~(pgsz - 1); in sriov_init() 737 pci_write_config_dword(dev, pos + PCI_SRIOV_SYS_PGSIZE, pgsz); in sriov_init() 775 iov->pgsz = pgsz; in sriov_init() 841 pci_write_config_dword(dev, iov->pos + PCI_SRIOV_SYS_PGSIZE, iov->pgsz); in sriov_restore_state()
|
A D | pci.h | 292 u32 pgsz; /* Page size for BAR alignment */ member
|
/linux/drivers/mtd/nand/raw/ |
A D | nandsim.c | 316 uint pgsz; /* NAND flash page size, bytes */ member 653 ns->geom.pgsz = mtd->writesize; in ns_init() 656 ns->geom.pgszoob = ns->geom.pgsz + ns->geom.oobsz; in ns_init() 661 ns->geom.pgsec = ns->geom.secsz / ns->geom.pgsz; in ns_init() 665 if (ns->geom.pgsz == 512) { in ns_init() 669 } else if (ns->geom.pgsz == 2048) { in ns_init() 671 } else if (ns->geom.pgsz == 4096) { in ns_init() 743 printk("page size: %u bytes\n", ns->geom.pgsz); in ns_init() 1609 else if (ns->regs.off < ns->geom.pgsz) in ns_do_state_action() 1707 ns->regs.off = ns->geom.pgsz/2; in ns_do_state_action() [all …]
|
/linux/drivers/net/ethernet/chelsio/libcxgb/ |
A 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()
|
A D | libcxgb_ppm.h | 317 int cxgbi_ppm_find_page_index(struct cxgbi_ppm *ppm, unsigned long pgsz);
|
/linux/arch/mips/sgi-ip22/ |
A 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/drivers/net/ethernet/qlogic/qed/ |
A D | qed_sriov.h | 99 u32 pgsz; /* page size for BAR alignment */ member
|
A 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/drivers/scsi/mpi3mr/ |
A D | mpi3mr.h | 395 u8 pgsz; member
|
A D | mpi3mr_os.c | 748 ((1 << tgtdev->dev_spec.pcie_inf.pgsz) - 1)); in mpi3mr_update_sdev() 855 tgtdev->dev_spec.pcie_inf.pgsz = 12; in mpi3mr_update_tgtdev() 859 tgtdev->dev_spec.pcie_inf.pgsz = pcieinf->page_size; in mpi3mr_update_tgtdev() 3195 ((1 << tgt_dev->dev_spec.pcie_inf.pgsz) - 1)); in mpi3mr_slave_configure()
|
/linux/drivers/hwtracing/intel_th/ |
A D | msu.c | 1407 size_t pgsz = PFN_DOWN(sg->length); in msc_buffer_get_page() local 1409 if (pgoff < pgsz) in msc_buffer_get_page() 1412 pgoff -= pgsz; in msc_buffer_get_page()
|
/linux/drivers/net/ethernet/broadcom/bnx2x/ |
A D | bnx2x_sriov.h | 56 u32 pgsz; /* page size for BAR alignment */ member
|
A 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/drivers/infiniband/core/ |
A D | verbs.c | 2951 unsigned long pgsz) in __rdma_block_iter_start() argument 2958 biter->__pg_bit = __fls(pgsz); in __rdma_block_iter_start()
|