mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
crypto: caam - Fix the 'quoted string split across lines'
Fix the checkpatch warnings that the strings were split across multiple lines. Checkpatch now complains about lines over 80, but this is better, since we can actually grep the source code for these strings now. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Herbert Xu <herbert@gondor.apana.org.au> Cc: Horia Geanta <horia.geanta@freescale.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
e397ee0f22
commit
da37503d37
1 changed files with 18 additions and 59 deletions
|
@ -16,13 +16,10 @@ static const struct {
|
||||||
const char *error_text;
|
const char *error_text;
|
||||||
} desc_error_list[] = {
|
} desc_error_list[] = {
|
||||||
{ 0x00, "No error." },
|
{ 0x00, "No error." },
|
||||||
{ 0x01, "SGT Length Error. The descriptor is trying to read "
|
{ 0x01, "SGT Length Error. The descriptor is trying to read more data than is contained in the SGT table." },
|
||||||
"more data than is contained in the SGT table." },
|
|
||||||
{ 0x02, "SGT Null Entry Error." },
|
{ 0x02, "SGT Null Entry Error." },
|
||||||
{ 0x03, "Job Ring Control Error. There is a bad value in the "
|
{ 0x03, "Job Ring Control Error. There is a bad value in the Job Ring Control register." },
|
||||||
"Job Ring Control register." },
|
{ 0x04, "Invalid Descriptor Command. The Descriptor Command field is invalid." },
|
||||||
{ 0x04, "Invalid Descriptor Command. The Descriptor Command "
|
|
||||||
"field is invalid." },
|
|
||||||
{ 0x05, "Reserved." },
|
{ 0x05, "Reserved." },
|
||||||
{ 0x06, "Invalid KEY Command" },
|
{ 0x06, "Invalid KEY Command" },
|
||||||
{ 0x07, "Invalid LOAD Command" },
|
{ 0x07, "Invalid LOAD Command" },
|
||||||
|
@ -31,55 +28,26 @@ static const struct {
|
||||||
{ 0x0A, "Invalid FIFO LOAD Command" },
|
{ 0x0A, "Invalid FIFO LOAD Command" },
|
||||||
{ 0x0B, "Invalid FIFO STORE Command" },
|
{ 0x0B, "Invalid FIFO STORE Command" },
|
||||||
{ 0x0C, "Invalid MOVE/MOVE_LEN Command" },
|
{ 0x0C, "Invalid MOVE/MOVE_LEN Command" },
|
||||||
{ 0x0D, "Invalid JUMP Command. A nonlocal JUMP Command is "
|
{ 0x0D, "Invalid JUMP Command. A nonlocal JUMP Command is invalid because the target is not a Job Header Command, or the jump is from a Trusted Descriptor to a Job Descriptor, or because the target Descriptor contains a Shared Descriptor." },
|
||||||
"invalid because the target is not a Job Header "
|
|
||||||
"Command, or the jump is from a Trusted Descriptor to "
|
|
||||||
"a Job Descriptor, or because the target Descriptor "
|
|
||||||
"contains a Shared Descriptor." },
|
|
||||||
{ 0x0E, "Invalid MATH Command" },
|
{ 0x0E, "Invalid MATH Command" },
|
||||||
{ 0x0F, "Invalid SIGNATURE Command" },
|
{ 0x0F, "Invalid SIGNATURE Command" },
|
||||||
{ 0x10, "Invalid Sequence Command. A SEQ IN PTR OR SEQ OUT PTR "
|
{ 0x10, "Invalid Sequence Command. A SEQ IN PTR OR SEQ OUT PTR Command is invalid or a SEQ KEY, SEQ LOAD, SEQ FIFO LOAD, or SEQ FIFO STORE decremented the input or output sequence length below 0. This error may result if a built-in PROTOCOL Command has encountered a malformed PDU." },
|
||||||
"Command is invalid or a SEQ KEY, SEQ LOAD, SEQ FIFO "
|
|
||||||
"LOAD, or SEQ FIFO STORE decremented the input or "
|
|
||||||
"output sequence length below 0. This error may result "
|
|
||||||
"if a built-in PROTOCOL Command has encountered a "
|
|
||||||
"malformed PDU." },
|
|
||||||
{ 0x11, "Skip data type invalid. The type must be 0xE or 0xF."},
|
{ 0x11, "Skip data type invalid. The type must be 0xE or 0xF."},
|
||||||
{ 0x12, "Shared Descriptor Header Error" },
|
{ 0x12, "Shared Descriptor Header Error" },
|
||||||
{ 0x13, "Header Error. Invalid length or parity, or certain "
|
{ 0x13, "Header Error. Invalid length or parity, or certain other problems." },
|
||||||
"other problems." },
|
{ 0x14, "Burster Error. Burster has gotten to an illegal state" },
|
||||||
{ 0x14, "Burster Error. Burster has gotten to an illegal "
|
{ 0x15, "Context Register Length Error. The descriptor is trying to read or write past the end of the Context Register. A SEQ LOAD or SEQ STORE with the VLF bit set was executed with too large a length in the variable length register (VSOL for SEQ STORE or VSIL for SEQ LOAD)." },
|
||||||
"state" },
|
|
||||||
{ 0x15, "Context Register Length Error. The descriptor is "
|
|
||||||
"trying to read or write past the end of the Context "
|
|
||||||
"Register. A SEQ LOAD or SEQ STORE with the VLF bit "
|
|
||||||
"set was executed with too large a length in the "
|
|
||||||
"variable length register (VSOL for SEQ STORE or VSIL "
|
|
||||||
"for SEQ LOAD)." },
|
|
||||||
{ 0x16, "DMA Error" },
|
{ 0x16, "DMA Error" },
|
||||||
{ 0x17, "Reserved." },
|
{ 0x17, "Reserved." },
|
||||||
{ 0x1A, "Job failed due to JR reset" },
|
{ 0x1A, "Job failed due to JR reset" },
|
||||||
{ 0x1B, "Job failed due to Fail Mode" },
|
{ 0x1B, "Job failed due to Fail Mode" },
|
||||||
{ 0x1C, "DECO Watchdog timer timeout error" },
|
{ 0x1C, "DECO Watchdog timer timeout error" },
|
||||||
{ 0x1D, "DECO tried to copy a key from another DECO but the "
|
{ 0x1D, "DECO tried to copy a key from another DECO but the other DECO's Key Registers were locked" },
|
||||||
"other DECO's Key Registers were locked" },
|
{ 0x1E, "DECO attempted to copy data from a DECO that had an unmasked Descriptor error" },
|
||||||
{ 0x1E, "DECO attempted to copy data from a DECO that had an "
|
{ 0x1F, "LIODN error. DECO was trying to share from itself or from another DECO but the two Non-SEQ LIODN values didn't match or the 'shared from' DECO's Descriptor required that the SEQ LIODNs be the same and they aren't." },
|
||||||
"unmasked Descriptor error" },
|
{ 0x20, "DECO has completed a reset initiated via the DRR register" },
|
||||||
{ 0x1F, "LIODN error. DECO was trying to share from itself or "
|
{ 0x21, "Nonce error. When using EKT (CCM) key encryption option in the FIFO STORE Command, the Nonce counter reached its maximum value and this encryption mode can no longer be used." },
|
||||||
"from another DECO but the two Non-SEQ LIODN values "
|
{ 0x22, "Meta data is too large (> 511 bytes) for TLS decap (input frame; block ciphers) and IPsec decap (output frame, when doing the next header byte update) and DCRC (output frame)." },
|
||||||
"didn't match or the 'shared from' DECO's Descriptor "
|
|
||||||
"required that the SEQ LIODNs be the same and they "
|
|
||||||
"aren't." },
|
|
||||||
{ 0x20, "DECO has completed a reset initiated via the DRR "
|
|
||||||
"register" },
|
|
||||||
{ 0x21, "Nonce error. When using EKT (CCM) key encryption "
|
|
||||||
"option in the FIFO STORE Command, the Nonce counter "
|
|
||||||
"reached its maximum value and this encryption mode "
|
|
||||||
"can no longer be used." },
|
|
||||||
{ 0x22, "Meta data is too large (> 511 bytes) for TLS decap "
|
|
||||||
"(input frame; block ciphers) and IPsec decap (output "
|
|
||||||
"frame, when doing the next header byte update) and "
|
|
||||||
"DCRC (output frame)." },
|
|
||||||
{ 0x23, "Read Input Frame error" },
|
{ 0x23, "Read Input Frame error" },
|
||||||
{ 0x24, "JDKEK, TDKEK or TDSK not loaded error" },
|
{ 0x24, "JDKEK, TDKEK or TDSK not loaded error" },
|
||||||
{ 0x80, "DNR (do not run) error" },
|
{ 0x80, "DNR (do not run) error" },
|
||||||
|
@ -90,23 +58,14 @@ static const struct {
|
||||||
{ 0x85, "Sequence number overflow" },
|
{ 0x85, "Sequence number overflow" },
|
||||||
{ 0x86, "Sigver invalid signature" },
|
{ 0x86, "Sigver invalid signature" },
|
||||||
{ 0x87, "DSA Sign Illegal test descriptor" },
|
{ 0x87, "DSA Sign Illegal test descriptor" },
|
||||||
{ 0x88, "Protocol Format Error - A protocol has seen an error "
|
{ 0x88, "Protocol Format Error - A protocol has seen an error in the format of data received. When running RSA, this means that formatting with random padding was used, and did not follow the form: 0x00, 0x02, 8-to-N bytes of non-zero pad, 0x00, F data." },
|
||||||
"in the format of data received. When running RSA, "
|
{ 0x89, "Protocol Size Error - A protocol has seen an error in size. When running RSA, pdb size N < (size of F) when no formatting is used; or pdb size N < (F + 11) when formatting is used." },
|
||||||
"this means that formatting with random padding was "
|
|
||||||
"used, and did not follow the form: 0x00, 0x02, 8-to-N "
|
|
||||||
"bytes of non-zero pad, 0x00, F data." },
|
|
||||||
{ 0x89, "Protocol Size Error - A protocol has seen an error in "
|
|
||||||
"size. When running RSA, pdb size N < (size of F) when "
|
|
||||||
"no formatting is used; or pdb size N < (F + 11) when "
|
|
||||||
"formatting is used." },
|
|
||||||
{ 0xC1, "Blob Command error: Undefined mode" },
|
{ 0xC1, "Blob Command error: Undefined mode" },
|
||||||
{ 0xC2, "Blob Command error: Secure Memory Blob mode error" },
|
{ 0xC2, "Blob Command error: Secure Memory Blob mode error" },
|
||||||
{ 0xC4, "Blob Command error: Black Blob key or input size "
|
{ 0xC4, "Blob Command error: Black Blob key or input size error" },
|
||||||
"error" },
|
|
||||||
{ 0xC5, "Blob Command error: Invalid key destination" },
|
{ 0xC5, "Blob Command error: Invalid key destination" },
|
||||||
{ 0xC8, "Blob Command error: Trusted/Secure mode error" },
|
{ 0xC8, "Blob Command error: Trusted/Secure mode error" },
|
||||||
{ 0xF0, "IPsec TTL or hop limit field either came in as 0, "
|
{ 0xF0, "IPsec TTL or hop limit field either came in as 0, or was decremented to 0" },
|
||||||
"or was decremented to 0" },
|
|
||||||
{ 0xF1, "3GPP HFN matches or exceeds the Threshold" },
|
{ 0xF1, "3GPP HFN matches or exceeds the Threshold" },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue