/drivers/mtd/devices/ |
D | mtd_dataflash.c | 91 unsigned int page_size; /* of bytes per page */ member 155 unsigned blocksize = priv->page_size << 3; in dataflash_erase() 163 div_u64_rem(instr->len, priv->page_size, &rem); in dataflash_erase() 166 div_u64_rem(instr->addr, priv->page_size, &rem); in dataflash_erase() 185 pageaddr = div_u64(instr->addr, priv->page_size); in dataflash_erase() 215 instr->addr += priv->page_size; in dataflash_erase() 216 instr->len -= priv->page_size; in dataflash_erase() 249 addr = (((unsigned)from / priv->page_size) << priv->page_offset) in dataflash_read() 250 + ((unsigned)from % priv->page_size); in dataflash_read() 322 pageaddr = ((unsigned)to / priv->page_size); in dataflash_write() [all …]
|
D | spear_smi.c | 202 u32 page_size; member 647 u32 page_offset, page_size; in spear_mtd_write() local 662 page_offset = (u32)to % flash->page_size; in spear_mtd_write() 665 if (page_offset + len <= flash->page_size) { in spear_mtd_write() 673 page_size = flash->page_size - page_offset; in spear_mtd_write() 676 page_size); in spear_mtd_write() 680 *retlen += page_size; in spear_mtd_write() 683 for (i = page_size; i < len; i += page_size) { in spear_mtd_write() 684 page_size = len - i; in spear_mtd_write() 685 if (page_size > flash->page_size) in spear_mtd_write() [all …]
|
D | sst25l.c | 59 unsigned page_size; member 382 flash->mtd.writesize = flash_info->page_size; in sst25l_probe() 383 flash->mtd.writebufsize = flash_info->page_size; in sst25l_probe() 384 flash->mtd.size = flash_info->page_size * flash_info->nr_pages; in sst25l_probe()
|
/drivers/misc/ |
D | vmw_balloon.c | 566 struct vmballoon_page_size *page_size = in vmballoon_pop() local 570 list_for_each_entry_safe(page, next, &page_size->pages, lru) { in vmballoon_pop() 600 struct vmballoon_page_size *page_size = &b->page_sizes[false]; in vmballoon_lock_page() local 620 if (page_size->n_refused_pages < VMW_BALLOON_MAX_REFUSED) { in vmballoon_lock_page() 621 page_size->n_refused_pages++; in vmballoon_lock_page() 622 list_add(&page->lru, &page_size->refused_pages); in vmballoon_lock_page() 630 list_add(&page->lru, &page_size->pages); in vmballoon_lock_page() 660 struct vmballoon_page_size *page_size = in vmballoon_lock_batched_page() local 667 list_add(&p->lru, &page_size->pages); in vmballoon_lock_batched_page() 672 if (page_size->n_refused_pages in vmballoon_lock_batched_page() [all …]
|
/drivers/memstick/core/ |
D | ms_block.c | 437 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 …]
|
D | mspro_block.c | 78 __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() 763 / msb->page_size; in mspro_block_complete_req() 768 t_len *= msb->page_size; in mspro_block_complete_req() [all …]
|
D | ms_block.h | 83 unsigned short page_size; member 116 unsigned short page_size; member 173 unsigned short page_size; member
|
/drivers/infiniband/hw/mlx5/ |
D | mem.c | 59 unsigned long page_shift = ilog2(umem->page_size); in mlx5_ib_cont_pages() 154 unsigned long umem_page_shift = ilog2(umem->page_size); in __mlx5_ib_populate_pas() 208 u64 page_size; in mlx5_ib_get_buf_offset() local 214 page_size = (u64)1 << page_shift; in mlx5_ib_get_buf_offset() 215 page_mask = page_size - 1; in mlx5_ib_get_buf_offset() 217 off_size = page_size >> 6; in mlx5_ib_get_buf_offset()
|
/drivers/block/ |
D | ps3vram.c | 62 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/misc/mic/host/ |
D | mic_smpt.c | 39 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/nand/ |
D | sh_flctl.c | 249 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 …]
|
D | fsl_elbc_nand.c | 57 int page_size; /* NAND page size (0=512, 1=2048) */ member 176 if (priv->page_size) { in set_addr() 203 elbc_fcm_ctrl->index += priv->page_size ? 2048 : 512; in set_addr() 295 if (priv->page_size) { in fsl_elbc_do_read() 448 if (priv->page_size) { in fsl_elbc_cmdfunc() 694 priv->page_size = 0; in fsl_elbc_chip_init_tail() 697 priv->page_size = 1; in fsl_elbc_chip_init_tail()
|
/drivers/usb/gadget/udc/bdc/ |
D | bdc_core.c | 367 u32 page_size; in bdc_mem_alloc() local 373 page_size = BDC_PGS(bdc_readl(bdc->regs, BDC_BDCCFG0)); in bdc_mem_alloc() 375 page_size = 1 << page_size; in bdc_mem_alloc() 377 page_size <<= 10; in bdc_mem_alloc() 378 dev_dbg(bdc->dev, "page_size=%d\n", page_size); in bdc_mem_alloc() 383 16, page_size); in bdc_mem_alloc()
|
/drivers/char/ |
D | tile-srom.c | 67 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); 347 if (_srom_read(devhdl, &srom->page_size, in srom_setup_minor() 348 SROM_PAGE_SIZE_OFF, sizeof(srom->page_size)) < 0) in srom_setup_minor()
|
/drivers/mtd/nand/brcmnand/ |
D | brcmnand.c | 167 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/infiniband/sw/rxe/ |
D | rxe_mr.c | 194 WARN_ON(!is_power_of_2(umem->page_size)); in rxe_mem_init_user() 196 mem->page_shift = ilog2(umem->page_size); in rxe_mem_init_user() 197 mem->page_mask = umem->page_size - 1; in rxe_mem_init_user() 213 buf->size = umem->page_size; in rxe_mem_init_user() 611 int page_size; in rxe_mem_map_pages() local 619 page_size = 1 << mem->page_shift; in rxe_mem_map_pages() 625 buf->size = page_size; in rxe_mem_map_pages()
|
/drivers/misc/eeprom/ |
D | at24.c | 404 next_page = roundup(offset + 1, at24->chip.page_size); in at24_adjust_write_count() 584 chip->page_size = be32_to_cpup(val); in at24_get_ofdata() 628 chip.page_size = 1; in at24_probe() 640 if (!chip.page_size) { in at24_probe() 644 if (!is_power_of_2(chip.page_size)) in at24_probe() 682 chip.page_size = 1; in at24_probe() 731 unsigned write_max = chip.page_size; in at24_probe()
|
/drivers/mtd/nand/gpmi-nand/ |
D | gpmi-lib.c | 238 geo->page_size, in gpmi_dump_info() 258 unsigned int page_size; in bch_set_geometry() local 269 page_size = bch_geo->page_size; in bch_set_geometry() 296 writel(BF_BCH_FLASH0LAYOUT1_PAGE_SIZE(page_size) in bch_set_geometry() 1262 pio[3] = geo->page_size; in gpmi_send_page() 1319 | BF_GPMI_CTRL0_XFER_COUNT(geo->page_size); in gpmi_read_page() 1325 pio[3] = geo->page_size; in gpmi_read_page() 1344 | BF_GPMI_CTRL0_XFER_COUNT(geo->page_size); in gpmi_read_page()
|
/drivers/input/touchscreen/ |
D | wdt87xx_i2c.c | 694 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/infiniband/hw/cxgb3/ |
D | iwch_qp.c | 166 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/staging/lustre/lustre/llite/ |
D | rw26.c | 218 size_t page_size = cl_page_size(obj); in ll_direct_rw_pages() local 228 LASSERT(!(file_offset & (page_size - 1))); in ll_direct_rw_pages() 260 memcpy(dst, src, min(page_size, size)); in ll_direct_rw_pages() 290 cl_page_clip(env, clp, 0, min(size, page_size)); in ll_direct_rw_pages() 297 size -= page_size; in ll_direct_rw_pages() 298 file_offset += page_size; in ll_direct_rw_pages()
|
/drivers/nvme/host/ |
D | pci.c | 178 #define NVME_INT_BYTES(dev) (NVME_INT_PAGES * (dev)->ctrl.page_size) 187 unsigned nprps = DIV_ROUND_UP(size + dev->ctrl.page_size, in nvme_npages() 188 dev->ctrl.page_size); in nvme_npages() 337 const int last_prp = dev->ctrl.page_size / 8 - 1; in nvme_free_iod() 433 u32 page_size = dev->ctrl.page_size; in nvme_setup_prps() local 434 int offset = dma_addr & (page_size - 1); in nvme_setup_prps() 440 length -= (page_size - offset); in nvme_setup_prps() 444 dma_len -= (page_size - offset); in nvme_setup_prps() 446 dma_addr += (page_size - offset); in nvme_setup_prps() 453 if (length <= page_size) { in nvme_setup_prps() [all …]
|
/drivers/ps3/ |
D | ps3stor_lib.c | 151 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()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | en_rx.c | 79 page_alloc->page_size = PAGE_SIZE << order; in mlx4_alloc_pages() 86 page_ref_add(page, page_alloc->page_size / frag_info->frag_stride - 1); in mlx4_alloc_pages() 108 ring_alloc[i].page_size) in mlx4_en_alloc_frags() 129 page_alloc[i].page_size, in mlx4_en_alloc_frags() 133 page_ref_sub(page, page_alloc[i].page_size / in mlx4_en_alloc_frags() 149 if (next_frag_end > frags[i].page_size) in mlx4_en_free_frag() 150 dma_unmap_page(priv->ddev, frags[i].dma, frags[i].page_size, in mlx4_en_free_frag() 171 i, ring->page_alloc[i].page_size, in mlx4_en_init_allocator() 182 page_alloc->page_size, in mlx4_en_init_allocator() 186 page_ref_sub(page, page_alloc->page_size / in mlx4_en_init_allocator() [all …]
|
/drivers/mtd/spi-nor/ |
D | spi-nor.c | 60 u16 page_size; member 760 .page_size = 256, \ 775 .page_size = 256, \ 781 .page_size = (_page_size), \ 1174 page_offset = (to + i) & (nor->page_size - 1); in spi_nor_write() 1180 nor->page_size - page_offset, len - i); in spi_nor_write() 1425 nor->page_size = info->page_size; in spi_nor_scan() 1426 mtd->writebufsize = nor->page_size; in spi_nor_scan()
|