*/ret = mtd->erase(mtd, erase);if(!ret) {set_current_state(TASK_UNINTERRUPTIBLE); add_wait_queue(&waitq, &wait);if(erase->state != MTD_ERASE_DONE && erase->state != MTD_ERASE_FAILED) schedule(); remove_wait_queue(&waitq, &wait);set_current_state(TASK_RUNNING); ret = (erase...
*/ret = mtd->erase(mtd, erase);if(!ret) {set_current_state(TASK_UNINTERRUPTIBLE); add_wait_queue(&waitq, &wait);if(erase->state != MTD_ERASE_DONE && erase->state != MTD_ERASE_FAILED) schedule(); remove_wait_queue(&waitq, &wait);set_current_state(TASK_RUNNING); ret = (erase...
staticintefx_spi_slow_wait(struct efx_mtd *efx_mtd,booluninterruptible){conststructefx_spi_device*spi=efx_mtd->spi;structefx_nic*efx=efx_mtd->efx;u8 status;intrc, i;/* Wait up to 4s for flash/EEPROM to finish a slow operation. */for(i =0; i <40; i++) {__set_current_state(...