Home
last modified time | relevance | path

Searched refs:page_size (Results 1 – 25 of 127) sorted by relevance

123456

/drivers/pci/endpoint/
Dpci-epc-mem.c37 unsigned int page_shift = ilog2(mem->page_size); in pci_epc_mem_get_order()
60 size_t page_size) in __pci_epc_mem_init() argument
69 if (page_size < PAGE_SIZE) in __pci_epc_mem_init()
70 page_size = PAGE_SIZE; in __pci_epc_mem_init()
72 page_shift = ilog2(page_size); in __pci_epc_mem_init()
90 mem->page_size = page_size; in __pci_epc_mem_init()
138 unsigned int page_shift = ilog2(mem->page_size); in pci_epc_mem_alloc_addr()
141 size = ALIGN(size, mem->page_size); in pci_epc_mem_alloc_addr()
171 unsigned int page_shift = ilog2(mem->page_size); in pci_epc_mem_free_addr()
176 size = ALIGN(size, mem->page_size); in pci_epc_mem_free_addr()
/drivers/misc/
Dvmw_balloon.c573 struct vmballoon_page_size *page_size = in vmballoon_pop() local
577 list_for_each_entry_safe(page, next, &page_size->pages, lru) { in vmballoon_pop()
601 struct vmballoon_page_size *page_size = &b->page_sizes[false]; in vmballoon_lock_page() local
622 if (page_size->n_refused_pages < VMW_BALLOON_MAX_REFUSED) { in vmballoon_lock_page()
623 page_size->n_refused_pages++; in vmballoon_lock_page()
624 list_add(&page->lru, &page_size->refused_pages); in vmballoon_lock_page()
632 list_add(&page->lru, &page_size->pages); in vmballoon_lock_page()
662 struct vmballoon_page_size *page_size = in vmballoon_lock_batched_page() local
669 list_add(&p->lru, &page_size->pages); in vmballoon_lock_batched_page()
674 if (page_size->n_refused_pages in vmballoon_lock_batched_page()
[all …]
/drivers/misc/cxl/
Dcxllib.c212 unsigned long *page_size) in get_vma_info() argument
224 *page_size = vma_kernel_pagesize(vma); in get_vma_info()
236 unsigned long page_size; in cxllib_handle_fault() local
247 rc = get_vma_info(mm, addr, &vma_start, &vma_end, &page_size); in cxllib_handle_fault()
251 for (dar = (addr & ~(page_size - 1)); dar < (addr + size); in cxllib_handle_fault()
252 dar += page_size) { in cxllib_handle_fault()
269 &page_size); in cxllib_handle_fault()
/drivers/mtd/devices/
Dmtd_dataflash.c95 unsigned int page_size; /* of bytes per page */ member
158 unsigned blocksize = priv->page_size << 3; in dataflash_erase()
165 div_u64_rem(instr->len, priv->page_size, &rem); in dataflash_erase()
168 div_u64_rem(instr->addr, priv->page_size, &rem); in dataflash_erase()
187 pageaddr = div_u64(instr->addr, priv->page_size); in dataflash_erase()
217 instr->addr += priv->page_size; in dataflash_erase()
218 instr->len -= priv->page_size; in dataflash_erase()
251 addr = (((unsigned)from / priv->page_size) << priv->page_offset) in dataflash_read()
252 + ((unsigned)from % priv->page_size); in dataflash_read()
323 pageaddr = ((unsigned)to / priv->page_size); in dataflash_write()
[all …]
Dspear_smi.c202 u32 page_size; member
683 u32 page_offset, page_size; in spear_mtd_write() local
698 page_offset = (u32)to % flash->page_size; in spear_mtd_write()
701 if (page_offset + len <= flash->page_size) { in spear_mtd_write()
709 page_size = flash->page_size - page_offset; in spear_mtd_write()
712 page_size); in spear_mtd_write()
716 *retlen += page_size; in spear_mtd_write()
719 for (i = page_size; i < len; i += page_size) { in spear_mtd_write()
720 page_size = len - i; in spear_mtd_write()
721 if (page_size > flash->page_size) in spear_mtd_write()
[all …]
/drivers/staging/rtl8723bs/hal/
Dhal_sdio.c71 u32 page_size; in rtw_hal_set_sdio_tx_max_length() local
74 rtw_hal_get_def_var(padapter, HAL_DEF_TX_PAGE_SIZE, &page_size); in rtw_hal_set_sdio_tx_max_length()
76 lenHQ = ((numHQ + numPubQ) >> 1) * page_size; in rtw_hal_set_sdio_tx_max_length()
77 lenNQ = ((numNQ + numPubQ) >> 1) * page_size; in rtw_hal_set_sdio_tx_max_length()
78 lenLQ = ((numLQ + numPubQ) >> 1) * page_size; in rtw_hal_set_sdio_tx_max_length()
/drivers/memstick/core/
Dms_block.c437 msb->page_size); in h_msb_read_page()
445 msb->current_sg_offset += msb->page_size; in h_msb_read_page()
456 msb->current_sg_offset += msb->page_size; in h_msb_read_page()
563 msb->page_size) < msb->page_size) in h_msb_write_block()
573 msb->current_sg_offset += msb->page_size; in h_msb_write_block()
867 size_t len = msb->page_size; in msb_read_page()
987 NULL, &sg, page * msb->page_size); in msb_verify_block()
1004 BUG_ON(sg->length < msb->page_size); in msb_write_block()
1180 p->attr.page_size = be16_to_cpu(p->attr.page_size); in msb_fix_boot_page_endianness()
1275 page = data_offset / msb->page_size; in msb_read_bad_block_table()
[all …]
Dmspro_block.c78 __be16 page_size; member
147 unsigned short page_size; member
345 be16_to_cpu(x_sys->page_size)); in mspro_block_attr_show_sysinfo()
612 / msb->page_size)) { in h_mspro_block_transfer_data()
636 t_offset += msb->current_page * msb->page_size; in h_mspro_block_transfer_data()
641 msb->page_size, offset_in_page(t_offset)); in h_mspro_block_transfer_data()
680 .data_count = cpu_to_be16((uint16_t)(length / msb->page_size)), in h_mspro_block_setup_cmd()
686 do_div(offset, msb->page_size); in h_mspro_block_setup_cmd()
764 / msb->page_size; in mspro_block_complete_req()
769 t_len *= msb->page_size; in mspro_block_complete_req()
[all …]
Dms_block.h83 unsigned short page_size; member
116 unsigned short page_size; member
173 unsigned short page_size; member
/drivers/block/
Dps3vram.c62 unsigned int page_size; member
324 if (ps3vram_upload(dev, CACHE_OFFSET + entry * cache->page_size, in ps3vram_cache_evict()
326 cache->page_size / DMA_PAGE_SIZE) < 0) { in ps3vram_cache_evict()
329 entry * cache->page_size, cache->tags[entry].address, in ps3vram_cache_evict()
330 cache->page_size); in ps3vram_cache_evict()
343 CACHE_OFFSET + entry * cache->page_size, in ps3vram_cache_load()
345 cache->page_size / DMA_PAGE_SIZE) < 0) { in ps3vram_cache_load()
348 address, entry * cache->page_size, cache->page_size); in ps3vram_cache_load()
379 offset = (unsigned int) (address & (cache->page_size - 1)); in ps3vram_cache_match()
409 priv->cache.page_size = CACHE_PAGE_SIZE; in ps3vram_cache_init()
[all …]
/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_eqs.c70 #define PAGE_IN_4K(page_size) ((page_size) >> 12) argument
71 #define EQ_SET_HW_PAGE_SIZE_VAL(eq) (ilog2(PAGE_IN_4K((eq)->page_size)))
597 eq->page_size, in alloc_eq_pages()
627 dma_free_coherent(&pdev->dev, eq->page_size, in alloc_eq_pages()
649 dma_free_coherent(&pdev->dev, eq->page_size, in free_eq_pages()
670 enum hinic_eq_type type, int q_id, u32 q_len, u32 page_size, in init_eq() argument
680 eq->page_size = page_size; in init_eq()
698 eq->num_pages = GET_EQ_NUM_PAGES(eq, page_size); in init_eq()
699 eq->num_elem_in_pg = GET_EQ_NUM_ELEMS_IN_PG(eq, page_size); in init_eq()
791 int num_aeqs, u32 q_len, u32 page_size, in hinic_aeqs_init() argument
[all …]
Dhinic_hw_eqs.h187 u32 page_size; member
254 int num_aeqs, u32 q_len, u32 page_size,
260 int num_ceqs, u32 q_len, u32 page_size,
/drivers/misc/mic/host/
Dmic_smpt.c39 return mdev->smpt->info.base + (index * mdev->smpt->info.page_size); in mic_smpt_to_pa()
50 mdev->smpt->info.page_size); in mic_smpt_align_low()
55 return ALIGN(pa, mdev->smpt->info.page_size); in mic_smpt_align_high()
61 return mdev->smpt->info.num_reg * mdev->smpt->info.page_size; in mic_max_system_memory()
85 addr += smpt_info->info.page_size) { in mic_add_smpt_entry()
116 addr += smpt_info->info.page_size; in mic_smpt_op()
374 dma_addr = i * smpt_info->info.page_size; in mic_smpt_init()
/drivers/mtd/spi-nor/
Dspi-nor.c61 u16 page_size; member
437 offset = addr % nor->page_size; in spi_nor_s3an_addr_convert()
438 page = addr / nor->page_size; in spi_nor_s3an_addr_convert()
439 page <<= (nor->page_size > 512) ? 10 : 9; in spi_nor_s3an_addr_convert()
885 .page_size = 256, \
900 .page_size = 256, \
906 .page_size = (_page_size), \
919 .page_size = _page_size, \
1364 if (hweight32(nor->page_size) == 1) { in spi_nor_write()
1365 page_offset = addr & (nor->page_size - 1); in spi_nor_write()
[all …]
/drivers/infiniband/hw/mlx5/
Dmem.c217 u64 page_size; in mlx5_ib_get_buf_offset() local
223 page_size = (u64)1 << page_shift; in mlx5_ib_get_buf_offset()
224 page_mask = page_size - 1; in mlx5_ib_get_buf_offset()
226 off_size = page_size >> 6; in mlx5_ib_get_buf_offset()
/drivers/mtd/nand/
Dsh_flctl.c249 if (flctl->page_size) { in set_addr()
361 if (flctl->page_size) in wait_recfifo_ready()
559 if (flctl->page_size) in set_cmd_regs()
638 page_sectors = flctl->page_size ? 4 : 1; in execmd_read_page_sector()
684 int page_sectors = flctl->page_size ? 4 : 1; in execmd_read_oob()
708 page_sectors = flctl->page_size ? 4 : 1; in execmd_write_page_sector()
734 page_sectors = flctl->page_size ? 4 : 1; in execmd_write_oob()
770 if (flctl->page_size) in flctl_cmdfunc()
791 if (flctl->page_size) { in flctl_cmdfunc()
806 if (flctl->page_size) in flctl_cmdfunc()
[all …]
/drivers/char/
Dtile-srom.c67 u32 page_size; /* Size of a page */ member
301 return sprintf(buf, "%u\n", srom->page_size); in page_size_show()
303 static DEVICE_ATTR_RO(page_size);
348 if (_srom_read(devhdl, &srom->page_size, in srom_setup_minor()
349 SROM_PAGE_SIZE_OFF, sizeof(srom->page_size)) < 0) in srom_setup_minor()
/drivers/mtd/nand/brcmnand/
Dbrcmnand.c167 unsigned int page_size; member
879 int sectors = cfg->page_size / (512 << cfg->sector_size_1k); in brcmnand_hamming_ooblayout_ecc()
897 int sectors = cfg->page_size / (512 << cfg->sector_size_1k); in brcmnand_hamming_ooblayout_free()
916 if (cfg->page_size > 512) in brcmnand_hamming_ooblayout_free()
937 int sectors = cfg->page_size / (512 << cfg->sector_size_1k); in brcmnand_bch_ooblayout_ecc()
955 int sectors = cfg->page_size / (512 << cfg->sector_size_1k); in brcmnand_bch_ooblayout_free_lp()
1014 int sectors = p->page_size / (512 << p->sector_size_1k); in brcmstb_choose_ecc_layout()
1032 if (p->page_size == 512) in brcmstb_choose_ecc_layout()
1964 u8 block_size = 0, page_size = 0, device_size = 0; in brcmnand_set_cfg() local
1995 if (ctrl->page_sizes[i] == cfg->page_size) { in brcmnand_set_cfg()
[all …]
/drivers/usb/gadget/udc/bdc/
Dbdc_core.c369 u32 page_size; in bdc_mem_alloc() local
375 page_size = BDC_PGS(bdc_readl(bdc->regs, BDC_BDCCFG0)); in bdc_mem_alloc()
377 page_size = 1 << page_size; in bdc_mem_alloc()
379 page_size <<= 10; in bdc_mem_alloc()
380 dev_dbg(bdc->dev, "page_size=%d\n", page_size); in bdc_mem_alloc()
385 16, page_size); in bdc_mem_alloc()
/drivers/mtd/nand/gpmi-nand/
Dgpmi-lib.c239 geo->page_size, in gpmi_dump_info()
259 unsigned int page_size; in bch_set_geometry() local
270 page_size = bch_geo->page_size; in bch_set_geometry()
295 writel(BF_BCH_FLASH0LAYOUT1_PAGE_SIZE(page_size) in bch_set_geometry()
1261 pio[3] = geo->page_size; in gpmi_send_page()
1318 | BF_GPMI_CTRL0_XFER_COUNT(geo->page_size); in gpmi_read_page()
1324 pio[3] = geo->page_size; in gpmi_read_page()
1343 | BF_GPMI_CTRL0_XFER_COUNT(geo->page_size); in gpmi_read_page()
/drivers/nvme/host/
Dpci.c328 #define NVME_INT_BYTES(dev) (NVME_INT_PAGES * (dev)->ctrl.page_size)
337 unsigned nprps = DIV_ROUND_UP(size + dev->ctrl.page_size, in nvme_npages()
338 dev->ctrl.page_size); in nvme_npages()
467 const int last_prp = dev->ctrl.page_size / 8 - 1; in nvme_free_iod()
574 u32 page_size = dev->ctrl.page_size; in nvme_setup_prps() local
575 int offset = dma_addr & (page_size - 1); in nvme_setup_prps()
581 length -= (page_size - offset); in nvme_setup_prps()
587 dma_len -= (page_size - offset); in nvme_setup_prps()
589 dma_addr += (page_size - offset); in nvme_setup_prps()
596 if (length <= page_size) { in nvme_setup_prps()
[all …]
/drivers/input/touchscreen/
Dwdt87xx_i2c.c694 int page_size; in wdt87xx_write_firmware() local
718 page_size = min_t(u32, size, PG_SIZE); in wdt87xx_write_firmware()
719 size -= page_size; in wdt87xx_write_firmware()
733 page_size); in wdt87xx_write_firmware()
737 start_addr, page_size); in wdt87xx_write_firmware()
742 start_addr, page_size); in wdt87xx_write_firmware()
746 start_addr, page_size); in wdt87xx_write_firmware()
751 wdt87xx_calculate_checksum(data, page_size); in wdt87xx_write_firmware()
767 start_addr = start_addr + page_size; in wdt87xx_write_firmware()
768 data = data + page_size; in wdt87xx_write_firmware()
/drivers/staging/lustre/lustre/llite/
Drw26.c187 size_t page_size = cl_page_size(obj); in ll_direct_rw_pages() local
197 LASSERT(!(file_offset & (page_size - 1))); in ll_direct_rw_pages()
229 memcpy(dst, src, min(page_size, size)); in ll_direct_rw_pages()
259 cl_page_clip(env, clp, 0, min(size, page_size)); in ll_direct_rw_pages()
266 size -= page_size; in ll_direct_rw_pages()
267 file_offset += page_size; in ll_direct_rw_pages()
/drivers/infiniband/hw/cxgb3/
Diwch_qp.c166 V_FR_PAGE_SIZE(ilog2(wr->mr->page_size) - 12) | in build_memreg()
202 u32 num_sgle, u32 * pbl_addr, u8 * page_size) in iwch_sgl2pbl_map() argument
239 ((1UL << (12 + mhp->attr.page_size)) - 1); in iwch_sgl2pbl_map()
242 (offset >> (12 + mhp->attr.page_size)); in iwch_sgl2pbl_map()
243 page_size[i] = mhp->attr.page_size; in iwch_sgl2pbl_map()
253 u8 page_size[T3_MAX_SGE]; in build_rdma_recv() local
256 page_size); in build_rdma_recv()
259 wqe->recv.pagesz[0] = page_size[0]; in build_rdma_recv()
260 wqe->recv.pagesz[1] = page_size[1]; in build_rdma_recv()
261 wqe->recv.pagesz[2] = page_size[2]; in build_rdma_recv()
[all …]
/drivers/ps3/
Dps3stor_lib.c151 enum ps3_dma_page_size page_size; in ps3stor_setup() local
187 page_size = PS3_DMA_4K; in ps3stor_setup()
189 page_size = PS3_DMA_64K; in ps3stor_setup()
191 ps3_dma_region_init(&dev->sbd, &dev->dma_region, page_size, in ps3stor_setup()

123456