Searched refs:sz (Results 1 - 25 of 25) sorted by relevance

/tldk/lib/libtle_l4p/
H A Dtcp_ofo.c33 uint32_t dsz, osz, sz; local
38 sz = osz + dsz;
39 return sz;
43 tcp_ofo_calc_elems(uint32_t nbufs, uint32_t *nobj, uint32_t *ndb, uint32_t *sz) argument
59 *sz = calc_ofo_size(no, nd);
H A Dtcp_txq.h26 uint32_t cnt, head, mask, sz, tail; local
30 sz = _rte_ring_get_size(r);
35 cnt = (tail >= head) ? tail - head : sz - head;
44 uint32_t cnt, head, mask, sz, tail; local
48 sz = _rte_ring_get_size(r);
53 cnt = (head >= tail) ? head - tail : sz - tail;
H A Devent.c27 size_t sz; local
35 sz = sizeof(*evq) + sizeof(evq->events[0]) * prm->max_events;
36 evq = rte_zmalloc_socket(NULL, sz, RTE_CACHE_LINE_SIZE,
41 sz, prm->max_events, prm->socket_id);
H A Dudp_stream.c63 size_t bsz, rsz, sz; local
72 sz = rte_ring_get_memsize(n);
74 s->rx.q = rte_zmalloc_socket(NULL, sz, RTE_CACHE_LINE_SIZE,
79 __func__, s, sz, ctx->prm.socket_id, rte_errno);
83 snprintf(name, sizeof(name), "%p@%zu", s, sz);
100 sz = rsz + bsz * k;
102 s->tx.drb.r = rte_zmalloc_socket(NULL, sz, RTE_CACHE_LINE_SIZE,
107 __func__, s, sz, ctx->prm.socket_id, rte_errno);
111 snprintf(name, sizeof(name), "%p@%zu", s, sz);
146 size_t sz; local
[all...]
H A Dstream_table.c38 size_t i, sz; local
67 sz = sizeof(*st->ht[i].ent) * num;
68 st->ht[i].ent = rte_zmalloc_socket(NULL, sz,
H A Dtcp_rxq.h152 uint32_t n, head, sz; local
160 sz = _rte_ring_get_size(r);
166 if (head + n <= sz) {
171 obj[0].num = sz - head;
172 obj[1].num = n + head - sz;
H A Dtcp_stream.c68 size_t sz; local
72 sz = rte_ring_get_memsize(n);
74 r = rte_zmalloc_socket(NULL, sz, RTE_CACHE_LINE_SIZE, socket);
78 __func__, sz, socket, rte_errno);
82 snprintf(name, sizeof(name), "%p@%zu", r, sz);
90 uint32_t n, na, sz, tsz; local
92 sz = sizeof(struct tle_tcp_stream);
96 szofs->ofo.ofs = sz;
98 sz += tsz;
99 sz
199 mts_alloc(size_t sz, void *udata) argument
[all...]
H A Dctx.c80 size_t sz; local
90 sz = sizeof(*ctx);
91 ctx = rte_zmalloc_socket(NULL, sz, RTE_CACHE_LINE_SIZE,
96 sz, ctx_prm->socket_id);
164 size_t sz; local
166 sz = sizeof(*dev->dp[idx]);
167 dev->dp[idx] = rte_zmalloc_socket(NULL, sz, RTE_CACHE_LINE_SIZE,
173 sz, socket_id, idx);
H A Dtcp_rxtx.c369 uint32_t fail, i, k, n, mss, pid, plen, sz, tn, type; local
386 sz = RTE_MIN(sl->len, mss);
390 if (plen <= sz) {
401 } else if (sz < mss)
422 sz = tcp_mbuf_seq_free(mo + n, fail);
423 sl->seq -= sz;
424 sl->len += sz;
2198 size_t sz; local
2210 sz = 0;
2214 sz
2389 size_t sz, tsz; local
[all...]
H A Dtcp_ofo.h293 tcp_ofo_calc_elems(uint32_t nbufs, uint32_t *nobj, uint32_t *ndb, uint32_t *sz);
/tldk/lib/libtle_memtank/
H A Dmemtank.c26 size_t sz; local
29 sz = sizeof(*mt) + nb_free * sizeof(mt->pub.free[0]);
30 sz = RTE_ALIGN_CEIL(sz, alignof(*mt));
31 return sz;
37 size_t sz; local
40 sz = sizeof(*ch) + nb_obj * sizeof(ch->free[0]);
41 sz = RTE_ALIGN_CEIL(sz, alignof(*ch));
42 return sz;
48 size_t sz; local
59 size_t algn, sz; local
72 uint32_t i, n, sz; local
239 uint32_t i, sz; local
253 uint32_t i, sz; local
269 uint32_t i, j, k, sz; local
446 size_t sz; local
[all...]
H A Dmisc.c157 uint32_t i, j, n, sz; local
161 sz = mt->obj_size;
178 mo = obj_pub_full(p[i], sz);
253 uint32_t i, k, sz; local
257 sz = mt->obj_size;
275 mo = obj_pub_full(p[i], sz);
/tldk/app/nginx/src/tldk/
H A Dtldk_sock.c196 size_t sz; local
235 sz = sn * sizeof(*stbl.sd);
236 stbl.sd = rte_zmalloc_socket(NULL, sz, RTE_CACHE_LINE_SIZE,
242 __func__, lc, ngx_worker, sz);
435 ssize_t sz; local
455 sz = tle_tcp_stream_readv(ts->s, &iv, 1);
456 if (sz < 0)
458 else if (sz == 0 && ts->posterr == 0) {
460 sz = -1;
464 ngx_worker, __func__, sd, buf, len, flags, sz);
471 ssize_t sz; local
505 ssize_t sz; local
[all...]
/tldk/test/memtank/
H A Dtest_memtank.c44 rte_atomic64_t sz; member in struct:memstat::__anon1
160 alloc_func(size_t sz) argument
164 return malloc(sz);
166 return rte_malloc(NULL, sz, 0);
184 test_alloc1(size_t sz, void *p) argument
190 buf = alloc_func(sz);
193 memset(buf, 0, sz);
194 rte_atomic64_add(&ms->alloc.sz, sz);
223 alloc_sz = rte_atomic64_read(&ms->alloc.sz) / nb_allo
414 check_fill_objs(void *obj[], uint32_t sz, uint32_t num, uint8_t check, uint8_t fill) argument
444 size_t sz; local
[all...]
/tldk/test/dring/
H A Dtest_dring.c78 size_t sz, tsz; local
85 sz = rte_ring_get_memsize(n);
87 r = calloc(1, sz);
90 __func__, __LINE__, num, sz);
98 tsz = sz;
102 sz = tle_drb_calc_size(k);
103 drb = calloc(1, sz);
107 __func__, __LINE__, num, i, sz);
113 tsz += sz;
/tldk/test/gtest/
H A Dtest_tle_dring.h141 size_t sz, tsz; local
148 sz = rte_ring_get_memsize(n);
150 r = (struct rte_ring *)calloc(1, sz);
153 __func__, __LINE__, num, sz);
161 tsz = sz;
165 sz = tle_drb_calc_size(k);
166 drb = (struct tle_drb *)calloc(1, sz);
170 __func__, __LINE__, num, i, sz);
176 tsz += sz;
/tldk/examples/l4fwd/
H A Dparse.c441 size_t sz; local
474 sz = sizeof(dp[0]) * num;
480 __func__, fname, sz);
684 size_t sz; local
726 sz = sizeof(sp[0]) * num;
732 __func__, fname, sz);
778 ssize_t sz; local
793 sz = read(fd, tx->data, st.st_size);
796 __func__, fname, sz, fd);
800 if (sz !
[all...]
H A Dlcore.h362 uint32_t i, j, nb_bl_ports = 0, sz; local
368 sz = sizeof(uint16_t) * UINT16_MAX;
369 bl_ports = rte_zmalloc(NULL, sz, RTE_CACHE_LINE_SIZE);
373 memset((uint8_t *)bl_ports, 0, sz);
H A Dudp.h100 size_t sz; local
118 sz = sizeof(*fe) + snum * sizeof(struct netfe_stream);
119 fe = rte_zmalloc_socket(NULL, sz, RTE_CACHE_LINE_SIZE,
124 __func__, __LINE__, sz);
H A Dtcp.h129 size_t sz; local
147 sz = sizeof(*fe) + snum * sizeof(struct netfe_stream);
148 fe = rte_zmalloc_socket(NULL, sz, RTE_CACHE_LINE_SIZE,
153 __func__, __LINE__, sz);
H A Dnetbe.h256 size_t sz; member in struct:tx_content
H A Dmain.c72 .sz = 0,
H A Dcommon.h679 csz = tx_content.sz;
/tldk/lib/libtle_timer/
H A Dtimer.c150 size_t sz; local
172 sz = sizeof(*tw) + prm->max_timer * sizeof(struct tle_timer_elmt);
175 tw = rte_zmalloc_socket(NULL, sz, RTE_CACHE_LINE_SIZE,
/tldk/lib/libtle_dring/
H A Dtle_dring.h528 size_t sz; local
530 sz = offsetof(struct tle_drb, objs[num]);
531 return RTE_ALIGN_CEIL(sz, RTE_CACHE_LINE_SIZE);

Completed in 20 milliseconds