Home
last modified time | relevance | path

Searched refs:eraseCmd (Results 1 – 1 of 1) sorted by relevance

/openbmc/estoraged/src/erase/
H A Dsanitize.cpp79 struct mmc_io_multi_cmd_erase eraseCmd = {}; in emmcErase() local
81 eraseCmd.num_of_cmds = 3; in emmcErase()
82 eraseCmd.cmds[0].opcode = mmcEraseGroupStart; in emmcErase()
83 eraseCmd.cmds[0].arg = 0; in emmcErase()
84 eraseCmd.cmds[0].flags = mmcRspSpiR1 | mmcRspR1 | mmcCmdAc; in emmcErase()
85 eraseCmd.cmds[0].write_flag = 1; in emmcErase()
87 eraseCmd.cmds[1].opcode = mmcEraseGroupEnd; in emmcErase()
88 eraseCmd.cmds[1].arg = (driveSize / sectorSize) - 1; in emmcErase()
89 eraseCmd.cmds[1].flags = mmcRspSpiR1 | mmcRspR1 | mmcCmdAc; in emmcErase()
90 eraseCmd.cmds[1].write_flag = 1; in emmcErase()
[all …]