Home
last modified time | relevance | path

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

/trusted-firmware-a-3.6.0-3.5.0/drivers/nxp/crypto/caam/src/
Dsec_jr_driver.c40 struct sec_job_ring_t *job_ring = &g_job_rings[g_job_rings_no++]; in init_job_ring() local
43 job_ring->register_base_addr = reg_base_addr; in init_job_ring()
44 job_ring->jr_mode = jr_mode; in init_job_ring()
45 job_ring->irq_fd = irq_id; in init_job_ring()
47 job_ring->input_ring = vtop(ip_ring); in init_job_ring()
48 memset(job_ring->input_ring, 0, SEC_DMA_MEM_INPUT_RING_SIZE); in init_job_ring()
50 job_ring->output_ring = (struct sec_outring_entry *)vtop(op_ring); in init_job_ring()
51 memset(job_ring->output_ring, 0, SEC_DMA_MEM_OUTPUT_RING_SIZE); in init_job_ring()
56 flush_dcache_range((uintptr_t)(job_ring->input_ring), in init_job_ring()
58 flush_dcache_range((uintptr_t)(job_ring->output_ring), in init_job_ring()
[all …]
Dsec_hw_specific.c148 int hw_reset_job_ring(sec_job_ring_t *job_ring) in hw_reset_job_ring() argument
152 (struct jobring_regs *)job_ring->register_base_addr; in hw_reset_job_ring()
155 ret = hw_shutdown_job_ring(job_ring); in hw_reset_job_ring()
172 hw_set_input_ring_start_addr(regs, vtop(job_ring->input_ring)); in hw_reset_job_ring()
175 hw_set_output_ring_start_addr(regs, vtop(job_ring->output_ring)); in hw_reset_job_ring()
180 int hw_shutdown_job_ring(sec_job_ring_t *job_ring) in hw_shutdown_job_ring() argument
183 (struct jobring_regs *)job_ring->register_base_addr; in hw_shutdown_job_ring()
197 jr_disable_irqs(job_ring); in hw_shutdown_job_ring()
214 if (job_ring->jr_mode != SEC_NOTIFICATION_TYPE_POLL) { in hw_shutdown_job_ring()
215 jr_enable_irqs(job_ring); in hw_shutdown_job_ring()
[all …]
Dcaam.c22 static void *job_ring; variable
142 job_ring = init_job_ring(SEC_NOTIFICATION_TYPE_POLL, 0, 0, in configure_jr()
145 if (job_ring == NULL) { in configure_jr()
182 } else if (job_ring != NULL) { in config_sec_block()
258 ret = enq_jr_desc(job_ring, jobdesc); in run_descriptor_jr()
268 ret = dequeue_jr(job_ring, -1); in run_descriptor_jr()
Dhw_key_blob.c24 void *job_ring) in blob_done() argument
Drng.c22 void *job_ring) in rng_done() argument
/trusted-firmware-a-3.6.0-3.5.0/include/drivers/nxp/crypto/caam/
Dsec_hw_specific.h345 int hw_reset_job_ring(sec_job_ring_t *job_ring);
356 int hw_shutdown_job_ring(sec_job_ring_t *job_ring);
366 void hw_handle_job_ring_error(sec_job_ring_t *job_ring,
377 int hw_job_ring_error(sec_job_ring_t *job_ring);
392 int hw_job_ring_set_coalescing_param(sec_job_ring_t *job_ring,
400 int hw_job_ring_enable_coalescing(sec_job_ring_t *job_ring);
407 int hw_job_ring_disable_coalescing(sec_job_ring_t *job_ring);
422 int hw_poll_job_ring(struct sec_job_ring_t *job_ring, int32_t limit);
436 void hw_flush_job_ring(struct sec_job_ring_t *job_ring,
464 void sec_handle_desc_error(struct sec_job_ring_t *job_ring,
[all …]
Dsec_jr_driver.h55 void *arg, void *job_ring);
/trusted-firmware-a-3.6.0-3.5.0/drivers/nxp/crypto/caam/src/auth/
Dhash.c31 void *job_ring) in hash_done() argument
Drsa.c32 void *job_ring) in rsa_done() argument