Lines Matching refs:mem_addr
48 #define CMD_MAP_00(mem_addr) (MAP_00 | ((mem_addr) << 1)) argument
50 #define CMD_MAP_01(mem_addr) (MAP_01 | (mem_addr)) argument
52 #define CMD_MAP_10(mem_addr) (MAP_10 | (mem_addr)) argument
54 #define CMD_MAP_11(mem_addr) (MAP_11 | ((mem_addr) << 2)) argument
63 unsigned int (*mem_addr)(int fba, int fpa, int fsa); member
276 unsigned int mem_addr; in s3c_onenand_command() local
284 mem_addr = onenand->mem_addr(fba, fpa, fsa); in s3c_onenand_command()
315 *m++ = s3c_read_cmd(CMD_MAP_01(mem_addr)); in s3c_onenand_command()
322 *m++ = s3c_read_cmd(CMD_MAP_01(mem_addr)); in s3c_onenand_command()
326 *s++ = s3c_read_cmd(CMD_MAP_01(mem_addr)); in s3c_onenand_command()
334 s3c_write_cmd(*m++, CMD_MAP_01(mem_addr)); in s3c_onenand_command()
342 s3c_write_cmd(0xffffffff, CMD_MAP_01(mem_addr)); in s3c_onenand_command()
346 s3c_write_cmd(*s++, CMD_MAP_01(mem_addr)); in s3c_onenand_command()
352 s3c_write_cmd(ONENAND_UNLOCK_ALL, CMD_MAP_10(mem_addr)); in s3c_onenand_command()
356 s3c_write_cmd(ONENAND_ERASE_START, CMD_MAP_10(mem_addr)); in s3c_onenand_command()
360 s3c_write_cmd(ONENAND_MULTI_ERASE_SET, CMD_MAP_10(mem_addr)); in s3c_onenand_command()
364 s3c_write_cmd(ONENAND_ERASE_VERIFY, CMD_MAP_10(mem_addr)); in s3c_onenand_command()
455 s3c_read_cmd(CMD_MAP_01(onenand->mem_addr(block, 0, 0))); in s3c_onenand_check_lock_status()
471 start_mem_addr = onenand->mem_addr(start, 0, 0); in s3c_onenand_do_lock_cmd()
473 end_mem_addr = onenand->mem_addr(end, 0, 0); in s3c_onenand_do_lock_cmd()
553 onenand->mem_addr = s3c_mem_addr; in s3c_onenand_init()