Lines Matching refs:mssg

133 spu_skcipher_rx_sg_create(struct brcm_message *mssg,  in spu_skcipher_rx_sg_create()  argument
143 mssg->spu.dst = kcalloc(rx_frag_num, sizeof(struct scatterlist), in spu_skcipher_rx_sg_create()
145 if (!mssg->spu.dst) in spu_skcipher_rx_sg_create()
148 sg = mssg->spu.dst; in spu_skcipher_rx_sg_create()
197 spu_skcipher_tx_sg_create(struct brcm_message *mssg, in spu_skcipher_tx_sg_create() argument
207 mssg->spu.src = kcalloc(tx_frag_num, sizeof(struct scatterlist), in spu_skcipher_tx_sg_create()
209 if (unlikely(!mssg->spu.src)) in spu_skcipher_tx_sg_create()
212 sg = mssg->spu.src; in spu_skcipher_tx_sg_create()
243 static int mailbox_send_message(struct brcm_message *mssg, u32 flags, in mailbox_send_message() argument
250 err = mbox_send_message(iproc_priv.mbox[chan_idx], mssg); in mailbox_send_message()
260 mssg); in mailbox_send_message()
270 err = mssg->error; in mailbox_send_message()
316 struct brcm_message *mssg; /* mailbox message */ in handle_skcipher_req() local
332 mssg = &rctx->mb_mssg; in handle_skcipher_req()
428 memset(mssg, 0, sizeof(*mssg)); in handle_skcipher_req()
429 mssg->type = BRCM_MESSAGE_SPU; in handle_skcipher_req()
430 mssg->ctx = rctx; /* Will be returned in response */ in handle_skcipher_req()
439 err = spu_skcipher_rx_sg_create(mssg, rctx, rx_frag_num, chunksize, in handle_skcipher_req()
453 err = spu_skcipher_tx_sg_create(mssg, rctx, tx_frag_num, chunksize, in handle_skcipher_req()
458 err = mailbox_send_message(mssg, req->base.flags, rctx->chan_idx); in handle_skcipher_req()
525 spu_ahash_rx_sg_create(struct brcm_message *mssg, in spu_ahash_rx_sg_create() argument
534 mssg->spu.dst = kcalloc(rx_frag_num, sizeof(struct scatterlist), in spu_ahash_rx_sg_create()
536 if (!mssg->spu.dst) in spu_ahash_rx_sg_create()
539 sg = mssg->spu.dst; in spu_ahash_rx_sg_create()
577 spu_ahash_tx_sg_create(struct brcm_message *mssg, in spu_ahash_tx_sg_create() argument
589 mssg->spu.src = kcalloc(tx_frag_num, sizeof(struct scatterlist), in spu_ahash_tx_sg_create()
591 if (!mssg->spu.src) in spu_ahash_tx_sg_create()
594 sg = mssg->spu.src; in spu_ahash_tx_sg_create()
677 struct brcm_message *mssg; /* mailbox message */ in handle_ahash_req() local
718 mssg = &rctx->mb_mssg; in handle_ahash_req()
860 memset(mssg, 0, sizeof(*mssg)); in handle_ahash_req()
861 mssg->type = BRCM_MESSAGE_SPU; in handle_ahash_req()
862 mssg->ctx = rctx; /* Will be returned in response */ in handle_ahash_req()
865 err = spu_ahash_rx_sg_create(mssg, rctx, rx_frag_num, digestsize, in handle_ahash_req()
874 err = spu_ahash_tx_sg_create(mssg, rctx, tx_frag_num, spu_hdr_len, in handle_ahash_req()
879 err = mailbox_send_message(mssg, req->base.flags, rctx->chan_idx); in handle_ahash_req()
1041 static int spu_aead_rx_sg_create(struct brcm_message *mssg, in spu_aead_rx_sg_create() argument
1079 mssg->spu.dst = kcalloc(rx_frag_num, sizeof(struct scatterlist), in spu_aead_rx_sg_create()
1081 if (!mssg->spu.dst) in spu_aead_rx_sg_create()
1084 sg = mssg->spu.dst; in spu_aead_rx_sg_create()
1161 static int spu_aead_tx_sg_create(struct brcm_message *mssg, in spu_aead_tx_sg_create() argument
1181 mssg->spu.src = kcalloc(tx_frag_num, sizeof(struct scatterlist), in spu_aead_tx_sg_create()
1183 if (!mssg->spu.src) in spu_aead_tx_sg_create()
1186 sg = mssg->spu.src; in spu_aead_tx_sg_create()
1272 struct brcm_message *mssg; /* mailbox message */ in handle_aead_req() local
1349 mssg = &rctx->mb_mssg; in handle_aead_req()
1467 memset(mssg, 0, sizeof(*mssg)); in handle_aead_req()
1468 mssg->type = BRCM_MESSAGE_SPU; in handle_aead_req()
1469 mssg->ctx = rctx; /* Will be returned in response */ in handle_aead_req()
1494 err = spu_aead_rx_sg_create(mssg, req, rctx, rx_frag_num, in handle_aead_req()
1510 err = spu_aead_tx_sg_create(mssg, rctx, tx_frag_num, spu_hdr_len, in handle_aead_req()
1517 err = mailbox_send_message(mssg, req->base.flags, rctx->chan_idx); in handle_aead_req()
1591 struct brcm_message *mssg = &rctx->mb_mssg; in spu_chunk_cleanup() local
1593 kfree(mssg->spu.src); in spu_chunk_cleanup()
1594 kfree(mssg->spu.dst); in spu_chunk_cleanup()
1595 memset(mssg, 0, sizeof(struct brcm_message)); in spu_chunk_cleanup()
1627 struct brcm_message *mssg = msg; in spu_rx_callback() local
1631 rctx = mssg->ctx; in spu_rx_callback()