Searched refs:writesize (Results 1 - 25 of 86) sorted by relevance

1234

/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/mtd/nand/
H A Dnand_bbt.c276 if (len <= mtd->writesize) {
282 ops.oobbuf = buf + mtd->writesize;
284 ops.len = mtd->writesize;
291 buf += mtd->oobsize + mtd->writesize;
292 len -= mtd->writesize;
334 mtd->writesize);
335 td->version[0] = buf[mtd->writesize + td->veroffs];
343 mtd->writesize);
344 md->version[0] = buf[mtd->writesize + md->veroffs];
365 if (check_pattern(buf, scanlen, mtd->writesize, b
[all...]
H A Dmxc_nand.c415 if (nfc_is_v1() && mtd->writesize > 512)
555 no_subpages = mtd->writesize >> 9;
622 int n = mtd->oobsize + mtd->writesize - col;
640 int n = mtd->oobsize + mtd->writesize - col;
693 u16 n = mtd->writesize >> 9;
694 u8 *d = host->data_buf + mtd->writesize;
730 if (mtd->writesize > 512)
740 if (mtd->writesize > 512) {
770 oobbytes_per_512 = mtd->oobsize * 512 / mtd->writesize;
793 if (nfc_is_v21() && mtd->writesize) {
[all...]
H A Dbcm_umi_bch.c139 mtd->writesize + sectorIdx * sectorOobSize, -1);
140 nand_bcm_umi_bch_read_oobEcc(mtd->writesize, eccCalc,
208 nand_bcm_umi_bch_write_oobEcc(mtd->writesize, oobp,
H A Dsm_common.c130 if (mtd->writesize == SM_SECTOR_SIZE)
132 else if (mtd->writesize == SM_SMALL_PAGE)
H A Dmpc5121_nfc.c256 if (mtd->writesize > 512)
388 if (mtd->writesize > 512)
431 sbsize = (mtd->oobsize / (mtd->writesize / 512)) & ~1;
469 if (prv->spareonly || c >= mtd->writesize) {
471 if (c >= mtd->writesize)
472 c -= mtd->writesize;
483 l = min((uint)len, mtd->writesize - c);
620 mtd->writesize = rcw_pagesize;
814 switch (mtd->erasesize / mtd->writesize) {
H A Dcafe_nand.c184 if (mtd->writesize > 512 &&
186 column += mtd->writesize;
202 if (mtd->size > mtd->writesize << 16)
222 cafe->datalen = mtd->writesize + mtd->oobsize - column;
241 else if (command == NAND_CMD_READ0 && mtd->writesize > 512)
357 chip->cmdfunc(mtd, NAND_CMD_SEQIN, mtd->writesize, page);
391 chip->read_buf(mtd, buf, mtd->writesize);
525 chip->write_buf(mtd, buf, mtd->writesize);
573 if (chip->verify_buf(mtd, buf, mtd->writesize))
769 if (mtd->writesize
[all...]
H A Dfsl_elbc_nand.c312 ctrl->read_bytes = mtd->writesize + mtd->oobsize;
328 ctrl->read_bytes = mtd->writesize + mtd->oobsize;
419 if (column >= mtd->writesize) {
421 column -= mtd->writesize;
448 ctrl->index != mtd->writesize + mtd->oobsize) {
465 ctrl->read_bytes = mtd->writesize + 9;
528 unsigned int bufsize = mtd->writesize + mtd->oobsize;
693 dev_dbg(ctrl->dev, "fsl_elbc_init: mtd->writesize = %d\n",
694 mtd->writesize);
699 if (mtd->writesize
[all...]
H A Dalauda.c228 usb_fill_bulk_urb(sg.urb[1], al->dev, al->bulk_in, buf, mtd->writesize,
293 usb_fill_bulk_urb(sg.urb[1], al->dev, al->write_out, buf,mtd->writesize,
395 bounce_buf = kmalloc(mtd->writesize, GFP_KERNEL);
403 size_t cplen = min(len, mtd->writesize - byte);
443 buf += mtd->writesize;
444 from += mtd->writesize;
445 len -= mtd->writesize;
484 buf += mtd->writesize;
485 to += mtd->writesize;
486 len -= mtd->writesize;
[all...]
H A Dnand_base.c350 ofs += mtd->erasesize - mtd->writesize;
402 ofs += mtd->erasesize - mtd->writesize;
434 ofs += mtd->writesize;
556 if (column >= mtd->writesize) {
558 column -= mtd->writesize;
654 column += mtd->writesize;
1065 chip->read_buf(mtd, buf, mtd->writesize);
1202 chip->cmdfunc(mtd, NAND_CMD_RNDOUT, mtd->writesize, -1);
1214 chip->cmdfunc(mtd, NAND_CMD_RNDOUT, mtd->writesize + aligned_pos, -1);
1464 col = (int)(from & (mtd->writesize
[all...]
H A Datmel_nand.c247 mtd->writesize + eccpos[0], -1);
263 chip->cmdfunc(mtd, NAND_CMD_RNDOUT, mtd->writesize, -1);
476 nand_chip->ecc.size = mtd->writesize;
479 switch (mtd->writesize) {
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/spectra/
H A Dlld_mtd.c116 DeviceInfo.wPagesPerBlock = spectra_mtd->erasesize / spectra_mtd->writesize;
117 DeviceInfo.wPageSize = spectra_mtd->writesize + spectra_mtd->oobsize;
118 DeviceInfo.wPageDataSize = spectra_mtd->writesize;
241 (Block * spectra_mtd->erasesize) + (Page * spectra_mtd->writesize),
291 (Block * spectra_mtd->erasesize) + (Page * spectra_mtd->writesize),
355 (Block * spectra_mtd->erasesize) + (Page * spectra_mtd->writesize),
415 (Block * spectra_mtd->erasesize) + (Page * spectra_mtd->writesize),
488 (Block * spectra_mtd->erasesize) + (Page * spectra_mtd->writesize),
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/mtd/onenand/
H A Donenand_base.c389 if (addr & this->writesize)
683 /* Note: the 'this->writesize' is a real page size */
685 return this->writesize;
826 if (addr & this->writesize)
1066 this->command(mtd, FLEXONENAND_CMD_RECOVER_LSB, addr, this->writesize);
1091 int writesize = this->writesize; local
1117 thislen = min_t(int, writesize, len - read);
1119 column = from & (writesize - 1);
1120 if (column + thislen > writesize)
1193 int writesize = this->writesize; local
[all...]
H A Donenand_bbt.c94 ret = onenand_bbt_read_oob(mtd, from + j * mtd->writesize + bd->offs, &ops);
100 if (ret || check_short_pattern(&buf[j * scanlen], scanlen, mtd->writesize, bd)) {
H A Dsamsung.c431 m += (this->writesize >> 2);
435 mcount = mtd->writesize >> 2;
502 p += this->writesize;
581 p += this->writesize;
587 !onenand->dma_addr || count != mtd->writesize)
620 if (count != mtd->writesize) {
622 memcpy(this->page_buf, p, mtd->writesize);
880 this->subpagesize = mtd->writesize;
916 this->subpagesize = mtd->writesize;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/mtd/tests/
H A Dmtd_oobtest.c132 for (i = 0; i < pgcnt; ++i, addr += mtd->writesize) {
185 for (i = 0; i < pgcnt; ++i, addr += mtd->writesize) {
386 pgcnt = mtd->erasesize / mtd->writesize;
392 mtd->writesize, ebcnt, pgcnt, mtd->oobsize);
564 err = mtd->write_oob(mtd, mtd->size - mtd->writesize, &ops);
584 err = mtd->read_oob(mtd, mtd->size - mtd->writesize, &ops);
608 err = mtd->write_oob(mtd, mtd->size - mtd->writesize, &ops);
628 err = mtd->read_oob(mtd, mtd->size - mtd->writesize, &ops);
655 addr = (i + 1) * mtd->erasesize - mtd->writesize;
673 addr += mtd->writesize;
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/mtd/47xxnand/
H A Dbrcmnand_bbt.c366 mtd->writesize);
367 td->version[0] = buf[mtd->writesize + td->veroffs];
375 mtd->writesize);
376 md->version[0] = buf[mtd->writesize + md->veroffs];
396 if (check_pattern(buf, scanlen, mtd->writesize, bd))
433 offs += (dir * mtd->writesize);
475 scanlen = mtd->writesize + mtd->oobsize;
476 readlen = len * mtd->writesize;
545 int scanlen = mtd->writesize + mtd->oobsize;
582 brcmnand_scan_read_raw(mtd, buf, offs, mtd->writesize);
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/mtd/bcm947xx/nand/
H A Dbrcmnand_bbt.c366 mtd->writesize);
367 td->version[0] = buf[mtd->writesize + td->veroffs];
375 mtd->writesize);
376 md->version[0] = buf[mtd->writesize + md->veroffs];
396 if (check_pattern(buf, scanlen, mtd->writesize, bd))
433 offs += (dir * mtd->writesize);
475 scanlen = mtd->writesize + mtd->oobsize;
476 readlen = len * mtd->writesize;
545 int scanlen = mtd->writesize + mtd->oobsize;
582 brcmnand_scan_read_raw(mtd, buf, offs, mtd->writesize);
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/mtd/chips/
H A Dmap_absent.c64 mtd->writesize = 1;
H A Dmap_rom.c51 mtd->writesize = 1;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/usb/class/
H A Dcdc-acm.h120 unsigned int writesize; /* max packet size for the output bulk endpoint */ member in struct:acm
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/include/linux/mtd/
H A Dmtd.h127 * it is of ECC block size, etc. It is illegal to have writesize = 0.
128 * Any driver registering a struct mtd_info must ensure a writesize of
131 uint32_t writesize; member in struct:mtd_info
138 * erasesize_shift otherwise erasesize_shift is zero. Ditto writesize.
290 do_div(sz, mtd->writesize);
298 return do_div(sz, mtd->writesize);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/mtd/
H A Dmtdcore.c206 return snprintf(buf, PAGE_SIZE, "%lu\n", (unsigned long)mtd->writesize);
209 static DEVICE_ATTR(writesize, S_IRUGO, mtd_writesize_show, NULL);
215 unsigned int subpagesize = mtd->writesize >> mtd->subpage_sft;
310 BUG_ON(mtd->writesize == 0);
330 if (is_power_of_2(mtd->writesize))
331 mtd->writesize_shift = ffs(mtd->writesize) - 1;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/usb/
H A Dusb-skeleton.c402 size_t writesize = min(count, (size_t)MAX_TRANSFER); local
445 buf = usb_alloc_coherent(dev->udev, writesize, GFP_KERNEL,
452 if (copy_from_user(buf, user_buffer, writesize)) {
468 buf, writesize, skel_write_bulk_callback, dev);
488 return writesize;
494 usb_free_coherent(dev->udev, writesize, buf, urb->transfer_dma);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/mtd/devices/
H A Dsst25l.c286 if ((uint32_t)to % mtd->writesize)
295 for (i = 0; i < len; i += mtd->writesize) {
315 bytes = min_t(uint32_t, mtd->writesize, len - i);
406 flash->mtd.writesize = flash_info->page_size;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/include/mtd/
H A Dmtd-abi.h84 __u32 writesize; member in struct:mtd_info_user

Completed in 142 milliseconds

1234