Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/nvme/host/
Dapple.c327 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 …]
Dpci.c38 #define SGES_PER_PAGE (NVME_CTRL_PAGE_SIZE / sizeof(struct nvme_sgl_desc))
390 unsigned max_bytes = (NVME_MAX_KB_SZ * 1024) + NVME_CTRL_PAGE_SIZE; in nvme_pci_npages_prp()
391 unsigned nprps = DIV_ROUND_UP(max_bytes, NVME_CTRL_PAGE_SIZE); in nvme_pci_npages_prp()
392 return DIV_ROUND_UP(8 * nprps, NVME_CTRL_PAGE_SIZE - 8); in nvme_pci_npages_prp()
526 const int last_prp = NVME_CTRL_PAGE_SIZE / sizeof(__le64) - 1; in nvme_free_prps()
588 int offset = dma_addr & (NVME_CTRL_PAGE_SIZE - 1); in nvme_pci_setup_prps()
593 length -= (NVME_CTRL_PAGE_SIZE - offset); in nvme_pci_setup_prps()
599 dma_len -= (NVME_CTRL_PAGE_SIZE - offset); in nvme_pci_setup_prps()
601 dma_addr += (NVME_CTRL_PAGE_SIZE - offset); in nvme_pci_setup_prps()
608 if (length <= NVME_CTRL_PAGE_SIZE) { in nvme_pci_setup_prps()
[all …]
Dnvme.h46 #define NVME_CTRL_PAGE_SIZE (1 << NVME_CTRL_PAGE_SHIFT) macro
Dcore.c1870 (ctrl->max_hw_sectors / (NVME_CTRL_PAGE_SIZE >> 9)) + 1; in nvme_set_queue_limits()
1876 blk_queue_virt_boundary(q, NVME_CTRL_PAGE_SIZE - 1); in nvme_set_queue_limits()