Lines Matching defs:data

265 static void ccp_free_data(struct ccp_data *data, struct ccp_cmd_queue *cmd_q)
267 ccp_dm_free(&data->dm_wa);
268 ccp_sg_free(&data->sg_wa);
271 static int ccp_init_data(struct ccp_data *data, struct ccp_cmd_queue *cmd_q,
278 memset(data, 0, sizeof(*data));
280 ret = ccp_init_sg_workarea(&data->sg_wa, cmd_q->ccp->dev, sg, sg_len,
285 ret = ccp_init_dm_workarea(&data->dm_wa, cmd_q, dm_len, dir);
292 ccp_free_data(data, cmd_q);
297 static unsigned int ccp_queue_buf(struct ccp_data *data, unsigned int from)
299 struct ccp_sg_workarea *sg_wa = &data->sg_wa;
300 struct ccp_dm_workarea *dm_wa = &data->dm_wa;
332 static unsigned int ccp_fill_queue_buf(struct ccp_data *data)
334 return ccp_queue_buf(data, 0);
337 static unsigned int ccp_empty_queue_buf(struct ccp_data *data)
339 return ccp_queue_buf(data, 1);
364 /* The data operation length will be at least block_size in length
370 /* Unless we have to buffer data, there's no reason to wait */
374 /* Not enough data in the sg element, so it
384 /* Enough data in the sg element, but we need to
385 * adjust for any previously copied data
397 * last piece of data (when using padding), so the
564 /* Send data to the CCP AES engine */
1015 /* Prepare the input and output data workareas. For in-place
1037 /* Send data to the CCP AES engine */
1045 * on the last piece of data
1225 /* Prepare the input and output data workareas. For in-place
1247 /* Send data to the CCP AES engine */
1414 * Prepare the input and output data workareas. For in-place
1436 /* Send data to the CCP DES3 engine */
1444 * on the last piece of data
1553 * caller must buffer the data.
1559 * so the caller is required to buffer data for the
1694 /* Send data to the CCP SHA engine; block_size is set above */
2018 /* Prepare the input and output data workareas. For in-place
2040 /* Send data to the CCP Passthru engine
2142 /* Send data to the CCP Passthru engine */