| /f-stack/dpdk/lib/librte_gro/ |
| H A D | gro_udp4.c | 17 struct gro_udp4_tbl *tbl; in gro_udp4_tbl_create() local 31 if (tbl == NULL) in gro_udp4_tbl_create() 39 if (tbl->items == NULL) { in gro_udp4_tbl_create() 40 rte_free(tbl); in gro_udp4_tbl_create() 51 rte_free(tbl->items); in gro_udp4_tbl_create() 52 rte_free(tbl); in gro_udp4_tbl_create() 60 return tbl; in gro_udp4_tbl_create() 120 tbl->item_num++; in insert_new_item() 140 tbl->item_num--; in delete_item() 168 tbl->flow_num++; in insert_new_flow() [all …]
|
| H A D | gro_tcp4.c | 17 struct gro_tcp4_tbl *tbl; in gro_tcp4_tbl_create() local 31 if (tbl == NULL) in gro_tcp4_tbl_create() 39 if (tbl->items == NULL) { in gro_tcp4_tbl_create() 40 rte_free(tbl); in gro_tcp4_tbl_create() 51 rte_free(tbl->items); in gro_tcp4_tbl_create() 52 rte_free(tbl); in gro_tcp4_tbl_create() 60 return tbl; in gro_tcp4_tbl_create() 122 tbl->item_num++; in insert_new_item() 142 tbl->item_num--; in delete_item() 172 tbl->flow_num++; in insert_new_flow() [all …]
|
| H A D | gro_vxlan_udp4.c | 32 if (tbl == NULL) in gro_vxlan_udp4_tbl_create() 40 if (tbl->items == NULL) { in gro_vxlan_udp4_tbl_create() 41 rte_free(tbl); in gro_vxlan_udp4_tbl_create() 51 if (tbl->flows == NULL) { in gro_vxlan_udp4_tbl_create() 52 rte_free(tbl->items); in gro_vxlan_udp4_tbl_create() 53 rte_free(tbl); in gro_vxlan_udp4_tbl_create() 61 return tbl; in gro_vxlan_udp4_tbl_create() 119 tbl->item_num++; in insert_new_item() 140 tbl->item_num--; in delete_item() 178 tbl->flow_num++; in insert_new_flow() [all …]
|
| H A D | gro_vxlan_tcp4.c | 32 if (tbl == NULL) in gro_vxlan_tcp4_tbl_create() 40 if (tbl->items == NULL) { in gro_vxlan_tcp4_tbl_create() 41 rte_free(tbl); in gro_vxlan_tcp4_tbl_create() 51 if (tbl->flows == NULL) { in gro_vxlan_tcp4_tbl_create() 52 rte_free(tbl->items); in gro_vxlan_tcp4_tbl_create() 53 rte_free(tbl); in gro_vxlan_tcp4_tbl_create() 61 return tbl; in gro_vxlan_tcp4_tbl_create() 125 tbl->item_num++; in insert_new_item() 146 tbl->item_num--; in delete_item() 187 tbl->flow_num++; in insert_new_flow() [all …]
|
| /f-stack/dpdk/lib/librte_ip_frag/ |
| H A D | rte_ip_frag_common.c | 60 sz = sizeof (*tbl) + nb_entries * sizeof (tbl->pkt[0]); in rte_ip_frag_table_create() 77 tbl->entry_mask = (tbl->nb_entries - 1) & ~(tbl->bucket_entries - 1); in rte_ip_frag_table_create() 79 TAILQ_INIT(&(tbl->lru)); in rte_ip_frag_table_create() 80 return tbl; in rte_ip_frag_table_create() 93 rte_free(tbl); in rte_ip_frag_table_destroy() 114 tbl->max_entries, in rte_ip_frag_table_statistics_dump() 115 tbl->use_entries, in rte_ip_frag_table_statistics_dump() 116 tbl->stat.find_num, in rte_ip_frag_table_statistics_dump() 117 tbl->stat.add_num, in rte_ip_frag_table_statistics_dump() 118 tbl->stat.del_num, in rte_ip_frag_table_statistics_dump() [all …]
|
| H A D | ip_frag_internal.c | 14 #define IP_FRAG_TBL_POS(tbl, sig) \ argument 15 ((tbl)->pkt + ((sig) & (tbl)->entry_mask)) 24 tbl->use_entries++; in ip_frag_tbl_add() 251 tbl->max_entries <= tbl->use_entries) { in ip_frag_find() 279 tbl->last = pkt; in ip_frag_find() 299 if (tbl->last != NULL && ip_frag_key_cmp(key, &tbl->last->key) == 0) in ip_frag_lookup() 300 return tbl->last; in ip_frag_lookup() 318 tbl, tbl->max_entries, tbl->use_entries, in ip_frag_lookup() 327 tbl, tbl->max_entries, tbl->use_entries, in ip_frag_lookup() 344 tbl, tbl->max_entries, tbl->use_entries, in ip_frag_lookup() [all …]
|
| H A D | rte_ipv4_reassembly.c | 98 rte_ipv4_frag_reassemble_packet(struct rte_ip_frag_tbl *tbl, in rte_ipv4_frag_reassemble_packet() argument 128 tbl, tbl->max_cycles, tbl->entry_mask, tbl->max_entries, in rte_ipv4_frag_reassemble_packet() 129 tbl->use_entries); in rte_ipv4_frag_reassemble_packet() 138 if ((fp = ip_frag_find(tbl, dr, &key, tms)) == NULL) { in rte_ipv4_frag_reassemble_packet() 148 tbl, tbl->max_entries, tbl->use_entries, in rte_ipv4_frag_reassemble_packet() 155 ip_frag_inuse(tbl, fp); in rte_ipv4_frag_reassemble_packet() 163 tbl, tbl->max_entries, tbl->use_entries, in rte_ipv4_frag_reassemble_packet()
|
| H A D | rte_ipv6_reassembly.c | 137 rte_ipv6_frag_reassemble_packet(struct rte_ip_frag_tbl *tbl, in rte_ipv6_frag_reassemble_packet() argument 171 tbl, tbl->max_cycles, tbl->entry_mask, tbl->max_entries, in rte_ipv6_frag_reassemble_packet() 172 tbl->use_entries); in rte_ipv6_frag_reassemble_packet() 181 fp = ip_frag_find(tbl, dr, &key, tms); in rte_ipv6_frag_reassemble_packet() 192 tbl, tbl->max_entries, tbl->use_entries, in rte_ipv6_frag_reassemble_packet() 200 ip_frag_inuse(tbl, fp); in rte_ipv6_frag_reassemble_packet() 208 tbl, tbl->max_entries, tbl->use_entries, in rte_ipv6_frag_reassemble_packet()
|
| H A D | ip_frag_common.h | 39 struct ip_frag_pkt * ip_frag_find(struct rte_ip_frag_tbl *tbl, 43 struct ip_frag_pkt * ip_frag_lookup(struct rte_ip_frag_tbl *tbl, 127 ip_frag_inuse(struct rte_ip_frag_tbl *tbl, const struct ip_frag_pkt *fp) in ip_frag_inuse() argument 130 TAILQ_REMOVE(&tbl->lru, fp, lru); in ip_frag_inuse() 131 tbl->use_entries--; in ip_frag_inuse() 155 ip_frag_tbl_del(struct rte_ip_frag_tbl *tbl, struct rte_ip_frag_death_row *dr, in ip_frag_tbl_del() argument 160 TAILQ_REMOVE(&tbl->lru, fp, lru); in ip_frag_tbl_del() 161 tbl->use_entries--; in ip_frag_tbl_del() 162 IP_FRAG_TBL_STAT_UPDATE(&tbl->stat, del_num, 1); in ip_frag_tbl_del()
|
| /f-stack/dpdk/lib/librte_lpm/ |
| H A D | rte_lpm_sse.h | 23 uint32_t tbl[4]; in rte_lpm_lookupx4() local 55 tbl[0] = *ptbl; in rte_lpm_lookupx4() 57 tbl[1] = *ptbl; in rte_lpm_lookupx4() 62 tbl[2] = *ptbl; in rte_lpm_lookupx4() 64 tbl[3] = *ptbl; in rte_lpm_lookupx4() 87 tbl[0] = *ptbl; in rte_lpm_lookupx4() 94 tbl[1] = *ptbl; in rte_lpm_lookupx4() 101 tbl[2] = *ptbl; in rte_lpm_lookupx4() 108 tbl[3] = *ptbl; in rte_lpm_lookupx4() 111 hop[0] = (tbl[0] & RTE_LPM_LOOKUP_SUCCESS) ? tbl[0] & 0x00FFFFFF : defv; in rte_lpm_lookupx4() [all …]
|
| H A D | rte_lpm_neon.h | 24 uint32_t tbl[4]; in rte_lpm_lookupx4() local 54 tbl[0] = *ptbl; in rte_lpm_lookupx4() 56 tbl[1] = *ptbl; in rte_lpm_lookupx4() 61 tbl[2] = *ptbl; in rte_lpm_lookupx4() 63 tbl[3] = *ptbl; in rte_lpm_lookupx4() 86 tbl[0] = *ptbl; in rte_lpm_lookupx4() 93 tbl[1] = *ptbl; in rte_lpm_lookupx4() 100 tbl[2] = *ptbl; in rte_lpm_lookupx4() 107 tbl[3] = *ptbl; in rte_lpm_lookupx4() 110 hop[0] = (tbl[0] & RTE_LPM_LOOKUP_SUCCESS) ? tbl[0] & 0x00FFFFFF : defv; in rte_lpm_lookupx4() [all …]
|
| H A D | rte_lpm_altivec.h | 24 uint32_t tbl[4]; in rte_lpm_lookupx4() local 55 tbl[0] = *ptbl; in rte_lpm_lookupx4() 60 tbl[1] = *ptbl; in rte_lpm_lookupx4() 65 tbl[2] = *ptbl; in rte_lpm_lookupx4() 70 tbl[3] = *ptbl; in rte_lpm_lookupx4() 93 tbl[0] = *ptbl; in rte_lpm_lookupx4() 100 tbl[1] = *ptbl; in rte_lpm_lookupx4() 107 tbl[2] = *ptbl; in rte_lpm_lookupx4() 114 tbl[3] = *ptbl; in rte_lpm_lookupx4() 117 hop[0] = (tbl[0] & RTE_LPM_LOOKUP_SUCCESS) ? tbl[0] & 0x00FFFFFF : defv; in rte_lpm_lookupx4() [all …]
|
| H A D | rte_lpm6.c | 624 if (tbl[entry_ind].valid == 0 || tbl[entry_ind].ext_entry == 0) { in simulate_add_step() 681 if (!tbl[i].valid || (tbl[i].ext_entry == 0 && in add_step() 692 tbl[i] = new_tbl_entry; in add_step() 840 tbl = tbl_next; in simulate_add() 888 tbl = lpm->tbl24; in rte_lpm6_add() 899 tbl = tbl_next; in rte_lpm6_add() 968 tbl = tbl_next; in rte_lpm6_lookup() 1007 tbl = tbl_next; in rte_lpm6_lookup_bulk_func() 1219 tbl += ip[byte]; in rule_find_range() 1231 *from = &tbl[ind]; in rule_find_range() [all …]
|
| /f-stack/freebsd/opencrypto/ |
| H A D | gfmult.c | 64 struct gf128 tbl[16]; in gf128_genmultable() local 67 tbl[0] = MAKE_GF128(0, 0); in gf128_genmultable() 68 tbl[1] = h; in gf128_genmultable() 71 tbl[i] = gf128_mulalpha(tbl[i / 2]); in gf128_genmultable() 72 tbl[i + 1] = gf128_add(tbl[i], h); in gf128_genmultable() 77 t->b[nib_rev[i]] = tbl[i].v[0]; in gf128_genmultable() 79 t->d[nib_rev[i]] = tbl[i].v[1]; in gf128_genmultable() 114 r.v[0] = ((uint64_t)tbl->a[bits] << 32) | tbl->b[bits]; in readrow() 115 r.v[1] = ((uint64_t)tbl->c[bits] << 32) | tbl->d[bits]; in readrow() 149 row = readrow(tbl, bits); in gfmultword() [all …]
|
| /f-stack/dpdk/drivers/net/bnxt/tf_core/ |
| H A D | tf_em_host.c | 83 tp = &tbl->pg_tbl[i]; in tf_em_free_page_table() 93 tbl->l0_addr = NULL; in tf_em_free_page_table() 94 tbl->l0_dma_addr = 0; in tf_em_free_page_table() 95 tbl->num_lvl = 0; in tf_em_free_page_table() 183 tp = &tbl->pg_tbl[i]; in tf_em_alloc_page_table() 186 tbl->page_cnt[i], in tf_em_alloc_page_table() 278 tbl->l0_addr = tbl->pg_tbl[TF_PT_LVL_0].pg_va_tbl[0]; in tf_em_setup_page_table() 279 tbl->l0_dma_addr = tbl->pg_tbl[TF_PT_LVL_0].pg_pa_tbl[0]; in tf_em_setup_page_table() 306 if (tbl->num_entries != 0 && tbl->entry_size != 0) { in tf_em_ctx_unreg() 342 if (tbl->num_entries && tbl->entry_size) { in tf_em_ctx_reg() [all …]
|
| /f-stack/dpdk/drivers/net/bnxt/tf_ulp/ |
| H A D | ulp_mapper.c | 273 idx = tbl->key_start_idx; in ulp_mapper_key_fields_get() 338 idx = tbl->ident_start_idx; in ulp_mapper_ident_fields_get() 1368 tbl->direction, in ulp_mapper_tcam_tbl_result_create() 1756 tbl->resource_type, tbl->direction, idx); in ulp_mapper_tcam_tbl_process() 1831 tbl->direction, in ulp_mapper_em_tbl_process() 1972 tbl->direction, in ulp_mapper_index_tbl_process() 1996 tbl->direction, in ulp_mapper_index_tbl_process() 1997 tbl->index_operand, in ulp_mapper_index_tbl_process() 2027 if (tbl->srch_b4_alloc) { in ulp_mapper_index_tbl_process() 2942 if (!tbl) { in ulp_mapper_init() [all …]
|
| /f-stack/freebsd/libkern/ |
| H A D | strcspn.c | 48 u_long tbl[(UCHAR_MAX + 1) / LONG_BIT]; in strcspn() local 55 tbl[0] = 1; in strcspn() 56 tbl[3] = tbl[2] = tbl[1] = 0; in strcspn() 58 for (tbl[0] = idx = 1; idx < sizeof(tbl) / sizeof(tbl[0]); idx++) in strcspn() 59 tbl[idx] = 0; in strcspn() 64 tbl[idx] |= bit; in strcspn() 70 if ((tbl[idx] & bit) != 0) in strcspn()
|
| H A D | strspn.c | 48 u_long tbl[(UCHAR_MAX + 1) / LONG_BIT]; in strspn() local 55 tbl[3] = tbl[2] = tbl[1] = tbl[0] = 0; in strspn() 57 for (idx = 0; idx < sizeof(tbl) / sizeof(tbl[0]); idx++) in strspn() 58 tbl[idx] = 0; in strspn() 63 tbl[idx] |= bit; in strspn() 69 if ((tbl[idx] & bit) == 0) in strspn()
|
| /f-stack/freebsd/crypto/openssl/aarch64/ |
| H A D | vpaes-armv8.S | 256 tbl v11.16b, {v8.16b}, v1.16b 260 tbl v8.16b, {v8.16b}, v4.16b 264 tbl v12.16b, {v11.16b},v1.16b 279 tbl v13.16b, {v19.16b},v9.16b 283 tbl v11.16b, {v18.16b},v8.16b 285 tbl v12.16b, {v18.16b},v9.16b 315 tbl v1.16b, {v8.16b},v1.16b 500 tbl v8.16b, {v8.16b},v5.16b 513 tbl v8.16b, {v8.16b},v5.16b 526 tbl v8.16b, {v8.16b},v5.16b [all …]
|
| /f-stack/dpdk/drivers/net/mlx5/ |
| H A D | mlx5_utils.c | 772 if (!tbl) { in mlx5_l3t_create() 802 return tbl; in mlx5_l3t_create() 811 if (!tbl) in mlx5_l3t_destroy() 813 g_tbl = tbl->tbl; in mlx5_l3t_destroy() 838 mlx5_free(tbl->tbl); in mlx5_l3t_destroy() 839 tbl->tbl = 0; in mlx5_l3t_destroy() 857 g_tbl = tbl->tbl; in __l3t_get_entry() 922 g_tbl = tbl->tbl; in mlx5_l3t_clear_entry() 981 tbl->tbl = 0; in mlx5_l3t_clear_entry() 1003 g_tbl = tbl->tbl; in __l3t_set_entry() [all …]
|
| /f-stack/freebsd/arm64/rockchip/ |
| H A D | rk_tsadc.c | 326 return (tbl[0].raw); in tsadc_temp_to_raw() 334 return (tbl[i].raw); in tsadc_temp_to_raw() 343 raw = (int)tbl[i - 1].raw - (int)tbl[i].raw; in tsadc_temp_to_raw() 345 denom = tbl[i - 1].temp - tbl[i].temp; in tsadc_temp_to_raw() 359 descending = tbl[0].raw > tbl[1].raw; in tsadc_raw_to_temp() 363 if (raw >= tbl[0].raw) in tsadc_raw_to_temp() 364 return (tbl[0].temp); in tsadc_raw_to_temp() 372 if (raw < tbl[i].raw) in tsadc_raw_to_temp() 377 if (raw <= tbl[0].raw) in tsadc_raw_to_temp() 394 temp = (int)tbl[i - 1].temp - (int)tbl[i].temp; in tsadc_raw_to_temp() [all …]
|
| /f-stack/freebsd/x86/iommu/ |
| H A D | intel_idpgtbl.c | 128 if (lvl != tbl->leaf) { in domain_idmap_nextlvl() 134 if (lvl == tbl->leaf) { in domain_idmap_nextlvl() 136 if (f >= tbl->maxaddr) in domain_idmap_nextlvl() 143 if (f >= tbl->maxaddr) in domain_idmap_nextlvl() 169 struct idpgtbl *tbl; in domain_get_idmap_pgtbl() local 199 res = tbl->pgtbl_obj; in domain_get_idmap_pgtbl() 218 res = tbl->pgtbl_obj; in domain_get_idmap_pgtbl() 229 tbl = malloc(sizeof(*tbl), M_DMAR_IDPGTBL, M_WAITOK); in domain_get_idmap_pgtbl() 231 tbl->leaf = leaf; in domain_get_idmap_pgtbl() 232 tbl->maxaddr = maxaddr; in domain_get_idmap_pgtbl() [all …]
|
| /f-stack/dpdk/drivers/net/ice/base/ |
| H A D | ice_acl_ctrl.c | 149 struct ice_acl_tbl *tbl; in ice_acl_init_tbl() local 153 tbl = hw->acl_tbl; in ice_acl_init_tbl() 154 if (!tbl) in ice_acl_init_tbl() 161 idx = tbl->first_entry; in ice_acl_init_tbl() 163 (tcam_idx == tbl->last_tcam && idx <= tbl->last_entry)) { in ice_acl_init_tbl() 185 end = tbl->last_entry; in ice_acl_init_tbl() 367 tbl = (struct ice_acl_tbl *)ice_malloc(hw, sizeof(*tbl)); in ice_acl_create_tbl() 368 if (!tbl) { in ice_acl_create_tbl() 383 tbl->info = *params; in ice_acl_create_tbl() 386 hw->acl_tbl = tbl; in ice_acl_create_tbl() [all …]
|
| /f-stack/freebsd/contrib/dpdk_rte_lpm/ |
| H A D | rte_lpm6.c | 630 if (tbl[entry_ind].valid == 0 || tbl[entry_ind].ext_entry == 0) { in simulate_add_step() 687 if (!tbl[i].valid || (tbl[i].ext_entry == 0 && in add_step() 698 tbl[i] = new_tbl_entry; in add_step() 846 tbl = tbl_next; in simulate_add() 896 tbl = lpm->tbl24; in rte_lpm6_add() 907 tbl = tbl_next; in rte_lpm6_add() 976 tbl = tbl_next; in rte_lpm6_lookup() 1015 tbl = tbl_next; in rte_lpm6_lookup_bulk_func() 1243 tbl += ip[byte]; in rule_find_range() 1255 *from = &tbl[ind]; in rule_find_range() [all …]
|
| /f-stack/dpdk/app/test-sad/ |
| H A D | main.c | 192 &tbl[j].tuple.v6.dip); in parse_file() 195 &tbl[j].tuple.v4.dip); in parse_file() 200 &tbl[j].tuple.v6.sip); in parse_file() 203 &tbl[j].tuple.v4.sip); in parse_file() 268 tbl[i].rule_type = rule_type; in get_random_rules() 271 tbl[i].tuple.v4.spi = in get_random_rules() 276 tbl[i].tuple.v6.dip[j] = in get_random_rules() 278 tbl[i].tuple.v6.sip[j] = in get_random_rules() 291 memcpy(tbl[i].tuple.v6.dip, in get_random_rules() 294 memcpy(tbl[i].tuple.v6.sip, in get_random_rules() [all …]
|