Home
last modified time | relevance | path

Searched refs:NVME_CTRL_PAGE_SIZE (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.10/drivers/nvme/host/
Dpci.c372 unsigned nprps = DIV_ROUND_UP(NVME_MAX_KB_SZ + NVME_CTRL_PAGE_SIZE, in nvme_pci_npages_prp()
373 NVME_CTRL_PAGE_SIZE); in nvme_pci_npages_prp()
548 const int last_prp = NVME_CTRL_PAGE_SIZE / sizeof(__le64) - 1; in nvme_unmap_data()
615 int offset = dma_addr & (NVME_CTRL_PAGE_SIZE - 1); in nvme_pci_setup_prps()
621 length -= (NVME_CTRL_PAGE_SIZE - offset); in nvme_pci_setup_prps()
627 dma_len -= (NVME_CTRL_PAGE_SIZE - offset); in nvme_pci_setup_prps()
629 dma_addr += (NVME_CTRL_PAGE_SIZE - offset); in nvme_pci_setup_prps()
636 if (length <= NVME_CTRL_PAGE_SIZE) { in nvme_pci_setup_prps()
641 nprps = DIV_ROUND_UP(length, NVME_CTRL_PAGE_SIZE); in nvme_pci_setup_prps()
660 if (i == NVME_CTRL_PAGE_SIZE >> 3) { in nvme_pci_setup_prps()
[all …]
Dnvme.h46 #define NVME_CTRL_PAGE_SIZE (1 << NVME_CTRL_PAGE_SHIFT) macro
Dcore.c1981 (ctrl->max_hw_sectors / (NVME_CTRL_PAGE_SIZE >> 9)) + 1; in nvme_set_queue_limits()
1987 blk_queue_virt_boundary(q, NVME_CTRL_PAGE_SIZE - 1); in nvme_set_queue_limits()