| /f-stack/dpdk/lib/librte_eal/common/ |
| H A D | eal_common_hexdump.c | 16 unsigned int i, out, ofs; in rte_hexdump() local 22 ofs = 0; in rte_hexdump() 23 while (ofs < len) { in rte_hexdump() 25 out = snprintf(line, LINE_LEN, "%08X:", ofs); in rte_hexdump() 27 if (ofs + i < len) in rte_hexdump() 29 " %02X", (data[ofs + i] & 0xff)); in rte_hexdump() 39 for (i = 0; ofs < len && i < 16; i++, ofs++) { in rte_hexdump() 40 unsigned char c = data[ofs]; in rte_hexdump()
|
| /f-stack/freebsd/netpfil/ipfw/ |
| H A D | dn_heap.c | 117 h->ofs = ofs; in heap_init() 132 if (h->ofs > 0) \ 140 if (h->ofs > 0) \ 193 if (h->ofs <= 0) in heap_extract() 196 father = *((int *)((char *)obj + h->ofs)); in heap_extract() 239 if (h->ofs <= 0) 243 i = *((int *)((char *)object + h->ofs)); 412 ht->ofs = ofs; in dn_ht_init() 471 *pp = *(void **)((char *)p + ht->ofs); in dn_ht_find() 472 *(void **)((char *)p + ht->ofs) = NULL; in dn_ht_find() [all …]
|
| H A D | dn_heap.h | 66 int ofs; /* offset in the object of heap index */ member 102 #define SET_HEAP_OFS(h, n) do { (h)->ofs = n; } while (0) 103 int heap_init(struct dn_heap *h, int size, int ofs); 169 struct dn_ht *dn_ht_init(struct dn_ht *, int buckets, int ofs,
|
| H A D | ip_dn_private.h | 466 int l, ofs; in mq_append() local 468 ofs = m->m_data - m->__m_extbuf; in mq_append() 472 m, m->__m_extbuf, m->__m_extlen, ofs, m_new); in mq_append() 483 m_new->m_data = p + ofs; in mq_append()
|
| H A D | dn_sched_wf2q.c | 269 int ofs = offsetof(struct wf2qp_queue, heap_pos); in wf2qp_new_sched() local 272 if (heap_init(&si->idle_heap, 16, ofs) || in wf2qp_new_sched() 273 heap_init(&si->sch_heap, 16, ofs) || in wf2qp_new_sched() 274 heap_init(&si->ne_heap, 16, ofs)) { in wf2qp_new_sched()
|
| /f-stack/dpdk/drivers/crypto/qat/ |
| H A D | qat_sym_hw_dp.c | 140 ofs.ofs.cipher.head); in enqueue_one_aead_job() 207 ofs.ofs.cipher.tail; in enqueue_one_aead_job() 208 auth_param->auth_off = ofs.ofs.cipher.head; in enqueue_one_aead_job() 316 ofs.ofs.cipher.tail; in enqueue_one_cipher_job() 415 auth_param->auth_off = ofs.ofs.auth.head; in enqueue_one_auth_job() 417 ofs.ofs.auth.tail; in enqueue_one_auth_job() 541 cipher_len = data_len - ofs.ofs.cipher.head - in enqueue_one_chain_job() 542 ofs.ofs.cipher.tail; in enqueue_one_chain_job() 543 auth_len = data_len - ofs.ofs.auth.head - ofs.ofs.auth.tail; in enqueue_one_chain_job() 552 auth_param->auth_off = ofs.ofs.auth.head; in enqueue_one_chain_job() [all …]
|
| /f-stack/dpdk/lib/librte_ip_frag/ |
| H A D | rte_ipv4_reassembly.c | 19 uint32_t i, n, ofs, first_len; in ipv4_frag_reassemble() local 27 ofs = fp->frags[IP_LAST_FRAG_IDX].ofs; in ipv4_frag_reassemble() 30 while (ofs != first_len) { in ipv4_frag_reassemble() 34 for (i = n; i != IP_FIRST_FRAG_IDX && ofs != first_len; i--) { in ipv4_frag_reassemble() 37 if(fp->frags[i].ofs + fp->frags[i].len == ofs) { in ipv4_frag_reassemble() 52 ofs = fp->frags[i].ofs; in ipv4_frag_reassemble()
|
| H A D | rte_ipv6_reassembly.c | 38 uint32_t i, n, ofs, first_len; in ipv6_frag_reassemble() local 47 ofs = fp->frags[IP_LAST_FRAG_IDX].ofs; in ipv6_frag_reassemble() 51 payload_len = ofs + last_len; in ipv6_frag_reassemble() 53 while (ofs != first_len) { in ipv6_frag_reassemble() 57 for (i = n; i != IP_FIRST_FRAG_IDX && ofs != first_len; i--) { in ipv6_frag_reassemble() 60 if (fp->frags[i].ofs + fp->frags[i].len == ofs) { in ipv6_frag_reassemble() 75 ofs = fp->frags[i].ofs; in ipv6_frag_reassemble()
|
| H A D | ip_frag_internal.c | 99 if (ofs == 0) { in ip_frag_process() 105 fp->total_size = ofs + len; in ip_frag_process() 130 fp->frags[IP_FIRST_FRAG_IDX].ofs, in ip_frag_process() 132 fp->frags[IP_LAST_FRAG_IDX].ofs, in ip_frag_process() 143 fp->frags[IP_FIRST_FRAG_IDX].ofs, in ip_frag_process() 145 fp->frags[IP_LAST_FRAG_IDX].ofs, in ip_frag_process() 156 fp->frags[idx].ofs = ofs; in ip_frag_process() 188 fp->frags[IP_FIRST_FRAG_IDX].ofs, in ip_frag_process() 190 fp->frags[IP_LAST_FRAG_IDX].ofs, in ip_frag_process() 201 fp->frags[IP_FIRST_FRAG_IDX].ofs, in ip_frag_process() [all …]
|
| H A D | ip_frag_common.h | 37 uint16_t ofs, uint16_t len, uint16_t more_frags); 140 .ofs = 0, in ip_frag_reset()
|
| /f-stack/dpdk/lib/librte_ipsec/ |
| H A D | misc.h | 47 mbuf_get_seg_ofs(struct rte_mbuf *mb, uint32_t *ofs) in mbuf_get_seg_ofs() argument 53 n = *ofs; in mbuf_get_seg_ofs() 67 *ofs = n; in mbuf_get_seg_ofs() 84 mbuf_cut_seg_ofs(struct rte_mbuf *mb, struct rte_mbuf *ms, uint32_t ofs, in mbuf_cut_seg_ofs() argument 91 ms->data_len = ofs; in mbuf_cut_seg_ofs() 94 if (slen < ofs + len) { in mbuf_cut_seg_ofs() 114 union rte_crypto_sym_ofs ofs, struct rte_mbuf *mb[], in cpu_crypto_bulk() argument 148 ss->crypto.dev_id, ss->crypto.ses, ofs, in cpu_crypto_bulk() 171 ss->crypto.ses, ofs, &symvec); in cpu_crypto_bulk()
|
| H A D | esp_inb.c | 147 move_icv(struct rte_mbuf *ml, uint32_t ofs) in move_icv() argument 155 n = ml->data_len - ofs; in move_icv() 157 prev = rte_pktmbuf_mtod_offset(ml, const void *, ofs); in move_icv() 358 uint32_t ofs; in process_step1() local 360 ofs = mb->pkt_len - tlen; in process_step1() 362 ml[0] = mbuf_get_seg_ofs(mb, &ofs); in process_step1() 364 tofs[0] = ofs; in process_step1() 373 check_pad_bytes(struct rte_mbuf *mb, uint32_t ofs, uint32_t len) in check_pad_bytes() argument 379 k = mb->data_len - ofs; in check_pad_bytes() 381 pd = rte_pktmbuf_mtod_offset(mb, const uint8_t *, ofs); in check_pad_bytes() [all …]
|
| /f-stack/dpdk/lib/librte_bpf/ |
| H A D | bpf_jit_x86.c | 573 int32_t ofs) in emit_ld_reg() argument 595 emit_imm(st, ofs, imm_size(ofs)); in emit_ld_reg() 648 int32_t ofs) in emit_st_imm() argument 655 int32_t ofs) in emit_st_reg() argument 717 joff = ofs - st->sz; in emit_abs_jmp() 835 joff = ofs - st->sz; in emit_abs_jcc() 1188 RTE_VERIFY(ofs[LDMB_FIN_OFS] - ofs[LDMB_FSP_OFS] <= INT8_MAX); in emit_ld_mbuf() 1202 int32_t spil, ofs; in emit_prolog() local 1216 ofs = 0; in emit_prolog() 1246 int32_t spil, ofs; in emit_epilog() local [all …]
|
| H A D | bpf_load_elf.c | 57 resolve_xsym(const char *sn, size_t ofs, struct ebpf_insn *ins, size_t ins_sz, in resolve_xsym() argument 63 if (ofs % sizeof(ins[0]) != 0 || ofs >= ins_sz) in resolve_xsym() 66 idx = ofs / sizeof(ins[0]); in resolve_xsym() 70 ofs < ins_sz - sizeof(ins[idx])) in resolve_xsym() 189 size_t ofs, sym; in process_reloc() local 208 ofs = re[i].r_offset; in process_reloc() 217 rc = resolve_xsym(sn, ofs, ins, ins_sz, prm); in process_reloc() 221 sn, ofs, rc); in process_reloc()
|
| /f-stack/freebsd/net/ |
| H A D | rndis.h | 135 #define RNDIS_PACKET_MSG_OFFSET_ABS(ofs) \ argument 136 ((ofs) + __offsetof(struct rndis_packet_msg, rm_dataoffset)) 253 #define RNDIS_QUERY_COMP_INFOBUFOFFSET_ABS(ofs) \ argument 254 ((ofs) + __offsetof(struct rndis_query_req, rm_rid)) 325 #define RNDIS_STBUFOFFSET_ABS(ofs) \ argument 326 ((ofs) + __offsetof(struct rndis_status_msg, rm_status))
|
| /f-stack/dpdk/lib/librte_cryptodev/ |
| H A D | rte_crypto_sym.h | 105 } ofs; member 929 rte_crypto_mbuf_to_vec(const struct rte_mbuf *mb, uint32_t ofs, uint32_t len, in rte_crypto_mbuf_to_vec() argument 938 RTE_ASSERT(mb->data_len > ofs); in rte_crypto_mbuf_to_vec() 943 vec[0].base = rte_pktmbuf_mtod_offset(mb, void *, ofs); in rte_crypto_mbuf_to_vec() 944 vec[0].iova = rte_pktmbuf_iova_offset(mb, ofs); in rte_crypto_mbuf_to_vec() 947 seglen = mb->data_len - ofs; in rte_crypto_mbuf_to_vec()
|
| H A D | rte_cryptodev.h | 1320 struct rte_cryptodev_sym_session *sess, union rte_crypto_sym_ofs ofs, 1373 union rte_crypto_sym_ofs ofs, void *user_data[], int *enqueue_status); 1398 uint16_t n_data_vecs, union rte_crypto_sym_ofs ofs, 1589 struct rte_crypto_sym_vec *vec, union rte_crypto_sym_ofs ofs, 1616 union rte_crypto_sym_ofs ofs, in rte_cryptodev_raw_enqueue() argument 1623 n_data_vecs, ofs, iv, digest, aad_or_auth_iv, user_data); in rte_cryptodev_raw_enqueue()
|
| /f-stack/dpdk/drivers/net/netvsc/ |
| H A D | rndis.h | 165 #define RNDIS_PACKET_MSG_OFFSET_ABS(ofs) \ argument 166 ((ofs) + offsetof(struct rndis_packet_msg, dataoffset)) 297 #define RNDIS_QUERY_COMP_INFOBUFOFFSET_ABS(ofs) \ argument 298 ((ofs) + offsetof(struct rndis_query_comp, rid)) 369 #define RNDIS_STBUFOFFSET_ABS(ofs) \ argument 370 ((ofs) + offsetof(struct rndis_status_msg, status))
|
| H A D | hn_rndis.c | 275 sg.ofs = addr & PAGE_MASK; in hn_nvs_send_rndis_ctrl() 278 if (sg.ofs + reqlen > PAGE_SIZE) { in hn_nvs_send_rndis_ctrl() 473 unsigned int ofs; in hn_rndis_query() local 525 ofs = RNDIS_QUERY_COMP_INFOBUFOFFSET_ABS(comp->infobufoffset); in hn_rndis_query() 526 if (ofs < sizeof(*comp) || ofs + comp->infobuflen > comp_len) { in hn_rndis_query() 538 memcpy(odata, (const char *)comp + ofs, odlen); in hn_rndis_query()
|
| H A D | hn_rxtx.c | 145 hn_rndis_pktmsg_offset(uint32_t ofs) in hn_rndis_pktmsg_offset() argument 147 return ofs - offsetof(struct rndis_packet_msg, dataoffset); in hn_rndis_pktmsg_offset() 817 unsigned int ofs, len; in hn_nvs_handle_rxbuf() local 819 ofs = pkt->rxbuf[i].ofs; in hn_nvs_handle_rxbuf() 822 if (unlikely(ofs + len > rxbuf_sz)) { in hn_nvs_handle_rxbuf() 825 i, ofs, len); in hn_nvs_handle_rxbuf() 835 rxbuf + ofs, len); in hn_nvs_handle_rxbuf() 1413 sg[segs].ofs = offset; in hn_fill_sg() 1454 sg[0].ofs = addr & PAGE_MASK; in hn_xmit_sg()
|
| /f-stack/freebsd/mips/malta/ |
| H A D | yamon.h | 58 #define YAMON_FUNC(ofs) ((long)(*(int32_t *)(MIPS_PHYS_TO_KSEG0(ofs)))) argument
|
| /f-stack/dpdk/examples/ipsec-secgw/ |
| H A D | ipsec_process.c | 148 uint32_t j, ofs, s; in copy_to_trf() local 158 ofs = offsetof(struct ip, ip_p); in copy_to_trf() 161 ofs = offsetof(struct ip6_hdr, ip6_nxt); in copy_to_trf() 165 ofs = offsetof(struct ip, ip_p); in copy_to_trf() 168 ofs = offsetof(struct ip6_hdr, ip6_nxt); in copy_to_trf() 173 void *, ofs); in copy_to_trf()
|
| /f-stack/dpdk/drivers/bus/vmbus/ |
| H A D | rte_vmbus_reg.h | 142 uint32_t ofs; member 149 uint32_t ofs; member 174 uint32_t ofs; member
|
| /f-stack/dpdk/lib/librte_acl/ |
| H A D | acl_bld.c | 1443 size_t ofs, sz; in acl_build_rules() local 1447 ofs = n * sizeof(*br); in acl_build_rules() 1448 sz = ofs + n * fn * sizeof(*wp); in acl_build_rules() 1452 wp = (uint32_t *)((uintptr_t)br + ofs); in acl_build_rules() 1482 uint32_t i, n, ofs; in acl_set_data_indexes() local 1484 ofs = 0; in acl_set_data_indexes() 1489 ctx->trie[i].data_index = ctx->data_indexes + ofs; in acl_set_data_indexes() 1490 ofs += RTE_ACL_MAX_FIELDS; in acl_set_data_indexes() 1600 uint32_t i, max_ofs, ofs; in get_first_load_size() local 1602 ofs = 0; in get_first_load_size() [all …]
|
| /f-stack/dpdk/drivers/crypto/aesni_gcm/ |
| H A D | aesni_gcm_pmd_private.h | 120 struct rte_cryptodev_sym_session *sess, union rte_crypto_sym_ofs ofs,
|