Searched refs:NVME_CTRL_PAGE_SIZE (Results 1 – 3 of 3) sorted by relevance
36 #define SGES_PER_PAGE (NVME_CTRL_PAGE_SIZE / sizeof(struct nvme_sgl_desc))375 unsigned max_bytes = (NVME_MAX_KB_SZ * 1024) + NVME_CTRL_PAGE_SIZE; in nvme_pci_npages_prp()376 unsigned nprps = DIV_ROUND_UP(max_bytes, NVME_CTRL_PAGE_SIZE); in nvme_pci_npages_prp()377 return DIV_ROUND_UP(8 * nprps, NVME_CTRL_PAGE_SIZE - 8); in nvme_pci_npages_prp()387 NVME_CTRL_PAGE_SIZE); in nvme_pci_npages_sgl()542 const int last_prp = NVME_CTRL_PAGE_SIZE / sizeof(__le64) - 1; in nvme_free_prps()631 int offset = dma_addr & (NVME_CTRL_PAGE_SIZE - 1); in nvme_pci_setup_prps()637 length -= (NVME_CTRL_PAGE_SIZE - offset); in nvme_pci_setup_prps()643 dma_len -= (NVME_CTRL_PAGE_SIZE - offset); in nvme_pci_setup_prps()645 dma_addr += (NVME_CTRL_PAGE_SIZE - offset); in nvme_pci_setup_prps()[all …]
46 #define NVME_CTRL_PAGE_SIZE (1 << NVME_CTRL_PAGE_SHIFT) macro
2054 (ctrl->max_hw_sectors / (NVME_CTRL_PAGE_SIZE >> 9)) + 1; in nvme_set_queue_limits()2060 blk_queue_virt_boundary(q, NVME_CTRL_PAGE_SIZE - 1); in nvme_set_queue_limits()