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

Lines Matching refs:osh

48 ccsflash_cmd(osl_t *osh, chipcregs_t *cc, uint opcode)
50 W_REG(osh, &cc->flashcontrol, SFLASH_START | opcode);
51 while (R_REG(osh, &cc->flashcontrol) & SFLASH_BUSY);
63 osl_t *osh;
77 osh = si_osh(sih);
95 ccsflash_cmd(osh, cc, SFLASH_ST_DP);
96 W_REG(osh, &cc->flashaddress, 0);
97 ccsflash_cmd(osh, cc, SFLASH_ST_RES);
98 id = R_REG(osh, &cc->flashdata);
110 ccsflash_cmd(osh, cc, SFLASH_MXIC_RDID);
111 id = R_REG(osh, &cc->flashdata);
145 W_REG(osh, &cc->flashaddress, 1);
146 ccsflash_cmd(osh, cc, SFLASH_ST_RES);
147 id2 = R_REG(osh, &cc->flashdata);
213 ccsflash_cmd(osh, cc, SFLASH_AT_STATUS);
214 id = R_REG(osh, &cc->flashdata) & 0x3c;
324 osl_t *osh;
328 osh = si_osh(sih);
336 ccsflash_cmd(osh, cc, SFLASH_ST_RDSR);
337 return R_REG(osh, &cc->flashdata) & SFLASH_ST_WIP;
340 ccsflash_cmd(osh, cc, SFLASH_AT_STATUS);
341 return !(R_REG(osh, &cc->flashdata) & SFLASH_AT_READY);
373 osl_t *osh;
377 osh = si_osh(sih);
389 retry: ccsflash_cmd(osh, cc, SFLASH_ST_WREN);
396 W_REG(osh, &cc->flashaddress, off);
399 W_REG(osh, &cc->flashdata, data);
401 OR_REG(osh, &cc->gpioout, mask);
403 ccsflash_cmd(osh, cc, SFLASH_ST_PP);
410 AND_REG(osh, &cc->gpioout, ~mask);
424 ccsflash_cmd(osh, cc, data);
431 AND_REG(osh, &cc->gpioout, ~mask);
441 W_REG(osh, &cc->flashaddress, off);
444 W_REG(osh, &cc->flashdata, data);
446 ccsflash_cmd(osh, cc, SFLASH_ST_CSA | SFLASH_ST_PP);
471 ccsflash_cmd(osh, cc, SFLASH_ST_CSA | data);
492 W_REG(osh, &cc->flashaddress, off);
495 W_REG(osh, &cc->flashdata, data);
497 ccsflash_cmd(osh, cc, SFLASH_ST_PP);
506 W_REG(osh, &cc->flashaddress, page);
507 ccsflash_cmd(osh, cc, SFLASH_AT_BUF1_LOAD);
514 W_REG(osh, &cc->flashaddress, byte++);
515 W_REG(osh, &cc->flashdata, *buf++);
516 ccsflash_cmd(osh, cc, SFLASH_AT_BUF1_WRITE);
519 W_REG(osh, &cc->flashaddress, page);
520 ccsflash_cmd(osh, cc, SFLASH_AT_BUF1_PROGRAM);
535 osl_t *osh;
539 osh = si_osh(sih);
546 ccsflash_cmd(osh, cc, SFLASH_ST_WREN);
547 W_REG(osh, &cc->flashaddress, offset);
552 ccsflash_cmd(osh, cc,
556 W_REG(osh, &cc->flashaddress, offset << 1);
557 ccsflash_cmd(osh, cc, SFLASH_AT_PAGE_ERASE);
576 osl_t *osh;
580 osh = si_osh(sih);
593 if (!(block = MALLOC(osh, blocksize)))
664 MFREE(osh, block, blocksize);