/linux-master/drivers/mtd/tests/ |
H A D | nandbiterrs.c | 95 return mtdtest_write(mtd, offset, mtd->writesize, wbuffer); 108 ops.len = mtd->writesize; 117 if (err || ops.retlen != mtd->writesize) { 140 err = mtd_read(mtd, offset, mtd->writesize, &read, rbuffer); 144 if (err < 0 || read != mtd->writesize) { 161 for (i = 0; i < mtd->writesize; i++) { 184 while (byte < mtd->writesize) { 208 for (i = 0; i < mtd->writesize; i++) 271 for (i = 0; i < mtd->writesize; i++) 351 mtd->writesize, mt [all...] |
H A D | oobtest.c | 64 for (i = 0; i < pgcnt; ++i, addr += mtd->writesize) { 174 for (i = 0; i < pgcnt; ++i, addr += mtd->writesize) { 294 for (i = 0; i < pgcnt; ++i, addr += mtd->writesize) { 370 pgcnt = mtd->erasesize / mtd->writesize; 376 mtd->writesize, ebcnt, pgcnt, mtd->oobsize); 551 err = mtd_write_oob(mtd, mtd->size - mtd->writesize, &ops); 570 err = mtd_read_oob(mtd, mtd->size - mtd->writesize, &ops); 596 err = mtd_write_oob(mtd, mtd->size - mtd->writesize, &ops); 615 err = mtd_read_oob(mtd, mtd->size - mtd->writesize, &ops); 644 addr = (loff_t)(i + 1) * mtd->erasesize - mtd->writesize; [all...] |
/linux-master/drivers/mtd/nand/raw/ |
H A D | nand_samsung.c | 27 mtd->writesize = memorg->pagesize; 125 if (mtd->writesize > 512)
|
H A D | nand_micron.c | 233 ret = nand_change_read_column_op(chip, mtd->writesize, 243 mtd->writesize + mtd->oobsize); 259 rawbuf = micron->ecc.rawbuf + mtd->writesize + offs; 333 !nand_read_data_op(chip, buf, mtd->writesize, false, true)) 341 ret = nand_read_data_op(chip, buf, mtd->writesize, false, 347 ret = nand_change_read_column_op(chip, 0, buf, mtd->writesize, 350 ret = nand_change_read_column_op(chip, mtd->writesize, 499 if (mtd->writesize == 2048) 532 micron->ecc.rawbuf = kmalloc(mtd->writesize +
|
H A D | cadence-nand-controller.c | 520 /* Sector size. There are few sectors per mtd->writesize */ 1241 last_sec_size = mtd->writesize + mtd->oobsize; 1244 offset = mtd->writesize + cdns_chip->bbm_offs; 1444 mtd->writesize 1453 memset(cdns_ctrl->buf + mtd->writesize, 0xFF, 1461 if (cadence_nand_dma_buf_ok(cdns_ctrl, buf, mtd->writesize) && 1468 oob = cdns_ctrl->buf + mtd->writesize; 1473 mtd->writesize, 1486 memcpy(cdns_ctrl->buf + mtd->writesize, chip->oob_poi, 1490 memcpy(cdns_ctrl->buf, buf, mtd->writesize); 1519 int writesize = mtd->writesize; local 1713 int writesize = mtd->writesize; local [all...] |
H A D | denali.c | 204 iowrite32(mtd->writesize, denali->reg + DEVICE_MAIN_AREA_SIZE); 247 int writesize = mtd->writesize; local 255 if (pos >= writesize) { 257 } else if (pos + len > writesize) { 260 writesize - pos, write); 264 buf += writesize - pos; 265 len -= writesize - pos; 266 pos = writesize + oob_skip; 284 int writesize local [all...] |
H A D | fsl_elbc_nand.c | 97 if (mtd->writesize > 512) 251 if (elbc_fcm_ctrl->read_bytes == mtd->writesize + mtd->oobsize) { 336 elbc_fcm_ctrl->read_bytes = mtd->writesize + mtd->oobsize; 361 elbc_fcm_ctrl->read_bytes = mtd->writesize + mtd->oobsize; 429 if (column >= mtd->writesize) { 431 column -= mtd->writesize; 486 elbc_fcm_ctrl->index != mtd->writesize + mtd->oobsize) 545 unsigned int bufsize = mtd->writesize + mtd->oobsize; 640 nand_read_page_op(chip, page, 0, buf, mtd->writesize); 658 nand_prog_page_begin_op(chip, page, 0, buf, mtd->writesize); [all...] |
H A D | mxc_nand.c | 240 * There are writesize / 512 such chunks, the size of the partial oob parts is 244 * holds a page in natural order, i.e. writesize bytes data + oobsize bytes 252 u16 num_chunks = mtd->writesize / 512; 299 if (mtd->writesize > 512) 311 if (mtd->writesize > 512) { 588 if (mtd->writesize > 512) 724 if (mtd->writesize > 512) 727 no_subpages = mtd->writesize >> 9; 761 memcpy32_fromio(buf, host->main_area0, mtd->writesize); 783 if (mtd->writesize > 51 [all...] |
H A D | mpc5121_nfc.c | 240 if (mtd->writesize > 512) 373 if (mtd->writesize > 512) 416 sbsize = (mtd->oobsize / (mtd->writesize / 512)) & ~1; 454 if (prv->spareonly || c >= mtd->writesize) { 456 if (c >= mtd->writesize) 457 c -= mtd->writesize; 468 l = min((uint)len, mtd->writesize - c); 576 mtd->writesize = rcw_pagesize; 780 switch (mtd->erasesize / mtd->writesize) {
|
H A D | fsl_ifc_nand.c | 106 if (mtd->writesize == 512 && 154 ifc_nand_ctrl->addr = priv->vbase + buf_num * (mtd->writesize * 2); 159 ifc_nand_ctrl->index += mtd->writesize; 259 if (mtd->writesize > 512) { 309 ifc_nand_ctrl->read_bytes = mtd->writesize + mtd->oobsize; 324 ifc_nand_ctrl->read_bytes = mtd->writesize + mtd->oobsize; 387 if (mtd->writesize > 512) { 427 if (column >= mtd->writesize) 435 if (column >= mtd->writesize) { 437 column -= mtd->writesize; [all...] |
H A D | rockchip-nand-controller.c | 515 pages_per_blk = mtd->erasesize / mtd->writesize; 527 memset(nfc->page_buf, 0xff, mtd->writesize + mtd->oobsize); 584 rk_nfc_write_buf(nfc, buf, mtd->writesize + mtd->oobsize); 597 int pages_per_blk = mtd->erasesize / mtd->writesize; 606 memcpy(nfc->page_buf, buf, mtd->writesize); 608 memset(nfc->page_buf, 0xFF, mtd->writesize); 658 mtd->writesize, DMA_TO_DEVICE); 679 dma_unmap_single(nfc->dev, dma_data, mtd->writesize, 709 pages_per_blk = mtd->erasesize / mtd->writesize; 721 rk_nfc_read_buf(nfc, nfc->page_buf, mtd->writesize [all...] |
H A D | cafe_nand.c | 185 if (mtd->writesize > 512 && 187 column += mtd->writesize; 205 if (mtd->size > mtd->writesize << 16) 225 cafe->datalen = mtd->writesize + mtd->oobsize - column; 244 else if (command == NAND_CMD_READ0 && mtd->writesize > 512) 349 return nand_prog_page_op(chip, page, mtd->writesize, chip->oob_poi, 381 nand_read_page_op(chip, page, 0, buf, mtd->writesize); 540 nand_prog_page_begin_op(chip, page, 0, buf, mtd->writesize); 613 if (mtd->writesize == 2048) 618 if (mtd->writesize [all...] |
H A D | sm_common.c | 171 if (mtd->writesize == SM_SECTOR_SIZE) 173 else if (mtd->writesize == SM_SMALL_PAGE)
|
H A D | nand_base.c | 52 int lastpage = (mtd->erasesize / mtd->writesize) - 1; 72 int lastpair = ((mtd->erasesize / mtd->writesize) - 1) / 2; 87 if (page >= mtd->erasesize / mtd->writesize) 228 int last_page = ((mtd->erasesize - mtd->writesize) >> 524 ofs + (page_offset * mtd->writesize), 1098 if (offset_in_page > mtd->writesize + mtd->oobsize) 1106 if (mtd->writesize <= 512 && offset_in_page >= mtd->writesize) 1107 offset_in_page -= mtd->writesize; 1126 if (mtd->writesize < [all...] |
H A D | renesas-nand-controller.c | 411 .len = mtd->writesize, 412 .ecc_offset = ECC_OFFSET(mtd->writesize + 2), 427 dma_addr = dma_map_single(rnandc->dev, rnandc->buf, mtd->writesize, 430 writel(mtd->writesize, rnandc->regs + DMA_CNT_REG); 437 dma_unmap_single(rnandc->dev, dma_addr, mtd->writesize, DMA_FROM_DEVICE); 447 ret = nand_change_read_column_op(chip, mtd->writesize, 482 memcpy(buf, rnandc->buf, mtd->writesize); 507 .ecc_offset = ECC_OFFSET(mtd->writesize + ecc_off), 543 ret = nand_change_read_column_op(chip, mtd->writesize, 591 .len = mtd->writesize, [all...] |
H A D | nand_bbt.c | 197 from & ~mtd->writesize); 201 from & ~mtd->writesize); 325 ops.len = min(len, (size_t)mtd->writesize); 336 buf += mtd->oobsize + mtd->writesize; 337 len -= mtd->writesize; 338 offs += mtd->writesize; 375 ver_offs += mtd->writesize; 397 mtd->writesize, td); 406 mtd->writesize, md); 435 ret = mtd_read_oob(mtd, offs + (page_offset * mtd->writesize), [all...] |
H A D | mtk_nand.c | 325 if (!mtd->writesize) 330 switch (mtd->writesize) { 356 dev_err(nfc->dev, "invalid page len: %d\n", mtd->writesize); 685 memset(nfc->buffer, 0xff, mtd->writesize + mtd->oobsize); 715 memset(nfc->buffer, 0xff, mtd->writesize + mtd->oobsize); 855 memcpy(nfc->buffer, buf, mtd->writesize); 865 len = mtd->writesize + (raw ? mtd->oobsize : 0); 1050 return mtk_nfc_read_subpage(mtd, chip, 0, mtd->writesize, p, pg, 0); 1062 memset(nfc->buffer, 0xff, mtd->writesize + mtd->oobsize); 1063 ret = mtk_nfc_read_subpage(mtd, chip, 0, mtd->writesize, nf [all...] |
H A D | vf610_nfc.c | 554 int trfr_sz = mtd->writesize + mtd->oobsize; 579 mtd->writesize, false); 583 mtd->writesize, 602 int trfr_sz = mtd->writesize + mtd->oobsize; 622 mtd->writesize, false); 662 ret = nand_prog_page_begin_op(chip, page, 0, buf, mtd->writesize); 693 ret = nand_prog_page_begin_op(chip, page, mtd->writesize, 755 if (mtd->writesize + mtd->oobsize > PAGE_2K + OOB_MAX - 8) { 763 if (mtd->writesize != PAGE_2K && mtd->oobsize < 64) { 768 if (chip->ecc.size != mtd->writesize) { [all...] |
/linux-master/drivers/mtd/nand/onenand/ |
H A D | onenand_base.c | 445 if (addr & this->writesize) 738 /* Note: the 'this->writesize' is a real page size */ 740 return this->writesize; 881 if (addr & this->writesize) 1101 this->command(mtd, FLEXONENAND_CMD_RECOVER_LSB, addr, this->writesize); 1126 int writesize = this->writesize; local 1148 thislen = min_t(int, writesize, len - read); 1150 column = from & (writesize - 1); 1151 if (column + thislen > writesize) 1227 int writesize = this->writesize; local [all...] |
H A D | onenand_bbt.c | 95 from + j * this->writesize + bd->offs, &ops); 102 scanlen, this->writesize, bd)) {
|
/linux-master/drivers/usb/class/ |
H A D | cdc-acm.h | 95 unsigned int writesize; /* max packet size for the output bulk endpoint */ member in struct:acm
|
/linux-master/drivers/mtd/nand/raw/gpmi-nand/ |
H A D | gpmi-nand.c | 282 i = (mtd->writesize * 8 - geo->metadata_size * 8) / 286 j = (mtd->writesize * 8 - geo->metadata_size * 8) - 346 geo->ecc_chunk_count = mtd->writesize / geo->eccn_chunk_size; 396 geo->page_size = mtd->writesize + geo->metadata_size + 399 geo->payload_size = mtd->writesize; 409 block_mark_bit_offset = mtd->writesize * 8 - 480 geo->ecc_chunk_count = mtd->writesize / geo->eccn_chunk_size; 500 geo->ecc_chunk_count = (mtd->writesize / geo->eccn_chunk_size) + 1; 510 bbm_chunk = (mtd->writesize * 8 - geo->metadata_size * 8 - 517 geo->page_size = mtd->writesize [all...] |
/linux-master/drivers/usb/ |
H A D | usb-skeleton.c | 366 size_t writesize = min_t(size_t, count, MAX_TRANSFER); local 409 buf = usb_alloc_coherent(dev->udev, writesize, GFP_KERNEL, 416 if (copy_from_user(buf, user_buffer, writesize)) { 432 buf, writesize, skel_write_bulk_callback, dev); 453 return writesize; 459 usb_free_coherent(dev->udev, writesize, buf, urb->transfer_dma);
|
/linux-master/drivers/mtd/chips/ |
H A D | map_absent.c | 65 mtd->writesize = 1;
|
/linux-master/drivers/mtd/ubi/ |
H A D | gluebi.c | 15 * size (@mtd->writesize) is equivalent to the UBI minimal I/O unit. The 202 if (len % mtd->writesize || offs % mtd->writesize) 301 mtd->writesize = di->min_io_size;
|