| /dpdk/drivers/net/nfp/nfpcore/ |
| H A D | nfp_hwinfo.c | 60 size = db->size; in nfp_hwinfo_db_validate() 86 uint8_t *db; in nfp_hwinfo_try_fetch() local 103 if (!db) in nfp_hwinfo_try_fetch() 110 header = (void *)db; in nfp_hwinfo_try_fetch() 124 return (void *)db; in nfp_hwinfo_try_fetch() 126 free(db); in nfp_hwinfo_try_fetch() 143 if (db) in nfp_hwinfo_fetch() 144 return db; in nfp_hwinfo_fetch() 162 if (!db) in nfp_hwinfo_read() 167 free(db); in nfp_hwinfo_read() [all …]
|
| /dpdk/drivers/net/bnxt/tf_core/ |
| H A D | tf_shadow_identifier.c | 40 struct tf_shadow_ident_element *db; member 50 struct tf_shadow_ident_element *db; in tf_shadow_ident_create_db() local 72 db = shadow_db->db; in tf_shadow_ident_create_db() 91 db[i].ref_count = (uint32_t *)cparms.mem_va; in tf_shadow_ident_create_db() 98 tfp_free((void *)db->ref_count); in tf_shadow_ident_create_db() 99 tfp_free((void *)db); in tf_shadow_ident_create_db() 116 tfp_free((void *)shadow_db->db[i].ref_count); in tf_shadow_ident_free_db() 118 tfp_free((void *)shadow_db->db); in tf_shadow_ident_free_db() 137 shadow_db->db[parms->type].ref_count[parms->search_id] = in tf_shadow_ident_search() 160 shadow_db->db[parms->type].ref_count[parms->id]++; in tf_shadow_ident_insert() [all …]
|
| H A D | tf_rm.c | 89 struct tf_rm_element *db; member 519 struct tf_rm_element *db; in tf_rm_create_db() local 689 db = rm_db->db; in tf_rm_create_db() 747 rc = ba_init(db[i].pool, in tf_rm_create_db() 791 tfp_free((void *)db->pool); in tf_rm_create_db() 792 tfp_free((void *)db); in tf_rm_create_db() 813 struct tf_rm_element *db; in tf_rm_create_db_no_reservation() local 930 db = rm_db->db; in tf_rm_create_db_no_reservation() 987 rc = ba_init(db[i].pool, in tf_rm_create_db_no_reservation() 1031 tfp_free((void *)db->pool); in tf_rm_create_db_no_reservation() [all …]
|
| H A D | tf_tcam_shared.c | 77 *db = cparms.mem_va; in tf_tcam_shared_create_db() 111 rc = ba_init(tcam_shared_wc->db[dir][id].pool, in tf_tcam_shared_create_wc_pool() 122 tcam_shared_wc->db[dir][id].info.start = start; in tf_tcam_shared_create_wc_pool() 123 tcam_shared_wc->db[dir][id].info.stride = stride; in tf_tcam_shared_create_wc_pool() 137 tcam_shared_wc->db[dir][id].info.start = 0; in tf_tcam_shared_free_wc_pool() 138 tcam_shared_wc->db[dir][id].info.stride = 0; in tf_tcam_shared_free_wc_pool() 140 if (tcam_shared_wc->db[dir][id].pool) in tf_tcam_shared_free_wc_pool() 416 pool = tcam_shared_wc->db[dir][pool_id].pool; in tf_tcam_shared_unbind() 535 pool = tcam_shared_wc->db[parms->dir][id].pool; in tf_tcam_shared_alloc() 632 pool = tcam_shared_wc->db[parms->dir][id].pool; in tf_tcam_shared_free() [all …]
|
| H A D | tf_device_p58.c | 540 void *db, in tf_dev_p58_get_sram_tbl_info() argument 549 parms.rm_db = db; in tf_dev_p58_get_sram_tbl_info()
|
| /dpdk/app/test/ |
| H A D | test_distributor.c | 149 rte_distributor_flush(db); in sanity_test() 177 rte_distributor_flush(db); in sanity_test() 206 rte_distributor_flush(db); in sanity_test() 235 rte_distributor_flush(db); in sanity_test() 247 rte_distributor_process(db, in sanity_test() 256 rte_distributor_flush(db); in sanity_test() 261 rte_distributor_flush(db); in sanity_test() 674 rte_distributor_flush(db); in sanity_mark_test() 848 if (db == NULL) { in test_distributor() 852 if (db == NULL) { in test_distributor() [all …]
|
| H A D | test_distributor_perf.c | 217 static struct rte_distributor *db; in test_distributor_perf() local 240 if (db == NULL) { in test_distributor_perf() 241 db = rte_distributor_create("Test_burst", rte_socket_id(), in test_distributor_perf() 244 if (db == NULL) { in test_distributor_perf() 249 rte_distributor_clear_returns(db); in test_distributor_perf() 270 rte_eal_mp_remote_launch(handle_work, db, SKIP_MAIN); in test_distributor_perf() 271 if (perf_test(db, p) < 0) in test_distributor_perf() 273 quit_workers(db, p); in test_distributor_perf()
|
| H A D | test_pcapng.c | 40 uint8_t *db; in dummy_mbuf_prep() local 51 db = (uint8_t *)rte_pktmbuf_append(mb, data_len); in dummy_mbuf_prep() 54 db[i] = i; in dummy_mbuf_prep()
|
| /dpdk/drivers/net/bnxt/ |
| H A D | bnxt_ring.h | 84 static inline void bnxt_db_write(struct bnxt_db_info *db, uint32_t idx) in bnxt_db_write() argument 86 uint32_t db_idx = DB_RING_IDX(db, idx); in bnxt_db_write() 87 void *doorbell = db->doorbell; in bnxt_db_write() 89 if (db->db_64) { in bnxt_db_write() 90 uint64_t key_idx = db->db_key64 | db_idx; in bnxt_db_write() 94 uint32_t key_idx = db->db_key32 | db_idx; in bnxt_db_write() 129 struct bnxt_db_info *db = &cpr->cp_db; in bnxt_db_cq() local 132 if (db->db_64) { in bnxt_db_cq() 133 uint64_t key_idx = db->db_key64 | idx; in bnxt_db_cq() 134 void *doorbell = db->doorbell; in bnxt_db_cq()
|
| H A D | bnxt_cpr.h | 73 #define DB_EPOCH(db, idx) (((idx) & (db)->db_epoch_mask) << \ argument 74 ((db)->db_epoch_shift)) 75 #define DB_RING_IDX(db, idx) (((idx) & (db)->db_ring_mask) | \ argument 76 DB_EPOCH(db, idx))
|
| H A D | bnxt_ring.c | 348 struct bnxt_db_info *db, in bnxt_set_db() argument 368 db->db_key64 = DBR_PATH_L2; in bnxt_set_db() 372 db->db_key64 |= DBR_VALID; in bnxt_set_db() 380 db->db_64 = true; in bnxt_set_db() 385 db->db_key32 = DB_KEY_TX; in bnxt_set_db() 388 db->db_key32 = DB_KEY_RX; in bnxt_set_db() 391 db->db_key32 = DB_KEY_CP; in bnxt_set_db() 394 db->db_64 = false; in bnxt_set_db() 396 db->db_ring_mask = ring_mask; in bnxt_set_db() 399 db->db_epoch_mask = db->db_ring_mask + 1; in bnxt_set_db() [all …]
|
| /dpdk/drivers/common/cnxk/ |
| H A D | roc_mbox_priv.h | 186 volatile uint8_t *db; in mbox_memcpy() local 191 db = (volatile uint8_t *)d; in mbox_memcpy() 194 db[i] = sb[i]; in mbox_memcpy() 205 volatile uint8_t *db; in mbox_memset() local 210 db = (volatile uint8_t *)d; in mbox_memset() 212 db[i] = val; in mbox_memset()
|
| H A D | roc_ree.c | 332 ree_db_msg(struct roc_ree_vf *vf, const char *db, uint32_t db_len, int inc, in ree_db_msg() argument 337 const char *rule_db_ptr = db; in ree_db_msg()
|
| /dpdk/drivers/common/mlx5/ |
| H A D | mlx5_common.h | 317 uint64_t *db; member 361 *uar->db = val; in mlx5_doorbell_ring() 364 *(volatile uint32_t *)uar->db = val; in mlx5_doorbell_ring() 366 *((volatile uint32_t *)uar->db + 1) = val >> 32; in mlx5_doorbell_ring()
|
| H A D | mlx5_common.c | 1378 uar->bf_db.db = mlx5_os_get_devx_uar_reg_addr(uar_obj); in mlx5_devx_uar_prepare() 1379 uar->cq_db.db = RTE_PTR_ADD(base_addr, MLX5_CQ_DOORBELL); in mlx5_devx_uar_prepare()
|
| /dpdk/drivers/net/hinic/base/ |
| H A D | hinic_pmd_cmdq.c | 243 static void cmdq_fill_db(struct hinic_cmdq_db *db, in cmdq_fill_db() argument 246 db->db_info = CMDQ_DB_INFO_SET(UPPER_8_BITS(prod_idx), HI_PROD_IDX) | in cmdq_fill_db() 255 struct hinic_cmdq_db db; in cmdq_set_db() local 257 cmdq_fill_db(&db, cmdq_type, prod_idx); in cmdq_set_db() 260 db.db_info = cpu_to_be32(db.db_info); in cmdq_set_db() 264 writel(db.db_info, CMDQ_DB_ADDR(cmdq->db_base, prod_idx)); in cmdq_set_db()
|
| H A D | hinic_pmd_cmd.h | 404 #define DB_IDX(db, db_base) \ argument 405 ((u32)(((unsigned long)(db) - (unsigned long)(db_base)) / \
|
| H A D | hinic_pmd_cmdq.h | 123 struct hinic_cmdq_db db; member
|
| /dpdk/drivers/net/ionic/ |
| H A D | ionic_dev.h | 146 struct ionic_doorbell __iomem *db; member 246 rte_write64(rte_cpu_to_le_64(val), q->db); in ionic_q_flush()
|
| H A D | ionic_lif.c | 1353 q->db = ionic_db_map(lif, q); in ionic_lif_adminq_init() 1357 IONIC_PRINT(DEBUG, "adminq->db %p", q->db); in ionic_lif_adminq_init() 1399 q->db = NULL; in ionic_lif_notifyq_init() 1403 IONIC_PRINT(DEBUG, "notifyq->db %p", q->db); in ionic_lif_notifyq_init() 1508 q->db = ionic_db_map(lif, q); in ionic_lif_txq_init() 1512 IONIC_PRINT(DEBUG, "txq->db %p", q->db); in ionic_lif_txq_init() 1556 q->db = ionic_db_map(lif, q); in ionic_lif_rxq_init() 1562 IONIC_PRINT(DEBUG, "rxq->db %p", q->db); in ionic_lif_rxq_init()
|
| /dpdk/drivers/net/mlx4/ |
| H A D | mlx4_txq.c | 55 ppriv->uar_table[txq->stats.idx] = txq->msq.db; in txq_uar_init() 88 uar_va = (uintptr_t)txq->msq.db; in txq_uar_init_secondary() 256 sq->db = dqp->sdb; in mlx4_txq_fill_dv_obj_info()
|
| H A D | mlx4_prm.h | 80 uint32_t *db; /**< Pointer to the doorbell. */ member
|
| /dpdk/doc/guides/sample_app_ug/ |
| H A D | l3_forward_access_ctrl.rst | 187 please refer to rule_ipv4.db and rule_ipv6.db files (inside dpdk/examples/l3fwd-acl/). 272 …4 -- -p 0x3 --config="(0,0,1),(1,0,2)" --rule_ipv4="rule_ipv4.db" --rule_ipv6="rule_ipv6.db" --alg… 294 * The --rule_ipv4 option specifies the reading of IPv4 rules sets from the rule_ipv4.db file. 296 * The --rule_ipv6 option specifies the reading of IPv6 rules sets from the rule_ipv6.db file.
|
| /dpdk/drivers/net/mlx5/ |
| H A D | mlx5_txq.c | 537 uar_va = (uintptr_t)primary_ppriv->uar_table[txq->idx].db; in txq_uar_init_secondary() 548 ppriv->uar_table[txq->idx].db = addr; in txq_uar_init_secondary() 575 addr = ppriv->uar_table[txq_ctrl->txq.idx].db; in txq_uar_uninit_secondary() 600 if (!ppriv->uar_table[i].db) in mlx5_tx_uar_uninit_secondary() 602 addr = ppriv->uar_table[i].db; in mlx5_tx_uar_uninit_secondary()
|
| /dpdk/drivers/net/mlx5/linux/ |
| H A D | mlx5_verbs.c | 371 rxq_data->uar_data.db = RTE_PTR_ADD(cq_info.cq_uar, MLX5_CQ_DOORBELL); in mlx5_rxq_ibv_obj_new() 931 ppriv->uar_table[txq->idx].db = bf_reg; in mlx5_txq_ibv_uar_init()
|