Searched refs:NVME_CTRL_PAGE_SIZE (Results 1 – 4 of 4) sorted by relevance
327 NVME_MAX_KB_SZ + NVME_CTRL_PAGE_SIZE, NVME_CTRL_PAGE_SIZE); in apple_nvme_iod_alloc_size()344 const int last_prp = NVME_CTRL_PAGE_SIZE / sizeof(__le64) - 1; in apple_nvme_free_prps()403 int offset = dma_addr & (NVME_CTRL_PAGE_SIZE - 1); in apple_nvme_setup_prps()409 length -= (NVME_CTRL_PAGE_SIZE - offset); in apple_nvme_setup_prps()415 dma_len -= (NVME_CTRL_PAGE_SIZE - offset); in apple_nvme_setup_prps()417 dma_addr += (NVME_CTRL_PAGE_SIZE - offset); in apple_nvme_setup_prps()424 if (length <= NVME_CTRL_PAGE_SIZE) { in apple_nvme_setup_prps()429 nprps = DIV_ROUND_UP(length, NVME_CTRL_PAGE_SIZE); in apple_nvme_setup_prps()448 if (i == NVME_CTRL_PAGE_SIZE >> 3) { in apple_nvme_setup_prps()460 dma_len -= NVME_CTRL_PAGE_SIZE; in apple_nvme_setup_prps()[all …]
38 #define SGES_PER_PAGE (NVME_CTRL_PAGE_SIZE / sizeof(struct nvme_sgl_desc))396 unsigned max_bytes = (NVME_MAX_KB_SZ * 1024) + NVME_CTRL_PAGE_SIZE; in nvme_pci_npages_prp()397 unsigned nprps = DIV_ROUND_UP(max_bytes, NVME_CTRL_PAGE_SIZE); in nvme_pci_npages_prp()398 return DIV_ROUND_UP(8 * nprps, NVME_CTRL_PAGE_SIZE - 8); in nvme_pci_npages_prp()543 const int last_prp = NVME_CTRL_PAGE_SIZE / sizeof(__le64) - 1; in nvme_free_prps()605 int offset = dma_addr & (NVME_CTRL_PAGE_SIZE - 1); in nvme_pci_setup_prps()610 length -= (NVME_CTRL_PAGE_SIZE - offset); in nvme_pci_setup_prps()616 dma_len -= (NVME_CTRL_PAGE_SIZE - offset); in nvme_pci_setup_prps()618 dma_addr += (NVME_CTRL_PAGE_SIZE - offset); in nvme_pci_setup_prps()625 if (length <= NVME_CTRL_PAGE_SIZE) { in nvme_pci_setup_prps()[all …]
47 #define NVME_CTRL_PAGE_SIZE (1 << NVME_CTRL_PAGE_SHIFT) macro
2009 return ctrl->max_hw_sectors / (NVME_CTRL_PAGE_SIZE >> SECTOR_SHIFT) + 1; in nvme_max_drv_segments()2019 lim->virt_boundary_mask = NVME_CTRL_PAGE_SIZE - 1; in nvme_set_ctrl_limits()