Lines Matching refs:channel
107 static TEE_Result dcp_lock_channel(enum dcp_channel *channel) in dcp_lock_channel() argument
115 *channel = chan; in dcp_lock_channel()
155 io_clrbits32(dcp_base + DCP_STAT, BIT32(dcp_data->channel)); in dcp_run()
158 io_write32(dcp_base + DCP_CH_N_STAT(dcp_data->channel), 0x0); in dcp_run()
161 io_write32(dcp_base + DCP_CH_N_CMDPTR(dcp_data->channel), in dcp_run()
165 io_write32(dcp_base + DCP_CH_N_SEMA(dcp_data->channel), 0x1); in dcp_run()
170 if (val & BIT(dcp_data->channel)) in dcp_run()
180 val = io_read32(dcp_base + DCP_CH_N_STAT(dcp_data->channel)); in dcp_run()
351 ret = dcp_lock_channel(&data->dcp_data.channel); in dcp_cipher_do_init()
477 dcp_unlock_channel(data->dcp_data.channel); in dcp_cipher_do_final()
503 ret = dcp_lock_channel(&hashdata->dcp_data.channel); in dcp_sha_do_init()
649 dcp_unlock_channel(hashdata->dcp_data.channel); in dcp_sha_do_final()