@@ -70,8 +70,8 @@ stse_ReturnCode_t stse_data_storage_read_data_zone(
7070 stse_cmd_protection_t protection ) {
7171 stse_ReturnCode_t ret = STSE_API_INVALID_PARAMETER ;
7272 PLAT_UI16 remaning_length = length ;
73- PLAT_UI16 chunck_length = 0 ;
74- PLAT_UI16 chunck_offset = offset ;
73+ PLAT_UI16 chunk_length = 0 ;
74+ PLAT_UI16 chunk_offset = offset ;
7575 union {
7676 stsafea_read_option_t stsafea ;
7777 stsafel_read_option_t stsafel ;
@@ -88,9 +88,9 @@ stse_ReturnCode_t stse_data_storage_read_data_zone(
8888 /* - Perform read by chunk */
8989 do {
9090 if ((chunk_size != 0 ) && (remaning_length > chunk_size )) {
91- chunck_length = chunk_size ;
91+ chunk_length = chunk_size ;
9292 } else {
93- chunck_length = remaning_length ;
93+ chunk_length = remaning_length ;
9494 }
9595
9696 /* - Transfer command/response */
@@ -101,9 +101,9 @@ stse_ReturnCode_t stse_data_storage_read_data_zone(
101101 pSTSE ,
102102 zone ,
103103 read_option .stsafel ,
104- chunck_offset ,
105- pBuffer + (chunck_offset )- offset ,
106- chunck_length ,
104+ chunk_offset ,
105+ pBuffer + (chunk_offset )- offset ,
106+ chunk_length ,
107107 protection );
108108 break ;
109109#endif /* STSE_CONF_STSAFE_L_SUPPORT */
@@ -116,9 +116,9 @@ stse_ReturnCode_t stse_data_storage_read_data_zone(
116116 pSTSE ,
117117 zone ,
118118 read_option .stsafea ,
119- chunck_offset ,
120- pBuffer + (chunck_offset )- offset ,
121- chunck_length ,
119+ chunk_offset ,
120+ pBuffer + (chunk_offset )- offset ,
121+ chunk_length ,
122122 protection );
123123 break ;
124124#endif /* STSE_CONF_STSAFE_A_SUPPORT */
@@ -132,8 +132,8 @@ stse_ReturnCode_t stse_data_storage_read_data_zone(
132132 }
133133
134134 /* - Decrement Length value */
135- remaning_length = (remaning_length - chunck_length );
136- chunck_offset = (chunck_offset + chunck_length );
135+ remaning_length = (remaning_length - chunk_length );
136+ chunk_offset = (chunk_offset + chunk_length );
137137
138138 } while (remaning_length > 0 );
139139
@@ -274,8 +274,8 @@ stse_ReturnCode_t stse_data_storage_read_counter_zone(
274274 stse_cmd_protection_t protection ) {
275275 stse_ReturnCode_t ret = STSE_API_INVALID_PARAMETER ;
276276 PLAT_UI16 remaning_length = length ;
277- PLAT_UI16 chunck_length = 0 ;
278- PLAT_UI16 chunck_offset = offset ;
277+ PLAT_UI16 chunk_length = 0 ;
278+ PLAT_UI16 chunk_offset = offset ;
279279 union {
280280 stsafea_read_option_t stsafea ;
281281 stsafel_read_option_t stsafel ;
@@ -292,9 +292,9 @@ stse_ReturnCode_t stse_data_storage_read_counter_zone(
292292 /*- Perform read by chunk */
293293 do {
294294 if ((chunk_size != 0 ) && (remaning_length > chunk_size )) {
295- chunck_length = chunk_size ;
295+ chunk_length = chunk_size ;
296296 } else {
297- chunck_length = remaning_length ;
297+ chunk_length = remaning_length ;
298298 }
299299
300300 switch (pSTSE -> device_type ) {
@@ -304,9 +304,9 @@ stse_ReturnCode_t stse_data_storage_read_counter_zone(
304304 pSTSE ,
305305 zone ,
306306 read_option .stsafel ,
307- chunck_offset ,
308- pBuffer + (chunck_offset )- offset ,
309- chunck_length ,
307+ chunk_offset ,
308+ pBuffer + (chunk_offset )- offset ,
309+ chunk_length ,
310310 pCounter_value ,
311311 protection );
312312 break ;
@@ -320,9 +320,9 @@ stse_ReturnCode_t stse_data_storage_read_counter_zone(
320320 pSTSE ,
321321 zone ,
322322 read_option .stsafea ,
323- chunck_offset ,
324- pBuffer + (chunck_offset )- offset ,
325- chunck_length ,
323+ chunk_offset ,
324+ pBuffer + (chunk_offset )- offset ,
325+ chunk_length ,
326326 pCounter_value ,
327327 protection );
328328 break ;
@@ -331,8 +331,8 @@ stse_ReturnCode_t stse_data_storage_read_counter_zone(
331331 ret = STSE_API_INCOMPATIBLE_DEVICE_TYPE ;
332332 }
333333 /* - Decrement Length value */
334- remaning_length = (remaning_length - chunck_length );
335- chunck_offset = (chunck_offset + chunck_length );
334+ remaning_length = (remaning_length - chunk_length );
335+ chunk_offset = (chunk_offset + chunk_length );
336336 } while ((remaning_length > 0 ) && (ret == STSE_OK ));
337337
338338 /* - Return STSAFE Status code */
0 commit comments