Home
last modified time | relevance | path

Searched refs:off (Results 1 – 25 of 143) sorted by relevance

123456

/dpdk/drivers/event/dlb2/pf/
H A Ddlb2_main.c244 off_t off; in dlb2_pf_reset() local
322 off = DLB2_PCI_CMD; in dlb2_pf_reset()
381 __func__, (int)off); in dlb2_pf_reset()
389 __func__, (int)off); in dlb2_pf_reset()
397 __func__, (int)off); in dlb2_pf_reset()
405 __func__, (int)off); in dlb2_pf_reset()
413 __func__, (int)off); in dlb2_pf_reset()
421 __func__, (int)off); in dlb2_pf_reset()
429 __func__, (int)off); in dlb2_pf_reset()
495 off = (i - 1) * 4; in dlb2_pf_reset()
[all …]
/dpdk/lib/net/
H A Drte_net.c130 uint32_t *off) in ptype_tunnel() argument
157 *off += opt_len[flags]; in ptype_tunnel()
208 *off += 8; in rte_net_skip_ip6_ext()
229 uint32_t off = 0; in rte_net_get_ptype() local
240 off = sizeof(*eh); in rte_net_get_ptype()
241 hdr_lens->l2_len = off; in rte_net_get_ptype()
257 off += sizeof(*vh); in rte_net_get_ptype()
269 off += 2 * sizeof(*vh); in rte_net_get_ptype()
394 off += sizeof(*eh); in rte_net_get_ptype()
407 off += sizeof(*vh); in rte_net_get_ptype()
[all …]
/dpdk/drivers/net/enetc/base/
H A Denetc_hw.h42 + (off))
165 #define enetc_rd(hw, off) enetc_rd_reg((size_t)(hw)->reg + (off)) argument
166 #define enetc_wr(hw, off, val) enetc_wr_reg((size_t)(hw)->reg + (off), val) argument
168 #define enetc_port_rd(hw, off) enetc_rd_reg((size_t)(hw)->port + (off)) argument
169 #define enetc_port_wr(hw, off, val) \ argument
172 #define enetc_global_rd(hw, off) \ argument
177 #define enetc_bdr_rd(hw, t, n, off) \ argument
182 #define enetc_txbdr_rd(hw, n, off) enetc_bdr_rd(hw, TX, n, off) argument
183 #define enetc_rxbdr_rd(hw, n, off) enetc_bdr_rd(hw, RX, n, off) argument
185 enetc_bdr_wr(hw, TX, n, off, val)
[all …]
/dpdk/lib/mempool/
H A Drte_mempool_ops_default.c98 size_t off; in rte_mempool_op_populate_helper() local
112 off = 0; in rte_mempool_op_populate_helper()
115 if (check_obj_bounds(va + off, pg_sz, total_elt_sz) < 0) { in rte_mempool_op_populate_helper()
116 off += RTE_PTR_ALIGN_CEIL(va + off, pg_sz) - (va + off); in rte_mempool_op_populate_helper()
118 off += total_elt_sz - in rte_mempool_op_populate_helper()
119 (((uintptr_t)(va + off - 1) % in rte_mempool_op_populate_helper()
123 if (off + total_elt_sz > len) in rte_mempool_op_populate_helper()
126 off += mp->header_size; in rte_mempool_op_populate_helper()
127 obj = va + off; in rte_mempool_op_populate_helper()
129 (iova == RTE_BAD_IOVA) ? RTE_BAD_IOVA : (iova + off)); in rte_mempool_op_populate_helper()
[all …]
/dpdk/lib/ethdev/
H A Drte_flow.c693 size > off ? size - off : 0, in rte_flow_conv_action_conf()
769 off = RTE_ALIGN_CEIL(off, sizeof(double)); in rte_flow_conv_pattern()
772 size > off ? size - off : 0, src, in rte_flow_conv_pattern()
783 size > off ? size - off : 0, src, in rte_flow_conv_pattern()
793 size > off ? size - off : 0, src, in rte_flow_conv_pattern()
865 size > off ? size - off : 0, src); in rte_flow_conv_actions()
915 off = RTE_ALIGN_CEIL(off, sizeof(double)); in rte_flow_conv_rule()
923 off = RTE_ALIGN_CEIL(off, sizeof(double)); in rte_flow_conv_rule()
925 size > off ? size - off : 0, in rte_flow_conv_rule()
934 off = RTE_ALIGN_CEIL(off, sizeof(double)); in rte_flow_conv_rule()
[all …]
/dpdk/drivers/net/nfp/
H A Dnfp_common.h270 nn_cfg_readb(struct nfp_net_hw *hw, int off) in nn_cfg_readb() argument
272 return nn_readb(hw->ctrl_bar + off); in nn_cfg_readb()
278 nn_writeb(val, hw->ctrl_bar + off); in nn_cfg_writeb()
316 uint32_t off; in nfp_qcp_ptr_add() local
319 off = NFP_QCP_QUEUE_ADD_RPTR; in nfp_qcp_ptr_add()
321 off = NFP_QCP_QUEUE_ADD_WPTR; in nfp_qcp_ptr_add()
328 nn_writel(rte_cpu_to_le_32(val), q + off); in nfp_qcp_ptr_add()
339 uint32_t off; in nfp_qcp_read() local
343 off = NFP_QCP_QUEUE_STS_LO; in nfp_qcp_read()
345 off = NFP_QCP_QUEUE_STS_HI; in nfp_qcp_read()
[all …]
/dpdk/lib/graph/
H A Dgraph_populate.c66 rte_graph_off_t off = _graph->nodes_start; in graph_nodes_populate() local
77 node->off = off; in graph_nodes_populate()
89 off += sizeof(struct rte_node); in graph_nodes_populate()
96 off += sizeof(struct rte_node *) * nb_edges; in graph_nodes_populate()
97 off = RTE_ALIGN(off, RTE_CACHE_LINE_SIZE); in graph_nodes_populate()
98 node->next = off; in graph_nodes_populate()
107 rte_graph_off_t off; in graph_node_id_to_ptr() local
121 rte_graph_off_t off; in graph_node_name_to_ptr() local
135 rte_graph_off_t off; in graph_node_nexts_populate() local
171 graph->cir_start[head--] = node->off; in graph_src_nodes_populate()
[all …]
H A Drte_graph.h343 #define rte_graph_foreach_node(count, off, graph, node) \ argument
344 for (count = 0, off = graph->nodes_start, \
345 node = RTE_PTR_ADD(graph, off); \
347 off = node->next, node = RTE_PTR_ADD(graph, off), count++)
/dpdk/app/test/
H A Dtest_bpf.c754 .off = 8,
760 .off = 9,
766 .off = 10,
772 .off = 11,
778 .off = 12,
784 .off = 13,
790 .off = 14,
796 .off = 15,
944 .off = 2,
966 .off = 9,
[all …]
H A Dtest.h42 #define TEST_ASSERT_BUFFERS_ARE_EQUAL_OFFSET(a, b, len, off, msg, ...) do { \ argument
43 const uint8_t *_a_with_off = (const uint8_t *)a + off; \
44 const uint8_t *_b_with_off = (const uint8_t *)b + off; \
70 #define TEST_ASSERT_BUFFERS_ARE_EQUAL_BIT_OFFSET(a, b, len, off, msg, ...) do { \ argument
73 uint32_t _len_without_first_byte = (off % 8) ? \
74 len - (8 - (off % 8)) : \
76 uint32_t _off_in_bytes = (off % 8) ? (off >> 3) + 1 : (off >> 3); \
81 if (off % 8) { \
82 _first_byte_bits = 8 - (off % 8); \
/dpdk/lib/bpf/
H A Dbpf_validate.c90 } off; member
737 uint32_t align, int16_t off) in eval_ptr() argument
854 size_t off; in eval_mbuf_store() member
1137 .off = { .min = 0, .max = 0},
1143 .off = { .min = 0, .max = 0},
1149 .off = { .min = 0, .max = 0},
1155 .off = { .min = 0, .max = 0},
1161 .off = { .min = 0, .max = 0},
1737 uint16_t off; in check_syntax() local
1751 off = ins->off; in check_syntax()
[all …]
H A Dbpf_convert.c88 .off = 0, \
96 .off = 0, \
106 .off = 0, \
116 .off = 0, \
124 .off = 0, \
134 .off = 0, \
144 .off = 0, \
154 .off = 0, \
164 .off = OFF, \
204 .off = 0, \
[all …]
H A Dbpf_dump.c102 ins->src_reg, ins->off); in rte_bpf_dump()
109 ins->dst_reg, ins->off, ins->imm); in rte_bpf_dump()
118 ins->dst_reg, ins->off, ins->src_reg); in rte_bpf_dump()
120 #define L(pc, off) ((int)(pc) + 1 + (off)) in rte_bpf_dump() argument
126 fprintf(f, "%s L%d\n", op, L(i, ins->off)); in rte_bpf_dump()
131 ins->imm, L(i, ins->off)); in rte_bpf_dump()
/dpdk/lib/mbuf/
H A Drte_mbuf.c193 ctx->off += ext_mem->elt_size; in __rte_pktmbuf_init_extmem()
195 ctx->off = 0; in __rte_pktmbuf_init_extmem()
359 .off = 0, in rte_pktmbuf_pool_create_extbuf()
589 uint32_t off, uint32_t len) in rte_pktmbuf_copy() argument
598 if (unlikely(off >= m->pkt_len)) in rte_pktmbuf_copy()
606 if (len > m->pkt_len - off) in rte_pktmbuf_copy()
607 len = m->pkt_len - off; in rte_pktmbuf_copy()
620 while (off >= seg->data_len) { in rte_pktmbuf_copy()
621 off -= seg->data_len; in rte_pktmbuf_copy()
654 off += copy_len; in rte_pktmbuf_copy()
[all …]
H A Drte_mbuf_dyn.c63 size_t off, align, size, i; in process_score() local
71 off = 0; in process_score()
72 while (off < sizeof(struct rte_mbuf)) { in process_score()
74 for (size = 0; (off + size) < sizeof(struct rte_mbuf) && in process_score()
75 shm->free_space[off + size]; size++) in process_score()
78 off++; in process_score()
86 (off % (align << 1)) == 0 && (align << 1) <= size; in process_score()
91 for (i = off; i < off + align; i++) in process_score()
94 off += align; in process_score()
/dpdk/drivers/mempool/cnxk/
H A Dcnxk_mempool_ops.c136 size_t total_elt_sz, off; in cnxk_mempool_populate() local
145 off = total_elt_sz - ((((uintptr_t)vaddr - 1) % total_elt_sz) + 1); in cnxk_mempool_populate()
147 if (len < off) in cnxk_mempool_populate()
150 vaddr = (char *)vaddr + off; in cnxk_mempool_populate()
151 iova += off; in cnxk_mempool_populate()
152 len -= off; in cnxk_mempool_populate()
155 plt_npa_dbg("iova %" PRIx64 ", aligned iova %" PRIx64 "", iova - off, in cnxk_mempool_populate()
158 (uint64_t)(len + off), (uint64_t)len); in cnxk_mempool_populate()
/dpdk/drivers/common/cnxk/
H A Droc_nix_inl.h67 uint64_t off = idx << ROC_NIX_INL_ONF_IPSEC_INB_SA_SZ_LOG2; in roc_nix_inl_onf_ipsec_inb_sa() local
69 return PLT_PTR_ADD(base, off); in roc_nix_inl_onf_ipsec_inb_sa()
75 uint64_t off = idx << ROC_NIX_INL_ONF_IPSEC_OUTB_SA_SZ_LOG2; in roc_nix_inl_onf_ipsec_outb_sa() local
77 return PLT_PTR_ADD(base, off); in roc_nix_inl_onf_ipsec_outb_sa()
95 uint64_t off = idx << ROC_NIX_INL_OT_IPSEC_INB_SA_SZ_LOG2; in roc_nix_inl_ot_ipsec_inb_sa() local
97 return PLT_PTR_ADD(base, off); in roc_nix_inl_ot_ipsec_inb_sa()
103 uint64_t off = idx << ROC_NIX_INL_OT_IPSEC_OUTB_SA_SZ_LOG2; in roc_nix_inl_ot_ipsec_outb_sa() local
105 return PLT_PTR_ADD(base, off); in roc_nix_inl_ot_ipsec_outb_sa()
/dpdk/drivers/net/tap/
H A Dtap_bpf_program.c129 __u64 off = ETH_HLEN; in rss_l3_l4() local
149 off += sizeof(struct vlan_hdr); in rss_l3_l4()
153 if (data + off + sizeof(struct iphdr) + sizeof(__u32) in rss_l3_l4()
157 __u8 *src_dst_addr = data + off + offsetof(struct iphdr, saddr); in rss_l3_l4()
158 __u8 *src_dst_port = data + off + sizeof(struct iphdr); in rss_l3_l4()
178 if (data + off + sizeof(struct ipv6hdr) + in rss_l3_l4()
181 __u8 *src_dst_addr = data + off + in rss_l3_l4()
183 __u8 *src_dst_port = data + off + in rss_l3_l4()
/dpdk/drivers/mempool/octeontx/
H A Drte_mempool_octeontx.c161 size_t off; in octeontx_fpavf_populate() local
172 off = total_elt_sz - ((((uintptr_t)vaddr - 1) % total_elt_sz) + 1); in octeontx_fpavf_populate()
174 if (len < off) in octeontx_fpavf_populate()
177 vaddr = (char *)vaddr + off; in octeontx_fpavf_populate()
178 iova += off; in octeontx_fpavf_populate()
179 len -= off; in octeontx_fpavf_populate()
/dpdk/drivers/net/octeontx/base/
H A Docteontx_io.h64 octeontx_reg_ldadd_u64(void *addr, int64_t off) in octeontx_reg_ldadd_u64() argument
71 : "=r" (old_val) : "r" (off), "r" (addr) : "memory"); in octeontx_reg_ldadd_u64()
116 octeontx_reg_ldadd_u64(void *addr, int64_t off) in octeontx_reg_ldadd_u64() argument
119 RTE_SET_USED(off); in octeontx_reg_ldadd_u64()
/dpdk/drivers/net/cnxk/
H A Dcn9k_tx.h412 uint8_t off, i; in cn9k_nix_prepare_mseg() local
417 off = 2; in cn9k_nix_prepare_mseg()
419 off = 0; in cn9k_nix_prepare_mseg()
785 uint8_t j, off; in cn9k_nix_xmit_pkts_mseg_vector() local
817 off = segdw[j] - 4; in cn9k_nix_xmit_pkts_mseg_vector()
819 off <<= 1; in cn9k_nix_xmit_pkts_mseg_vector()
834 off = segdw[j] - 3; in cn9k_nix_xmit_pkts_mseg_vector()
836 off <<= 1; in cn9k_nix_xmit_pkts_mseg_vector()
846 off = segdw[j] - 2; in cn9k_nix_xmit_pkts_mseg_vector()
848 off <<= 1; in cn9k_nix_xmit_pkts_mseg_vector()
[all …]
/dpdk/doc/guides/howto/
H A Dlm_virtio_vhost_user.rst202 capabilities: xbzrle: off rdma-pin-all: off auto-converge: off zero-blocks: off
296 VIRTIO_OPTIONS="csum=off,gso=off,guest_tso4=off,guest_tso6=off,guest_ecn=off"
372 VIRTIO_OPTIONS="csum=off,gso=off,guest_tso4=off,guest_tso6=off,guest_ecn=off"
/dpdk/drivers/crypto/bcmfs/hw/
H A Dbcmfs4_rm.c604 uint32_t val, off; in bcmfs4_start_qp() local
613 for (off = 0; off < tx_queue->queue_size; off += FS_RING_DESC_SIZE) { in bcmfs4_start_qp()
614 next_addr = off + FS_RING_DESC_SIZE; in bcmfs4_start_qp()
619 d = bcmfs4_next_table_desc(RING_BD_TOGGLE_VALID(off), in bcmfs4_start_qp()
622 d = bcmfs4_null_desc(RING_BD_TOGGLE_INVALID(off)); in bcmfs4_start_qp()
623 rm_write_desc((uint8_t *)tx_queue->base_addr + off, d); in bcmfs4_start_qp()
681 for (off = 0; off < FS_RING_CMPL_SIZE; off += FS_RING_DESC_SIZE) in bcmfs4_start_qp()
682 rm_write_desc((uint8_t *)cmpl_queue->base_addr + off, 0x0); in bcmfs4_start_qp()
/dpdk/drivers/raw/ntb/
H A Dntb.c1215 uint32_t i, j, off, xstats_num; in ntb_xstats_get() local
1221 off = NTB_XSTATS_NUM * (j + 1) + i; in ntb_xstats_get()
1224 hw->ntb_xstats[off]); in ntb_xstats_get()
1247 uint32_t xstats_num, i, j, off; in ntb_xstats_get_names() local
1259 off = j + (i + 1) * NTB_XSTATS_NUM; in ntb_xstats_get_names()
1260 snprintf(xstats_names[off].name, in ntb_xstats_get_names()
1275 uint32_t xstats_num, i, j, off; in ntb_xstats_get_by_name() local
1289 off = NTB_XSTATS_NUM * (j + 1) + i; in ntb_xstats_get_by_name()
1292 hw->ntb_xstats[off]); in ntb_xstats_get_by_name()
1320 uint32_t i, j, off, xstats_num; in ntb_xstats_reset() local
[all …]
/dpdk/drivers/net/ixgbe/
H A Dixgbe_bypass.c208 u32 off; in ixgbe_bypass_event_store() local
217 off = BYPASS_WDTIMEOUT_M; in ixgbe_bypass_event_store()
221 off = BYPASS_MAIN_ON_M; in ixgbe_bypass_event_store()
225 off = BYPASS_MAIN_OFF_M; in ixgbe_bypass_event_store()
229 off = BYPASS_AUX_ON_M; in ixgbe_bypass_event_store()
233 off = BYPASS_AUX_OFF_M; in ixgbe_bypass_event_store()
241 off, status); in ixgbe_bypass_event_store()

123456