cfi 173 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 174 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_pri_intelext *extp = cfi->cmdset_priv; cfi 206 drivers/mtd/chips/cfi_cmdset_0001.c cfi->cfiq->BufWriteTimeoutTyp = 0; cfi 207 drivers/mtd/chips/cfi_cmdset_0001.c cfi->cfiq->BufWriteTimeoutMax = 0; cfi 213 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 214 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_pri_intelext *cfip = cfi->cmdset_priv; cfi 225 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 226 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_pri_intelext *extp = cfi->cmdset_priv; cfi 238 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 239 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_pri_intelext *cfip = cfi->cmdset_priv; cfi 251 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 253 drivers/mtd/chips/cfi_cmdset_0001.c cfi->cfiq->BufWriteTimeoutTyp = 0; /* Not supported */ cfi 254 drivers/mtd/chips/cfi_cmdset_0001.c cfi->cfiq->BufWriteTimeoutMax = 0; /* Not supported */ cfi 260 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 263 drivers/mtd/chips/cfi_cmdset_0001.c cfi->cfiq->EraseRegionInfo[1] = cfi 264 drivers/mtd/chips/cfi_cmdset_0001.c (cfi->cfiq->EraseRegionInfo[1] & 0xffff0000) | 0x3e; cfi 267 drivers/mtd/chips/cfi_cmdset_0001.c static int is_LH28F640BF(struct cfi_private *cfi) cfi 270 drivers/mtd/chips/cfi_cmdset_0001.c if (cfi->mfr == CFI_MFR_SHARP && ( cfi 271 drivers/mtd/chips/cfi_cmdset_0001.c cfi->id == LH28F640BFHE_PTTL90 || cfi->id == LH28F640BFHE_PBTL90 || cfi 272 drivers/mtd/chips/cfi_cmdset_0001.c cfi->id == LH28F640BFHE_PTTL70A || cfi->id == LH28F640BFHE_PBTL70A)) cfi 280 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 281 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_pri_intelext *extp = cfi->cmdset_priv; cfi 285 drivers/mtd/chips/cfi_cmdset_0001.c if (is_LH28F640BF(cfi)) { cfi 309 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 310 drivers/mtd/chips/cfi_cmdset_0001.c if (cfi->cfiq->BufWriteTimeoutTyp) { cfi 323 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 324 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_pri_intelext *cfip = cfi->cmdset_priv; cfi 371 drivers/mtd/chips/cfi_cmdset_0001.c static void cfi_fixup_major_minor(struct cfi_private *cfi, cfi 374 drivers/mtd/chips/cfi_cmdset_0001.c if (cfi->mfr == CFI_MFR_INTEL && cfi 375 drivers/mtd/chips/cfi_cmdset_0001.c cfi->id == PF38F4476 && extp->MinorVersion == '3') cfi 379 drivers/mtd/chips/cfi_cmdset_0001.c static int cfi_is_micron_28F00AP30(struct cfi_private *cfi, struct flchip *chip) cfi 385 drivers/mtd/chips/cfi_cmdset_0001.c if (cfi->mfr == CFI_MFR_INTEL && cfi->id == M28F00AP30) cfi 393 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 403 drivers/mtd/chips/cfi_cmdset_0001.c cfi_fixup_major_minor(cfi, extp); cfi 481 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 504 drivers/mtd/chips/cfi_cmdset_0001.c mtd->writebufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; cfi 508 drivers/mtd/chips/cfi_cmdset_0001.c if (cfi->cfi_mode == CFI_MODE_CFI) { cfi 514 drivers/mtd/chips/cfi_cmdset_0001.c __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; cfi 524 drivers/mtd/chips/cfi_cmdset_0001.c cfi->cmdset_priv = extp; cfi 537 drivers/mtd/chips/cfi_cmdset_0001.c else if (cfi->cfi_mode == CFI_MODE_JEDEC) { cfi 544 drivers/mtd/chips/cfi_cmdset_0001.c for (i=0; i< cfi->numchips; i++) { cfi 545 drivers/mtd/chips/cfi_cmdset_0001.c if (cfi->cfiq->WordWriteTimeoutTyp) cfi 546 drivers/mtd/chips/cfi_cmdset_0001.c cfi->chips[i].word_write_time = cfi 547 drivers/mtd/chips/cfi_cmdset_0001.c 1<<cfi->cfiq->WordWriteTimeoutTyp; cfi 549 drivers/mtd/chips/cfi_cmdset_0001.c cfi->chips[i].word_write_time = 50000; cfi 551 drivers/mtd/chips/cfi_cmdset_0001.c if (cfi->cfiq->BufWriteTimeoutTyp) cfi 552 drivers/mtd/chips/cfi_cmdset_0001.c cfi->chips[i].buffer_write_time = cfi 553 drivers/mtd/chips/cfi_cmdset_0001.c 1<<cfi->cfiq->BufWriteTimeoutTyp; cfi 556 drivers/mtd/chips/cfi_cmdset_0001.c if (cfi->cfiq->BlockEraseTimeoutTyp) cfi 557 drivers/mtd/chips/cfi_cmdset_0001.c cfi->chips[i].erase_time = cfi 558 drivers/mtd/chips/cfi_cmdset_0001.c 1000<<cfi->cfiq->BlockEraseTimeoutTyp; cfi 560 drivers/mtd/chips/cfi_cmdset_0001.c cfi->chips[i].erase_time = 2000000; cfi 562 drivers/mtd/chips/cfi_cmdset_0001.c if (cfi->cfiq->WordWriteTimeoutTyp && cfi 563 drivers/mtd/chips/cfi_cmdset_0001.c cfi->cfiq->WordWriteTimeoutMax) cfi 564 drivers/mtd/chips/cfi_cmdset_0001.c cfi->chips[i].word_write_time_max = cfi 565 drivers/mtd/chips/cfi_cmdset_0001.c 1<<(cfi->cfiq->WordWriteTimeoutTyp + cfi 566 drivers/mtd/chips/cfi_cmdset_0001.c cfi->cfiq->WordWriteTimeoutMax); cfi 568 drivers/mtd/chips/cfi_cmdset_0001.c cfi->chips[i].word_write_time_max = 50000 * 8; cfi 570 drivers/mtd/chips/cfi_cmdset_0001.c if (cfi->cfiq->BufWriteTimeoutTyp && cfi 571 drivers/mtd/chips/cfi_cmdset_0001.c cfi->cfiq->BufWriteTimeoutMax) cfi 572 drivers/mtd/chips/cfi_cmdset_0001.c cfi->chips[i].buffer_write_time_max = cfi 573 drivers/mtd/chips/cfi_cmdset_0001.c 1<<(cfi->cfiq->BufWriteTimeoutTyp + cfi 574 drivers/mtd/chips/cfi_cmdset_0001.c cfi->cfiq->BufWriteTimeoutMax); cfi 576 drivers/mtd/chips/cfi_cmdset_0001.c if (cfi->cfiq->BlockEraseTimeoutTyp && cfi 577 drivers/mtd/chips/cfi_cmdset_0001.c cfi->cfiq->BlockEraseTimeoutMax) cfi 578 drivers/mtd/chips/cfi_cmdset_0001.c cfi->chips[i].erase_time_max = cfi 579 drivers/mtd/chips/cfi_cmdset_0001.c 1000<<(cfi->cfiq->BlockEraseTimeoutTyp + cfi 580 drivers/mtd/chips/cfi_cmdset_0001.c cfi->cfiq->BlockEraseTimeoutMax); cfi 582 drivers/mtd/chips/cfi_cmdset_0001.c cfi->chips[i].erase_time_max = 2000000 * 8; cfi 584 drivers/mtd/chips/cfi_cmdset_0001.c cfi->chips[i].ref_point_counter = 0; cfi 585 drivers/mtd/chips/cfi_cmdset_0001.c init_waitqueue_head(&(cfi->chips[i].wq)); cfi 601 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 604 drivers/mtd/chips/cfi_cmdset_0001.c unsigned long devsize = (1<<cfi->cfiq->DevSize) * cfi->interleave; cfi 608 drivers/mtd/chips/cfi_cmdset_0001.c mtd->size = devsize * cfi->numchips; cfi 610 drivers/mtd/chips/cfi_cmdset_0001.c mtd->numeraseregions = cfi->cfiq->NumEraseRegions * cfi->numchips; cfi 617 drivers/mtd/chips/cfi_cmdset_0001.c for (i=0; i<cfi->cfiq->NumEraseRegions; i++) { cfi 619 drivers/mtd/chips/cfi_cmdset_0001.c ersize = ((cfi->cfiq->EraseRegionInfo[i] >> 8) & ~0xff) * cfi->interleave; cfi 620 drivers/mtd/chips/cfi_cmdset_0001.c ernum = (cfi->cfiq->EraseRegionInfo[i] & 0xffff) + 1; cfi 625 drivers/mtd/chips/cfi_cmdset_0001.c for (j=0; j<cfi->numchips; j++) { cfi 626 drivers/mtd/chips/cfi_cmdset_0001.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; cfi 627 drivers/mtd/chips/cfi_cmdset_0001.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].erasesize = ersize; cfi 628 drivers/mtd/chips/cfi_cmdset_0001.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; cfi 629 drivers/mtd/chips/cfi_cmdset_0001.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap = kmalloc(ernum / 8 + 1, GFP_KERNEL); cfi 630 drivers/mtd/chips/cfi_cmdset_0001.c if (!mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap) cfi 660 drivers/mtd/chips/cfi_cmdset_0001.c if (cfi_intelext_partition_fixup(mtd, &cfi) != 0) cfi 669 drivers/mtd/chips/cfi_cmdset_0001.c for (i=0; i<cfi->cfiq->NumEraseRegions; i++) cfi 670 drivers/mtd/chips/cfi_cmdset_0001.c for (j=0; j<cfi->numchips; j++) cfi 671 drivers/mtd/chips/cfi_cmdset_0001.c kfree(mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap); cfi 674 drivers/mtd/chips/cfi_cmdset_0001.c kfree(cfi->cmdset_priv); cfi 682 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = *pcfi; cfi 683 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_pri_intelext *extp = cfi->cmdset_priv; cfi 736 drivers/mtd/chips/cfi_cmdset_0001.c mtd->writesize = cfi->interleave << prinfo->ProgRegShift; cfi 740 drivers/mtd/chips/cfi_cmdset_0001.c cfi->interleave * prinfo->ControlValid, cfi 741 drivers/mtd/chips/cfi_cmdset_0001.c cfi->interleave * prinfo->ControlInvalid); cfi 749 drivers/mtd/chips/cfi_cmdset_0001.c partshift = cfi->chipshift - __ffs(numparts); cfi 758 drivers/mtd/chips/cfi_cmdset_0001.c numvirtchips = cfi->numchips * numparts; cfi 763 drivers/mtd/chips/cfi_cmdset_0001.c shared = kmalloc_array(cfi->numchips, cfi 770 drivers/mtd/chips/cfi_cmdset_0001.c memcpy(newcfi, cfi, sizeof(struct cfi_private)); cfi 775 drivers/mtd/chips/cfi_cmdset_0001.c for (i = 0; i < cfi->numchips; i++) { cfi 779 drivers/mtd/chips/cfi_cmdset_0001.c *chip = cfi->chips[i]; cfi 792 drivers/mtd/chips/cfi_cmdset_0001.c map->name, cfi->numchips, cfi->interleave, cfi 797 drivers/mtd/chips/cfi_cmdset_0001.c kfree(cfi); cfi 809 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 811 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_pri_intelext *cfip = cfi->cmdset_priv; cfi 856 drivers/mtd/chips/cfi_cmdset_0001.c if (cfi_is_micron_28F00AP30(cfi, chip) && cfi 1021 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 1114 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 1141 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 1142 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_pri_intelext *cfip = cfi->cmdset_priv; cfi 1158 drivers/mtd/chips/cfi_cmdset_0001.c (cfi_interleave_is_1(cfi) || chip->oldstate == FL_READY)) { cfi 1273 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 1355 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 1383 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 1394 drivers/mtd/chips/cfi_cmdset_0001.c chipnum = (from >> cfi->chipshift); cfi 1395 drivers/mtd/chips/cfi_cmdset_0001.c ofs = from - (chipnum << cfi->chipshift); cfi 1397 drivers/mtd/chips/cfi_cmdset_0001.c *virt = map->virt + cfi->chips[chipnum].start + ofs; cfi 1399 drivers/mtd/chips/cfi_cmdset_0001.c *phys = map->phys + cfi->chips[chipnum].start + ofs; cfi 1404 drivers/mtd/chips/cfi_cmdset_0001.c if (chipnum >= cfi->numchips) cfi 1409 drivers/mtd/chips/cfi_cmdset_0001.c last_end = cfi->chips[chipnum].start; cfi 1410 drivers/mtd/chips/cfi_cmdset_0001.c else if (cfi->chips[chipnum].start != last_end) cfi 1413 drivers/mtd/chips/cfi_cmdset_0001.c if ((len + ofs -1) >> cfi->chipshift) cfi 1414 drivers/mtd/chips/cfi_cmdset_0001.c thislen = (1<<cfi->chipshift) - ofs; cfi 1418 drivers/mtd/chips/cfi_cmdset_0001.c ret = do_point_onechip(map, &cfi->chips[chipnum], ofs, thislen); cfi 1426 drivers/mtd/chips/cfi_cmdset_0001.c last_end += 1 << cfi->chipshift; cfi 1435 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 1442 drivers/mtd/chips/cfi_cmdset_0001.c chipnum = (from >> cfi->chipshift); cfi 1443 drivers/mtd/chips/cfi_cmdset_0001.c ofs = from - (chipnum << cfi->chipshift); cfi 1449 drivers/mtd/chips/cfi_cmdset_0001.c chip = &cfi->chips[chipnum]; cfi 1450 drivers/mtd/chips/cfi_cmdset_0001.c if (chipnum >= cfi->numchips) cfi 1453 drivers/mtd/chips/cfi_cmdset_0001.c if ((len + ofs -1) >> cfi->chipshift) cfi 1454 drivers/mtd/chips/cfi_cmdset_0001.c thislen = (1<<cfi->chipshift) - ofs; cfi 1482 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 1514 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 1520 drivers/mtd/chips/cfi_cmdset_0001.c chipnum = (from >> cfi->chipshift); cfi 1521 drivers/mtd/chips/cfi_cmdset_0001.c ofs = from - (chipnum << cfi->chipshift); cfi 1526 drivers/mtd/chips/cfi_cmdset_0001.c if (chipnum >= cfi->numchips) cfi 1529 drivers/mtd/chips/cfi_cmdset_0001.c if ((len + ofs -1) >> cfi->chipshift) cfi 1530 drivers/mtd/chips/cfi_cmdset_0001.c thislen = (1<<cfi->chipshift) - ofs; cfi 1534 drivers/mtd/chips/cfi_cmdset_0001.c ret = do_read_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf); cfi 1551 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 1559 drivers/mtd/chips/cfi_cmdset_0001.c write_cmd = (cfi->cfiq->P_ID != P_ID_INTEL_PERFORMANCE) ? CMD(0x40) : CMD(0x41); cfi 1626 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 1631 drivers/mtd/chips/cfi_cmdset_0001.c chipnum = to >> cfi->chipshift; cfi 1632 drivers/mtd/chips/cfi_cmdset_0001.c ofs = to - (chipnum << cfi->chipshift); cfi 1645 drivers/mtd/chips/cfi_cmdset_0001.c ret = do_write_oneword(map, &cfi->chips[chipnum], cfi 1655 drivers/mtd/chips/cfi_cmdset_0001.c if (ofs >> cfi->chipshift) { cfi 1658 drivers/mtd/chips/cfi_cmdset_0001.c if (chipnum == cfi->numchips) cfi 1666 drivers/mtd/chips/cfi_cmdset_0001.c ret = do_write_oneword(map, &cfi->chips[chipnum], cfi 1676 drivers/mtd/chips/cfi_cmdset_0001.c if (ofs >> cfi->chipshift) { cfi 1679 drivers/mtd/chips/cfi_cmdset_0001.c if (chipnum == cfi->numchips) cfi 1690 drivers/mtd/chips/cfi_cmdset_0001.c ret = do_write_oneword(map, &cfi->chips[chipnum], cfi 1706 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 1715 drivers/mtd/chips/cfi_cmdset_0001.c wbufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; cfi 1723 drivers/mtd/chips/cfi_cmdset_0001.c if (is_LH28F640BF(cfi)) cfi 1727 drivers/mtd/chips/cfi_cmdset_0001.c write_cmd = (cfi->cfiq->P_ID != P_ID_INTEL_PERFORMANCE) ? CMD(0xe8) : CMD(0xe9); cfi 1872 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 1873 drivers/mtd/chips/cfi_cmdset_0001.c int wbufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; cfi 1885 drivers/mtd/chips/cfi_cmdset_0001.c chipnum = to >> cfi->chipshift; cfi 1886 drivers/mtd/chips/cfi_cmdset_0001.c ofs = to - (chipnum << cfi->chipshift); cfi 1895 drivers/mtd/chips/cfi_cmdset_0001.c ret = do_write_buffer(map, &cfi->chips[chipnum], cfi 1904 drivers/mtd/chips/cfi_cmdset_0001.c if (ofs >> cfi->chipshift) { cfi 1907 drivers/mtd/chips/cfi_cmdset_0001.c if (chipnum == cfi->numchips) cfi 1934 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 2030 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 2035 drivers/mtd/chips/cfi_cmdset_0001.c for (i=0; !ret && i<cfi->numchips; i++) { cfi 2036 drivers/mtd/chips/cfi_cmdset_0001.c chip = &cfi->chips[i]; cfi 2055 drivers/mtd/chips/cfi_cmdset_0001.c chip = &cfi->chips[i]; cfi 2073 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 2074 drivers/mtd/chips/cfi_cmdset_0001.c int status, ofs_factor = cfi->interleave * cfi->device_type; cfi 2103 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 2104 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_pri_intelext *extp = cfi->cmdset_priv; cfi 2225 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 2283 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 2300 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 2301 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_pri_intelext *extp = cfi->cmdset_priv; cfi 2316 drivers/mtd/chips/cfi_cmdset_0001.c devsize = (1 << cfi->cfiq->DevSize) * cfi->interleave; cfi 2317 drivers/mtd/chips/cfi_cmdset_0001.c chip_step = devsize >> cfi->chipshift; cfi 2322 drivers/mtd/chips/cfi_cmdset_0001.c if (cfi->mfr == CFI_MFR_INTEL) { cfi 2323 drivers/mtd/chips/cfi_cmdset_0001.c switch (cfi->id) { cfi 2331 drivers/mtd/chips/cfi_cmdset_0001.c for ( ; chip_num < cfi->numchips; chip_num += chip_step) { cfi 2332 drivers/mtd/chips/cfi_cmdset_0001.c chip = &cfi->chips[chip_num]; cfi 2346 drivers/mtd/chips/cfi_cmdset_0001.c data_offset *= cfi->interleave * cfi->device_type; cfi 2347 drivers/mtd/chips/cfi_cmdset_0001.c reg_prot_offset *= cfi->interleave * cfi->device_type; cfi 2348 drivers/mtd/chips/cfi_cmdset_0001.c reg_fact_size *= cfi->interleave; cfi 2349 drivers/mtd/chips/cfi_cmdset_0001.c reg_user_size *= cfi->interleave; cfi 2507 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 2508 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_pri_intelext *extp = cfi->cmdset_priv; cfi 2517 drivers/mtd/chips/cfi_cmdset_0001.c for (i=0; !ret && i<cfi->numchips; i++) { cfi 2518 drivers/mtd/chips/cfi_cmdset_0001.c chip = &cfi->chips[i]; cfi 2529 drivers/mtd/chips/cfi_cmdset_0001.c map_write(map, CMD(0xFF), cfi->chips[i].start); cfi 2559 drivers/mtd/chips/cfi_cmdset_0001.c chip = &cfi->chips[i]; cfi 2601 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 2602 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_pri_intelext *extp = cfi->cmdset_priv; cfi 2606 drivers/mtd/chips/cfi_cmdset_0001.c for (i=0; i<cfi->numchips; i++) { cfi 2608 drivers/mtd/chips/cfi_cmdset_0001.c chip = &cfi->chips[i]; cfi 2616 drivers/mtd/chips/cfi_cmdset_0001.c map_write(map, CMD(0xFF), cfi->chips[i].start); cfi 2632 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 2635 drivers/mtd/chips/cfi_cmdset_0001.c for (i=0; i < cfi->numchips; i++) { cfi 2636 drivers/mtd/chips/cfi_cmdset_0001.c struct flchip *chip = &cfi->chips[i]; cfi 2667 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_private *cfi = map->fldrv_priv; cfi 2672 drivers/mtd/chips/cfi_cmdset_0001.c kfree(cfi->cmdset_priv); cfi 2673 drivers/mtd/chips/cfi_cmdset_0001.c kfree(cfi->cfiq); cfi 2674 drivers/mtd/chips/cfi_cmdset_0001.c kfree(cfi->chips[0].priv); cfi 2675 drivers/mtd/chips/cfi_cmdset_0001.c kfree(cfi); cfi 117 drivers/mtd/chips/cfi_cmdset_0002.c static int cfi_use_status_reg(struct cfi_private *cfi) cfi 119 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_pri_amdstd *extp = cfi->cmdset_priv; cfi 129 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 132 drivers/mtd/chips/cfi_cmdset_0002.c if (!cfi_use_status_reg(cfi)) cfi 135 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0x70, cfi->addr_unlock1, chip->start, map, cfi, cfi 136 drivers/mtd/chips/cfi_cmdset_0002.c cfi->device_type, NULL); cfi 224 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 225 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_pri_amdstd *extp = cfi->cmdset_priv; cfi 233 drivers/mtd/chips/cfi_cmdset_0002.c map->name, cfi->mfr, cfi->id); cfi 240 drivers/mtd/chips/cfi_cmdset_0002.c if (((cfi->id == 0xBA) || (cfi->id == 0x22BA)) && cfi 251 drivers/mtd/chips/cfi_cmdset_0002.c (cfi->mfr == CFI_MFR_MACRONIX)) { cfi 256 drivers/mtd/chips/cfi_cmdset_0002.c if (cfi->id & 0x80) { cfi 257 drivers/mtd/chips/cfi_cmdset_0002.c printk(KERN_WARNING "%s: JEDEC Device ID is 0x%02X. Assuming broken CFI table.\n", map->name, cfi->id); cfi 274 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 275 drivers/mtd/chips/cfi_cmdset_0002.c if (cfi->cfiq->BufWriteTimeoutTyp) { cfi 286 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 287 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_pri_amdstd *extp = cfi->cmdset_priv; cfi 297 drivers/mtd/chips/cfi_cmdset_0002.c if (cfi->id == AT49BV6416) { cfi 310 drivers/mtd/chips/cfi_cmdset_0002.c cfi->cfiq->BufWriteTimeoutTyp = 0; cfi 311 drivers/mtd/chips/cfi_cmdset_0002.c cfi->cfiq->BufWriteTimeoutMax = 0; cfi 324 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 325 drivers/mtd/chips/cfi_cmdset_0002.c if ((cfi->cfiq->NumEraseRegions == 1) && cfi 326 drivers/mtd/chips/cfi_cmdset_0002.c ((cfi->cfiq->EraseRegionInfo[0] & 0xffff) == 0)) { cfi 346 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 354 drivers/mtd/chips/cfi_cmdset_0002.c cfi->cfiq->NumEraseRegions = 1; cfi 360 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 364 drivers/mtd/chips/cfi_cmdset_0002.c cfi->addr_unlock1 = 0x5555; cfi 365 drivers/mtd/chips/cfi_cmdset_0002.c cfi->addr_unlock2 = 0x2AAA; cfi 371 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 375 drivers/mtd/chips/cfi_cmdset_0002.c cfi->addr_unlock1 = 0x555; cfi 376 drivers/mtd/chips/cfi_cmdset_0002.c cfi->addr_unlock2 = 0x2AA; cfi 378 drivers/mtd/chips/cfi_cmdset_0002.c cfi->sector_erase_cmd = CMD(0x50); cfi 384 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 392 drivers/mtd/chips/cfi_cmdset_0002.c cfi->cfiq->EraseRegionInfo[0] = 0x002003ff; cfi 400 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 402 drivers/mtd/chips/cfi_cmdset_0002.c if ((cfi->cfiq->EraseRegionInfo[0] & 0xffff) == 0x003f) { cfi 403 drivers/mtd/chips/cfi_cmdset_0002.c cfi->cfiq->EraseRegionInfo[0] |= 0x0040; cfi 412 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 414 drivers/mtd/chips/cfi_cmdset_0002.c if ((cfi->cfiq->EraseRegionInfo[1] & 0xffff) == 0x007e) { cfi 415 drivers/mtd/chips/cfi_cmdset_0002.c cfi->cfiq->EraseRegionInfo[1] &= ~0x0040; cfi 424 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 430 drivers/mtd/chips/cfi_cmdset_0002.c cfi->cfiq->EraseRegionInfo[0] = 0x020001ff; cfi 494 drivers/mtd/chips/cfi_cmdset_0002.c static void cfi_fixup_major_minor(struct cfi_private *cfi, cfi 497 drivers/mtd/chips/cfi_cmdset_0002.c if (cfi->mfr == CFI_MFR_SAMSUNG) { cfi 515 drivers/mtd/chips/cfi_cmdset_0002.c if (cfi->mfr == CFI_MFR_SST && (cfi->id >> 4) == 0x0536) { cfi 521 drivers/mtd/chips/cfi_cmdset_0002.c static int is_m29ew(struct cfi_private *cfi) cfi 523 drivers/mtd/chips/cfi_cmdset_0002.c if (cfi->mfr == CFI_MFR_INTEL && cfi 524 drivers/mtd/chips/cfi_cmdset_0002.c ((cfi->device_type == CFI_DEVICETYPE_X8 && (cfi->id & 0xff) == 0x7e) || cfi 525 drivers/mtd/chips/cfi_cmdset_0002.c (cfi->device_type == CFI_DEVICETYPE_X16 && cfi->id == 0x227e))) cfi 543 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 545 drivers/mtd/chips/cfi_cmdset_0002.c if (is_m29ew(cfi)) cfi 573 drivers/mtd/chips/cfi_cmdset_0002.c static void cfi_fixup_m29ew_delay_after_resume(struct cfi_private *cfi) cfi 579 drivers/mtd/chips/cfi_cmdset_0002.c if (is_m29ew(cfi)) cfi 585 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 612 drivers/mtd/chips/cfi_cmdset_0002.c mtd->writebufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; cfi 620 drivers/mtd/chips/cfi_cmdset_0002.c if (cfi->cfi_mode==CFI_MODE_CFI){ cfi 622 drivers/mtd/chips/cfi_cmdset_0002.c __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; cfi 631 drivers/mtd/chips/cfi_cmdset_0002.c cfi_fixup_major_minor(cfi, extp); cfi 655 drivers/mtd/chips/cfi_cmdset_0002.c cfi->cmdset_priv = extp; cfi 684 drivers/mtd/chips/cfi_cmdset_0002.c if (bootloc == 3 && cfi->cfiq->NumEraseRegions > 1) { cfi 687 drivers/mtd/chips/cfi_cmdset_0002.c for (i=0; i<cfi->cfiq->NumEraseRegions / 2; i++) { cfi 688 drivers/mtd/chips/cfi_cmdset_0002.c int j = (cfi->cfiq->NumEraseRegions-1)-i; cfi 690 drivers/mtd/chips/cfi_cmdset_0002.c swap(cfi->cfiq->EraseRegionInfo[i], cfi 691 drivers/mtd/chips/cfi_cmdset_0002.c cfi->cfiq->EraseRegionInfo[j]); cfi 695 drivers/mtd/chips/cfi_cmdset_0002.c cfi->addr_unlock1 = 0x555; cfi 696 drivers/mtd/chips/cfi_cmdset_0002.c cfi->addr_unlock2 = 0x2aa; cfi 700 drivers/mtd/chips/cfi_cmdset_0002.c if (!cfi->addr_unlock1 || !cfi->addr_unlock2) { cfi 706 drivers/mtd/chips/cfi_cmdset_0002.c else if (cfi->cfi_mode == CFI_MODE_JEDEC) { cfi 713 drivers/mtd/chips/cfi_cmdset_0002.c for (i=0; i< cfi->numchips; i++) { cfi 714 drivers/mtd/chips/cfi_cmdset_0002.c cfi->chips[i].word_write_time = 1<<cfi->cfiq->WordWriteTimeoutTyp; cfi 715 drivers/mtd/chips/cfi_cmdset_0002.c cfi->chips[i].buffer_write_time = 1<<cfi->cfiq->BufWriteTimeoutTyp; cfi 716 drivers/mtd/chips/cfi_cmdset_0002.c cfi->chips[i].erase_time = 1<<cfi->cfiq->BlockEraseTimeoutTyp; cfi 723 drivers/mtd/chips/cfi_cmdset_0002.c if (cfi->cfiq->BufWriteTimeoutTyp && cfi 724 drivers/mtd/chips/cfi_cmdset_0002.c cfi->cfiq->BufWriteTimeoutMax) cfi 725 drivers/mtd/chips/cfi_cmdset_0002.c cfi->chips[i].buffer_write_time_max = cfi 726 drivers/mtd/chips/cfi_cmdset_0002.c 1 << (cfi->cfiq->BufWriteTimeoutTyp + cfi 727 drivers/mtd/chips/cfi_cmdset_0002.c cfi->cfiq->BufWriteTimeoutMax); cfi 729 drivers/mtd/chips/cfi_cmdset_0002.c cfi->chips[i].buffer_write_time_max = 0; cfi 731 drivers/mtd/chips/cfi_cmdset_0002.c cfi->chips[i].buffer_write_time_max = cfi 732 drivers/mtd/chips/cfi_cmdset_0002.c max(cfi->chips[i].buffer_write_time_max, 2000); cfi 734 drivers/mtd/chips/cfi_cmdset_0002.c cfi->chips[i].ref_point_counter = 0; cfi 735 drivers/mtd/chips/cfi_cmdset_0002.c init_waitqueue_head(&(cfi->chips[i].wq)); cfi 751 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 752 drivers/mtd/chips/cfi_cmdset_0002.c unsigned long devsize = (1<<cfi->cfiq->DevSize) * cfi->interleave; cfi 757 drivers/mtd/chips/cfi_cmdset_0002.c (cfi->cfi_mode == CFI_MODE_CFI)?"CFI":"JEDEC",cfi->numchips); cfi 759 drivers/mtd/chips/cfi_cmdset_0002.c mtd->size = devsize * cfi->numchips; cfi 761 drivers/mtd/chips/cfi_cmdset_0002.c mtd->numeraseregions = cfi->cfiq->NumEraseRegions * cfi->numchips; cfi 768 drivers/mtd/chips/cfi_cmdset_0002.c for (i=0; i<cfi->cfiq->NumEraseRegions; i++) { cfi 770 drivers/mtd/chips/cfi_cmdset_0002.c ersize = ((cfi->cfiq->EraseRegionInfo[i] >> 8) & ~0xff) * cfi->interleave; cfi 771 drivers/mtd/chips/cfi_cmdset_0002.c ernum = (cfi->cfiq->EraseRegionInfo[i] & 0xffff) + 1; cfi 776 drivers/mtd/chips/cfi_cmdset_0002.c for (j=0; j<cfi->numchips; j++) { cfi 777 drivers/mtd/chips/cfi_cmdset_0002.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; cfi 778 drivers/mtd/chips/cfi_cmdset_0002.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].erasesize = ersize; cfi 779 drivers/mtd/chips/cfi_cmdset_0002.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; cfi 796 drivers/mtd/chips/cfi_cmdset_0002.c kfree(cfi->cmdset_priv); cfi 797 drivers/mtd/chips/cfi_cmdset_0002.c kfree(cfi->cfiq); cfi 815 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 818 drivers/mtd/chips/cfi_cmdset_0002.c if (cfi_use_status_reg(cfi)) { cfi 824 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0x70, cfi->addr_unlock1, chip->start, map, cfi, cfi 825 drivers/mtd/chips/cfi_cmdset_0002.c cfi->device_type, NULL); cfi 855 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 858 drivers/mtd/chips/cfi_cmdset_0002.c if (cfi_use_status_reg(cfi)) { cfi 865 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0x70, cfi->addr_unlock1, chip->start, map, cfi, cfi 866 drivers/mtd/chips/cfi_cmdset_0002.c cfi->device_type, NULL); cfi 882 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 884 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_pri_amdstd *cfip = (struct cfi_pri_amdstd *)cfi->cmdset_priv; cfi 987 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 993 drivers/mtd/chips/cfi_cmdset_0002.c map_write(map, cfi->sector_erase_cmd, chip->in_progress_block_addr); cfi 994 drivers/mtd/chips/cfi_cmdset_0002.c cfi_fixup_m29ew_delay_after_resume(cfi); cfi 1037 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 1064 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 1065 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_pri_amdstd *extp = cfi->cmdset_priv; cfi 1074 drivers/mtd/chips/cfi_cmdset_0002.c (cfi_interleave_is_1(cfi) || chip->oldstate == FL_READY)) { cfi 1137 drivers/mtd/chips/cfi_cmdset_0002.c map_write(map, cfi->sector_erase_cmd, adr); cfi 1211 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 1243 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 1249 drivers/mtd/chips/cfi_cmdset_0002.c chipnum = (from >> cfi->chipshift); cfi 1250 drivers/mtd/chips/cfi_cmdset_0002.c ofs = from - (chipnum << cfi->chipshift); cfi 1255 drivers/mtd/chips/cfi_cmdset_0002.c if (chipnum >= cfi->numchips) cfi 1258 drivers/mtd/chips/cfi_cmdset_0002.c if ((len + ofs -1) >> cfi->chipshift) cfi 1259 drivers/mtd/chips/cfi_cmdset_0002.c thislen = (1<<cfi->chipshift) - ofs; cfi 1263 drivers/mtd/chips/cfi_cmdset_0002.c ret = do_read_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf); cfi 1283 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 1285 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0xAA, cfi->addr_unlock1, chip->start, map, cfi, cfi 1286 drivers/mtd/chips/cfi_cmdset_0002.c cfi->device_type, NULL); cfi 1287 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0x55, cfi->addr_unlock2, chip->start, map, cfi, cfi 1288 drivers/mtd/chips/cfi_cmdset_0002.c cfi->device_type, NULL); cfi 1289 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0x88, cfi->addr_unlock1, chip->start, map, cfi, cfi 1290 drivers/mtd/chips/cfi_cmdset_0002.c cfi->device_type, NULL); cfi 1298 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 1300 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0xAA, cfi->addr_unlock1, chip->start, map, cfi, cfi 1301 drivers/mtd/chips/cfi_cmdset_0002.c cfi->device_type, NULL); cfi 1302 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0x55, cfi->addr_unlock2, chip->start, map, cfi, cfi 1303 drivers/mtd/chips/cfi_cmdset_0002.c cfi->device_type, NULL); cfi 1304 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0x90, cfi->addr_unlock1, chip->start, map, cfi, cfi 1305 drivers/mtd/chips/cfi_cmdset_0002.c cfi->device_type, NULL); cfi 1306 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0x00, cfi->addr_unlock1, chip->start, map, cfi, cfi 1307 drivers/mtd/chips/cfi_cmdset_0002.c cfi->device_type, NULL); cfi 1351 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 1364 drivers/mtd/chips/cfi_cmdset_0002.c if (chipnum >= cfi->numchips) cfi 1372 drivers/mtd/chips/cfi_cmdset_0002.c ret = do_read_secsi_onechip(map, &cfi->chips[chipnum], ofs, cfi 1424 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 1442 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0xAA, cfi->addr_unlock1, chip->start, map, cfi, cfi 1443 drivers/mtd/chips/cfi_cmdset_0002.c cfi->device_type, NULL); cfi 1444 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0x55, cfi->addr_unlock2, chip->start, map, cfi, cfi 1445 drivers/mtd/chips/cfi_cmdset_0002.c cfi->device_type, NULL); cfi 1446 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0x40, cfi->addr_unlock1, chip->start, map, cfi, cfi 1447 drivers/mtd/chips/cfi_cmdset_0002.c cfi->device_type, NULL); cfi 1490 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 1491 drivers/mtd/chips/cfi_cmdset_0002.c int ofs_factor = cfi->interleave * cfi->device_type; cfi 1504 drivers/mtd/chips/cfi_cmdset_0002.c for (chipnum = 0; chipnum < cfi->numchips; chipnum++) { cfi 1505 drivers/mtd/chips/cfi_cmdset_0002.c chip = &cfi->chips[chipnum]; cfi 1510 drivers/mtd/chips/cfi_cmdset_0002.c if (is_m29ew(cfi)) { cfi 1521 drivers/mtd/chips/cfi_cmdset_0002.c cfi_qry_mode_on(base, map, cfi); cfi 1523 drivers/mtd/chips/cfi_cmdset_0002.c cfi_qry_mode_off(base, map, cfi); cfi 1544 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0xAA, cfi->addr_unlock1, cfi 1545 drivers/mtd/chips/cfi_cmdset_0002.c chip->start, map, cfi, cfi 1546 drivers/mtd/chips/cfi_cmdset_0002.c cfi->device_type, NULL); cfi 1547 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0x55, cfi->addr_unlock2, cfi 1548 drivers/mtd/chips/cfi_cmdset_0002.c chip->start, map, cfi, cfi 1549 drivers/mtd/chips/cfi_cmdset_0002.c cfi->device_type, NULL); cfi 1550 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0x40, cfi->addr_unlock1, cfi 1551 drivers/mtd/chips/cfi_cmdset_0002.c chip->start, map, cfi, cfi 1552 drivers/mtd/chips/cfi_cmdset_0002.c cfi->device_type, NULL); cfi 1652 drivers/mtd/chips/cfi_cmdset_0002.c int mode, struct cfi_private *cfi) cfi 1667 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0xAA, cfi->addr_unlock1, chip->start, map, cfi, cfi->device_type, NULL); cfi 1668 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0x55, cfi->addr_unlock2, chip->start, map, cfi, cfi->device_type, NULL); cfi 1669 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0xA0, cfi->addr_unlock1, chip->start, map, cfi, cfi->device_type, NULL); cfi 1759 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 1781 drivers/mtd/chips/cfi_cmdset_0002.c ret = do_write_oneword_once(map, chip, adr, datum, mode, cfi); cfi 1824 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 1830 drivers/mtd/chips/cfi_cmdset_0002.c chipnum = to >> cfi->chipshift; cfi 1831 drivers/mtd/chips/cfi_cmdset_0002.c ofs = to - (chipnum << cfi->chipshift); cfi 1832 drivers/mtd/chips/cfi_cmdset_0002.c chipstart = cfi->chips[chipnum].start; cfi 1842 drivers/mtd/chips/cfi_cmdset_0002.c mutex_lock(&cfi->chips[chipnum].mutex); cfi 1844 drivers/mtd/chips/cfi_cmdset_0002.c if (cfi->chips[chipnum].state != FL_READY) { cfi 1846 drivers/mtd/chips/cfi_cmdset_0002.c add_wait_queue(&cfi->chips[chipnum].wq, &wait); cfi 1848 drivers/mtd/chips/cfi_cmdset_0002.c mutex_unlock(&cfi->chips[chipnum].mutex); cfi 1851 drivers/mtd/chips/cfi_cmdset_0002.c remove_wait_queue(&cfi->chips[chipnum].wq, &wait); cfi 1858 drivers/mtd/chips/cfi_cmdset_0002.c mutex_unlock(&cfi->chips[chipnum].mutex); cfi 1865 drivers/mtd/chips/cfi_cmdset_0002.c ret = do_write_oneword(map, &cfi->chips[chipnum], cfi 1875 drivers/mtd/chips/cfi_cmdset_0002.c if (ofs >> cfi->chipshift) { cfi 1878 drivers/mtd/chips/cfi_cmdset_0002.c if (chipnum == cfi->numchips) cfi 1889 drivers/mtd/chips/cfi_cmdset_0002.c ret = do_write_oneword(map, &cfi->chips[chipnum], cfi 1899 drivers/mtd/chips/cfi_cmdset_0002.c if (ofs >> cfi->chipshift) { cfi 1902 drivers/mtd/chips/cfi_cmdset_0002.c if (chipnum == cfi->numchips) cfi 1904 drivers/mtd/chips/cfi_cmdset_0002.c chipstart = cfi->chips[chipnum].start; cfi 1913 drivers/mtd/chips/cfi_cmdset_0002.c mutex_lock(&cfi->chips[chipnum].mutex); cfi 1915 drivers/mtd/chips/cfi_cmdset_0002.c if (cfi->chips[chipnum].state != FL_READY) { cfi 1917 drivers/mtd/chips/cfi_cmdset_0002.c add_wait_queue(&cfi->chips[chipnum].wq, &wait); cfi 1919 drivers/mtd/chips/cfi_cmdset_0002.c mutex_unlock(&cfi->chips[chipnum].mutex); cfi 1922 drivers/mtd/chips/cfi_cmdset_0002.c remove_wait_queue(&cfi->chips[chipnum].wq, &wait); cfi 1928 drivers/mtd/chips/cfi_cmdset_0002.c mutex_unlock(&cfi->chips[chipnum].mutex); cfi 1932 drivers/mtd/chips/cfi_cmdset_0002.c ret = do_write_oneword(map, &cfi->chips[chipnum], cfi 2001 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi) cfi 2011 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0xAA, cfi->addr_unlock1, chip->start, map, cfi, cfi 2012 drivers/mtd/chips/cfi_cmdset_0002.c cfi->device_type, NULL); cfi 2013 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0x55, cfi->addr_unlock2, chip->start, map, cfi, cfi 2014 drivers/mtd/chips/cfi_cmdset_0002.c cfi->device_type, NULL); cfi 2015 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0xF0, cfi->addr_unlock1, chip->start, map, cfi, cfi 2016 drivers/mtd/chips/cfi_cmdset_0002.c cfi->device_type, NULL); cfi 2028 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 2053 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0xAA, cfi->addr_unlock1, chip->start, map, cfi, cfi->device_type, NULL); cfi 2054 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0x55, cfi->addr_unlock2, chip->start, map, cfi, cfi->device_type, NULL); cfi 2087 drivers/mtd/chips/cfi_cmdset_0002.c do_write_buffer_reset(map, chip, cfi); cfi 2104 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 2105 drivers/mtd/chips/cfi_cmdset_0002.c int wbufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; cfi 2110 drivers/mtd/chips/cfi_cmdset_0002.c chipnum = to >> cfi->chipshift; cfi 2111 drivers/mtd/chips/cfi_cmdset_0002.c ofs = to - (chipnum << cfi->chipshift); cfi 2118 drivers/mtd/chips/cfi_cmdset_0002.c ret = cfi_amdstd_write_words(mtd, ofs + (chipnum<<cfi->chipshift), cfi 2126 drivers/mtd/chips/cfi_cmdset_0002.c if (ofs >> cfi->chipshift) { cfi 2129 drivers/mtd/chips/cfi_cmdset_0002.c if (chipnum == cfi->numchips) cfi 2144 drivers/mtd/chips/cfi_cmdset_0002.c ret = do_write_buffer(map, &cfi->chips[chipnum], cfi 2154 drivers/mtd/chips/cfi_cmdset_0002.c if (ofs >> cfi->chipshift) { cfi 2157 drivers/mtd/chips/cfi_cmdset_0002.c if (chipnum == cfi->numchips) cfi 2165 drivers/mtd/chips/cfi_cmdset_0002.c ret = cfi_amdstd_write_words(mtd, ofs + (chipnum<<cfi->chipshift), cfi 2187 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 2240 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 2270 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0xAA, cfi->addr_unlock1, chip->start, map, cfi, cfi->device_type, NULL); cfi 2271 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0x55, cfi->addr_unlock2, chip->start, map, cfi, cfi->device_type, NULL); cfi 2272 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0xA0, cfi->addr_unlock1, chip->start, map, cfi, cfi->device_type, NULL); cfi 2316 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 2321 drivers/mtd/chips/cfi_cmdset_0002.c chipnum = to >> cfi->chipshift; cfi 2322 drivers/mtd/chips/cfi_cmdset_0002.c ofs = to - (chipnum << cfi->chipshift); cfi 2323 drivers/mtd/chips/cfi_cmdset_0002.c chipstart = cfi->chips[chipnum].start; cfi 2332 drivers/mtd/chips/cfi_cmdset_0002.c ret = cfi_amdstd_panic_wait(map, &cfi->chips[chipnum], bus_ofs); cfi 2344 drivers/mtd/chips/cfi_cmdset_0002.c ret = do_panic_write_oneword(map, &cfi->chips[chipnum], cfi 2354 drivers/mtd/chips/cfi_cmdset_0002.c if (ofs >> cfi->chipshift) { cfi 2357 drivers/mtd/chips/cfi_cmdset_0002.c if (chipnum == cfi->numchips) cfi 2368 drivers/mtd/chips/cfi_cmdset_0002.c ret = do_panic_write_oneword(map, &cfi->chips[chipnum], cfi 2378 drivers/mtd/chips/cfi_cmdset_0002.c if (ofs >> cfi->chipshift) { cfi 2381 drivers/mtd/chips/cfi_cmdset_0002.c if (chipnum == cfi->numchips) cfi 2384 drivers/mtd/chips/cfi_cmdset_0002.c chipstart = cfi->chips[chipnum].start; cfi 2392 drivers/mtd/chips/cfi_cmdset_0002.c ret = cfi_amdstd_panic_wait(map, &cfi->chips[chipnum], ofs); cfi 2400 drivers/mtd/chips/cfi_cmdset_0002.c ret = do_panic_write_oneword(map, &cfi->chips[chipnum], cfi 2418 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 2425 drivers/mtd/chips/cfi_cmdset_0002.c adr = cfi->addr_unlock1; cfi 2442 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0xAA, cfi->addr_unlock1, chip->start, map, cfi, cfi->device_type, NULL); cfi 2443 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0x55, cfi->addr_unlock2, chip->start, map, cfi, cfi->device_type, NULL); cfi 2444 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0x80, cfi->addr_unlock1, chip->start, map, cfi, cfi->device_type, NULL); cfi 2445 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0xAA, cfi->addr_unlock1, chip->start, map, cfi, cfi->device_type, NULL); cfi 2446 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0x55, cfi->addr_unlock2, chip->start, map, cfi, cfi->device_type, NULL); cfi 2447 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0x10, cfi->addr_unlock1, chip->start, map, cfi, cfi->device_type, NULL); cfi 2518 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 2541 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0xAA, cfi->addr_unlock1, chip->start, map, cfi, cfi->device_type, NULL); cfi 2542 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0x55, cfi->addr_unlock2, chip->start, map, cfi, cfi->device_type, NULL); cfi 2543 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0x80, cfi->addr_unlock1, chip->start, map, cfi, cfi->device_type, NULL); cfi 2544 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0xAA, cfi->addr_unlock1, chip->start, map, cfi, cfi->device_type, NULL); cfi 2545 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0x55, cfi->addr_unlock2, chip->start, map, cfi, cfi->device_type, NULL); cfi 2546 drivers/mtd/chips/cfi_cmdset_0002.c map_write(map, cfi->sector_erase_cmd, adr); cfi 2624 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 2632 drivers/mtd/chips/cfi_cmdset_0002.c return do_erase_chip(map, &cfi->chips[0]); cfi 2638 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 2649 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0xAA, cfi->addr_unlock1, chip->start, map, cfi, cfi 2650 drivers/mtd/chips/cfi_cmdset_0002.c cfi->device_type, NULL); cfi 2651 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0x55, cfi->addr_unlock2, chip->start, map, cfi, cfi 2652 drivers/mtd/chips/cfi_cmdset_0002.c cfi->device_type, NULL); cfi 2653 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0x80, cfi->addr_unlock1, chip->start, map, cfi, cfi 2654 drivers/mtd/chips/cfi_cmdset_0002.c cfi->device_type, NULL); cfi 2655 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0xAA, cfi->addr_unlock1, chip->start, map, cfi, cfi 2656 drivers/mtd/chips/cfi_cmdset_0002.c cfi->device_type, NULL); cfi 2657 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0x55, cfi->addr_unlock2, chip->start, map, cfi, cfi 2658 drivers/mtd/chips/cfi_cmdset_0002.c cfi->device_type, NULL); cfi 2673 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 2684 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0xAA, cfi->addr_unlock1, chip->start, map, cfi, cfi 2685 drivers/mtd/chips/cfi_cmdset_0002.c cfi->device_type, NULL); cfi 2725 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 2739 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0xAA, cfi->addr_unlock1, chip->start, map, cfi, cfi 2740 drivers/mtd/chips/cfi_cmdset_0002.c cfi->device_type, NULL); cfi 2741 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0x55, cfi->addr_unlock2, chip->start, map, cfi, cfi 2742 drivers/mtd/chips/cfi_cmdset_0002.c cfi->device_type, NULL); cfi 2744 drivers/mtd/chips/cfi_cmdset_0002.c cfi_send_gen_cmd(0xC0, cfi->addr_unlock1, chip->start, map, cfi, cfi 2745 drivers/mtd/chips/cfi_cmdset_0002.c cfi->device_type, NULL); cfi 2806 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 2851 drivers/mtd/chips/cfi_cmdset_0002.c sect[sectors].chip = &cfi->chips[chipnum]; cfi 2854 drivers/mtd/chips/cfi_cmdset_0002.c map, &cfi->chips[chipnum], adr, 0, cfi 2865 drivers/mtd/chips/cfi_cmdset_0002.c if (adr >> cfi->chipshift) { cfi 2871 drivers/mtd/chips/cfi_cmdset_0002.c if (chipnum >= cfi->numchips) cfi 2916 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 2922 drivers/mtd/chips/cfi_cmdset_0002.c for (i=0; !ret && i<cfi->numchips; i++) { cfi 2923 drivers/mtd/chips/cfi_cmdset_0002.c chip = &cfi->chips[i]; cfi 2962 drivers/mtd/chips/cfi_cmdset_0002.c chip = &cfi->chips[i]; cfi 2978 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 2983 drivers/mtd/chips/cfi_cmdset_0002.c for (i=0; !ret && i<cfi->numchips; i++) { cfi 2984 drivers/mtd/chips/cfi_cmdset_0002.c chip = &cfi->chips[i]; cfi 3013 drivers/mtd/chips/cfi_cmdset_0002.c chip = &cfi->chips[i]; cfi 3032 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 3036 drivers/mtd/chips/cfi_cmdset_0002.c for (i=0; i<cfi->numchips; i++) { cfi 3038 drivers/mtd/chips/cfi_cmdset_0002.c chip = &cfi->chips[i]; cfi 3064 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 3068 drivers/mtd/chips/cfi_cmdset_0002.c for (i = 0; i < cfi->numchips; i++) { cfi 3070 drivers/mtd/chips/cfi_cmdset_0002.c chip = &cfi->chips[i]; cfi 3102 drivers/mtd/chips/cfi_cmdset_0002.c struct cfi_private *cfi = map->fldrv_priv; cfi 3106 drivers/mtd/chips/cfi_cmdset_0002.c kfree(cfi->cmdset_priv); cfi 3107 drivers/mtd/chips/cfi_cmdset_0002.c kfree(cfi->cfiq); cfi 3108 drivers/mtd/chips/cfi_cmdset_0002.c kfree(cfi); cfi 115 drivers/mtd/chips/cfi_cmdset_0020.c struct cfi_private *cfi = map->fldrv_priv; cfi 118 drivers/mtd/chips/cfi_cmdset_0020.c if (cfi->cfi_mode) { cfi 124 drivers/mtd/chips/cfi_cmdset_0020.c __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; cfi 151 drivers/mtd/chips/cfi_cmdset_0020.c cfi->cmdset_priv = extp; cfi 154 drivers/mtd/chips/cfi_cmdset_0020.c for (i=0; i< cfi->numchips; i++) { cfi 155 drivers/mtd/chips/cfi_cmdset_0020.c cfi->chips[i].word_write_time = 128; cfi 156 drivers/mtd/chips/cfi_cmdset_0020.c cfi->chips[i].buffer_write_time = 128; cfi 157 drivers/mtd/chips/cfi_cmdset_0020.c cfi->chips[i].erase_time = 1024; cfi 158 drivers/mtd/chips/cfi_cmdset_0020.c cfi->chips[i].ref_point_counter = 0; cfi 159 drivers/mtd/chips/cfi_cmdset_0020.c init_waitqueue_head(&(cfi->chips[i].wq)); cfi 168 drivers/mtd/chips/cfi_cmdset_0020.c struct cfi_private *cfi = map->fldrv_priv; cfi 172 drivers/mtd/chips/cfi_cmdset_0020.c unsigned long devsize = (1<<cfi->cfiq->DevSize) * cfi->interleave; cfi 178 drivers/mtd/chips/cfi_cmdset_0020.c kfree(cfi->cmdset_priv); cfi 184 drivers/mtd/chips/cfi_cmdset_0020.c mtd->size = devsize * cfi->numchips; cfi 186 drivers/mtd/chips/cfi_cmdset_0020.c mtd->numeraseregions = cfi->cfiq->NumEraseRegions * cfi->numchips; cfi 191 drivers/mtd/chips/cfi_cmdset_0020.c kfree(cfi->cmdset_priv); cfi 196 drivers/mtd/chips/cfi_cmdset_0020.c for (i=0; i<cfi->cfiq->NumEraseRegions; i++) { cfi 198 drivers/mtd/chips/cfi_cmdset_0020.c ersize = ((cfi->cfiq->EraseRegionInfo[i] >> 8) & ~0xff) * cfi->interleave; cfi 199 drivers/mtd/chips/cfi_cmdset_0020.c ernum = (cfi->cfiq->EraseRegionInfo[i] & 0xffff) + 1; cfi 204 drivers/mtd/chips/cfi_cmdset_0020.c for (j=0; j<cfi->numchips; j++) { cfi 205 drivers/mtd/chips/cfi_cmdset_0020.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; cfi 206 drivers/mtd/chips/cfi_cmdset_0020.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].erasesize = ersize; cfi 207 drivers/mtd/chips/cfi_cmdset_0020.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; cfi 216 drivers/mtd/chips/cfi_cmdset_0020.c kfree(cfi->cmdset_priv); cfi 240 drivers/mtd/chips/cfi_cmdset_0020.c mtd->writebufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; cfi 255 drivers/mtd/chips/cfi_cmdset_0020.c struct cfi_private *cfi = map->fldrv_priv; cfi 274 drivers/mtd/chips/cfi_cmdset_0020.c if (!(((struct cfi_pri_intelext *)cfi->cmdset_priv)->FeatureSupport & 2)) cfi 387 drivers/mtd/chips/cfi_cmdset_0020.c struct cfi_private *cfi = map->fldrv_priv; cfi 393 drivers/mtd/chips/cfi_cmdset_0020.c chipnum = (from >> cfi->chipshift); cfi 394 drivers/mtd/chips/cfi_cmdset_0020.c ofs = from - (chipnum << cfi->chipshift); cfi 399 drivers/mtd/chips/cfi_cmdset_0020.c if (chipnum >= cfi->numchips) cfi 402 drivers/mtd/chips/cfi_cmdset_0020.c if ((len + ofs -1) >> cfi->chipshift) cfi 403 drivers/mtd/chips/cfi_cmdset_0020.c thislen = (1<<cfi->chipshift) - ofs; cfi 407 drivers/mtd/chips/cfi_cmdset_0020.c ret = do_read_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf); cfi 424 drivers/mtd/chips/cfi_cmdset_0020.c struct cfi_private *cfi = map->fldrv_priv; cfi 434 drivers/mtd/chips/cfi_cmdset_0020.c wbufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; cfi 612 drivers/mtd/chips/cfi_cmdset_0020.c struct cfi_private *cfi = map->fldrv_priv; cfi 613 drivers/mtd/chips/cfi_cmdset_0020.c int wbufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; cfi 618 drivers/mtd/chips/cfi_cmdset_0020.c chipnum = to >> cfi->chipshift; cfi 619 drivers/mtd/chips/cfi_cmdset_0020.c ofs = to - (chipnum << cfi->chipshift); cfi 635 drivers/mtd/chips/cfi_cmdset_0020.c ret = do_write_buffer(map, &cfi->chips[chipnum], cfi 645 drivers/mtd/chips/cfi_cmdset_0020.c if (ofs >> cfi->chipshift) { cfi 648 drivers/mtd/chips/cfi_cmdset_0020.c if (chipnum == cfi->numchips) cfi 736 drivers/mtd/chips/cfi_cmdset_0020.c struct cfi_private *cfi = map->fldrv_priv; cfi 854 drivers/mtd/chips/cfi_cmdset_0020.c for (i = 0; i<cfi_interleave(cfi); i++) { cfi 855 drivers/mtd/chips/cfi_cmdset_0020.c chipstatus |= status.x[w] >> (cfi->device_type * 8); cfi 896 drivers/mtd/chips/cfi_cmdset_0020.c struct cfi_private *cfi = map->fldrv_priv; cfi 945 drivers/mtd/chips/cfi_cmdset_0020.c chipnum = instr->addr >> cfi->chipshift; cfi 946 drivers/mtd/chips/cfi_cmdset_0020.c adr = instr->addr - (chipnum << cfi->chipshift); cfi 952 drivers/mtd/chips/cfi_cmdset_0020.c ret = do_erase_oneblock(map, &cfi->chips[chipnum], adr); cfi 960 drivers/mtd/chips/cfi_cmdset_0020.c if (adr % (1<< cfi->chipshift) == (((unsigned long)regions[i].offset + (regions[i].erasesize * regions[i].numblocks)) %( 1<< cfi->chipshift))) cfi 963 drivers/mtd/chips/cfi_cmdset_0020.c if (adr >> cfi->chipshift) { cfi 967 drivers/mtd/chips/cfi_cmdset_0020.c if (chipnum >= cfi->numchips) cfi 978 drivers/mtd/chips/cfi_cmdset_0020.c struct cfi_private *cfi = map->fldrv_priv; cfi 984 drivers/mtd/chips/cfi_cmdset_0020.c for (i=0; !ret && i<cfi->numchips; i++) { cfi 985 drivers/mtd/chips/cfi_cmdset_0020.c chip = &cfi->chips[i]; cfi 1022 drivers/mtd/chips/cfi_cmdset_0020.c chip = &cfi->chips[i]; cfi 1036 drivers/mtd/chips/cfi_cmdset_0020.c struct cfi_private *cfi = map->fldrv_priv; cfi 1133 drivers/mtd/chips/cfi_cmdset_0020.c struct cfi_private *cfi = map->fldrv_priv; cfi 1137 drivers/mtd/chips/cfi_cmdset_0020.c int ofs_factor = cfi->interleave * cfi->device_type; cfi 1146 drivers/mtd/chips/cfi_cmdset_0020.c chipnum = ofs >> cfi->chipshift; cfi 1147 drivers/mtd/chips/cfi_cmdset_0020.c adr = ofs - (chipnum << cfi->chipshift); cfi 1152 drivers/mtd/chips/cfi_cmdset_0020.c cfi_send_gen_cmd(0x90, 0x55, 0, map, cfi, cfi->device_type, NULL); cfi 1154 drivers/mtd/chips/cfi_cmdset_0020.c cfi_send_gen_cmd(0xff, 0x55, 0, map, cfi, cfi->device_type, NULL); cfi 1157 drivers/mtd/chips/cfi_cmdset_0020.c ret = do_lock_oneblock(map, &cfi->chips[chipnum], adr); cfi 1160 drivers/mtd/chips/cfi_cmdset_0020.c cfi_send_gen_cmd(0x90, 0x55, 0, map, cfi, cfi->device_type, NULL); cfi 1162 drivers/mtd/chips/cfi_cmdset_0020.c cfi_send_gen_cmd(0xff, 0x55, 0, map, cfi, cfi->device_type, NULL); cfi 1171 drivers/mtd/chips/cfi_cmdset_0020.c if (adr >> cfi->chipshift) { cfi 1175 drivers/mtd/chips/cfi_cmdset_0020.c if (chipnum >= cfi->numchips) cfi 1183 drivers/mtd/chips/cfi_cmdset_0020.c struct cfi_private *cfi = map->fldrv_priv; cfi 1280 drivers/mtd/chips/cfi_cmdset_0020.c struct cfi_private *cfi = map->fldrv_priv; cfi 1284 drivers/mtd/chips/cfi_cmdset_0020.c int ofs_factor = cfi->interleave * cfi->device_type; cfi 1287 drivers/mtd/chips/cfi_cmdset_0020.c chipnum = ofs >> cfi->chipshift; cfi 1288 drivers/mtd/chips/cfi_cmdset_0020.c adr = ofs - (chipnum << cfi->chipshift); cfi 1295 drivers/mtd/chips/cfi_cmdset_0020.c cfi_send_gen_cmd(0x90, 0x55, 0, map, cfi, cfi->device_type, NULL); cfi 1301 drivers/mtd/chips/cfi_cmdset_0020.c cfi_send_gen_cmd(0xff, 0x55, 0, map, cfi, cfi->device_type, NULL); cfi 1305 drivers/mtd/chips/cfi_cmdset_0020.c ret = do_unlock_oneblock(map, &cfi->chips[chipnum], adr); cfi 1308 drivers/mtd/chips/cfi_cmdset_0020.c cfi_send_gen_cmd(0x90, 0x55, 0, map, cfi, cfi->device_type, NULL); cfi 1310 drivers/mtd/chips/cfi_cmdset_0020.c cfi_send_gen_cmd(0xff, 0x55, 0, map, cfi, cfi->device_type, NULL); cfi 1319 drivers/mtd/chips/cfi_cmdset_0020.c struct cfi_private *cfi = map->fldrv_priv; cfi 1324 drivers/mtd/chips/cfi_cmdset_0020.c for (i=0; !ret && i<cfi->numchips; i++) { cfi 1325 drivers/mtd/chips/cfi_cmdset_0020.c chip = &cfi->chips[i]; cfi 1354 drivers/mtd/chips/cfi_cmdset_0020.c chip = &cfi->chips[i]; cfi 1375 drivers/mtd/chips/cfi_cmdset_0020.c struct cfi_private *cfi = map->fldrv_priv; cfi 1379 drivers/mtd/chips/cfi_cmdset_0020.c for (i=0; i<cfi->numchips; i++) { cfi 1381 drivers/mtd/chips/cfi_cmdset_0020.c chip = &cfi->chips[i]; cfi 1399 drivers/mtd/chips/cfi_cmdset_0020.c struct cfi_private *cfi = map->fldrv_priv; cfi 1400 drivers/mtd/chips/cfi_cmdset_0020.c kfree(cfi->cmdset_priv); cfi 1401 drivers/mtd/chips/cfi_cmdset_0020.c kfree(cfi); cfi 28 drivers/mtd/chips/cfi_probe.c unsigned long *chip_map, struct cfi_private *cfi); cfi 29 drivers/mtd/chips/cfi_probe.c static int cfi_chip_setup(struct map_info *map, struct cfi_private *cfi); cfi 45 drivers/mtd/chips/cfi_probe.c #define xip_enable(base, map, cfi) \ cfi 47 drivers/mtd/chips/cfi_probe.c cfi_qry_mode_off(base, map, cfi); \ cfi 51 drivers/mtd/chips/cfi_probe.c #define xip_disable_qry(base, map, cfi) \ cfi 54 drivers/mtd/chips/cfi_probe.c cfi_qry_mode_on(base, map, cfi); \ cfi 61 drivers/mtd/chips/cfi_probe.c #define xip_enable(base, map, cfi) do { } while (0) cfi 62 drivers/mtd/chips/cfi_probe.c #define xip_disable_qry(base, map, cfi) do { } while (0) cfi 74 drivers/mtd/chips/cfi_probe.c void (*fixup)(struct cfi_private *cfi); cfi 77 drivers/mtd/chips/cfi_probe.c static void cfi_early_fixup(struct cfi_private *cfi, cfi 83 drivers/mtd/chips/cfi_probe.c if (((f->mfr == CFI_MFR_ANY) || (f->mfr == cfi->mfr)) && cfi 84 drivers/mtd/chips/cfi_probe.c ((f->id == CFI_ID_ANY) || (f->id == cfi->id))) { cfi 85 drivers/mtd/chips/cfi_probe.c f->fixup(cfi); cfi 96 drivers/mtd/chips/cfi_probe.c unsigned long *chip_map, struct cfi_private *cfi) cfi 114 drivers/mtd/chips/cfi_probe.c if (!cfi_qry_mode_on(base, map, cfi)) { cfi 115 drivers/mtd/chips/cfi_probe.c xip_enable(base, map, cfi); cfi 119 drivers/mtd/chips/cfi_probe.c if (!cfi->numchips) { cfi 122 drivers/mtd/chips/cfi_probe.c return cfi_chip_setup(map, cfi); cfi 126 drivers/mtd/chips/cfi_probe.c for (i=0; i < (base >> cfi->chipshift); i++) { cfi 132 drivers/mtd/chips/cfi_probe.c start = i << cfi->chipshift; cfi 135 drivers/mtd/chips/cfi_probe.c if (cfi_qry_present(map, start, cfi)) { cfi 138 drivers/mtd/chips/cfi_probe.c cfi_qry_mode_off(start, map, cfi); cfi 141 drivers/mtd/chips/cfi_probe.c if (!cfi_qry_present(map, start, cfi)) { cfi 151 drivers/mtd/chips/cfi_probe.c cfi_qry_mode_off(base, map, cfi); cfi 153 drivers/mtd/chips/cfi_probe.c if (cfi_qry_present(map, base, cfi)) { cfi 164 drivers/mtd/chips/cfi_probe.c set_bit((base >> cfi->chipshift), chip_map); /* Update chip map */ cfi 165 drivers/mtd/chips/cfi_probe.c cfi->numchips++; cfi 168 drivers/mtd/chips/cfi_probe.c cfi_qry_mode_off(base, map, cfi); cfi 172 drivers/mtd/chips/cfi_probe.c map->name, cfi->interleave, cfi->device_type*8, base, cfi 178 drivers/mtd/chips/cfi_probe.c static void fixup_s70gl02gs_chips(struct cfi_private *cfi) cfi 184 drivers/mtd/chips/cfi_probe.c cfi->cfiq->DevSize = 27; cfi 185 drivers/mtd/chips/cfi_probe.c cfi->cfiq->EraseRegionInfo[0] = 0x20003ff; cfi 195 drivers/mtd/chips/cfi_probe.c struct cfi_private *cfi) cfi 197 drivers/mtd/chips/cfi_probe.c int ofs_factor = cfi->interleave*cfi->device_type; cfi 203 drivers/mtd/chips/cfi_probe.c xip_enable(base, map, cfi); cfi 210 drivers/mtd/chips/cfi_probe.c cfi->cfiq = kmalloc(sizeof(struct cfi_ident) + num_erase_regions * 4, GFP_KERNEL); cfi 211 drivers/mtd/chips/cfi_probe.c if (!cfi->cfiq) cfi 214 drivers/mtd/chips/cfi_probe.c memset(cfi->cfiq,0,sizeof(struct cfi_ident)); cfi 216 drivers/mtd/chips/cfi_probe.c cfi->cfi_mode = CFI_MODE_CFI; cfi 218 drivers/mtd/chips/cfi_probe.c cfi->sector_erase_cmd = CMD(0x30); cfi 221 drivers/mtd/chips/cfi_probe.c xip_disable_qry(base, map, cfi); cfi 223 drivers/mtd/chips/cfi_probe.c ((unsigned char *)cfi->cfiq)[i] = cfi_read_query(map,base + (0x10 + i)*ofs_factor); cfi 226 drivers/mtd/chips/cfi_probe.c cfi->cfiq->P_ID = le16_to_cpu(cfi->cfiq->P_ID); cfi 228 drivers/mtd/chips/cfi_probe.c cfi->cfiq->P_ADR = le16_to_cpu(cfi->cfiq->P_ADR); cfi 229 drivers/mtd/chips/cfi_probe.c cfi->cfiq->A_ID = le16_to_cpu(cfi->cfiq->A_ID); cfi 230 drivers/mtd/chips/cfi_probe.c cfi->cfiq->A_ADR = le16_to_cpu(cfi->cfiq->A_ADR); cfi 231 drivers/mtd/chips/cfi_probe.c cfi->cfiq->InterfaceDesc = le16_to_cpu(cfi->cfiq->InterfaceDesc); cfi 232 drivers/mtd/chips/cfi_probe.c cfi->cfiq->MaxBufWriteSize = le16_to_cpu(cfi->cfiq->MaxBufWriteSize); cfi 236 drivers/mtd/chips/cfi_probe.c print_cfi_ident(cfi->cfiq); cfi 239 drivers/mtd/chips/cfi_probe.c for (i=0; i<cfi->cfiq->NumEraseRegions; i++) { cfi 240 drivers/mtd/chips/cfi_probe.c cfi->cfiq->EraseRegionInfo[i] = le32_to_cpu(cfi->cfiq->EraseRegionInfo[i]); cfi 244 drivers/mtd/chips/cfi_probe.c i, (cfi->cfiq->EraseRegionInfo[i] >> 8) & ~0xff, cfi 245 drivers/mtd/chips/cfi_probe.c (cfi->cfiq->EraseRegionInfo[i] & 0xffff) + 1); cfi 249 drivers/mtd/chips/cfi_probe.c if (cfi->cfiq->P_ID == P_ID_SST_OLD) { cfi 262 drivers/mtd/chips/cfi_probe.c cfi_send_gen_cmd(0xf0, 0, base, map, cfi, cfi->device_type, NULL); cfi 263 drivers/mtd/chips/cfi_probe.c cfi_send_gen_cmd(0xaa, addr_unlock1, base, map, cfi, cfi->device_type, NULL); cfi 264 drivers/mtd/chips/cfi_probe.c cfi_send_gen_cmd(0x55, addr_unlock2, base, map, cfi, cfi->device_type, NULL); cfi 265 drivers/mtd/chips/cfi_probe.c cfi_send_gen_cmd(0x90, addr_unlock1, base, map, cfi, cfi->device_type, NULL); cfi 266 drivers/mtd/chips/cfi_probe.c cfi->mfr = cfi_read_query16(map, base); cfi 267 drivers/mtd/chips/cfi_probe.c cfi->id = cfi_read_query16(map, base + ofs_factor); cfi 270 drivers/mtd/chips/cfi_probe.c if (cfi->mfr == CFI_MFR_AMD && (cfi->id & 0xff) == 0x7e) cfi 271 drivers/mtd/chips/cfi_probe.c cfi->id = cfi_read_query(map, base + 0xe * ofs_factor) << 8 | cfi 275 drivers/mtd/chips/cfi_probe.c cfi_qry_mode_off(base, map, cfi); cfi 278 drivers/mtd/chips/cfi_probe.c cfi_early_fixup(cfi, cfi_early_fixup_table); cfi 281 drivers/mtd/chips/cfi_probe.c map->name, cfi->interleave, cfi->device_type*8, base, cfi 282 drivers/mtd/chips/cfi_probe.c map->bankwidth*8, cfi->mfr, cfi->id); cfi 41 drivers/mtd/chips/cfi_util.c struct map_info *map, struct cfi_private *cfi) cfi 44 drivers/mtd/chips/cfi_util.c unsigned interleave = cfi_interleave(cfi); cfi 45 drivers/mtd/chips/cfi_util.c unsigned type = cfi->device_type; cfi 67 drivers/mtd/chips/cfi_util.c map_word cfi_build_cmd(u_long cmd, struct map_info *map, struct cfi_private *cfi) cfi 86 drivers/mtd/chips/cfi_util.c chip_mode = map_bankwidth(map) / cfi_interleave(cfi); cfi 87 drivers/mtd/chips/cfi_util.c chips_per_word = wordwidth * cfi_interleave(cfi) / map_bankwidth(map); cfi 134 drivers/mtd/chips/cfi_util.c struct cfi_private *cfi) cfi 152 drivers/mtd/chips/cfi_util.c chip_mode = map_bankwidth(map) / cfi_interleave(cfi); cfi 153 drivers/mtd/chips/cfi_util.c chips_per_word = wordwidth * cfi_interleave(cfi) / map_bankwidth(map); cfi 204 drivers/mtd/chips/cfi_util.c struct map_info *map, struct cfi_private *cfi, cfi 208 drivers/mtd/chips/cfi_util.c uint32_t addr = base + cfi_build_cmd_addr(cmd_addr, map, cfi); cfi 209 drivers/mtd/chips/cfi_util.c val = cfi_build_cmd(cmd, map, cfi); cfi 221 drivers/mtd/chips/cfi_util.c struct cfi_private *cfi) cfi 223 drivers/mtd/chips/cfi_util.c int osf = cfi->interleave * cfi->device_type; /* scale factor */ cfi 227 drivers/mtd/chips/cfi_util.c qry[0] = cfi_build_cmd('Q', map, cfi); cfi 228 drivers/mtd/chips/cfi_util.c qry[1] = cfi_build_cmd('R', map, cfi); cfi 229 drivers/mtd/chips/cfi_util.c qry[2] = cfi_build_cmd('Y', map, cfi); cfi 249 drivers/mtd/chips/cfi_util.c struct cfi_private *cfi) cfi 251 drivers/mtd/chips/cfi_util.c cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); cfi 252 drivers/mtd/chips/cfi_util.c cfi_send_gen_cmd(0x98, 0x55, base, map, cfi, cfi->device_type, NULL); cfi 253 drivers/mtd/chips/cfi_util.c if (cfi_qry_present(map, base, cfi)) cfi 257 drivers/mtd/chips/cfi_util.c cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); cfi 258 drivers/mtd/chips/cfi_util.c cfi_send_gen_cmd(0xFF, 0, base, map, cfi, cfi->device_type, NULL); cfi 259 drivers/mtd/chips/cfi_util.c cfi_send_gen_cmd(0x98, 0x55, base, map, cfi, cfi->device_type, NULL); cfi 260 drivers/mtd/chips/cfi_util.c if (cfi_qry_present(map, base, cfi)) cfi 263 drivers/mtd/chips/cfi_util.c cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); cfi 264 drivers/mtd/chips/cfi_util.c cfi_send_gen_cmd(0x98, 0x555, base, map, cfi, cfi->device_type, NULL); cfi 265 drivers/mtd/chips/cfi_util.c if (cfi_qry_present(map, base, cfi)) cfi 268 drivers/mtd/chips/cfi_util.c cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); cfi 269 drivers/mtd/chips/cfi_util.c cfi_send_gen_cmd(0xAA, 0x5555, base, map, cfi, cfi->device_type, NULL); cfi 270 drivers/mtd/chips/cfi_util.c cfi_send_gen_cmd(0x55, 0x2AAA, base, map, cfi, cfi->device_type, NULL); cfi 271 drivers/mtd/chips/cfi_util.c cfi_send_gen_cmd(0x98, 0x5555, base, map, cfi, cfi->device_type, NULL); cfi 272 drivers/mtd/chips/cfi_util.c if (cfi_qry_present(map, base, cfi)) cfi 275 drivers/mtd/chips/cfi_util.c cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); cfi 276 drivers/mtd/chips/cfi_util.c cfi_send_gen_cmd(0xAA, 0x555, base, map, cfi, cfi->device_type, NULL); cfi 277 drivers/mtd/chips/cfi_util.c cfi_send_gen_cmd(0x55, 0x2AA, base, map, cfi, cfi->device_type, NULL); cfi 278 drivers/mtd/chips/cfi_util.c cfi_send_gen_cmd(0x98, 0x555, base, map, cfi, cfi->device_type, NULL); cfi 279 drivers/mtd/chips/cfi_util.c if (cfi_qry_present(map, base, cfi)) cfi 287 drivers/mtd/chips/cfi_util.c struct cfi_private *cfi) cfi 289 drivers/mtd/chips/cfi_util.c cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); cfi 290 drivers/mtd/chips/cfi_util.c cfi_send_gen_cmd(0xFF, 0, base, map, cfi, cfi->device_type, NULL); cfi 293 drivers/mtd/chips/cfi_util.c if ((cfi->mfr == CFI_MFR_ST) && (cfi->id == 0x227E || cfi->id == 0x7E)) cfi 294 drivers/mtd/chips/cfi_util.c cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); cfi 301 drivers/mtd/chips/cfi_util.c struct cfi_private *cfi = map->fldrv_priv; cfi 303 drivers/mtd/chips/cfi_util.c int ofs_factor = cfi->interleave * cfi->device_type; cfi 321 drivers/mtd/chips/cfi_util.c cfi_qry_mode_on(base, map, cfi); cfi 329 drivers/mtd/chips/cfi_util.c cfi_qry_mode_off(base, map, cfi); cfi 345 drivers/mtd/chips/cfi_util.c struct cfi_private *cfi = map->fldrv_priv; cfi 349 drivers/mtd/chips/cfi_util.c if (((f->mfr == CFI_MFR_ANY) || (f->mfr == cfi->mfr)) && cfi 350 drivers/mtd/chips/cfi_util.c ((f->id == CFI_ID_ANY) || (f->id == cfi->id))) { cfi 362 drivers/mtd/chips/cfi_util.c struct cfi_private *cfi = map->fldrv_priv; cfi 411 drivers/mtd/chips/cfi_util.c chipnum = ofs >> cfi->chipshift; cfi 412 drivers/mtd/chips/cfi_util.c adr = ofs - (chipnum << cfi->chipshift); cfi 419 drivers/mtd/chips/cfi_util.c ret = (*frob)(map, &cfi->chips[chipnum], adr, size, thunk); cfi 431 drivers/mtd/chips/cfi_util.c if (adr >> cfi->chipshift) { cfi 435 drivers/mtd/chips/cfi_util.c if (chipnum >= cfi->numchips) cfi 32 drivers/mtd/chips/fwh_lock.h struct cfi_private *cfi = map->fldrv_priv; cfi 19 drivers/mtd/chips/gen_probe.c struct cfi_private *cfi); cfi 24 drivers/mtd/chips/gen_probe.c struct cfi_private *cfi; cfi 27 drivers/mtd/chips/gen_probe.c cfi = genprobe_ident_chips(map, cp); cfi 29 drivers/mtd/chips/gen_probe.c if (!cfi) cfi 32 drivers/mtd/chips/gen_probe.c map->fldrv_priv = cfi; cfi 51 drivers/mtd/chips/gen_probe.c kfree(cfi->cfiq); cfi 52 drivers/mtd/chips/gen_probe.c kfree(cfi); cfi 61 drivers/mtd/chips/gen_probe.c struct cfi_private cfi; cfi 67 drivers/mtd/chips/gen_probe.c memset(&cfi, 0, sizeof(cfi)); cfi 71 drivers/mtd/chips/gen_probe.c if (!genprobe_new_chip(map, cp, &cfi)) { cfi 82 drivers/mtd/chips/gen_probe.c if (cfi.cfiq->NumEraseRegions == 0) { cfi 84 drivers/mtd/chips/gen_probe.c kfree(cfi.cfiq); cfi 88 drivers/mtd/chips/gen_probe.c cfi.chipshift = cfi.cfiq->DevSize; cfi 90 drivers/mtd/chips/gen_probe.c if (cfi_interleave_is_1(&cfi)) { cfi 92 drivers/mtd/chips/gen_probe.c } else if (cfi_interleave_is_2(&cfi)) { cfi 93 drivers/mtd/chips/gen_probe.c cfi.chipshift++; cfi 94 drivers/mtd/chips/gen_probe.c } else if (cfi_interleave_is_4((&cfi))) { cfi 95 drivers/mtd/chips/gen_probe.c cfi.chipshift += 2; cfi 96 drivers/mtd/chips/gen_probe.c } else if (cfi_interleave_is_8(&cfi)) { cfi 97 drivers/mtd/chips/gen_probe.c cfi.chipshift += 3; cfi 102 drivers/mtd/chips/gen_probe.c cfi.numchips = 1; cfi 108 drivers/mtd/chips/gen_probe.c max_chips = map->size >> cfi.chipshift; cfi 117 drivers/mtd/chips/gen_probe.c kfree(cfi.cfiq); cfi 130 drivers/mtd/chips/gen_probe.c cp->probe_chip(map, i << cfi.chipshift, chip_map, &cfi); cfi 138 drivers/mtd/chips/gen_probe.c retcfi = kmalloc(struct_size(retcfi, chips, cfi.numchips), GFP_KERNEL); cfi 141 drivers/mtd/chips/gen_probe.c kfree(cfi.cfiq); cfi 146 drivers/mtd/chips/gen_probe.c memcpy(retcfi, &cfi, sizeof(cfi)); cfi 147 drivers/mtd/chips/gen_probe.c memset(&retcfi->chips[0], 0, sizeof(struct flchip) * cfi.numchips); cfi 149 drivers/mtd/chips/gen_probe.c for (i = 0, j = 0; (j < cfi.numchips) && (i < max_chips); i++) { cfi 153 drivers/mtd/chips/gen_probe.c pchip->start = (i << cfi.chipshift); cfi 166 drivers/mtd/chips/gen_probe.c struct cfi_private *cfi) cfi 177 drivers/mtd/chips/gen_probe.c cfi->interleave = nr_chips; cfi 184 drivers/mtd/chips/gen_probe.c cfi->device_type = type; cfi 186 drivers/mtd/chips/gen_probe.c if (cp->probe_chip(map, 0, NULL, cfi)) cfi 202 drivers/mtd/chips/gen_probe.c struct cfi_private *cfi = map->fldrv_priv; cfi 203 drivers/mtd/chips/gen_probe.c __u16 type = primary?cfi->cfiq->P_ID:cfi->cfiq->A_ID; cfi 235 drivers/mtd/chips/gen_probe.c struct cfi_private *cfi = map->fldrv_priv; cfi 236 drivers/mtd/chips/gen_probe.c __u16 type = primary?cfi->cfiq->P_ID:cfi->cfiq->A_ID; cfi 1911 drivers/mtd/chips/jedec_probe.c struct cfi_private *cfi) cfi 1922 drivers/mtd/chips/jedec_probe.c uint32_t ofs = cfi_build_cmd_addr(0 + (bank << 8), map, cfi); cfi 1923 drivers/mtd/chips/jedec_probe.c mask = (1 << (cfi->device_type * 8)) - 1; cfi 1934 drivers/mtd/chips/jedec_probe.c struct cfi_private *cfi) cfi 1938 drivers/mtd/chips/jedec_probe.c u32 ofs = cfi_build_cmd_addr(1, map, cfi); cfi 1939 drivers/mtd/chips/jedec_probe.c mask = (1 << (cfi->device_type * 8)) -1; cfi 1944 drivers/mtd/chips/jedec_probe.c static void jedec_reset(u32 base, struct map_info *map, struct cfi_private *cfi) cfi 1954 drivers/mtd/chips/jedec_probe.c if (cfi->addr_unlock1) { cfi 1956 drivers/mtd/chips/jedec_probe.c cfi->addr_unlock1,cfi->addr_unlock2); cfi 1957 drivers/mtd/chips/jedec_probe.c cfi_send_gen_cmd(0xaa, cfi->addr_unlock1, base, map, cfi, cfi->device_type, NULL); cfi 1958 drivers/mtd/chips/jedec_probe.c cfi_send_gen_cmd(0x55, cfi->addr_unlock2, base, map, cfi, cfi->device_type, NULL); cfi 1961 drivers/mtd/chips/jedec_probe.c cfi_send_gen_cmd(0xF0, cfi->addr_unlock1, base, map, cfi, cfi->device_type, NULL); cfi 1967 drivers/mtd/chips/jedec_probe.c cfi_send_gen_cmd(0xFF, 0, base, map, cfi, cfi->device_type, NULL); cfi 1972 drivers/mtd/chips/jedec_probe.c static int cfi_jedec_setup(struct map_info *map, struct cfi_private *cfi, int index) cfi 1977 drivers/mtd/chips/jedec_probe.c if (!(jedec_table[index].devtypes & cfi->device_type)) { cfi 1979 drivers/mtd/chips/jedec_probe.c jedec_table[index].name, 4 * (1<<cfi->device_type)); cfi 1987 drivers/mtd/chips/jedec_probe.c cfi->cfiq = kmalloc(sizeof(struct cfi_ident) + num_erase_regions * 4, GFP_KERNEL); cfi 1988 drivers/mtd/chips/jedec_probe.c if (!cfi->cfiq) { cfi 1993 drivers/mtd/chips/jedec_probe.c memset(cfi->cfiq, 0, sizeof(struct cfi_ident)); cfi 1995 drivers/mtd/chips/jedec_probe.c cfi->cfiq->P_ID = jedec_table[index].cmd_set; cfi 1996 drivers/mtd/chips/jedec_probe.c cfi->cfiq->NumEraseRegions = jedec_table[index].nr_regions; cfi 1997 drivers/mtd/chips/jedec_probe.c cfi->cfiq->DevSize = jedec_table[index].dev_size; cfi 1998 drivers/mtd/chips/jedec_probe.c cfi->cfi_mode = CFI_MODE_JEDEC; cfi 1999 drivers/mtd/chips/jedec_probe.c cfi->sector_erase_cmd = CMD(0x30); cfi 2002 drivers/mtd/chips/jedec_probe.c cfi->cfiq->EraseRegionInfo[i] = jedec_table[index].regions[i]; cfi 2004 drivers/mtd/chips/jedec_probe.c cfi->cmdset_priv = NULL; cfi 2007 drivers/mtd/chips/jedec_probe.c cfi->mfr = jedec_table[index].mfr_id; cfi 2008 drivers/mtd/chips/jedec_probe.c cfi->id = jedec_table[index].dev_id; cfi 2016 drivers/mtd/chips/jedec_probe.c cfi->addr_unlock1 = unlock_addrs[uaddr].addr1 / cfi->device_type; cfi 2017 drivers/mtd/chips/jedec_probe.c cfi->addr_unlock2 = unlock_addrs[uaddr].addr2 / cfi->device_type; cfi 2032 drivers/mtd/chips/jedec_probe.c struct cfi_private *cfi, cfi 2048 drivers/mtd/chips/jedec_probe.c switch (cfi->device_type) { cfi 2074 drivers/mtd/chips/jedec_probe.c __func__, cfi->device_type); cfi 2077 drivers/mtd/chips/jedec_probe.c if ( cfi->mfr != mfr || cfi->id != id ) { cfi 2084 drivers/mtd/chips/jedec_probe.c if ( base + cfi_interleave(cfi) * ( 1 << finfo->dev_size ) > map->size ) { cfi 2091 drivers/mtd/chips/jedec_probe.c if (! (finfo->devtypes & cfi->device_type)) cfi 2097 drivers/mtd/chips/jedec_probe.c __func__, cfi->addr_unlock1, cfi->addr_unlock2 ); cfi 2099 drivers/mtd/chips/jedec_probe.c && ( unlock_addrs[uaddr].addr1 / cfi->device_type != cfi->addr_unlock1 || cfi 2100 drivers/mtd/chips/jedec_probe.c unlock_addrs[uaddr].addr2 / cfi->device_type != cfi->addr_unlock2 ) ) { cfi 2119 drivers/mtd/chips/jedec_probe.c jedec_reset( base, map, cfi ); cfi 2120 drivers/mtd/chips/jedec_probe.c mfr = jedec_read_mfr( map, base, cfi ); cfi 2121 drivers/mtd/chips/jedec_probe.c id = jedec_read_id( map, base, cfi ); cfi 2122 drivers/mtd/chips/jedec_probe.c if ( mfr == cfi->mfr && id == cfi->id ) { cfi 2125 drivers/mtd/chips/jedec_probe.c __func__, cfi->mfr, cfi->id ); cfi 2137 drivers/mtd/chips/jedec_probe.c if (cfi->addr_unlock1) { cfi 2138 drivers/mtd/chips/jedec_probe.c cfi_send_gen_cmd(0xaa, cfi->addr_unlock1, base, map, cfi, cfi->device_type, NULL); cfi 2139 drivers/mtd/chips/jedec_probe.c cfi_send_gen_cmd(0x55, cfi->addr_unlock2, base, map, cfi, cfi->device_type, NULL); cfi 2141 drivers/mtd/chips/jedec_probe.c cfi_send_gen_cmd(0x90, cfi->addr_unlock1, base, map, cfi, cfi->device_type, NULL); cfi 2150 drivers/mtd/chips/jedec_probe.c unsigned long *chip_map, struct cfi_private *cfi) cfi 2157 drivers/mtd/chips/jedec_probe.c if (!cfi->numchips) { cfi 2163 drivers/mtd/chips/jedec_probe.c cfi->addr_unlock1 = unlock_addrs[uaddr_idx].addr1 / cfi->device_type; cfi 2164 drivers/mtd/chips/jedec_probe.c cfi->addr_unlock2 = unlock_addrs[uaddr_idx].addr2 / cfi->device_type; cfi 2176 drivers/mtd/chips/jedec_probe.c probe_offset1 = cfi_build_cmd_addr(cfi->addr_unlock1, map, cfi); cfi 2177 drivers/mtd/chips/jedec_probe.c probe_offset2 = cfi_build_cmd_addr(cfi->addr_unlock2, map, cfi); cfi 2183 drivers/mtd/chips/jedec_probe.c jedec_reset(base, map, cfi); cfi 2186 drivers/mtd/chips/jedec_probe.c if(cfi->addr_unlock1) { cfi 2187 drivers/mtd/chips/jedec_probe.c cfi_send_gen_cmd(0xaa, cfi->addr_unlock1, base, map, cfi, cfi->device_type, NULL); cfi 2188 drivers/mtd/chips/jedec_probe.c cfi_send_gen_cmd(0x55, cfi->addr_unlock2, base, map, cfi, cfi->device_type, NULL); cfi 2190 drivers/mtd/chips/jedec_probe.c cfi_send_gen_cmd(0x90, cfi->addr_unlock1, base, map, cfi, cfi->device_type, NULL); cfi 2193 drivers/mtd/chips/jedec_probe.c if (!cfi->numchips) { cfi 2197 drivers/mtd/chips/jedec_probe.c cfi->mfr = jedec_read_mfr(map, base, cfi); cfi 2198 drivers/mtd/chips/jedec_probe.c cfi->id = jedec_read_id(map, base, cfi); cfi 2200 drivers/mtd/chips/jedec_probe.c cfi->mfr, cfi->id, cfi_interleave(cfi), cfi->device_type); cfi 2202 drivers/mtd/chips/jedec_probe.c if ( jedec_match( base, map, cfi, &jedec_table[i] ) ) { cfi 2204 drivers/mtd/chips/jedec_probe.c __func__, cfi->mfr, cfi->id, cfi 2205 drivers/mtd/chips/jedec_probe.c cfi->addr_unlock1, cfi->addr_unlock2 ); cfi 2206 drivers/mtd/chips/jedec_probe.c if (!cfi_jedec_setup(map, cfi, i)) cfi 2217 drivers/mtd/chips/jedec_probe.c mfr = jedec_read_mfr(map, base, cfi); cfi 2218 drivers/mtd/chips/jedec_probe.c id = jedec_read_id(map, base, cfi); cfi 2220 drivers/mtd/chips/jedec_probe.c if ((mfr != cfi->mfr) || (id != cfi->id)) { cfi 2223 drivers/mtd/chips/jedec_probe.c jedec_reset(base, map, cfi); cfi 2229 drivers/mtd/chips/jedec_probe.c for (i=0; i < (base >> cfi->chipshift); i++) { cfi 2234 drivers/mtd/chips/jedec_probe.c start = i << cfi->chipshift; cfi 2235 drivers/mtd/chips/jedec_probe.c if (jedec_read_mfr(map, start, cfi) == cfi->mfr && cfi 2236 drivers/mtd/chips/jedec_probe.c jedec_read_id(map, start, cfi) == cfi->id) { cfi 2239 drivers/mtd/chips/jedec_probe.c jedec_reset(start, map, cfi); cfi 2242 drivers/mtd/chips/jedec_probe.c if (jedec_read_mfr(map, base, cfi) != cfi->mfr || cfi 2243 drivers/mtd/chips/jedec_probe.c jedec_read_id(map, base, cfi) != cfi->id) { cfi 2253 drivers/mtd/chips/jedec_probe.c jedec_reset(base, map, cfi); cfi 2254 drivers/mtd/chips/jedec_probe.c if (jedec_read_mfr(map, base, cfi) == cfi->mfr && cfi 2255 drivers/mtd/chips/jedec_probe.c jedec_read_id(map, base, cfi) == cfi->id) { cfi 2265 drivers/mtd/chips/jedec_probe.c set_bit((base >> cfi->chipshift), chip_map); /* Update chip map */ cfi 2266 drivers/mtd/chips/jedec_probe.c cfi->numchips++; cfi 2270 drivers/mtd/chips/jedec_probe.c jedec_reset(base, map, cfi); cfi 2273 drivers/mtd/chips/jedec_probe.c map->name, cfi_interleave(cfi), cfi->device_type*8, base, cfi 29 drivers/mtd/hyperbus/hbmc-am654.c struct cfi_private cfi; cfi 34 drivers/mtd/hyperbus/hbmc-am654.c cfi.interleave = 1; cfi 35 drivers/mtd/hyperbus/hbmc-am654.c cfi.device_type = CFI_DEVICETYPE_X16; cfi 36 drivers/mtd/hyperbus/hbmc-am654.c cfi_send_gen_cmd(0xF0, 0, 0, map, &cfi, cfi.device_type, NULL); cfi 37 drivers/mtd/hyperbus/hbmc-am654.c cfi_send_gen_cmd(0x98, 0x55, 0, map, &cfi, cfi.device_type, NULL); cfi 40 drivers/mtd/hyperbus/hbmc-am654.c ret = cfi_qry_present(map, 0, &cfi); cfi 49 drivers/mtd/hyperbus/hbmc-am654.c cfi_qry_mode_off(0, map, &cfi); cfi 186 drivers/mtd/maps/amd76xrom.c struct cfi_private *cfi; cfi 259 drivers/mtd/maps/amd76xrom.c cfi = map->map.fldrv_priv; cfi 260 drivers/mtd/maps/amd76xrom.c for(i = 0; i < cfi->numchips; i++) { cfi 261 drivers/mtd/maps/amd76xrom.c cfi->chips[i].start += offset; cfi 216 drivers/mtd/maps/ck804xrom.c struct cfi_private *cfi; cfi 289 drivers/mtd/maps/ck804xrom.c cfi = map->map.fldrv_priv; cfi 290 drivers/mtd/maps/ck804xrom.c for(i = 0; i < cfi->numchips; i++) cfi 291 drivers/mtd/maps/ck804xrom.c cfi->chips[i].start += offset; cfi 276 drivers/mtd/maps/esb2rom.c struct cfi_private *cfi; cfi 350 drivers/mtd/maps/esb2rom.c cfi = map->map.fldrv_priv; cfi 351 drivers/mtd/maps/esb2rom.c for(i = 0; i < cfi->numchips; i++) cfi 352 drivers/mtd/maps/esb2rom.c cfi->chips[i].start += offset; cfi 210 drivers/mtd/maps/ichxrom.c struct cfi_private *cfi; cfi 286 drivers/mtd/maps/ichxrom.c cfi = map->map.fldrv_priv; cfi 287 drivers/mtd/maps/ichxrom.c for(i = 0; i < cfi->numchips; i++) { cfi 288 drivers/mtd/maps/ichxrom.c cfi->chips[i].start += offset; cfi 112 drivers/mtd/maps/lantiq-flash.c struct cfi_private *cfi; cfi 157 drivers/mtd/maps/lantiq-flash.c cfi = ltq_mtd->map->fldrv_priv; cfi 158 drivers/mtd/maps/lantiq-flash.c cfi->addr_unlock1 ^= 1; cfi 159 drivers/mtd/maps/lantiq-flash.c cfi->addr_unlock2 ^= 1; cfi 145 drivers/mtd/maps/nettel.c struct cfi_private *cfi = nettel_intel_map.fldrv_priv; cfi 150 drivers/mtd/maps/nettel.c cfi_send_gen_cmd(0xff, 0x55, b, &nettel_intel_map, cfi, cfi 151 drivers/mtd/maps/nettel.c cfi->device_type, NULL); cfi 77 drivers/mtd/maps/scb2_flash.c struct cfi_private *cfi = map->fldrv_priv; cfi 80 drivers/mtd/maps/scb2_flash.c if (cfi->cfiq->InterfaceDesc != CFI_INTERFACE_X16_ASYNC) { cfi 82 drivers/mtd/maps/scb2_flash.c cfi->cfiq->InterfaceDesc); cfi 1100 drivers/net/ethernet/freescale/gianfar_ethtool.c u32 cfi = 0, cfi_mask = 0; cfi 1116 drivers/net/ethernet/freescale/gianfar_ethtool.c cfi = vlan_tci_cfi(rule); cfi 1122 drivers/net/ethernet/freescale/gianfar_ethtool.c if (cfi) cfi 1196 drivers/net/hyperv/hyperv_net.h u32 cfi:1; /* Canonical Format ID */ cfi 616 drivers/net/hyperv/netvsc_drv.c vlan->cfi = skb_vlan_tag_get_cfi(skb); cfi 807 drivers/net/hyperv/netvsc_drv.c (vlan->cfi ? VLAN_CFI_MASK : 0); cfi 153 fs/coda/cnode.c struct coda_file_info *cfi = file->private_data; cfi 155 fs/coda/cnode.c BUG_ON(!cfi || cfi->cfi_magic != CODA_MAGIC); cfi 157 fs/coda/cnode.c return cfi; cfi 349 fs/coda/dir.c struct coda_file_info *cfi; cfi 359 fs/coda/dir.c cfi = coda_ftoc(coda_file); cfi 360 fs/coda/dir.c host_file = cfi->cfi_container; cfi 424 fs/coda/dir.c struct coda_file_info *cfi; cfi 428 fs/coda/dir.c cfi = coda_ftoc(coda_file); cfi 429 fs/coda/dir.c host_file = cfi->cfi_container; cfi 42 fs/coda/file.c struct coda_file_info *cfi = coda_ftoc(coda_file); cfi 48 fs/coda/file.c &cfi->cfi_access_intent, cfi 53 fs/coda/file.c ret = vfs_iter_read(cfi->cfi_container, to, &iocb->ki_pos, 0); cfi 57 fs/coda/file.c &cfi->cfi_access_intent, cfi 67 fs/coda/file.c struct coda_file_info *cfi = coda_ftoc(coda_file); cfi 68 fs/coda/file.c struct file *host_file = cfi->cfi_container; cfi 74 fs/coda/file.c &cfi->cfi_access_intent, cfi 81 fs/coda/file.c ret = vfs_iter_write(cfi->cfi_container, to, &iocb->ki_pos, 0); cfi 90 fs/coda/file.c &cfi->cfi_access_intent, cfi 127 fs/coda/file.c struct coda_file_info *cfi = coda_ftoc(coda_file); cfi 128 fs/coda/file.c struct file *host_file = cfi->cfi_container; cfi 146 fs/coda/file.c &cfi->cfi_access_intent, cfi 171 fs/coda/file.c cfi->cfi_mapcount++; cfi 205 fs/coda/file.c struct coda_file_info *cfi; cfi 207 fs/coda/file.c cfi = kmalloc(sizeof(struct coda_file_info), GFP_KERNEL); cfi 208 fs/coda/file.c if (!cfi) cfi 217 fs/coda/file.c kfree(cfi); cfi 223 fs/coda/file.c cfi->cfi_magic = CODA_MAGIC; cfi 224 fs/coda/file.c cfi->cfi_mapcount = 0; cfi 225 fs/coda/file.c cfi->cfi_container = host_file; cfi 227 fs/coda/file.c cfi->cfi_access_intent = true; cfi 230 fs/coda/file.c coda_file->private_data = cfi; cfi 238 fs/coda/file.c struct coda_file_info *cfi; cfi 243 fs/coda/file.c cfi = coda_ftoc(coda_file); cfi 248 fs/coda/file.c host_inode = file_inode(cfi->cfi_container); cfi 254 fs/coda/file.c cii->c_mapcount -= cfi->cfi_mapcount; cfi 260 fs/coda/file.c fput(cfi->cfi_container); cfi 273 fs/coda/file.c struct coda_file_info *cfi; cfi 285 fs/coda/file.c cfi = coda_ftoc(coda_file); cfi 286 fs/coda/file.c host_file = cfi->cfi_container; cfi 45 fs/udf/dir.c struct fileIdentDesc cfi; cfi 129 fs/udf/dir.c fi = udf_fileident_read(dir, &nf_pos, &fibh, &cfi, &epos, &eloc, cfi 134 fs/udf/dir.c liu = le16_to_cpu(cfi.lengthOfImpUse); cfi 135 fs/udf/dir.c lfi = cfi.lengthFileIdent; cfi 163 fs/udf/dir.c if ((cfi.fileCharacteristics & FID_FILE_CHAR_DELETED) != 0) { cfi 168 fs/udf/dir.c if ((cfi.fileCharacteristics & FID_FILE_CHAR_HIDDEN) != 0) { cfi 173 fs/udf/dir.c if (cfi.fileCharacteristics & FID_FILE_CHAR_PARENT) { cfi 183 fs/udf/dir.c tloc = lelb_to_cpu(cfi.icb.extLocation); cfi 23 fs/udf/directory.c struct fileIdentDesc *cfi, cfi 48 fs/udf/directory.c memcpy((uint8_t *)cfi, (uint8_t *)fi, cfi 111 fs/udf/directory.c memcpy((uint8_t *)cfi, (uint8_t *)fi, cfi 139 fs/udf/directory.c memcpy((uint8_t *)cfi, (uint8_t *)fi, -fibh->soffset); cfi 140 fs/udf/directory.c memcpy((uint8_t *)cfi - fibh->soffset, cfi 144 fs/udf/directory.c fi_len = udf_dir_entry_len(cfi); cfi 148 fs/udf/directory.c memcpy((uint8_t *)cfi, (uint8_t *)fi, cfi 338 fs/udf/inode.c struct fileIdentDesc cfi, *sfi, *dfi; cfi 379 fs/udf/inode.c sfi = udf_fileident_read(inode, &f_pos, &sfibh, &cfi, NULL, cfi 43 fs/udf/namei.c int udf_write_fi(struct inode *inode, struct fileIdentDesc *cfi, cfi 50 fs/udf/namei.c uint16_t liu = le16_to_cpu(cfi->lengthOfImpUse); cfi 51 fs/udf/namei.c uint8_t lfi = cfi->lengthFileIdent; cfi 99 fs/udf/namei.c crc = crc_itu_t(0, (uint8_t *)cfi + sizeof(struct tag), cfi 118 fs/udf/namei.c cfi->descTag.descCRC = cpu_to_le16(crc); cfi 119 fs/udf/namei.c cfi->descTag.descCRCLength = cpu_to_le16(crclen); cfi 120 fs/udf/namei.c cfi->descTag.tagChecksum = udf_tag_checksum(&cfi->descTag); cfi 123 fs/udf/namei.c memcpy((uint8_t *)sfi, (uint8_t *)cfi, cfi 126 fs/udf/namei.c memcpy((uint8_t *)sfi, (uint8_t *)cfi, -fibh->soffset); cfi 127 fs/udf/namei.c memcpy(fibh->ebh->b_data, (uint8_t *)cfi - fibh->soffset, cfi 163 fs/udf/namei.c struct fileIdentDesc *cfi) cfi 218 fs/udf/namei.c fi = udf_fileident_read(dir, &f_pos, fibh, cfi, &epos, &eloc, cfi 225 fs/udf/namei.c liu = le16_to_cpu(cfi->lengthOfImpUse); cfi 226 fs/udf/namei.c lfi = cfi->lengthFileIdent; cfi 256 fs/udf/namei.c if ((cfi->fileCharacteristics & FID_FILE_CHAR_DELETED) != 0) { cfi 261 fs/udf/namei.c if ((cfi->fileCharacteristics & FID_FILE_CHAR_HIDDEN) != 0) { cfi 266 fs/udf/namei.c if ((cfi->fileCharacteristics & FID_FILE_CHAR_PARENT) && cfi 300 fs/udf/namei.c struct fileIdentDesc cfi; cfi 307 fs/udf/namei.c fi = udf_find_entry(dir, &dentry->d_name, &fibh, &cfi); cfi 318 fs/udf/namei.c loc = lelb_to_cpu(cfi.icb.extLocation); cfi 330 fs/udf/namei.c struct fileIdentDesc *cfi, int *err) cfi 402 fs/udf/namei.c fi = udf_fileident_read(dir, &f_pos, fibh, cfi, &epos, &eloc, cfi 410 fs/udf/namei.c if ((cfi->fileCharacteristics & FID_FILE_CHAR_DELETED) != 0) { cfi 411 fs/udf/namei.c if (udf_dir_entry_len(cfi) == nfidlen) { cfi 412 fs/udf/namei.c cfi->descTag.tagSerialNum = cpu_to_le16(1); cfi 413 fs/udf/namei.c cfi->fileVersionNum = cpu_to_le16(1); cfi 414 fs/udf/namei.c cfi->fileCharacteristics = 0; cfi 415 fs/udf/namei.c cfi->lengthFileIdent = namelen; cfi 416 fs/udf/namei.c cfi->lengthOfImpUse = cpu_to_le16(0); cfi 417 fs/udf/namei.c if (!udf_write_fi(dir, cfi, fi, fibh, NULL, cfi 521 fs/udf/namei.c memset(cfi, 0, sizeof(struct fileIdentDesc)); cfi 523 fs/udf/namei.c udf_new_tag((char *)cfi, TAG_IDENT_FID, 3, 1, block, cfi 526 fs/udf/namei.c udf_new_tag((char *)cfi, TAG_IDENT_FID, 2, 1, block, cfi 528 fs/udf/namei.c cfi->fileVersionNum = cpu_to_le16(1); cfi 529 fs/udf/namei.c cfi->lengthFileIdent = namelen; cfi 530 fs/udf/namei.c cfi->lengthOfImpUse = cpu_to_le16(0); cfi 531 fs/udf/namei.c if (!udf_write_fi(dir, cfi, fi, fibh, NULL, name)) { cfi 569 fs/udf/namei.c struct fileIdentDesc *cfi) cfi 571 fs/udf/namei.c cfi->fileCharacteristics |= FID_FILE_CHAR_DELETED; cfi 574 fs/udf/namei.c memset(&(cfi->icb), 0x00, sizeof(struct long_ad)); cfi 576 fs/udf/namei.c return udf_write_fi(inode, cfi, fi, fibh, NULL, NULL); cfi 584 fs/udf/namei.c struct fileIdentDesc cfi, *fi; cfi 587 fs/udf/namei.c fi = udf_add_entry(dir, dentry, &fibh, &cfi, &err); cfi 593 fs/udf/namei.c cfi.icb.extLength = cpu_to_le32(inode->i_sb->s_blocksize); cfi 594 fs/udf/namei.c cfi.icb.extLocation = cpu_to_lelb(iinfo->i_location); cfi 595 fs/udf/namei.c *(__le32 *)((struct allocDescImpUse *)cfi.icb.impUse)->impUse = cfi 597 fs/udf/namei.c udf_write_fi(dir, &cfi, fi, &fibh, NULL, NULL); cfi 666 fs/udf/namei.c struct fileIdentDesc cfi, *fi; cfi 678 fs/udf/namei.c fi = udf_add_entry(inode, NULL, &fibh, &cfi, &err); cfi 685 fs/udf/namei.c cfi.icb.extLength = cpu_to_le32(inode->i_sb->s_blocksize); cfi 686 fs/udf/namei.c cfi.icb.extLocation = cpu_to_lelb(dinfo->i_location); cfi 687 fs/udf/namei.c *(__le32 *)((struct allocDescImpUse *)cfi.icb.impUse)->impUse = cfi 689 fs/udf/namei.c cfi.fileCharacteristics = cfi 691 fs/udf/namei.c udf_write_fi(inode, &cfi, fi, &fibh, NULL, NULL); cfi 695 fs/udf/namei.c fi = udf_add_entry(dir, dentry, &fibh, &cfi, &err); cfi 702 fs/udf/namei.c cfi.icb.extLength = cpu_to_le32(inode->i_sb->s_blocksize); cfi 703 fs/udf/namei.c cfi.icb.extLocation = cpu_to_lelb(iinfo->i_location); cfi 704 fs/udf/namei.c *(__le32 *)((struct allocDescImpUse *)cfi.icb.impUse)->impUse = cfi 706 fs/udf/namei.c cfi.fileCharacteristics |= FID_FILE_CHAR_DIRECTORY; cfi 707 fs/udf/namei.c udf_write_fi(dir, &cfi, fi, &fibh, NULL, NULL); cfi 723 fs/udf/namei.c struct fileIdentDesc *fi, cfi; cfi 762 fs/udf/namei.c fi = udf_fileident_read(dir, &f_pos, &fibh, &cfi, &epos, &eloc, cfi 772 fs/udf/namei.c if (cfi.lengthFileIdent && cfi 773 fs/udf/namei.c (cfi.fileCharacteristics & FID_FILE_CHAR_DELETED) == 0) { cfi 795 fs/udf/namei.c struct fileIdentDesc *fi, cfi; cfi 799 fs/udf/namei.c fi = udf_find_entry(dir, &dentry->d_name, &fibh, &cfi); cfi 807 fs/udf/namei.c tloc = lelb_to_cpu(cfi.icb.extLocation); cfi 813 fs/udf/namei.c retval = udf_delete_entry(dir, fi, &fibh, &cfi); cfi 841 fs/udf/namei.c struct fileIdentDesc cfi; cfi 845 fs/udf/namei.c fi = udf_find_entry(dir, &dentry->d_name, &fibh, &cfi); cfi 854 fs/udf/namei.c tloc = lelb_to_cpu(cfi.icb.extLocation); cfi 863 fs/udf/namei.c retval = udf_delete_entry(dir, fi, &fibh, &cfi); cfi 1035 fs/udf/namei.c struct fileIdentDesc cfi, *fi; cfi 1038 fs/udf/namei.c fi = udf_add_entry(dir, dentry, &fibh, &cfi, &err); cfi 1042 fs/udf/namei.c cfi.icb.extLength = cpu_to_le32(inode->i_sb->s_blocksize); cfi 1043 fs/udf/namei.c cfi.icb.extLocation = cpu_to_lelb(UDF_I(inode)->i_location); cfi 1045 fs/udf/namei.c *(__le32 *)((struct allocDescImpUse *)cfi.icb.impUse)->impUse = cfi 1048 fs/udf/namei.c udf_write_fi(dir, &cfi, fi, &fibh, NULL, NULL); cfi 1218 fs/udf/namei.c struct fileIdentDesc cfi; cfi 1221 fs/udf/namei.c if (!udf_find_entry(d_inode(child), &dotdot, &fibh, &cfi)) cfi 1228 fs/udf/namei.c tloc = lelb_to_cpu(cfi.icb.extLocation); cfi 127 fs/udf/udfdecl.h static inline unsigned int udf_dir_entry_len(struct fileIdentDesc *cfi) cfi 130 fs/udf/udfdecl.h le16_to_cpu(cfi->lengthOfImpUse) + cfi->lengthFileIdent, cfi 2784 include/linux/mlx5/mlx5_ifc.h u8 cfi[0x1]; cfi 19 include/linux/mtd/cfi.h #define cfi_interleave(cfi) 1 cfi 20 include/linux/mtd/cfi.h #define cfi_interleave_is_1(cfi) (cfi_interleave(cfi) == 1) cfi 22 include/linux/mtd/cfi.h #define cfi_interleave_is_1(cfi) (0) cfi 28 include/linux/mtd/cfi.h # define cfi_interleave(cfi) ((cfi)->interleave) cfi 30 include/linux/mtd/cfi.h # define cfi_interleave(cfi) 2 cfi 32 include/linux/mtd/cfi.h #define cfi_interleave_is_2(cfi) (cfi_interleave(cfi) == 2) cfi 34 include/linux/mtd/cfi.h #define cfi_interleave_is_2(cfi) (0) cfi 40 include/linux/mtd/cfi.h # define cfi_interleave(cfi) ((cfi)->interleave) cfi 42 include/linux/mtd/cfi.h # define cfi_interleave(cfi) 4 cfi 44 include/linux/mtd/cfi.h #define cfi_interleave_is_4(cfi) (cfi_interleave(cfi) == 4) cfi 46 include/linux/mtd/cfi.h #define cfi_interleave_is_4(cfi) (0) cfi 52 include/linux/mtd/cfi.h # define cfi_interleave(cfi) ((cfi)->interleave) cfi 54 include/linux/mtd/cfi.h # define cfi_interleave(cfi) 8 cfi 56 include/linux/mtd/cfi.h #define cfi_interleave_is_8(cfi) (cfi_interleave(cfi) == 8) cfi 58 include/linux/mtd/cfi.h #define cfi_interleave_is_8(cfi) (0) cfi 63 include/linux/mtd/cfi.h static inline int cfi_interleave(void *cfi) cfi 293 include/linux/mtd/cfi.h struct map_info *map, struct cfi_private *cfi); cfi 295 include/linux/mtd/cfi.h map_word cfi_build_cmd(u_long cmd, struct map_info *map, struct cfi_private *cfi); cfi 296 include/linux/mtd/cfi.h #define CMD(x) cfi_build_cmd((x), map, cfi) cfi 299 include/linux/mtd/cfi.h struct cfi_private *cfi); cfi 300 include/linux/mtd/cfi.h #define MERGESTATUS(x) cfi_merge_status((x), map, cfi) cfi 303 include/linux/mtd/cfi.h struct map_info *map, struct cfi_private *cfi, cfi 341 include/linux/mtd/cfi.h struct cfi_private *cfi); cfi 343 include/linux/mtd/cfi.h struct cfi_private *cfi); cfi 345 include/linux/mtd/cfi.h struct cfi_private *cfi); cfi 18 include/linux/mtd/gen_probe.h unsigned long *chip_map, struct cfi_private *cfi); cfi 2607 net/core/pktgen.c static inline __be16 build_tci(unsigned int id, unsigned int cfi, cfi 2610 net/core/pktgen.c return htons(id | (cfi << 12) | (prio << 13)); cfi 101 tools/perf/arch/powerpc/util/skip-callchain-idx.c Dwarf_CFI *cfi; cfi 104 tools/perf/arch/powerpc/util/skip-callchain-idx.c cfi = dwfl_module_eh_cfi(mod, &bias); cfi 105 tools/perf/arch/powerpc/util/skip-callchain-idx.c if (!cfi) { cfi 110 tools/perf/arch/powerpc/util/skip-callchain-idx.c result = dwarf_cfi_addrframe(cfi, pc-bias, &frame); cfi 124 tools/perf/arch/powerpc/util/skip-callchain-idx.c Dwarf_CFI *cfi; cfi 129 tools/perf/arch/powerpc/util/skip-callchain-idx.c cfi = dwfl_module_dwarf_cfi(mod, &bias); cfi 130 tools/perf/arch/powerpc/util/skip-callchain-idx.c if (!cfi) { cfi 135 tools/perf/arch/powerpc/util/skip-callchain-idx.c result = dwarf_cfi_addrframe(cfi, pc-bias, &frame);