Searched refs:u_ctx (Results 1 – 6 of 6) sorted by relevance
/Linux-v5.10/drivers/crypto/chelsio/ |
D | chcr_core.c | 75 struct uld_ctx *u_ctx = NULL; in assign_chcr_device() local 85 u_ctx = drv_data.last_dev; in assign_chcr_device() 94 return u_ctx; in assign_chcr_device() 97 static void chcr_dev_add(struct uld_ctx *u_ctx) in chcr_dev_add() argument 101 dev = &u_ctx->dev; in chcr_dev_add() 105 list_move(&u_ctx->entry, &drv_data.act_dev); in chcr_dev_add() 107 drv_data.last_dev = u_ctx; in chcr_dev_add() 111 static void chcr_dev_init(struct uld_ctx *u_ctx) in chcr_dev_init() argument 115 dev = &u_ctx->dev; in chcr_dev_init() 124 list_add_tail(&u_ctx->entry, &drv_data.inact_dev); in chcr_dev_init() [all …]
|
D | chcr_algo.c | 768 struct uld_ctx *u_ctx = ULD_CTX(ctx); in create_wreq() local 774 qid = u_ctx->lldi.rxq_ids[rxqidx]; in create_wreq() 775 fid = u_ctx->lldi.rxq_ids[0]; in create_wreq() 1167 struct uld_ctx *u_ctx = ULD_CTX(c_ctx(tfm)); in chcr_handle_cipher_resp() local 1213 wrparam.qid = u_ctx->lldi.rxq_ids[reqctx->rxqidx]; in chcr_handle_cipher_resp() 1222 skb->dev = u_ctx->lldi.ports[0]; in chcr_handle_cipher_resp() 1373 struct uld_ctx *u_ctx = ULD_CTX(c_ctx(tfm)); in chcr_aes_encrypt() local 1385 if (unlikely(cxgb4_is_crypto_q_full(u_ctx->lldi.ports[0], in chcr_aes_encrypt() 1392 err = process_cipher(req, u_ctx->lldi.rxq_ids[reqctx->rxqidx], in chcr_aes_encrypt() 1396 skb->dev = u_ctx->lldi.ports[0]; in chcr_aes_encrypt() [all …]
|
D | chcr_core.h | 126 struct uld_ctx *u_ctx = container_of(dev, struct uld_ctx, dev); in padap() local 128 return pci_get_drvdata(u_ctx->lldi.pdev); in padap()
|
/Linux-v5.10/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/ |
D | chcr_ipsec.c | 105 struct ipsec_uld_ctx *u_ctx; in ch_ipsec_uld_add() local 109 u_ctx = kzalloc(sizeof(*u_ctx), GFP_KERNEL); in ch_ipsec_uld_add() 110 if (!u_ctx) { in ch_ipsec_uld_add() 111 u_ctx = ERR_PTR(-ENOMEM); in ch_ipsec_uld_add() 114 u_ctx->lldi = *infop; in ch_ipsec_uld_add() 116 return u_ctx; in ch_ipsec_uld_add() 121 struct ipsec_uld_ctx *u_ctx = handle; in ch_ipsec_uld_state_change() local 126 pr_info("%s: Up\n", pci_name(u_ctx->lldi.pdev)); in ch_ipsec_uld_state_change() 128 list_add_tail(&u_ctx->entry, &uld_ctx_list); in ch_ipsec_uld_state_change() 134 pr_info("%s: Down\n", pci_name(u_ctx->lldi.pdev)); in ch_ipsec_uld_state_change() [all …]
|
/Linux-v5.10/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
D | chcr_ktls.h | 93 struct chcr_ktls_uld_ctx *u_ctx = adap->uld[CXGB4_ULD_KTLS].handle; in chcr_get_first_rx_qid() local 95 if (!u_ctx) in chcr_get_first_rx_qid() 97 return u_ctx->lldi.rxq_ids[0]; in chcr_get_first_rx_qid()
|
D | chcr_ktls.c | 2170 struct chcr_ktls_uld_ctx *u_ctx; in chcr_ktls_uld_add() local 2174 u_ctx = kzalloc(sizeof(*u_ctx), GFP_KERNEL); in chcr_ktls_uld_add() 2175 if (!u_ctx) { in chcr_ktls_uld_add() 2176 u_ctx = ERR_PTR(-ENOMEM); in chcr_ktls_uld_add() 2179 u_ctx->lldi = *lldi; in chcr_ktls_uld_add() 2181 return u_ctx; in chcr_ktls_uld_add() 2198 struct chcr_ktls_uld_ctx *u_ctx = handle; in chcr_ktls_uld_rx_handler() local 2202 adap = pci_get_drvdata(u_ctx->lldi.pdev); in chcr_ktls_uld_rx_handler() 2215 struct chcr_ktls_uld_ctx *u_ctx = handle; in chcr_ktls_uld_state_change() local 2219 pr_info("%s: Up\n", pci_name(u_ctx->lldi.pdev)); in chcr_ktls_uld_state_change() [all …]
|