/external/ltp/testcases/kernel/io/ltp-aiodio/ |
D | aiodio_sparse.c | 63 int aiodio_sparse(int fd, int align, int writesize, int filesize, int num_aio) in aiodio_sparse() argument 72 if ((num_aio * writesize) > filesize) in aiodio_sparse() 73 num_aio = filesize / writesize; in aiodio_sparse() 93 TEST(posix_memalign(&bufptr, align, writesize)); in aiodio_sparse() 98 memset(bufptr, 0, writesize); in aiodio_sparse() 99 io_prep_pwrite(iocbs[i], fd, bufptr, writesize, offset); in aiodio_sparse() 100 offset += writesize; in aiodio_sparse() 159 io_prep_pwrite(iocbp, fd, iocbp->u.c.buf, writesize, offset); in aiodio_sparse() 160 offset += writesize; in aiodio_sparse() 214 int writesize = 65536; in main() local [all …]
|
D | dio_sparse.c | 58 int dio_sparse(int fd, int align, int writesize, int filesize, int offset) in dio_sparse() argument 63 TEST(posix_memalign(&bufptr, align, writesize)); in dio_sparse() 69 memset(bufptr, 0, writesize); in dio_sparse() 72 if ((w = write(fd, bufptr, writesize)) != writesize) { in dio_sparse() 97 int writesize = 65536; in main() local 115 writesize = strtol(optarg, &endp, 0); in main() 116 writesize = scale_by_kmg(writesize, *endp); in main() 168 ret = dio_sparse(fd, alignment, writesize, filesize, offset); in main()
|
/external/u-boot/drivers/mtd/nand/ |
D | mxs_nand_spl.c | 114 mtd->writesize = le32_to_cpu(p->byte_per_page); in mxs_flash_onfi_ident() 115 mtd->erasesize = le32_to_cpu(p->pages_per_block) * mtd->writesize; in mxs_flash_onfi_ident() 120 chip->page_shift = ffs(mtd->writesize) - 1; in mxs_flash_onfi_ident() 127 debug("writesize=%d (>>%d)\n", mtd->writesize, chip->page_shift); in mxs_flash_onfi_ident() 169 chip->cmdfunc(mtd, NAND_CMD_READ0, mtd->writesize, page); in is_badblock() 199 nand_chip.oob_poi = nand_chip.buffers->databuf + mtd->writesize; in mxs_nand_init() 218 nand_page_per_block = mtd->erasesize / mtd->writesize; in nand_spl_load_image() 222 size = roundup(size, mtd->writesize); in nand_spl_load_image() 226 sz += mtd->writesize; in nand_spl_load_image() 227 offs += mtd->writesize; in nand_spl_load_image() [all …]
|
D | denali.c | 633 int writesize = mtd->writesize; in denali_oob_xfer() local 640 size_t size = writesize + oobsize; in denali_oob_xfer() 644 chip->cmdfunc(mtd, start_cmd, writesize, page); in denali_oob_xfer() 656 if (pos >= writesize) in denali_oob_xfer() 658 else if (pos + len > writesize) in denali_oob_xfer() 659 len = writesize - pos; in denali_oob_xfer() 669 chip->cmdfunc(mtd, rnd_cmd, writesize + oob_skip, -1); in denali_oob_xfer() 691 int writesize = mtd->writesize; in denali_read_page_raw() local 698 size_t size = writesize + oobsize; in denali_read_page_raw() 711 if (pos >= writesize) in denali_read_page_raw() [all …]
|
D | mxc_nand.c | 397 chip->cmdfunc(mtd, NAND_CMD_READOOB, mtd->writesize, page); 421 mtd->writesize + chip->ecc.prepad, page); 457 host->col_addr = mtd->writesize + n * eccpitch; 505 host->col_addr = mtd->writesize + n * eccpitch; 533 chip->cmdfunc(mtd, NAND_CMD_READOOB, mtd->writesize, page); 537 host->col_addr = mtd->writesize + 556 chip->cmdfunc(mtd, NAND_CMD_SEQIN, mtd->writesize, page); 591 host->col_addr = mtd->writesize + n * eccpitch; 635 host->col_addr = mtd->writesize + n * eccpitch; 664 int subpages = mtd->writesize / nand_chip->subpagesize; [all …]
|
D | nand_base.c | 353 ofs += mtd->erasesize - mtd->writesize; in nand_block_bad() 376 ofs += mtd->writesize; in nand_block_bad() 413 ofs += mtd->erasesize - mtd->writesize; in nand_default_block_markbad() 420 ofs += mtd->writesize; in nand_default_block_markbad() 606 if (column >= mtd->writesize) { in nand_command() 608 column -= mtd->writesize; in nand_command() 707 column += mtd->writesize; in nand_command_lp() 1221 chip->read_buf(mtd, buf, mtd->writesize); in nand_read_page_raw() 1371 chip->cmdfunc(mtd, NAND_CMD_RNDOUT, mtd->writesize, -1); in nand_read_subpage() 1386 mtd->writesize + aligned_pos, -1); in nand_read_subpage() [all …]
|
D | fsl_ifc_nand.c | 237 ctrl->addr = priv->vbase + buf_num * (mtd->writesize * 2); in set_addr() 242 ctrl->index += mtd->writesize; in set_addr() 250 u8 __iomem *addr = priv->vbase + bufnum * (mtd->writesize * 2); in is_blank() 252 u8 __iomem *oob = addr + mtd->writesize; in is_blank() 255 for (i = 0; i < mtd->writesize / 4; i++) { in is_blank() 365 if (mtd->writesize > 512) { in fsl_ifc_do_read() 413 ctrl->read_bytes = mtd->writesize + mtd->oobsize; in fsl_ifc_cmdfunc() 429 ctrl->read_bytes = mtd->writesize + mtd->oobsize; in fsl_ifc_cmdfunc() 490 if (mtd->writesize > 512) { in fsl_ifc_cmdfunc() 529 if (column >= mtd->writesize) in fsl_ifc_cmdfunc() [all …]
|
D | nand_util.c | 276 if ((offset & (mtd->writesize - 1)) != 0) { in nand_get_lock_status() 454 l = (l + mtd->writesize - 1) / mtd->writesize; in drop_ffs() 455 l *= mtd->writesize; in drop_ffs() 482 size_t verlen = mtd->writesize + mtd->oobsize; in nand_verify_page_oob() 491 vops.oobbuf = vops.datbuf + mtd->writesize; in nand_verify_page_oob() 522 size_t verlen = mtd->writesize; in nand_verify() 531 verlen = min(mtd->writesize, (uint32_t)(ofs + len - verofs)); in nand_verify() 596 if ((offset & (mtd->writesize - 1)) != 0) { in nand_write_skip_bad() 714 if ((offset & (mtd->writesize - 1)) != 0) { in nand_read_skip_bad()
|
D | nand_bbt.c | 200 from & ~mtd->writesize); in read_bbt() 204 from & ~mtd->writesize); in read_bbt() 324 ops.len = min(len, (size_t)mtd->writesize); in scan_read_oob() 335 buf += mtd->oobsize + mtd->writesize; in scan_read_oob() 336 len -= mtd->writesize; in scan_read_oob() 337 offs += mtd->writesize; in scan_read_oob() 372 ver_offs += mtd->writesize; in bbt_get_ver_offs() 394 mtd->writesize, td); in read_abs_bbts() 403 mtd->writesize, md); in read_abs_bbts() 436 offs += mtd->writesize; in scan_block_fast() [all …]
|
D | fsl_elbc_nand.c | 306 ctrl->read_bytes = mtd->writesize + mtd->oobsize; in fsl_elbc_cmdfunc() 321 ctrl->read_bytes = mtd->writesize + mtd->oobsize; in fsl_elbc_cmdfunc() 407 if (column >= mtd->writesize) { in fsl_elbc_cmdfunc() 409 column -= mtd->writesize; in fsl_elbc_cmdfunc() 436 ctrl->index != mtd->writesize + mtd->oobsize) in fsl_elbc_cmdfunc() 494 unsigned int bufsize = mtd->writesize + mtd->oobsize; in fsl_elbc_write_buf() 600 fsl_elbc_read_buf(mtd, buf, mtd->writesize); in fsl_elbc_read_page() 616 fsl_elbc_write_buf(mtd, buf, mtd->writesize); in fsl_elbc_write_page() 631 fsl_elbc_write_buf(mtd, buf, mtd->writesize); in fsl_elbc_write_subpage() 756 if (mtd->writesize == 2048) { in fsl_elbc_chip_init() [all …]
|
D | pxa3xx_nand.c | 440 info->data_size = mtd->writesize; in pxa3xx_set_datasize() 724 info->buf_count = mtd->writesize + mtd->oobsize; in prepare_start_command() 761 info->buf_start += mtd->writesize; in prepare_set_command() 768 if (mtd->writesize == PAGE_CHUNK_SIZE) { in prepare_set_command() 770 } else if (mtd->writesize > PAGE_CHUNK_SIZE) { in prepare_set_command() 778 set_command_address(info, mtd->writesize, column, page_addr); in prepare_set_command() 784 set_command_address(info, mtd->writesize, 0, page_addr); in prepare_set_command() 790 if (mtd->writesize > PAGE_CHUNK_SIZE) { in prepare_set_command() 803 (mtd->writesize + mtd->oobsize))) { in prepare_set_command() 809 if (mtd->writesize > PAGE_CHUNK_SIZE) { in prepare_set_command() [all …]
|
D | mxs_nand.c | 192 geo->ecc_chunk_count = mtd->writesize / geo->ecc_chunk_size; in mxs_nand_calc_ecc_layout_by_info() 220 geo->ecc_chunk_count = mtd->writesize / geo->ecc_chunk_size; in mxs_nand_calc_ecc_layout() 595 (mtd->writesize + mtd->oobsize); in mxs_nand_ecc_read_page() 601 d->cmd.pio_words[3] = mtd->writesize + mtd->oobsize; in mxs_nand_ecc_read_page() 621 (mtd->writesize + mtd->oobsize); in mxs_nand_ecc_read_page() 693 memcpy(buf, nand_info->data_buf, mtd->writesize); in mxs_nand_ecc_read_page() 714 memcpy(nand_info->data_buf, buf, mtd->writesize); in mxs_nand_ecc_write_page() 739 d->cmd.pio_words[3] = (mtd->writesize + mtd->oobsize); in mxs_nand_ecc_write_page() 896 nand->cmdfunc(mtd, NAND_CMD_READ0, mtd->writesize, page); in mxs_nand_ecc_read_oob() 905 nand->cmdfunc(mtd, NAND_CMD_READ0, mtd->writesize, page); in mxs_nand_ecc_read_oob() [all …]
|
D | vf610_nfc.c | 382 column = mtd->writesize; in vf610_nfc_command() 391 trfr_sz += mtd->writesize + mtd->oobsize; in vf610_nfc_command() 463 l = min_t(uint, len, mtd->writesize + mtd->oobsize - c); in vf610_nfc_write_buf() 612 vf610_nfc_write_buf(mtd, buf, mtd->writesize); in vf610_nfc_write_page() 617 nfc->write_sz = mtd->writesize + mtd->oobsize; in vf610_nfc_write_page() 698 if (mtd->writesize + mtd->oobsize > PAGE_2K + OOB_MAX - 8) { in vf610_nfc_nand_init() 705 if (mtd->writesize != PAGE_2K && mtd->oobsize < 64) { in vf610_nfc_nand_init() 711 if (chip->ecc.size != mtd->writesize) { in vf610_nfc_nand_init()
|
D | tegra_nand.c | 271 assert(mtd->writesize != 0); in nand_command() 272 column += mtd->writesize; in nand_command() 478 if (our_mtd->writesize == 512) in set_bus_width_page_size() 480 else if (our_mtd->writesize == 2048) in set_bus_width_page_size() 482 else if (our_mtd->writesize == 4096) in set_bus_width_page_size() 486 our_mtd->writesize); in set_bus_width_page_size() 842 chip->cmdfunc(mtd, NAND_CMD_SEQIN, mtd->writesize, page); in nand_write_oob() 968 nand->ecc.size = our_mtd->writesize; in tegra_probe()
|
D | zynq_nand.c | 456 chip->cmdfunc(mtd, NAND_CMD_SEQIN, mtd->writesize, page); in zynq_nand_write_oob() 489 chip->read_buf(mtd, buf, mtd->writesize); in zynq_nand_read_page_raw() 506 chip->read_buf(mtd, buf, mtd->writesize); in zynq_nand_read_page_raw_nooob() 537 chip->write_buf(mtd, buf, mtd->writesize); in zynq_nand_write_page_raw() 806 if ((mtd->writesize > ZYNQ_NAND_ECC_SIZE) && in zynq_nand_cmd_function() 808 column += mtd->writesize; in zynq_nand_cmd_function() 873 if (mtd->writesize > ZYNQ_NAND_ECC_SIZE) { in zynq_nand_cmd_function() 1167 nand_chip->ecc.size = mtd->writesize; in zynq_nand_init() 1196 switch (mtd->writesize) { in zynq_nand_init()
|
D | sunxi_nand.c | 447 writel(mtd->writesize, nfc->regs + NFC_REG_SPARE_AREA); in sunxi_nfc_select_chip() 687 int mod = mtd->erasesize / mtd->writesize; in sunxi_nfc_randomizer_state() 917 offset + mtd->writesize, -1); in sunxi_nfc_hw_ecc_read_extra_oob() 925 *cur_off = mtd->oobsize + mtd->writesize; in sunxi_nfc_hw_ecc_read_extra_oob() 998 offset + mtd->writesize, -1); in sunxi_nfc_hw_ecc_write_extra_oob() 1002 *cur_off = mtd->oobsize + mtd->writesize; in sunxi_nfc_hw_ecc_write_extra_oob() 1023 oob_off + mtd->writesize, in sunxi_nfc_hw_ecc_read_page() 1061 oob, oob_off + mtd->writesize, in sunxi_nfc_hw_ecc_read_subpage() 1089 oob_off + mtd->writesize, in sunxi_nfc_hw_ecc_write_page() 1123 oob_off + mtd->writesize, in sunxi_nfc_hw_ecc_write_subpage() [all …]
|
D | arasan_nfc.c | 438 status = arasan_nand_read_page(mtd, buf, (mtd->writesize)); in arasan_nand_read_page_hwecc() 493 u32 size = mtd->writesize; in arasan_nand_write_page_hwecc() 605 chip->cmdfunc(mtd, NAND_CMD_SEQIN, mtd->writesize, page); in arasan_nand_write_oob() 649 switch (mtd->writesize) { in arasan_nand_page() 1044 (mtd->writesize > 512)) { in arasan_nand_cmd_function() 1045 column += mtd->writesize; in arasan_nand_cmd_function() 1140 if ((ecc_matrix[i].pagesize == mtd->writesize) && in arasan_nand_ecc_init() 1155 eccaddr = mtd->writesize + mtd->oobsize - in arasan_nand_ecc_init() 1238 nand_chip->ecc.size = mtd->writesize; in arasan_nand_init()
|
/external/u-boot/drivers/mtd/onenand/ |
D | onenand_base.c | 521 return mtd->writesize; in onenand_bufferram_offset() 624 if (addr & this->writesize) in onenand_get_2x_blockpage() 835 this->command(mtd, FLEXONENAND_CMD_RECOVER_LSB, addr, this->writesize); in onenand_recover_lsb() 859 int writesize = this->writesize; in onenand_read_ops_nolock() local 888 this->command(mtd, ONENAND_CMD_READ, from, writesize); in onenand_read_ops_nolock() 898 thislen = min_t(int, writesize, len - read); in onenand_read_ops_nolock() 899 column = from & (writesize - 1); in onenand_read_ops_nolock() 900 if (column + thislen > writesize) in onenand_read_ops_nolock() 901 thislen = writesize - column; in onenand_read_ops_nolock() 908 this->command(mtd, ONENAND_CMD_READ, from, writesize); in onenand_read_ops_nolock() [all …]
|
D | samsung.c | 304 m += (this->writesize >> 2); in s3c_onenand_command() 308 mcount = mtd->writesize >> 2; in s3c_onenand_command() 383 p += this->writesize; in s3c_get_bufferram() 493 this->subpagesize = mtd->writesize; in s3c_onenand_unlock_all()
|
D | onenand_bbt.c | 102 from + j * mtd->writesize + in create_bbt() 110 (&buf[j * scanlen], scanlen, mtd->writesize, bd)) { in create_bbt()
|
/external/u-boot/cmd/ |
D | nand.c | 50 off = last + mtd->writesize; in nand_dump() 54 datbuf = memalign(ARCH_DMA_MINALIGN, mtd->writesize); in nand_dump() 66 off &= ~(mtd->writesize - 1); in nand_dump() 72 ops.len = mtd->writesize; in nand_dump() 84 i = mtd->writesize >> 4; in nand_dump() 300 printf(" Page size %8d b\n", mtd->writesize); in nand_print_and_set_info() 308 env_set_hex("nand_writesize", mtd->writesize); in nand_print_and_set_info() 322 .oobbuf = ((u8 *)addr) + mtd->writesize, in raw_access() 323 .len = mtd->writesize, in raw_access() 342 addr += mtd->writesize + mtd->oobsize; in raw_access() [all …]
|
D | onenand.c | 112 .len = mtd->writesize, in onenand_write_oneblock_withoob() 117 for (page = 0; page < (mtd->erasesize / mtd->writesize); page ++) { in onenand_write_oneblock_withoob() 119 buf += mtd->writesize; in onenand_write_oneblock_withoob() 125 to += mtd->writesize; in onenand_write_oneblock_withoob() 142 if ((to & (mtd->writesize - 1)) != 0) { in onenand_block_write() 312 datbuf = malloc(mtd->writesize + mtd->oobsize); in onenand_dump() 318 off &= ~(mtd->writesize - 1); in onenand_dump() 323 ops.len = mtd->writesize; in onenand_dump() 334 i = mtd->writesize >> 4; in onenand_dump()
|
/external/u-boot/board/armltd/integrator/ |
D | lowlevel_init.S | 132 b writesize 138 b writesize 144 b writesize 150 b writesize 158 writesize: label
|
/external/u-boot/env/ |
D | onenand.c | 50 if (mtd->writesize) in env_onenand_load() 55 mtd->writesize = MAX_ONENAND_PAGESIZE; in env_onenand_load()
|
/external/u-boot/drivers/mtd/ |
D | mtdconcat.c | 175 if (mtd->writesize > 1) { in concat_writev() 177 if (do_div(__to, mtd->writesize) || (total_len % mtd->writesize)) in concat_writev() 724 concat->mtd.writesize = subdev[0]->writesize; in mtd_concat_create() 793 if (concat->mtd.writesize != subdev[i]->writesize || in mtd_concat_create()
|