Lines Matching refs:ctx

99 static inline  struct chcr_aead_ctx *AEAD_CTX(struct chcr_context *ctx)
101 return &ctx->crypto_ctx->aeadctx;
104 static inline struct ablk_ctx *ABLK_CTX(struct chcr_context *ctx)
106 return &ctx->crypto_ctx->ablkctx;
109 static inline struct hmac_ctx *HMAC_CTX(struct chcr_context *ctx)
111 return &ctx->crypto_ctx->hmacctx;
116 return gctx->ctx->gcm;
121 return gctx->ctx->authenc;
124 static inline struct uld_ctx *ULD_CTX(struct chcr_context *ctx)
126 return container_of(ctx->dev, struct uld_ctx, dev);
755 static inline void create_wreq(struct chcr_context *ctx,
764 struct uld_ctx *u_ctx = ULD_CTX(ctx);
772 portno = rxqidx / ctx->rxq_perchan;
773 tx_channel_id = txqidx / ctx->txq_perchan;
801 struct chcr_context *ctx = c_ctx(tfm);
802 struct uld_ctx *u_ctx = ULD_CTX(ctx);
803 struct ablk_ctx *ablkctx = ABLK_CTX(ctx);
816 struct adapter *adap = padap(ctx->dev);
817 unsigned int rx_channel_id = reqctx->rxqidx / ctx->rxq_perchan;
1165 struct chcr_context *ctx = c_ctx(tfm);
1166 struct adapter *adap = padap(ctx->dev);
1226 complete(&ctx->cbc_aes_aio_done);
1235 complete(&ctx->cbc_aes_aio_done);
1370 struct chcr_context *ctx = c_ctx(tfm);
1374 reqctx->txqidx = cpu % ctx->ntxq;
1375 reqctx->rxqidx = cpu % ctx->nrxq;
1399 wait_for_completion(&ctx->cbc_aes_aio_done);
1415 struct chcr_context *ctx = c_ctx(tfm);
1419 reqctx->txqidx = cpu % ctx->ntxq;
1420 reqctx->rxqidx = cpu % ctx->nrxq;
1440 static int chcr_device_init(struct chcr_context *ctx)
1446 if (!ctx->dev) {
1453 ctx->dev = &u_ctx->dev;
1457 ctx->ntxq = ntxq;
1458 ctx->nrxq = u_ctx->lldi.nrxq;
1459 ctx->rxq_perchan = rxq_perchan;
1460 ctx->txq_perchan = txq_perchan;
1469 struct chcr_context *ctx = crypto_skcipher_ctx(tfm);
1470 struct ablk_ctx *ablkctx = ABLK_CTX(ctx);
1478 init_completion(&ctx->cbc_aes_aio_done);
1482 return chcr_device_init(ctx);
1488 struct chcr_context *ctx = crypto_skcipher_ctx(tfm);
1489 struct ablk_ctx *ablkctx = ABLK_CTX(ctx);
1502 return chcr_device_init(ctx);
1508 struct chcr_context *ctx = crypto_skcipher_ctx(tfm);
1509 struct ablk_ctx *ablkctx = ABLK_CTX(ctx);
1565 struct chcr_context *ctx = h_ctx(tfm);
1566 struct hmac_ctx *hmacctx = HMAC_CTX(ctx);
1568 struct uld_ctx *u_ctx = ULD_CTX(ctx);
1577 unsigned int rx_channel_id = req_ctx->rxqidx / ctx->rxq_perchan;
1661 struct chcr_context *ctx = h_ctx(rtfm);
1671 req_ctx->txqidx = cpu % ctx->ntxq;
1672 req_ctx->rxqidx = cpu % ctx->nrxq;
1766 struct chcr_context *ctx = h_ctx(rtfm);
1772 req_ctx->txqidx = cpu % ctx->ntxq;
1773 req_ctx->rxqidx = cpu % ctx->nrxq;
1834 struct chcr_context *ctx = h_ctx(rtfm);
1842 req_ctx->txqidx = cpu % ctx->ntxq;
1843 req_ctx->rxqidx = cpu % ctx->nrxq;
1929 struct chcr_context *ctx = h_ctx(rtfm);
1937 req_ctx->txqidx = cpu % ctx->ntxq;
1938 req_ctx->rxqidx = cpu % ctx->nrxq;
2022 struct chcr_context *ctx = h_ctx(rtfm);
2023 struct uld_ctx *u_ctx = ULD_CTX(ctx);
2031 reqctx->txqidx = cpu % ctx->ntxq;
2032 reqctx->rxqidx = cpu % ctx->nrxq;
2146 struct chcr_context *ctx = crypto_tfm_ctx(tfm);
2147 struct adapter *adap = padap(ctx->dev);
2340 struct chcr_context *ctx = crypto_tfm_ctx(tfm);
2341 struct hmac_ctx *hmacctx = HMAC_CTX(ctx);
2355 struct chcr_context *ctx = crypto_tfm_ctx(tfm);
2356 struct hmac_ctx *hmacctx = HMAC_CTX(ctx);
2438 struct chcr_context *ctx = a_ctx(tfm);
2439 struct uld_ctx *u_ctx = ULD_CTX(ctx);
2440 struct chcr_aead_ctx *aeadctx = AEAD_CTX(ctx);
2456 struct adapter *adap = padap(ctx->dev);
2457 unsigned int rx_channel_id = reqctx->rxqidx / ctx->rxq_perchan;
2712 struct chcr_context *ctx = a_ctx(tfm);
2713 struct uld_ctx *u_ctx = ULD_CTX(ctx);
2715 unsigned int rx_channel_id = reqctx->rxqidx / ctx->rxq_perchan;
2756 struct chcr_context *ctx = c_ctx(tfm);
2757 struct uld_ctx *u_ctx = ULD_CTX(ctx);
2759 unsigned int rx_channel_id = reqctx->rxqidx / ctx->rxq_perchan;
2964 struct chcr_context *ctx = a_ctx(tfm);
2965 struct uld_ctx *u_ctx = ULD_CTX(ctx);
2966 struct chcr_aead_ctx *aeadctx = AEAD_CTX(ctx);
2970 unsigned int rx_channel_id = reqctx->rxqidx / ctx->rxq_perchan;
3136 struct chcr_context *ctx = a_ctx(tfm);
3137 struct uld_ctx *u_ctx = ULD_CTX(ctx);
3138 struct chcr_aead_ctx *aeadctx = AEAD_CTX(ctx);
3151 struct adapter *adap = padap(ctx->dev);
3152 unsigned int rx_channel_id = reqctx->rxqidx / ctx->rxq_perchan;
3741 struct chcr_context *ctx = a_ctx(tfm);
3742 struct uld_ctx *u_ctx = ULD_CTX(ctx);
3791 struct chcr_context *ctx = a_ctx(tfm);
3795 reqctx->txqidx = cpu % ctx->ntxq;
3796 reqctx->rxqidx = cpu % ctx->nrxq;
3819 struct chcr_context *ctx = a_ctx(tfm);
3820 struct chcr_aead_ctx *aeadctx = AEAD_CTX(ctx);
3826 reqctx->txqidx = cpu % ctx->ntxq;
3827 reqctx->rxqidx = cpu % ctx->nrxq;