Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 369) sorted by relevance

12345678910>>...15

/f-stack/app/micro_thread/
H A Dheap.h173 for (int pos = _count; pos > 0; pos = pos/2) in HeapUp() local
180 if (_list[pos]->HeapValueCmp(_list[pos/2]) < 0) in HeapUp()
183 _list[pos/2] = _list[pos]; in HeapUp()
186 _list[pos]->SetIndex(pos); in HeapUp()
187 _list[pos/2]->SetIndex(pos/2); in HeapUp()
200 for (int pos = index; pos <= _count; pos = min_son) in HeapDown() local
212 if (_list[pos*2+1]->HeapValueCmp(_list[pos*2]) < 0) in HeapDown()
228 _list[pos]->SetIndex(pos); in HeapDown()
288 if ((pos > _count) ||(pos <= 0)) in HeapDelete()
296 _list[pos]->SetIndex(pos); in HeapDelete()
[all …]
/f-stack/dpdk/drivers/net/mlx5/
H A Dmlx5_rxtx_vec_sse.h44 unsigned int pos; in rxq_copy_mbuf_v() local
47 for (pos = 0; pos < p; pos += 2) { in rxq_copy_mbuf_v()
54 pkts[pos] = elts[pos]; in rxq_copy_mbuf_v()
78 unsigned int pos; in rxq_cq_decompress_v() local
127 for (pos = 0; pos < mcqe_n; ) { in rxq_cq_decompress_v()
313 elts[pos]->ol_flags = in rxq_cq_decompress_v()
347 if (!(pos & 0x7) && pos < mcqe_n) { in rxq_cq_decompress_v()
348 if (pos + 8 < mcqe_n) in rxq_cq_decompress_v()
526 unsigned int pos; in rxq_cq_process_v() local
586 for (pos = 0; in rxq_cq_process_v()
[all …]
H A Dmlx5_rxtx_vec_neon.h42 unsigned int pos; in rxq_copy_mbuf_v() local
45 for (pos = 0; pos < p; pos += 2) { in rxq_copy_mbuf_v()
52 pkts[pos] = elts[pos]; in rxq_copy_mbuf_v()
76 unsigned int pos; in rxq_cq_decompress_v() local
134 for (pos = 0; pos < mcqe_n; ) { in rxq_cq_decompress_v()
271 mcq[pos % 8].hdr_type; in rxq_cq_decompress_v()
357 if (!(pos & 0x7) && pos < mcqe_n) { in rxq_cq_decompress_v()
358 if (pos + 8 < mcqe_n) in rxq_cq_decompress_v()
527 unsigned int pos; in rxq_cq_process_v() local
614 for (pos = 0; in rxq_cq_process_v()
[all …]
H A Dmlx5_rxtx_vec_altivec.h46 unsigned int pos; in rxq_copy_mbuf_v() local
49 for (pos = 0; pos < p; pos += 2) { in rxq_copy_mbuf_v()
57 pkts[pos] = elts[pos]; in rxq_copy_mbuf_v()
113 unsigned int pos; in rxq_cq_decompress_v() local
135 for (pos = 0; pos < mcqe_n; ) { in rxq_cq_decompress_v()
456 elts[pos]->ol_flags = in rxq_cq_decompress_v()
491 if (!(pos & 0x7) && pos < mcqe_n) { in rxq_cq_decompress_v()
786 unsigned int pos; in rxq_cq_process_v() local
861 for (pos = 0; in rxq_cq_process_v()
862 pos < pkts_n; in rxq_cq_process_v()
[all …]
/f-stack/dpdk/app/test/
H A Dtest_hash.c522 RETURN_IF_ERROR(pos < 0, "failed to add key (pos=%d)", pos); in test_add_delete_free_lf()
529 delPos = pos; in test_add_delete_free_lf()
565 delPos = pos; in test_add_delete_free_lf()
704 int pos[5]; in test_five_keys() local
801 int pos[5]; in test_full_bucket() local
905 int pos[64]; in test_extendable_bucket() local
1972 pos[i]); in test_hash_rcu_qsbr_dq_mode()
1987 pos[0]); in test_hash_rcu_qsbr_dq_mode()
1994 pos[0]); in test_hash_rcu_qsbr_dq_mode()
2026 pos[0]); in test_hash_rcu_qsbr_dq_mode()
[all …]
H A Dtest_bitmap.c19 uint32_t pos = 0; in test_bitmap_scan_operations() local
26 rte_bitmap_set_slab(bmp, pos, slab1_magic); in test_bitmap_scan_operations()
29 if (!rte_bitmap_scan(bmp, &pos, &out_slab)) { in test_bitmap_scan_operations()
39 if (!rte_bitmap_scan(bmp, &pos, &out_slab)) { in test_bitmap_scan_operations()
50 if (!rte_bitmap_scan(bmp, &pos, &out_slab)) { in test_bitmap_scan_operations()
79 uint32_t pos = 0; in test_bitmap_slab_set_get() local
84 rte_bitmap_set_slab(bmp, pos, slab_magic); in test_bitmap_slab_set_get()
191 uint32_t pos; in test_bitmap_all_set() local
211 pos = slab = 0; in test_bitmap_all_set()
217 rte_bitmap_clear(bmp, pos); in test_bitmap_all_set()
[all …]
/f-stack/freebsd/contrib/octeon-sdk/
H A Dcvmx-asm.h262 #define CVMX_EXTSP(result,input,pos,len) CVMX_EXTS(result,input,pos,(len)-1) argument
265 #define CVMX_DEXTM1(result,input,pos,lenm1) CVMX_DEXT(result,input,pos,(lenm1)+1) argument
268 #define CVMX_EXTM1(result,input,pos,lenm1) CVMX_EXT(result,input,pos,(lenm1)+1) argument
275 #define CVMX_CINSP(result,input,pos,len) CVMX_CINS(result,input,pos,(len)-1) argument
278 #define CVMX_DINSM1(result,input,pos,lenm1) CVMX_DINS(result,input,pos,(lenm1)+1) argument
280 #define CVMX_DINSCM1(result,pos,lenm1) CVMX_DINSC(result,pos,(lenm1)+1) argument
283 #define CVMX_INSM1(result,input,pos,lenm1) CVMX_INS(result,input,pos,(lenm1)+1) argument
285 #define CVMX_INSCM1(result,pos,lenm1) CVMX_INSC(result,pos,(lenm1)+1) argument
467 #define CVMX_MT_KAS_KEY(val,pos) CVMX_MT_3DES_KEY(val,pos) argument
473 #define CVMX_MF_KAS_KEY(val,pos) CVMX_MF_3DES_KEY(val,pos) argument
[all …]
/f-stack/app/redis-5.0.5/deps/jemalloc/test/unit/
H A Dstats_print.c26 size_t pos; member
36 size_t pos; member
44 size_t pos, size_t len, size_t line, size_t col) { in token_init() argument
47 token->pos = pos; in token_init()
71 &token->parser->buf[token->pos], token->len); in token_error()
80 parser->pos = 0; in parser_init()
139 assert_zu_le(parser->pos, parser->len, in parser_tokenize()
143 char c = parser->buf[parser->pos]; in parser_tokenize()
147 token_pos = parser->pos; in parser_tokenize()
205 TOKEN_TYPE_EOI, token_pos, parser->pos - in parser_tokenize()
[all …]
/f-stack/dpdk/lib/librte_ring/
H A Drte_ring_hts_c11_mem.h33 __atomic_store_n(&ht->ht.pos.tail, tail, __ATOMIC_RELEASE); in __rte_ring_hts_update_tail()
45 while (p->pos.head != p->pos.tail) { in __rte_ring_hts_head_wait()
83 *free_entries = capacity + r->cons.tail - op.pos.head; in __rte_ring_hts_move_prod_head()
93 np.pos.tail = op.pos.tail; in __rte_ring_hts_move_prod_head()
94 np.pos.head = op.pos.head + n; in __rte_ring_hts_move_prod_head()
105 *old_head = op.pos.head; in __rte_ring_hts_move_prod_head()
139 *entries = r->prod.tail - op.pos.head; in __rte_ring_hts_move_cons_head()
148 np.pos.tail = op.pos.tail; in __rte_ring_hts_move_cons_head()
149 np.pos.head = op.pos.head + n; in __rte_ring_hts_move_cons_head()
160 *old_head = op.pos.head; in __rte_ring_hts_move_cons_head()
H A Drte_ring_peek_c11_mem.h56 uint32_t pos; in __rte_ring_st_set_head_tail() local
60 pos = tail + num; in __rte_ring_st_set_head_tail()
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()
82 n = p.pos.head - p.pos.tail; in __rte_ring_hts_get_tail()
87 *tail = p.pos.tail; in __rte_ring_hts_get_tail()
104 p.pos.head = tail + num; in __rte_ring_hts_set_head_tail()
105 p.pos.tail = p.pos.head; in __rte_ring_hts_set_head_tail()
/f-stack/app/redis-5.0.5/deps/linenoise/
H A Dlinenoise.c370 ls->pos = saved.pos; in completeLine()
508 size_t pos = l->pos; in refreshSingleLine() local
514 pos--; in refreshSingleLine()
653 memmove(l->buf+l->pos+1,l->buf+l->pos,l->len-l->pos); in linenoiseEditInsert()
726 memmove(l->buf+l->pos,l->buf+l->pos+1,l->len-l->pos-1); in linenoiseEditDelete()
736 memmove(l->buf+l->pos-1,l->buf+l->pos,l->len-l->pos); in linenoiseEditBackspace()
750 while (l->pos > 0 && l->buf[l->pos-1] == ' ') in linenoiseEditDeletePrevWord()
752 while (l->pos > 0 && l->buf[l->pos-1] != ' ') in linenoiseEditDeletePrevWord()
846 if (l.pos > 0 && l.pos < l.len) { in linenoiseEdit()
848 buf[l.pos-1] = buf[l.pos]; in linenoiseEdit()
[all …]
/f-stack/dpdk/lib/librte_table/
H A Drte_lru.h48 uint64_t x, pos, x0, x1, x2, mask; \
52 pos = 4; \
54 pos = 3; \
57 pos = 2; \
60 pos = 1; \
63 pos = 0; \
66 pos <<= 4; \
67 mask = (~0LLU) << pos; \
70 x2 = (x << (48 - pos)) & (0xFFFFLLU << 48); \
73 if (pos != 64) \
H A Drte_table_hash_cuckoo.c160 int pos = 0; in rte_table_hash_cuckoo_entry_add() local
172 if (pos >= 0) { in rte_table_hash_cuckoo_entry_add()
183 if (pos == -ENOENT) { in rte_table_hash_cuckoo_entry_add()
188 if (pos < 0) in rte_table_hash_cuckoo_entry_add()
189 return pos; in rte_table_hash_cuckoo_entry_add()
199 return pos; in rte_table_hash_cuckoo_entry_add()
207 int pos = 0; in rte_table_hash_cuckoo_entry_delete() local
216 if (pos >= 0) { in rte_table_hash_cuckoo_entry_delete()
228 return pos; in rte_table_hash_cuckoo_entry_delete()
280 int pos; in rte_table_hash_cuckoo_lookup() local
[all …]
/f-stack/freebsd/sys/
H A Dimgact_elf.h40 #define AUXARGS_ENTRY(pos, id, val) \ argument
41 {(pos)->a_type = (id); (pos)->a_un.a_val = (val); (pos)++;}
43 #define AUXARGS_ENTRY_PTR(pos, id, ptr) \ argument
44 {(pos)->a_type = (id); (pos)->a_un.a_val = (uintptr_t)(ptr); (pos)++;}
46 #define AUXARGS_ENTRY_PTR(pos, id, ptr) \ argument
47 {(pos)->a_type = (id); (pos)->a_un.a_ptr = (ptr); (pos)++;}
/f-stack/app/redis-5.0.5/src/
H A Dintset.c121 if (pos) *pos = 0; in intsetSearch()
127 if (pos) *pos = intrev32ifbe(is->length); in intsetSearch()
130 if (pos) *pos = 0; in intsetSearch()
148 if (pos) *pos = mid; in intsetSearch()
151 if (pos) *pos = min; in intsetSearch()
206 uint32_t pos; in intsetAdd() local
225 if (pos < intrev32ifbe(is->length)) intsetMoveTail(is,pos,pos+1); in intsetAdd()
228 _intsetSet(is,pos,value); in intsetAdd()
236 uint32_t pos; in intsetRemove() local
246 if (pos < (len-1)) intsetMoveTail(is,pos+1,pos); in intsetRemove()
[all …]
/f-stack/dpdk/lib/librte_eal/include/
H A Drte_bitmap.h222 uint32_t pos) in __rte_bitmap_clear_slab_overhead_bits() argument
340 index2 = pos >> RTE_BITMAP_SLAB_BIT_SIZE_LOG2; in rte_bitmap_prefetch0()
361 index2 = pos >> RTE_BITMAP_SLAB_BIT_SIZE_LOG2; in rte_bitmap_get()
362 offset2 = pos & RTE_BITMAP_SLAB_BIT_MASK; in rte_bitmap_get()
382 index2 = pos >> RTE_BITMAP_SLAB_BIT_SIZE_LOG2; in rte_bitmap_set()
383 offset2 = pos & RTE_BITMAP_SLAB_BIT_MASK; in rte_bitmap_set()
410 index2 = pos >> RTE_BITMAP_SLAB_BIT_SIZE_LOG2; in rte_bitmap_set_slab()
450 index2 = pos >> RTE_BITMAP_SLAB_BIT_SIZE_LOG2; in rte_bitmap_clear()
451 offset2 = pos & RTE_BITMAP_SLAB_BIT_MASK; in rte_bitmap_clear()
556 if (__rte_bitmap_scan_read(bmp, pos, slab)) { in rte_bitmap_scan()
[all …]
/f-stack/freebsd/contrib/zstd/programs/
H A Ddatagen.c101 size_t pos = prefixSize; in RDG_genBlock() local
109 if (buffSize < pos + size0) { in RDG_genBlock()
110 memset(buffPtr+pos, 0, buffSize-pos); in RDG_genBlock()
113 memset(buffPtr+pos, 0, size0); in RDG_genBlock()
114 pos += size0; in RDG_genBlock()
115 buffPtr[pos-1] = RDG_genChar(seedPtr, ldt); in RDG_genBlock()
120 if (pos==0) buffPtr[0] = RDG_genChar(seedPtr, ldt), pos=1; in RDG_genBlock()
123 while (pos < buffSize) { in RDG_genBlock()
132 size_t match = pos - offset; in RDG_genBlock()
133 … while (pos < d) { buffPtr[pos++] = buffPtr[match++]; /* correctly manages overlaps */ } in RDG_genBlock()
[all …]
/f-stack/dpdk/drivers/common/sfc_efx/base/
H A Defx_vpd.c424 keyword = EFX_VPD_KEYWORD(tag[pos], tag[pos + 1]); in efx_vpd_next_keyword()
486 unsigned int pos; in efx_vpd_hunk_verify() local
509 for (pos = 0; pos != taglen; pos += 3 + keylen) { in efx_vpd_hunk_verify()
585 unsigned int pos; in efx_vpd_hunk_reinit() local
606 for (pos = 0; pos < offset; pos++) in efx_vpd_hunk_reinit()
639 unsigned int pos; in efx_vpd_hunk_next() local
669 for (pos = 0; pos != taglen; pos += 3 + keylen) { in efx_vpd_hunk_next()
740 for (pos = 0; pos != taglen; pos += 3 + keylen) { in efx_vpd_hunk_get()
842 pos = 0; in efx_vpd_hunk_set()
851 for (pos = 0; pos != taglen; pos += 3 + keylen) { in efx_vpd_hunk_set()
[all …]
/f-stack/freebsd/contrib/zstd/lib/dictBuilder/
H A Dzdict.c242 if ( (MEM_read16(b+pos+0) == MEM_read16(b+pos+2)) in ZDICT_analyzePos()
243 ||(MEM_read16(b+pos+1) == MEM_read16(b+pos+3)) in ZDICT_analyzePos()
369 solution.pos = (U32)pos; in ZDICT_analyzePos()
423 table[u].pos = elt.pos; in ZDICT_tryMerge()
438 …if ((table[u].pos + table[u].length >= elt.pos) && (table[u].pos < elt.pos)) { /* overlap, existi… in ZDICT_tryMerge()
457 table[u].pos = elt.pos; in ZDICT_tryMerge()
561 for (pos=0; pos < bufferSize; pos++) in ZDICT_trainBuffer_legacy()
562 reverseSuffix[suffix[pos]] = (U32)pos; in ZDICT_trainBuffer_legacy()
566 for (pos=1; pos<nbFiles; pos++) in ZDICT_trainBuffer_legacy()
567 filePos[pos] = (U32)(filePos[pos-1] + fileSizes[pos-1]); in ZDICT_trainBuffer_legacy()
[all …]
/f-stack/app/nginx-1.16.1/src/http/v2/
H A Dngx_http_v2.c698 pos = ngx_proxy_protocol_read(h2c->connection, pos, end); in ngx_http_v2_state_proxy_protocol()
992 pos += size; in ngx_http_v2_state_read_data()
1221 ch = *pos; in ngx_http_v2_state_header_block()
1416 pos += size; in ngx_http_v2_state_field_huff()
1461 pos += size; in ngx_http_v2_state_field_raw()
1504 pos += size; in ngx_http_v2_state_field_skip()
1775 p = pos; in ngx_http_v2_handle_continuation()
1789 return pos; in ngx_http_v2_handle_continuation()
2404 return pos; in ngx_http_v2_state_complete()
3978 buf->pos = buf->start = pos; in ngx_http_v2_process_request_body()
[all …]
H A Dngx_http_v2_filter_module.c444 start = pos; in ngx_http_v2_header_filter()
463 pos = ngx_sprintf(pos, "%03ui", r->headers_out.status); in ngx_http_v2_header_filter()
492 pos = ngx_cpymem(pos, nginx_ver, nginx_ver_len); in ngx_http_v2_header_filter()
505 pos = ngx_cpymem(pos, nginx, sizeof(nginx)); in ngx_http_v2_header_filter()
564 p = pos; in ngx_http_v2_header_filter()
585 pos = ngx_http_v2_write_value(pos, pos, len, tmp); in ngx_http_v2_header_filter()
639 pos = ngx_http_v2_write_name(pos, header[i].key.data, in ngx_http_v2_header_filter()
1141 b->pos = pos; in ngx_http_v2_create_headers_frame()
1260 b->pos = pos; in ngx_http_v2_create_push_frame()
1476 ? (cl->buf->pos - in->buf->pos) in ngx_http_v2_send_chain()
[all …]
/f-stack/freebsd/contrib/zstd/lib/legacy/
H A Dzstd_legacy.h356 size_t readSize = input->size - input->pos; in ZSTD_decompressLegacyStream()
360 output->pos += decodedSize; in ZSTD_decompressLegacyStream()
361 input->pos += readSize; in ZSTD_decompressLegacyStream()
370 size_t readSize = input->size - input->pos; in ZSTD_decompressLegacyStream()
374 output->pos += decodedSize; in ZSTD_decompressLegacyStream()
375 input->pos += readSize; in ZSTD_decompressLegacyStream()
384 size_t readSize = input->size - input->pos; in ZSTD_decompressLegacyStream()
388 output->pos += decodedSize; in ZSTD_decompressLegacyStream()
389 input->pos += readSize; in ZSTD_decompressLegacyStream()
402 output->pos += decodedSize; in ZSTD_decompressLegacyStream()
[all …]
/f-stack/app/redis-5.0.5/deps/lua/src/
H A Dlua_struct.c296 size_t pos = luaL_optinteger(L, 3, 1); in b_unpack() local
305 pos += gettoalign(pos, &h, opt, size); in b_unpack()
323 memcpy(&f, data+pos, size); in b_unpack()
330 memcpy(&d, data+pos, size); in b_unpack()
348 const char *e = (const char *)memchr(data+pos, '\0', ld - pos); in b_unpack()
351 size = (e - (data+pos)) + 1; in b_unpack()
357 pos += size; in b_unpack()
367 size_t pos = 0; in b_size() local
372 pos += gettoalign(pos, &h, opt, size); in b_size()
379 pos += size; in b_size()
[all …]
/f-stack/dpdk/drivers/net/hns3/
H A Dhns3_rxtx_vec_neon.h135 uint32_t pos; in hns3_recv_burst_vec() local
155 for (pos = 0; pos < nb_pkts; pos += HNS3_DEFAULT_DESCS_PER_LOOP, in hns3_recv_burst_vec()
172 mbp1 = vld1q_u64((uint64_t *)&sw_ring[pos]); in hns3_recv_burst_vec()
182 mbp2 = vld1q_u64((uint64_t *)&sw_ring[pos + 2]); in hns3_recv_burst_vec()
195 vst1q_u64((uint64_t *)&rx_pkts[pos], mbp1); in hns3_recv_burst_vec()
202 vst1q_u64((uint64_t *)&rx_pkts[pos + 2], mbp2); in hns3_recv_burst_vec()
218 *(uint64_t *)&sw_ring[pos + 0].mbuf->rearm_data = in hns3_recv_burst_vec()
269 rte_prefetch0(sw_ring[pos + in hns3_recv_burst_vec()
271 rte_prefetch0(sw_ring[pos + in hns3_recv_burst_vec()
273 rte_prefetch0(sw_ring[pos + in hns3_recv_burst_vec()
[all …]
/f-stack/freebsd/contrib/libsodium/test/default/
H A Dcore3.c27 size_t pos = 0; in main() local
30 pos = 0; in main()
49 crypto_core_salsa20(output + pos, in, secondkey, c); in main()
50 pos += 64; in main()
64 pos = 0; in main()
67 crypto_core_salsa2012(output + pos, in, secondkey, c); in main()
68 pos += 64; in main()
81 pos = 0; in main()
84 crypto_core_salsa208(output + pos, in, secondkey, c); in main()
85 pos += 64; in main()

12345678910>>...15