Skip to content

Commit 60df2c4

Browse files
committed
cc3xx: rename process_data() to trigger_dma()
trigger_dma() name is more representative to the desired operation. Change-Id: I05a565525309feb33d56d8bee4e778ea3210c36e Signed-off-by: Amjad Ouled-Ameur <[email protected]>
1 parent 38e1a95 commit 60df2c4

File tree

1 file changed

+4
-4
lines changed
  • platform/ext/target/arm/drivers/cc3xx/low_level_driver/src

1 file changed

+4
-4
lines changed

platform/ext/target/arm/drivers/cc3xx/low_level_driver/src/cc3xx_dma.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ static void wait_for_dma_complete(void)
144144
P_CC3XX->host_rgf.host_rgf_icr = poll_mask;
145145
}
146146

147-
static void process_data(const void *buf, size_t length)
147+
static void trigger_dma(const void *buf, size_t length)
148148
{
149149
/* Enable the DMA clock */
150150
P_CC3XX->misc.dma_clk_enable = 0x1U;
@@ -255,7 +255,7 @@ void cc3xx_lowlevel_dma_copy_data_from_rng_sram(void* dest,
255255
dma_state.block_buf_needs_output = true;
256256

257257
/* This starts the copy */
258-
process_data((const void *)rng_sram_offset, length);
258+
trigger_dma((const void *)rng_sram_offset, length);
259259

260260
/* Clear the DMA state */
261261
cc3xx_lowlevel_dma_uninit();
@@ -315,7 +315,7 @@ cc3xx_err_t cc3xx_lowlevel_dma_buffered_input_data(const void* buf, size_t lengt
315315
while (data_to_process_length > 0) {
316316
dma_input_length = data_to_process_length < 0x10000 ? data_to_process_length
317317
: 0x10000 - dma_state.block_buf_size;
318-
process_data(buf, dma_input_length);
318+
trigger_dma(buf, dma_input_length);
319319
data_to_process_length -= dma_input_length;
320320
length -= dma_input_length;
321321
buf += dma_input_length;
@@ -340,7 +340,7 @@ void cc3xx_lowlevel_dma_flush_buffer(bool zero_pad_first)
340340
dma_state.block_buf_size_in_use = dma_state.block_buf_size;
341341
}
342342

343-
process_data(dma_state.block_buf, dma_state.block_buf_size_in_use);
343+
trigger_dma(dma_state.block_buf, dma_state.block_buf_size_in_use);
344344
dma_state.block_buf_size_in_use = 0;
345345
}
346346
}

0 commit comments

Comments
 (0)