Lines Matching refs:flash_write_cmd
356 static void flash_write_cmd(flash_info_t *info, flash_sect_t sect, in flash_write_cmd() function
406 flash_write_cmd(info, sect, info->addr_unlock1, AMD_CMD_UNLOCK_START); in flash_unlock_seq()
407 flash_write_cmd(info, sect, info->addr_unlock2, AMD_CMD_UNLOCK_ACK); in flash_unlock_seq()
547 flash_write_cmd(info, sect, info->addr_unlock1, in flash_is_busy()
592 flash_write_cmd(info, sector, 0, info->cmd_reset); in flash_status_check()
640 flash_write_cmd(info, sector, 0, info->cmd_reset); in flash_full_status_check()
820 flash_write_cmd(info, 0, 0, FLASH_CMD_CLEAR_STATUS); in flash_write_cfiword()
821 flash_write_cmd(info, 0, 0, FLASH_CMD_WRITE); in flash_write_cfiword()
827 flash_write_cmd(info, sect, info->addr_unlock1, AMD_CMD_WRITE); in flash_write_cfiword()
834 flash_write_cmd(info, 0, info->addr_unlock1, AMD_CMD_WRITE); in flash_write_cfiword()
945 flash_write_cmd(info, sector, 0, FLASH_CMD_CLEAR_STATUS); in flash_write_cfibuffer()
946 flash_write_cmd(info, sector, 0, FLASH_CMD_READ_STATUS); in flash_write_cfibuffer()
947 flash_write_cmd(info, sector, 0, write_cmd); in flash_write_cfibuffer()
956 flash_write_cmd(info, sector, 0, cnt - 1); in flash_write_cfibuffer()
980 flash_write_cmd(info, sector, 0, in flash_write_cfibuffer()
996 flash_write_cmd(info, sector, offset, AMD_CMD_WRITE_TO_BUFFER); in flash_write_cfibuffer()
998 flash_write_cmd(info, sector, offset, cnt - 1); in flash_write_cfibuffer()
1030 flash_write_cmd(info, sector, 0, AMD_CMD_WRITE_BUFFER_CONFIRM); in flash_write_cfibuffer()
1119 flash_write_cmd(info, sect, 0, in flash_erase()
1121 flash_write_cmd(info, sect, 0, in flash_erase()
1123 flash_write_cmd(info, sect, 0, in flash_erase()
1129 flash_write_cmd(info, sect, in flash_erase()
1133 flash_write_cmd(info, sect, 0, in flash_erase()
1139 flash_write_cmd(info, 0, info->addr_unlock1, in flash_erase()
1142 flash_write_cmd(info, sect, 0, in flash_erase()
1453 flash_write_cmd(info, sector, 0, FLASH_CMD_READ_ID); in cfi_protect_bugfix()
1468 flash_write_cmd(info, sector, 0, FLASH_CMD_PROTECT); in cfi_protect_bugfix()
1469 flash_write_cmd(info, sector, 0, cmd); in cfi_protect_bugfix()
1488 flash_write_cmd(info, sector, 0, in flash_real_protect()
1490 flash_write_cmd(info, sector, 0, in flash_real_protect()
1493 flash_write_cmd(info, sector, 0, in flash_real_protect()
1496 flash_write_cmd(info, sector, 0, in flash_real_protect()
1506 flash_write_cmd(info, 0, in flash_real_protect()
1510 flash_write_cmd(info, sector, 0, in flash_real_protect()
1513 flash_write_cmd(info, 0, in flash_real_protect()
1517 flash_write_cmd(info, sector, in flash_real_protect()
1526 flash_write_cmd(info, 0, info->addr_unlock1, in flash_real_protect()
1531 flash_write_cmd(info, sector, 0, in flash_real_protect()
1533 flash_write_cmd(info, sector, 0, in flash_real_protect()
1541 flash_write_cmd(info, 0, 0, in flash_real_protect()
1543 flash_write_cmd(info, 0, 0, in flash_real_protect()
1557 flash_write_cmd(info, 0, 0, in flash_real_protect()
1559 flash_write_cmd(info, 0, 0, in flash_real_protect()
1565 flash_write_cmd(info, sector, 0, FLASH_CMD_CLEAR_STATUS); in flash_real_protect()
1566 flash_write_cmd(info, sector, 0, FLASH_CMD_PROTECT); in flash_real_protect()
1568 flash_write_cmd(info, sector, 0, in flash_real_protect()
1571 flash_write_cmd(info, sector, 0, in flash_real_protect()
1580 flash_write_cmd(info, sector, 0, FLASH_CMD_READ_STATUS); in flash_real_protect()
1613 flash_write_cmd(info, 0, 0, FLASH_CMD_READ_ID); in flash_read_user_serial()
1615 flash_write_cmd(info, 0, 0, info->cmd_reset); in flash_read_user_serial()
1629 flash_write_cmd(info, 0, 0, FLASH_CMD_READ_ID); in flash_read_factory_serial()
1631 flash_write_cmd(info, 0, 0, info->cmd_reset); in flash_read_factory_serial()
1664 flash_write_cmd(info, 0, 0, FLASH_CMD_RESET); in cmdset_intel_read_jedec_ids()
1666 flash_write_cmd(info, 0, 0, FLASH_CMD_READ_ID); in cmdset_intel_read_jedec_ids()
1673 flash_write_cmd(info, 0, 0, FLASH_CMD_RESET); in cmdset_intel_read_jedec_ids()
1681 flash_write_cmd(info, 0, info->cfi_offset, FLASH_CMD_CFI); in cmdset_intel_init()
1700 flash_write_cmd(info, 0, 0, AMD_CMD_RESET); in cmdset_amd_read_jedec_ids()
1702 flash_write_cmd(info, 0, info->addr_unlock1, FLASH_CMD_READ_ID); in cmdset_amd_read_jedec_ids()
1751 flash_write_cmd(info, 0, 0, AMD_CMD_RESET); in cmdset_amd_read_jedec_ids()
1761 flash_write_cmd(info, 0, info->cfi_offset, FLASH_CMD_CFI); in cmdset_amd_init()
1888 flash_write_cmd(info, 0, 0, AMD_CMD_RESET); in __flash_cmd_reset()
1890 flash_write_cmd(info, 0, 0, FLASH_CMD_RESET); in __flash_cmd_reset()
1905 flash_write_cmd(info, 0, flash_offset_cfi[cfi_offset], in __flash_detect_cfi()
2126 flash_write_cmd(info, 0, 0, FLASH_CMD_RESET); in flash_get_size()
2219 flash_write_cmd(info, sect_cnt, 0, in flash_get_size()
2225 flash_write_cmd(info, sect_cnt, 0, in flash_get_size()
2237 flash_write_cmd(info, 0, 0, in flash_get_size()
2240 flash_write_cmd(info, 0, in flash_get_size()
2279 flash_write_cmd(info, 0, 0, info->cmd_reset); in flash_get_size()