Lines Matching refs:pageaddr
155 unsigned int pageaddr; in spi_dataflash_erase() local
161 pageaddr = div_u64(offset, spi_flash->page_size); in spi_dataflash_erase()
162 do_block = (pageaddr & 0x7) == 0 && len >= blocksize; in spi_dataflash_erase()
163 pageaddr = pageaddr << dataflash->page_offset; in spi_dataflash_erase()
166 command[1] = (uint8_t)(pageaddr >> 16); in spi_dataflash_erase()
167 command[2] = (uint8_t)(pageaddr >> 8); in spi_dataflash_erase()
173 pageaddr); in spi_dataflash_erase()
270 unsigned int pageaddr, addr, to, writelen; in spi_dataflash_write() local
284 pageaddr = ((unsigned)offset / spi_flash->page_size); in spi_dataflash_write()
298 debug("write @ %d:%d len=%d\n", pageaddr, to, writelen); in spi_dataflash_write()
317 addr = pageaddr << dataflash->page_offset; in spi_dataflash_write()
369 addr = pageaddr << dataflash->page_offset; in spi_dataflash_write()
391 pageaddr, status); in spi_dataflash_write()
401 pageaddr++; in spi_dataflash_write()