MCPcopy Create free account
hub / github.com/F-Stack/f-stack / dpaa_sec_init_tx

Function dpaa_sec_init_tx

dpdk/drivers/crypto/dpaa_sec/dpaa_sec.c:187–219  ·  view source on GitHub ↗

caam result is put into this queue */

Source from the content-addressed store, hash-verified

185
186/* caam result is put into this queue */
187static int
188dpaa_sec_init_tx(struct qman_fq *fq)
189{
190 int ret;
191 struct qm_mcc_initfq opts;
192 uint32_t flags;
193
194 flags = QMAN_FQ_FLAG_NO_ENQUEUE | QMAN_FQ_FLAG_LOCKED |
195 QMAN_FQ_FLAG_DYNAMIC_FQID;
196
197 ret = qman_create_fq(0, flags, fq);
198 if (unlikely(ret)) {
199 DPAA_SEC_ERR("qman_create_fq failed");
200 return ret;
201 }
202
203 memset(&opts, 0, sizeof(opts));
204 opts.we_mask = QM_INITFQ_WE_DESTWQ | QM_INITFQ_WE_FQCTRL |
205 QM_INITFQ_WE_CONTEXTA | QM_INITFQ_WE_CONTEXTB;
206
207 /* opts.fqd.dest.channel = dpaa_sec_pool_chan; */
208
209 fq->cb.dqrr = dqrr_out_fq_cb_rx;
210 fq->cb.ern = ern_sec_fq_handler;
211
212 ret = qman_init_fq(fq, 0, &opts);
213 if (unlikely(ret)) {
214 DPAA_SEC_ERR("unable to init caam source fq!");
215 return ret;
216 }
217
218 return ret;
219}
220
221static inline int is_aead(dpaa_sec_session *ses)
222{

Callers 1

dpaa_sec_dev_initFunction · 0.85

Calls 3

memsetFunction · 0.85
qman_create_fqFunction · 0.50
qman_init_fqFunction · 0.50

Tested by

no test coverage detected