| /dpdk/lib/hash/ |
| H A D | rte_fbk_hash.h | 96 return (ht->hash_func(key, ht->init_val) & ht->bucket_mask) << in rte_fbk_hash_get_bucket() 97 ht->bucket_shift; in rte_fbk_hash_get_bucket() 133 if (! ht->t[bucket + i].entry.is_entry) { in rte_fbk_hash_add_key_with_bucket() 135 ht->used_entries++; in rte_fbk_hash_add_key_with_bucket() 139 if (ht->t[bucket + i].entry.key == key) { in rte_fbk_hash_add_key_with_bucket() 140 ht->t[bucket + i].entry.value = value; in rte_fbk_hash_add_key_with_bucket() 203 ht->t[bucket + i].whole_entry = in rte_fbk_hash_delete_key_with_bucket() 207 ht->used_entries--; in rte_fbk_hash_delete_key_with_bucket() 293 memset(ht->t, 0, sizeof(ht->t[0]) * ht->entries); in rte_fbk_hash_clear_all() 294 ht->used_entries = 0; in rte_fbk_hash_clear_all() [all …]
|
| H A D | rte_fbk_hash.c | 79 sizeof(*ht) + (sizeof(ht->t[0]) * params->entries); in rte_fbk_hash_create() 109 ht = NULL; in rte_fbk_hash_create() 124 if (ht == NULL) { in rte_fbk_hash_create() 139 strlcpy(ht->name, params->name, sizeof(ht->name)); in rte_fbk_hash_create() 140 ht->entries = params->entries; in rte_fbk_hash_create() 142 ht->used_entries = 0; in rte_fbk_hash_create() 158 te->data = (void *) ht; in rte_fbk_hash_create() 165 return ht; in rte_fbk_hash_create() 180 if (ht == NULL) in rte_fbk_hash_free() 190 if (te->data == (void *) ht) in rte_fbk_hash_free() [all …]
|
| /dpdk/lib/ring/ |
| H A D | rte_ring_peek_elem_pvt.h | 31 __rte_ring_st_get_tail(struct rte_ring_headtail *ht, uint32_t *tail, in __rte_ring_st_get_tail() argument 36 h = ht->head; in __rte_ring_st_get_tail() 37 t = ht->tail; in __rte_ring_st_get_tail() 53 __rte_ring_st_set_head_tail(struct rte_ring_headtail *ht, uint32_t tail, in __rte_ring_st_set_head_tail() argument 61 ht->head = pos; in __rte_ring_st_set_head_tail() 62 __atomic_store_n(&ht->tail, pos, __ATOMIC_RELEASE); in __rte_ring_st_set_head_tail() 75 __rte_ring_hts_get_tail(struct rte_ring_hts_headtail *ht, uint32_t *tail, in __rte_ring_hts_get_tail() argument 81 p.raw = __atomic_load_n(&ht->ht.raw, __ATOMIC_RELAXED); in __rte_ring_hts_get_tail() 97 __rte_ring_hts_set_head_tail(struct rte_ring_hts_headtail *ht, uint32_t tail, in __rte_ring_hts_set_head_tail() argument 107 __atomic_store_n(&ht->ht.raw, p.raw, __ATOMIC_RELEASE); in __rte_ring_hts_set_head_tail()
|
| H A D | rte_ring_hts_elem_pvt.h | 25 __rte_ring_hts_update_tail(struct rte_ring_hts_headtail *ht, uint32_t old_tail, in __rte_ring_hts_update_tail() argument 33 __atomic_store_n(&ht->ht.pos.tail, tail, __ATOMIC_RELEASE); in __rte_ring_hts_update_tail() 42 __rte_ring_hts_head_wait(const struct rte_ring_hts_headtail *ht, in __rte_ring_hts_head_wait() argument 47 p->raw = __atomic_load_n(&ht->ht.raw, __ATOMIC_ACQUIRE); in __rte_ring_hts_head_wait() 64 op.raw = __atomic_load_n(&r->hts_prod.ht.raw, __ATOMIC_ACQUIRE); in __rte_ring_hts_move_prod_head() 101 } while (__atomic_compare_exchange_n(&r->hts_prod.ht.raw, in __rte_ring_hts_move_prod_head() 120 op.raw = __atomic_load_n(&r->hts_cons.ht.raw, __ATOMIC_ACQUIRE); in __rte_ring_hts_move_cons_head() 156 } while (__atomic_compare_exchange_n(&r->hts_cons.ht.raw, in __rte_ring_hts_move_cons_head()
|
| H A D | rte_ring_rts_elem_pvt.h | 25 __rte_ring_rts_update_tail(struct rte_ring_rts_headtail *ht) in __rte_ring_rts_update_tail() argument 34 ot.raw = __atomic_load_n(&ht->tail.raw, __ATOMIC_ACQUIRE); in __rte_ring_rts_update_tail() 38 h.raw = __atomic_load_n(&ht->head.raw, __ATOMIC_RELAXED); in __rte_ring_rts_update_tail() 44 } while (__atomic_compare_exchange_n(&ht->tail.raw, &ot.raw, nt.raw, in __rte_ring_rts_update_tail() 53 __rte_ring_rts_head_wait(const struct rte_ring_rts_headtail *ht, in __rte_ring_rts_head_wait() argument 58 max = ht->htd_max; in __rte_ring_rts_head_wait() 60 while (h->val.pos - ht->tail.val.pos > max) { in __rte_ring_rts_head_wait() 62 h->raw = __atomic_load_n(&ht->head.raw, __ATOMIC_ACQUIRE); in __rte_ring_rts_head_wait()
|
| H A D | rte_ring.c | 87 struct rte_ring_headtail *ht; in reset_headtail() local 91 ht = p; in reset_headtail() 95 switch (ht->sync_type) { in reset_headtail() 98 ht->head = 0; in reset_headtail() 99 ht->tail = 0; in reset_headtail() 106 ht_hts->ht.raw = 0; in reset_headtail() 189 offsetof(struct rte_ring_hts_headtail, ht.pos.tail)); in rte_ring_init()
|
| H A D | rte_ring_generic_pvt.h | 14 __rte_ring_update_tail(struct rte_ring_headtail *ht, uint32_t old_val, in __rte_ring_update_tail() argument 26 rte_wait_until_equal_32(&ht->tail, old_val, __ATOMIC_RELAXED); in __rte_ring_update_tail() 28 ht->tail = new_val; in __rte_ring_update_tail()
|
| H A D | rte_ring_c11_pvt.h | 15 __rte_ring_update_tail(struct rte_ring_headtail *ht, uint32_t old_val, in __rte_ring_update_tail() argument 25 rte_wait_until_equal_32(&ht->tail, old_val, __ATOMIC_RELAXED); in __rte_ring_update_tail() 27 __atomic_store_n(&ht->tail, new_val, __ATOMIC_RELEASE); in __rte_ring_update_tail()
|
| H A D | rte_ring_core.h | 106 volatile union __rte_ring_hts_pos ht; member
|
| /dpdk/drivers/net/sfc/ |
| H A D | sfc_rx.c | 1409 efx_rx_hash_type_t ht; in sfc_rx_hash_init() local 1411 ht = sfc_rx_hash_types_mask_supp(sfc_rss_hf_map[i].efx, in sfc_rx_hash_init() 1413 if (ht != 0) { in sfc_rx_hash_init() 1415 entry->efx = ht; in sfc_rx_hash_init() 1416 efx_hash_types |= ht; in sfc_rx_hash_init()
|