• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/src/shared/

Lines Matching refs:sfl

39 static int ccsflash_poll(hndsflash_t *sfl, uint offset);
40 static int ccsflash_read(hndsflash_t *sfl, uint offset, uint len, const uchar *buf);
41 static int ccsflash_write(hndsflash_t *sfl, uint offset, uint len, const uchar *buf);
42 static int ccsflash_erase(hndsflash_t *sfl, uint offset);
43 static int ccsflash_commit(hndsflash_t *sfl, uint offset, uint len, const uchar *buf);
269 ccsflash_read(hndsflash_t *sfl, uint offset, uint len, const uchar *buf)
271 si_t *sih = sfl->sih;
280 if ((offset + len) > sfl->size)
320 ccsflash_poll(hndsflash_t *sfl, uint offset)
322 si_t *sih = sfl->sih;
323 chipcregs_t *cc = (chipcregs_t *)sfl->core;
330 if (offset >= sfl->size)
333 switch (sfl->type) {
363 ccsflash_write(hndsflash_t *sfl, uint offset, uint length, const uchar *buffer)
365 si_t *sih = sfl->sih;
366 chipcregs_t *cc = (chipcregs_t *)sfl->core;
382 if ((off + len) > sfl->size)
385 switch (sfl->type) {
412 if (!ccsflash_poll(sfl, off)) {
433 if (!ccsflash_poll(sfl, off)) {
455 if (ccsflash_poll(sfl, off) == 0) {
480 if (ccsflash_poll(sfl, off) == 0) {
501 mask = sfl->blocksize - 1;
505 if (byte || (len < sfl->blocksize)) {
509 SPINWAIT(ccsflash_poll(sfl, off), 1000);
510 ASSERT(!ccsflash_poll(sfl, off));
513 for (ret = 0; (ret < (int)len) && (byte < sfl->blocksize); ret++) {
531 ccsflash_erase(hndsflash_t *sfl, uint offset)
533 si_t *sih = sfl->sih;
534 chipcregs_t *cc = (chipcregs_t *)sfl->core;
541 if (offset >= sfl->size)
544 switch (sfl->type) {
553 (sfl->blocksize < (64 * 1024)) ? SFLASH_ST_SSE : SFLASH_ST_SE);
554 return sfl->blocksize;
558 return sfl->blocksize;
569 ccsflash_commit(hndsflash_t *sfl, uint offset, uint len, const uchar *buf)
571 si_t *sih = sfl->sih;
586 if ((offset + len) > sfl->size)
589 blocksize = sfl->blocksize;
618 copied = ccsflash_read(sfl, blk_offset, blk_len, blk_ptr);
630 if ((ret = ccsflash_erase(sfl, (uint) cur_offset)) < 0)
632 while (ccsflash_poll(sfl, (uint) cur_offset));
643 if ((bytes = ccsflash_write(sfl,
650 while (ccsflash_poll(sfl, (uint) cur_offset));