| /dpdk/drivers/common/cnxk/ |
| H A D | roc_npa_irq.c | 141 struct npa_lf *lf = qint->lf; in npa_q_irq() local 158 pool = q % lf->qints; in npa_q_irq() 177 aura = q % lf->qints; in npa_q_irq() 205 qs = PLT_MIN(lf->qints, lf->nr_pools); in npa_register_queue_irqs() 220 qintmem->lf = lf; in npa_register_queue_irqs() 247 qs = PLT_MIN(lf->qints, lf->nr_pools); in npa_unregister_queue_irqs() 266 qintmem->lf = NULL; in npa_unregister_queue_irqs() 278 lf->npa_msixoff); in npa_register_irqs() 283 rc = npa_register_err_irq(lf); in npa_register_irqs() 295 npa_unregister_err_irq(lf); in npa_unregister_irqs() [all …]
|
| H A D | roc_cpt.c | 55 cpt_lf_print(lf); in cpt_lf_misc_irq() 171 lf->msixoff); in cpt_lf_register_irqs() 459 lf->io_addr = lf->rbase + CPT_LF_NQX(0); in cpt_iq_init() 477 lf->fc_hyst_bits = plt_log2_u32(lf->nb_desc) / 2; in cpt_iq_init() 478 lf->fc_thresh = lf->nb_desc - (lf->nb_desc % (1 << lf->fc_hyst_bits)); in cpt_iq_init() 571 if (lf->nb_desc == 0 || lf->nb_desc > CPT_LF_MAX_NB_DESC) in cpt_lf_init() 609 lf->msixoff = cpt->lf_msix_off[lf->lf_id]; in roc_cpt_lf_init() 617 roc_cpt->lf[lf->lf_id] = lf; in roc_cpt_lf_init() 733 if (lf == NULL) in roc_cpt_lf_fini() 735 lf->roc_cpt->lf[lf->lf_id] = NULL; in roc_cpt_lf_fini() [all …]
|
| H A D | roc_npa.c | 32 PLT_ASSERT(lf); in roc_npa_aura_op_range_set() 33 lim = lf->aura_lim; in roc_npa_aura_op_range_set() 157 if (lf == NULL) in roc_npa_pool_op_pc_reset() 160 mbox = lf->mbox; in roc_npa_pool_op_pc_reset() 205 if (lf == NULL) in roc_npa_aura_drop_set() 432 if (lf == NULL) in roc_npa_aura_limit_modify() 496 if (lf == NULL) in roc_npa_pool_range_update_check() 645 memset(lf, 0x0, sizeof(*lf)); in npa_dev_init() 712 if (!lf) in npa_dev_fini() 753 lf = &dev->npa; in npa_lf_init() [all …]
|
| H A D | roc_npa_debug.c | 94 struct npa_lf *lf; in roc_npa_ctx_dump() local 98 lf = idev_npa_obj_get(); in roc_npa_ctx_dump() 99 if (lf == NULL) in roc_npa_ctx_dump() 102 for (q = 0; q < lf->nr_pools; q++) { in roc_npa_ctx_dump() 104 if (plt_bitmap_get(lf->npa_bmp, q)) in roc_npa_ctx_dump() 123 for (q = 0; q < lf->nr_pools; q++) { in roc_npa_ctx_dump() 125 if (plt_bitmap_get(lf->npa_bmp, q)) in roc_npa_ctx_dump() 150 struct npa_lf *lf; in roc_npa_dump() local 154 lf = idev_npa_obj_get(); in roc_npa_dump() 155 if (lf == NULL) in roc_npa_dump() [all …]
|
| H A D | cnxk_telemetry_npa.c | 12 struct npa_lf *lf; in cnxk_tel_npa() local 16 lf = idev_npa_obj_get(); in cnxk_tel_npa() 17 if (lf == NULL) in cnxk_tel_npa() 54 struct npa_lf *lf; in cnxk_tel_npa_aura() local 57 lf = idev_npa_obj_get(); in cnxk_tel_npa_aura() 58 if (lf == NULL) in cnxk_tel_npa_aura() 121 struct npa_lf *lf; in cnxk_tel_npa_pool() local 124 lf = idev_npa_obj_get(); in cnxk_tel_npa_pool() 125 if (lf == NULL) in cnxk_tel_npa_pool() 195 struct npa_lf *lf; in cnxk_npa_tel_handle_aura_list() local [all …]
|
| H A D | roc_cpt_debug.c | 161 cpt_lf_print(struct roc_cpt_lf *lf) in cpt_lf_print() argument 165 reg_val = plt_read64(lf->rbase + CPT_LF_Q_BASE); in cpt_lf_print() 168 reg_val = plt_read64(lf->rbase + CPT_LF_Q_SIZE); in cpt_lf_print() 174 reg_val = plt_read64(lf->rbase + CPT_LF_Q_GRP_PTR); in cpt_lf_print() 177 reg_val = plt_read64(lf->rbase + CPT_LF_CTL); in cpt_lf_print() 183 reg_val = plt_read64(lf->rbase + CPT_LF_MISC_INT); in cpt_lf_print() 186 reg_val = plt_read64(lf->rbase + CPT_LF_INPROG); in cpt_lf_print() 211 struct roc_cpt_lf *lf; in roc_cpt_lfs_print() local 218 lf = roc_cpt->lf[lf_id]; in roc_cpt_lfs_print() 219 if (lf == NULL) in roc_cpt_lfs_print() [all …]
|
| H A D | roc_cpt.h | 126 struct roc_cpt_lf *lf[ROC_CPT_MAX_LFS]; member 148 roc_cpt_is_iq_full(struct roc_cpt_lf *lf) in roc_cpt_is_iq_full() argument 150 if (*lf->fc_addr < lf->fc_thresh) in roc_cpt_is_iq_full() 164 int __roc_api roc_cpt_lf_init(struct roc_cpt *roc_cpt, struct roc_cpt_lf *lf); 165 void __roc_api roc_cpt_lf_fini(struct roc_cpt_lf *lf); 166 int __roc_api roc_cpt_lf_ctx_flush(struct roc_cpt_lf *lf, void *cptr, 168 int __roc_api roc_cpt_lf_ctx_reload(struct roc_cpt_lf *lf, void *cptr); 175 void __roc_api roc_cpt_iq_disable(struct roc_cpt_lf *lf); 176 void __roc_api roc_cpt_iq_enable(struct roc_cpt_lf *lf); 181 int __roc_api roc_cpt_ctx_write(struct roc_cpt_lf *lf, void *sa_dptr,
|
| H A D | roc_npa_priv.h | 38 struct npa_lf *lf; member 60 int npa_register_irqs(struct npa_lf *lf); 61 void npa_unregister_irqs(struct npa_lf *lf);
|
| H A D | roc_cpt_priv.h | 27 int cpt_lf_init(struct roc_cpt_lf *lf); 28 void cpt_lf_fini(struct roc_cpt_lf *lf); 34 void cpt_lf_print(struct roc_cpt_lf *lf);
|
| H A D | roc_nix_inl_dev.c | 165 struct roc_cpt_lf *lf = &inl_dev->cpt_lf; in nix_inl_cpt_setup() local 184 lf = &inl_dev->cpt_lf; in nix_inl_cpt_setup() 185 lf->lf_id = 0; in nix_inl_cpt_setup() 186 lf->nb_desc = 0; /* Set to default */ in nix_inl_cpt_setup() 187 lf->dev = &inl_dev->dev; in nix_inl_cpt_setup() 188 lf->msixoff = inl_dev->cpt_msixoff; in nix_inl_cpt_setup() 189 lf->pci_dev = inl_dev->pci_dev; in nix_inl_cpt_setup() 191 rc = cpt_lf_init(lf); in nix_inl_cpt_setup() 197 roc_cpt_iq_enable(lf); in nix_inl_cpt_setup() 207 struct roc_cpt_lf *lf = &inl_dev->cpt_lf; in nix_inl_cpt_release() local [all …]
|
| H A D | roc_nix_inl.c | 334 struct roc_cpt_lf *lf_base, *lf; in roc_nix_inl_outb_init() local 406 lf = &lf_base[i]; in roc_nix_inl_outb_init() 408 lf->lf_id = i; in roc_nix_inl_outb_init() 409 lf->nb_desc = roc_nix->outb_nb_desc; in roc_nix_inl_outb_init() 410 lf->dev = &nix->dev; in roc_nix_inl_outb_init() 411 lf->msixoff = nix->cpt_msixoff[i]; in roc_nix_inl_outb_init() 412 lf->pci_dev = nix->pci_dev; in roc_nix_inl_outb_init() 415 rc = cpt_lf_init(lf); in roc_nix_inl_outb_init() 431 roc_cpt_iq_enable(lf); in roc_nix_inl_outb_init()
|
| H A D | roc_nix_fc.c | 326 struct npa_lf *lf = idev_npa_obj_get(); in rox_nix_fc_npa_bp_cfg() local 336 if (!lf) in rox_nix_fc_npa_bp_cfg() 338 mbox = lf->mbox; in rox_nix_fc_npa_bp_cfg()
|
| H A D | roc_ree.c | 139 roc_ree_config_lf(struct roc_ree_vf *vf, uint8_t lf, uint8_t pri, uint32_t size) in roc_ree_config_lf() argument 152 req->lf = lf; in roc_ree_config_lf()
|
| H A D | roc_ree.h | 114 int __roc_api roc_ree_config_lf(struct roc_ree_vf *vf, uint8_t lf, uint8_t pri,
|
| H A D | roc_nix_tm_ops.c | 14 struct npa_lf *lf; in roc_nix_tm_sq_aura_fc() local 21 lf = idev_npa_obj_get(); in roc_nix_tm_sq_aura_fc() 22 if (!lf) in roc_nix_tm_sq_aura_fc() 25 mbox = lf->mbox; in roc_nix_tm_sq_aura_fc()
|
| /dpdk/drivers/crypto/cnxk/ |
| H A D | cn10k_ipsec.c | 144 ret = roc_cpt_ctx_write(lf, sa_dptr, out_sa, in cn10k_ipsec_outb_sa_create() 152 roc_cpt_lf_ctx_flush(lf, out_sa, false); in cn10k_ipsec_outb_sa_create() 240 ret = roc_cpt_ctx_write(lf, sa_dptr, in_sa, in cn10k_ipsec_inb_sa_create() 248 roc_cpt_lf_ctx_flush(lf, in_sa, true); in cn10k_ipsec_inb_sa_create() 335 struct roc_cpt_lf *lf; in cn10k_sec_session_destroy() local 347 lf = &qp->lf; in cn10k_sec_session_destroy() 352 roc_cpt_lf_ctx_flush(lf, &sa->in_sa, false); in cn10k_sec_session_destroy() 362 lf, sa_dptr, &sa->out_sa, in cn10k_sec_session_destroy() 371 lf, sa_dptr, &sa->in_sa, in cn10k_sec_session_destroy() 390 roc_cpt_lf_ctx_reload(lf, &sa->in_sa); in cn10k_sec_session_destroy() [all …]
|
| H A D | cnxk_cryptodev_ops.c | 105 if (roc_cpt->lf[qp_id] == NULL) in cnxk_cpt_dev_start() 312 qp->lf.lf_id); in cnxk_cpt_qp_destroy() 331 struct roc_cpt_lf *lf; in cnxk_cpt_queue_pair_release() local 337 lf = roc_cpt->lf[qp_id]; in cnxk_cpt_queue_pair_release() 338 if (lf == NULL) in cnxk_cpt_queue_pair_release() 341 roc_cpt_lf_fini(lf); in cnxk_cpt_queue_pair_release() 349 roc_cpt->lf[qp_id] = NULL; in cnxk_cpt_queue_pair_release() 386 qp->lf.lf_id = qp_id; in cnxk_cpt_queue_pair_setup() 387 qp->lf.nb_desc = nb_desc; in cnxk_cpt_queue_pair_setup() 398 roc_cpt->lf[qp_id] = &qp->lf; in cnxk_cpt_queue_pair_setup() [all …]
|
| H A D | cn10k_ipsec_la_ops.h | 51 process_outb_sa(struct roc_cpt_lf *lf, struct rte_crypto_op *cop, in process_outb_sa() argument 64 RTE_SET_USED(lf); in process_outb_sa() 76 roc_cpt_lf_ctx_reload(lf, &sess->out_sa); in process_outb_sa()
|
| H A D | cn9k_cryptodev_ops.c | 84 ret = sym_session_configure(qp->lf.roc_cpt, driver_id, sym_op->xform, in cn9k_cpt_sym_temp_sess_create() 230 const uint64_t lmt_base = qp->lf.lmt_base; in cn9k_cpt_enqueue_burst() 231 const uint64_t io_addr = qp->lf.io_addr; in cn9k_cpt_enqueue_burst() 370 if (roc_cpt_is_iq_full(&qp->lf)) { in cn9k_cpt_crypto_adapter_enqueue()
|
| H A D | cn10k_cryptodev_ops.c | 35 ret = sym_session_configure(qp->lf.roc_cpt, driver_id, sym_op->xform, in cn10k_cpt_sym_temp_sess_create() 72 ret = process_outb_sa(&qp->lf, op, sa, inst); in cpt_sec_inst_fill() 324 if (roc_cpt_is_iq_full(&qp->lf)) { in cn10k_cpt_crypto_adapter_enqueue()
|
| H A D | cnxk_cryptodev_ops.h | 68 struct roc_cpt_lf lf; member
|
| /dpdk/drivers/net/cnxk/ |
| H A D | cnxk_lookup.c | 182 uint8_t lf, lg, lh; in nix_create_tunnel_ptype_array() local 190 lf = idx & 0xF; in nix_create_tunnel_ptype_array() 195 switch (lf) { in nix_create_tunnel_ptype_array()
|
| /dpdk/ |
| H A D | .editorconfig | 8 end_of_line = lf
|
| /dpdk/drivers/event/cnxk/ |
| H A D | cnxk_eventdev.c | 17 cdev->data->dev_id, qp->lf.lf_id); in crypto_adapter_qp_setup() 19 cache_size = RTE_MIN(RTE_MEMPOOL_CACHE_MAX_SIZE, qp->lf.nb_desc / 1.5); in crypto_adapter_qp_setup() 20 nb_req = RTE_MAX(qp->lf.nb_desc, cache_size * rte_lcore_count()); in crypto_adapter_qp_setup()
|
| /dpdk/drivers/common/cnxk/hw/ |
| H A D | npc.h | 509 uint64_t lf : 12; member 536 uint64_t lf : 20; member
|