• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7800-V1.0.2.28/target/linux/generic/files/crypto/ocf/kirkwood/mvHal/mv_hal/sflash/

Lines Matching refs:sflash

65 #include "sflash/mvSFlash.h"
66 #include "sflash/mvSFlashSpec.h"
79 static MV_SFLASH_DEVICE_PARAMS sflash[] = {
224 cmd[0] = sflash[pFlinfo->index].opcdWREN;
245 cmd[0] = sflash[pFlinfo->index].opcdRDSR;
328 cmd[0] = sflash[pFlinfo->index].opcdWRSR;
358 if (pFlinfo->index >= MV_ARRAY_SIZE(sflash))
365 if (((offset & (sflash[pFlinfo->index].pageSize - 1)) + buffSize) >
366 sflash[pFlinfo->index].pageSize)
376 cmd[0] = sflash[pFlinfo->index].opcdPP;
434 * pFlinfo->index: Index of the flash in the sflash tabel. If the SPI
446 * pFlinfo->index: Index of the detected flash in the sflash tabel
483 for (indx=0; indx<MV_ARRAY_SIZE(sflash); indx++)
485 if ((manf == sflash[indx].manufacturerId) && (dev == sflash[indx].deviceId))
501 pFlinfo->sectorSize = sflash[pFlinfo->index].sectorSize;
502 pFlinfo->sectorNumber = sflash[pFlinfo->index].sectorNumber;
503 pFlinfo->pageSize = sflash[pFlinfo->index].pageSize;
506 if ((ret = mvSpiBaudRateSet(sflash[pFlinfo->index].spiMaxFreq)) != MV_OK)
558 if (pFlinfo->index >= MV_ARRAY_SIZE(sflash))
589 cmd[0] = sflash[pFlinfo->index].opcdSE;
638 if (pFlinfo->index >= MV_ARRAY_SIZE(sflash))
644 cmd[0] = sflash[pFlinfo->index].opcdBE;
693 if (pFlinfo->index >= MV_ARRAY_SIZE(sflash))
699 cmd[0] = sflash[pFlinfo->index].opcdREAD;
741 if (pFlinfo->index >= MV_ARRAY_SIZE(sflash))
748 mvOsPrintf("Setting freq to %d.\n",sflash[pFlinfo->index].spiMaxFastFreq);
749 if ((ret = mvSpiBaudRateSet(sflash[pFlinfo->index].spiMaxFastFreq)) != MV_OK)
755 cmd[0] = sflash[pFlinfo->index].opcdFSTRD;
762 sflash[pFlinfo->index].spiFastRdDummyBytes);
765 if ((ret = mvSpiBaudRateSet(sflash[pFlinfo->index].spiMaxFreq)) != MV_OK)
821 if (pFlinfo->index >= MV_ARRAY_SIZE(sflash))
851 while (data2write >= sflash[pFlinfo->index].pageSize)
853 if ((ret = mvSFlashPageWr(pFlinfo, writeOffset, pWriteBuff, sflash[pFlinfo->index].pageSize)) != MV_OK)
857 writeOffset += sflash[pFlinfo->index].pageSize;
858 data2write -= sflash[pFlinfo->index].pageSize;
859 pWriteBuff += sflash[pFlinfo->index].pageSize;
912 if (pFlinfo->index >= MV_ARRAY_SIZE(sflash))
915 cmd[0] = sflash[pFlinfo->index].opcdRDID;
958 if (pFlinfo->index >= MV_ARRAY_SIZE(sflash))
1146 if (pFlinfo->index >= MV_ARRAY_SIZE(sflash))
1329 if (pFlinfo->index >= MV_ARRAY_SIZE(sflash))
1407 if (pFlinfo->index >= MV_ARRAY_SIZE(sflash))
1414 if (sflash[pFlinfo->index].opcdPwrSave == MV_SFLASH_NO_SPECIFIC_OPCD)
1420 cmd[0] = sflash[pFlinfo->index].opcdPwrSave;
1460 if (pFlinfo->index >= MV_ARRAY_SIZE(sflash))
1467 if (sflash[pFlinfo->index].opcdRES == MV_SFLASH_NO_SPECIFIC_OPCD)
1473 cmd[0] = sflash[pFlinfo->index].opcdRES;
1514 if (pFlinfo->index >= MV_ARRAY_SIZE(sflash))
1520 return sflash[pFlinfo->index].deviceModel;