• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/shared/

Lines Matching refs:osh

39 sflash_cmd(osl_t *osh, chipcregs_t *cc, uint opcode)
41 W_REG(osh, &cc->flashcontrol, SFLASH_START | opcode);
42 while (R_REG(osh, &cc->flashcontrol) & SFLASH_BUSY);
53 osl_t *osh;
57 osh = si_osh(sih);
67 sflash_cmd(osh, cc, SFLASH_ST_DP);
68 W_REG(osh, &cc->flashaddress, 0);
69 sflash_cmd(osh, cc, SFLASH_ST_RES);
70 id = R_REG(osh, &cc->flashdata);
82 sflash_cmd(osh, cc, SFLASH_MXIC_RDID);
83 id = R_REG(osh, &cc->flashdata);
117 W_REG(osh, &cc->flashaddress, 1);
118 sflash_cmd(osh, cc, SFLASH_ST_RES);
119 id2 = R_REG(osh, &cc->flashdata);
185 sflash_cmd(osh, cc, SFLASH_AT_STATUS);
186 id = R_REG(osh, &cc->flashdata) & 0x3c;
293 osl_t *osh;
297 osh = si_osh(sih);
305 sflash_cmd(osh, cc, SFLASH_ST_RDSR);
306 return R_REG(osh, &cc->flashdata) & SFLASH_ST_WIP;
309 sflash_cmd(osh, cc, SFLASH_AT_STATUS);
310 return !(R_REG(osh, &cc->flashdata) & SFLASH_AT_READY);
341 osl_t *osh;
345 osh = si_osh(sih);
358 retry: sflash_cmd(osh, cc, SFLASH_ST_WREN);
365 W_REG(osh, &cc->flashaddress, off);
368 W_REG(osh, &cc->flashdata, data);
370 OR_REG(osh, &cc->gpioout, mask);
372 sflash_cmd(osh, cc, SFLASH_ST_PP);
379 AND_REG(osh, &cc->gpioout, ~mask);
393 sflash_cmd(osh, cc, data);
400 AND_REG(osh, &cc->gpioout, ~mask);
410 W_REG(osh, &cc->flashaddress, off);
413 W_REG(osh, &cc->flashdata, data);
415 sflash_cmd(osh, cc, SFLASH_ST_CSA | SFLASH_ST_PP);
440 sflash_cmd(osh, cc, SFLASH_ST_CSA | data);
461 W_REG(osh, &cc->flashaddress, off);
464 W_REG(osh, &cc->flashdata, data);
466 sflash_cmd(osh, cc, SFLASH_ST_PP);
475 W_REG(osh, &cc->flashaddress, page);
476 sflash_cmd(osh, cc, SFLASH_AT_BUF1_LOAD);
483 W_REG(osh, &cc->flashaddress, byte++);
484 W_REG(osh, &cc->flashdata, *buf++);
485 sflash_cmd(osh, cc, SFLASH_AT_BUF1_WRITE);
488 W_REG(osh, &cc->flashaddress, page);
489 sflash_cmd(osh, cc, SFLASH_AT_BUF1_PROGRAM);
503 osl_t *osh;
507 osh = si_osh(sih);
515 sflash_cmd(osh, cc, SFLASH_ST_WREN);
516 W_REG(osh, &cc->flashaddress, offset);
521 sflash_cmd(osh, cc, (sfl->blocksize < (64 * 1024)) ? SFLASH_ST_SSE : SFLASH_ST_SE);
524 W_REG(osh, &cc->flashaddress, offset << 1);
525 sflash_cmd(osh, cc, SFLASH_AT_PAGE_ERASE);
544 osl_t *osh;
548 osh = si_osh(sih);
562 if (!(block = MALLOC(osh, blocksize)))
633 MFREE(osh, block, blocksize);