Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 254) sorted by relevance

1234567891011

/dpdk/lib/eal/common/
H A Deal_filesystem.h41 snprintf(buffer, sizeof(buffer), "%s/%s", rte_eal_get_runtime_dir(), in eal_runtime_config_path()
43 return buffer; in eal_runtime_config_path()
53 snprintf(buffer, sizeof(buffer), "%s/%s", rte_eal_get_runtime_dir(), in eal_mp_socket_path()
55 return buffer; in eal_mp_socket_path()
63 return buffer; in eal_get_fbarray_path()
73 snprintf(buffer, sizeof(buffer), "%s/%s", rte_eal_get_runtime_dir(), in eal_hugepage_info_path()
75 return buffer; in eal_hugepage_info_path()
85 snprintf(buffer, sizeof(buffer), "%s/%s", rte_eal_get_runtime_dir(), in eal_hugepage_data_path()
87 return buffer; in eal_hugepage_data_path()
95 snprintf(buffer, buflen, HUGEFILE_FMT, hugedir, in eal_get_hugefile_path()
[all …]
/dpdk/drivers/net/txgbe/base/
H A Dtxgbe_mng.c23 sum += buffer[i]; in txgbe_calculate_checksum()
273 buffer.hdr.req.buf_lenh = 0; in txgbe_close_notify()
274 buffer.hdr.req.buf_lenl = 0; in txgbe_close_notify()
278 buffer.length = 0; in txgbe_close_notify()
279 buffer.address = 0; in txgbe_close_notify()
282 sizeof(buffer), in txgbe_close_notify()
303 buffer.hdr.req.buf_lenh = 0; in txgbe_open_notify()
304 buffer.hdr.req.buf_lenl = 0; in txgbe_open_notify()
308 buffer.length = 0; in txgbe_open_notify()
309 buffer.address = 0; in txgbe_open_notify()
[all …]
/dpdk/doc/guides/prog_guide/
H A Dreorder_lib.rst15 The reorder library is essentially a buffer that reorders mbufs.
16 The user inserts out of order mbufs into the reorder buffer and pulls in-order
19 At a given time, the reorder buffer contains mbufs whose sequence number are
22 For example, given a reorder buffer with 200 entries and a minimum sequence
42 the *Order* buffer and the *Ready* buffer.
49 To that end, mbufs in the Order buffer are moved into the Ready buffer.
61 the Order buffer to the Ready buffer, as long as there is room in the Ready buffer.
64 to the Ready buffer continues beyond the minimum required until a gap,
65 i.e. missing mbuf, in the Order buffer is encountered.
68 buffer first and then from the Order buffer until a gap is found (mbufs that
[all …]
H A Dmbuf_lib.rst44 Message buffers may also use their buffer pointers to point to other message buffer data sections o…
238 A direct buffer is a buffer that is completely separate and self-contained.
239 An indirect buffer behaves like a direct buffer but for the fact that the buffer pointer and
240 data offset in it refer to data in another direct buffer.
244 A buffer becomes indirect when it is "attached" to a direct buffer using the rte_pktmbuf_attach() f…
245 Each buffer has a reference counter field and whenever an indirect buffer is attached to the direct…
246 the reference counter on the direct buffer is incremented.
247 Similarly, whenever the indirect buffer is detached, the reference counter on the direct buffer is …
251 First of all, an indirect buffer is never attached to another indirect buffer.
252 Attempting to attach buffer A to indirect buffer B that is attached to C, makes rte_pktmbuf_attach(…
[all …]
/dpdk/drivers/common/dpaax/caamflib/rta/
H A Dsec_run_time_asm.h389 uint32_t *buffer; member
404 program->buffer = buffer; in rta_program_cntxt_init()
607 rta_desc_len(uint32_t *buffer) in rta_desc_len() argument
610 return *buffer & HDR_DESCLEN_MASK; in rta_desc_len()
615 return *buffer & HDR_DESCLEN_SHR_MASK; in rta_desc_len()
620 rta_desc_bytes(uint32_t *buffer) in rta_desc_bytes() argument
672 opcode = bswap ? swab32(program->buffer[line]) : program->buffer[line]; in rta_patch_move()
690 opcode = bswap ? swab32(program->buffer[line]) : program->buffer[line]; in rta_patch_jmp()
708 opcode = bswap ? swab32(program->buffer[line]) : program->buffer[line]; in rta_patch_header()
755 opcode = bswap ? swab32(program->buffer[line]) : program->buffer[line]; in rta_patch_store()
[all …]
/dpdk/lib/telemetry/
H A Dtelemetry_legacy.c33 char *buffer, int buf_len);
80 char *buffer __rte_unused, int buf_len __rte_unused) in register_client()
183 char *data = buffer + buf_len; in parse_client_request()
186 if (buffer[0] != '{' || buffer[buf_len - 1] != '}') in parse_client_request()
189 if (strstr(buffer, CLIENTS_UNREG_ACTION) && strstr(buffer, CLIENTS_CMD) in parse_client_request()
190 && strstr(buffer, CLIENTS_DATA)) in parse_client_request()
195 char *cmd_ptr = strstr(buffer, callbacks[i].cmd); in parse_client_request()
241 char buffer[BUF_SIZE]; in legacy_client_handler() local
243 buffer[j] = buffer_recv[i]; in legacy_client_handler()
246 buffer[j] = 0; in legacy_client_handler()
[all …]
/dpdk/drivers/crypto/qat/
H A Dqat_ec.h14 } buffer; typedef
25 buffer x;
26 buffer y;
27 buffer n;
28 buffer p;
29 buffer a;
30 buffer b;
31 buffer h;
/dpdk/drivers/net/qede/
H A Dqede_regs.c80 uint32_t *buffer = regs->data; in qede_get_regs() local
91 if (buffer == NULL) { in qede_get_regs()
98 memset(buffer, 0, regs->length); in qede_get_regs()
114 *(uint32_t *)((uint8_t *)buffer + offset) = in qede_get_regs()
124 *(uint32_t *)((uint8_t *)buffer + offset) = in qede_get_regs()
134 *(uint32_t *)((uint8_t *)buffer + offset) = in qede_get_regs()
144 *(uint32_t *)((uint8_t *)buffer + offset) = in qede_get_regs()
153 (uint8_t *)buffer + in qede_get_regs()
155 *(uint32_t *)((uint8_t *)buffer + offset) = in qede_get_regs()
165 *(uint32_t *)((uint8_t *)buffer + offset) = in qede_get_regs()
[all …]
H A Dqede_if.h197 void *buffer,
202 void *buffer,
207 void *buffer,
212 void *buffer,
216 int (*dbg_protection_override)(struct ecore_dev *edev, void *buffer,
221 int (*dbg_igu_fifo)(struct ecore_dev *edev, void *buffer,
224 int (*dbg_fw_asserts)(struct ecore_dev *edev, void *buffer,
229 int (*dbg_ilt)(struct ecore_dev *edev, void *buffer,
H A Dqede_debug.h14 int qed_dbg_grc(struct ecore_dev *edev, void *buffer, u32 *num_dumped_bytes);
16 int qed_dbg_idle_chk(struct ecore_dev *edev, void *buffer,
19 int qed_dbg_reg_fifo(struct ecore_dev *edev, void *buffer,
22 int qed_dbg_igu_fifo(struct ecore_dev *edev, void *buffer,
25 int qed_dbg_protection_override(struct ecore_dev *edev, void *buffer,
28 int qed_dbg_fw_asserts(struct ecore_dev *edev, void *buffer,
31 int qed_dbg_ilt(struct ecore_dev *edev, void *buffer, u32 *num_dumped_bytes);
33 int qed_dbg_mcp_trace(struct ecore_dev *edev, void *buffer,
36 int qed_dbg_all_data(struct ecore_dev *edev, void *buffer);
40 int qed_dbg_feature(struct ecore_dev *edev, void *buffer,
/dpdk/lib/cfgfile/
H A Drte_cfgfile.c183 while (fgets(buffer, sizeof(buffer), f) != NULL) { in rte_cfgfile_load_with_params()
185 size_t len = strnlen(buffer, sizeof(buffer)); in rte_cfgfile_load_with_params()
187 if ((len >= sizeof(buffer) - 1) && (buffer[len-1] != '\n')) { in rte_cfgfile_load_with_params()
197 len = pos - buffer; in rte_cfgfile_load_with_params()
200 len = _strip(buffer, len); in rte_cfgfile_load_with_params()
202 if (buffer[0] != '[' && memchr(buffer, '=', len) == NULL) in rte_cfgfile_load_with_params()
205 if (buffer[0] == '[') { in rte_cfgfile_load_with_params()
207 char *end = memchr(buffer, ']', len); in rte_cfgfile_load_with_params()
215 _strip(&buffer[1], end - &buffer[1]); in rte_cfgfile_load_with_params()
222 split[0] = buffer; in rte_cfgfile_load_with_params()
[all …]
/dpdk/drivers/net/igc/base/
H A Digc_manage.c16 u8 igc_calculate_checksum(u8 *buffer, u32 length) in igc_calculate_checksum() argument
23 if (!buffer) in igc_calculate_checksum()
27 sum += buffer[i]; in igc_calculate_checksum()
104 u32 *buffer = (u32 *)&hw->mng_cookie; in igc_enable_tx_pkt_filtering_generic() local
132 *(buffer + i) = IGC_READ_REG_ARRAY_DWORD(hw, IGC_HOST_IF, in igc_enable_tx_pkt_filtering_generic()
195 s32 igc_mng_host_if_write_generic(struct igc_hw *hw, u8 *buffer, in igc_mng_host_if_write_generic() argument
199 u8 *bufptr = buffer; in igc_mng_host_if_write_generic()
288 ret_val = igc_mng_host_if_write_generic(hw, buffer, length, in igc_mng_write_dhcp_info_generic()
403 *((u32 *)buffer + i)); in igc_host_interface_command()
423 *((u32 *)buffer + i) = IGC_READ_REG_ARRAY_DWORD(hw, in igc_host_interface_command()
[all …]
H A Digc_manage.h11 s32 igc_mng_host_if_write_generic(struct igc_hw *hw, u8 *buffer,
16 u8 *buffer, u16 length);
18 u8 igc_calculate_checksum(u8 *buffer, u32 length);
19 s32 igc_host_interface_command(struct igc_hw *hw, u8 *buffer, u32 length);
20 s32 igc_load_firmware(struct igc_hw *hw, u8 *buffer, u32 length);
/dpdk/drivers/net/e1000/base/
H A De1000_manage.c16 u8 e1000_calculate_checksum(u8 *buffer, u32 length) in e1000_calculate_checksum() argument
23 if (!buffer) in e1000_calculate_checksum()
27 sum += buffer[i]; in e1000_calculate_checksum()
104 u32 *buffer = (u32 *)&hw->mng_cookie; in e1000_enable_tx_pkt_filtering_generic() local
132 *(buffer + i) = E1000_READ_REG_ARRAY_DWORD(hw, E1000_HOST_IF, in e1000_enable_tx_pkt_filtering_generic()
195 s32 e1000_mng_host_if_write_generic(struct e1000_hw *hw, u8 *buffer, in e1000_mng_host_if_write_generic() argument
199 u8 *bufptr = buffer; in e1000_mng_host_if_write_generic()
288 ret_val = e1000_mng_host_if_write_generic(hw, buffer, length, in e1000_mng_write_dhcp_info_generic()
403 *((u32 *)buffer + i)); in e1000_host_interface_command()
423 *((u32 *)buffer + i) = E1000_READ_REG_ARRAY_DWORD(hw, in e1000_host_interface_command()
[all …]
H A De1000_manage.h11 s32 e1000_mng_host_if_write_generic(struct e1000_hw *hw, u8 *buffer,
16 u8 *buffer, u16 length);
18 u8 e1000_calculate_checksum(u8 *buffer, u32 length);
19 s32 e1000_host_interface_command(struct e1000_hw *hw, u8 *buffer, u32 length);
20 s32 e1000_load_firmware(struct e1000_hw *hw, u8 *buffer, u32 length);
/dpdk/drivers/raw/ifpga/base/
H A Dopae_spi_transaction.c38 unsigned char *p = buffer; in print_buffer()
50 UNUSED(buffer); in print_buffer()
208 unsigned char *send_packet = dev->buffer->bytes_send; in byte_to_core_convert()
209 unsigned char *resp_packet = dev->buffer->bytes_resp; in byte_to_core_convert()
294 unsigned char *send_packet = dev->buffer->packet_send; in packet_to_byte_conver()
295 unsigned char *resp_packet = dev->buffer->packet_resp; in packet_to_byte_conver()
414 unsigned char *transaction = dev->buffer->tran_send; in do_transaction()
415 unsigned char *response = dev->buffer->tran_resp; in do_transaction()
507 if (!spi_tran_dev->buffer) in spi_transaction_init()
532 if (dev && dev->buffer) in spi_transaction_remove()
[all …]
/dpdk/doc/guides/cryptodevs/
H A Daesni_gcm.rst9 support for utilizing Intel multi buffer library (see AES-NI Multi-buffer PMD documentation
40 To build DPDK with the AESNI_GCM_PMD the user is required to download the multi-buffer
82 16.04 - 16.11 Multi-buffer library 0.43 - 0.44
84 17.08 - 18.02 Multi-buffer library 0.46 - 0.48
85 18.05 - 19.02 Multi-buffer library 0.49 - 0.52
86 19.05 - 20.08 Multi-buffer library 0.52 - 0.55
87 20.11 - 21.08 Multi-buffer library 0.53 - 1.2*
88 21.11+ Multi-buffer library 1.0 - 1.2*
91 \* Multi-buffer library 1.0 or newer only works for Meson but not Make build system.
98 * Build the multi buffer library (explained in Installation section).
H A Dkasumi.rst8 utilizing `Intel IPSec Multi-buffer library <https://github.com/01org/intel-ipsec-mb>`_
36 To build DPDK with the KASUMI_PMD the user is required to download the multi-buffer
81 20.02 - 21.08 Multi-buffer library 0.53 - 1.2*
82 21.11+ Multi-buffer library 1.0 - 1.2*
85 \* Multi-buffer library 1.0 or newer only works for Meson but not Make build system.
92 * Build the multi buffer library (explained in Installation section).
119 When using KASUMI F9 authentication algorithm, the input buffer must be
122 Input buffer has to have COUNT (4 bytes), FRESH (4 bytes), MESSAGE and DIRECTION (1 bit)
124 between 0 and 7 '0' bits, so that the total length of the buffer is multiple of 8 bits.
127 Once this buffer is passed this way, when creating the crypto operation,
/dpdk/drivers/common/sfc_efx/
H A Dsfc_efx_mcdi.c195 char *buffer, void *data, size_t data_size, in sfc_efx_mcdi_do_log() argument
209 buffer[position] = '\0'; in sfc_efx_mcdi_do_log()
210 sfc_efx_log_mcdi(mcdi, "%s \\", buffer); in sfc_efx_mcdi_do_log()
214 position += snprintf(buffer + position, in sfc_efx_mcdi_do_log()
228 char buffer[SFC_MCDI_LOG_BUF_SIZE]; in sfc_efx_mcdi_logger() local
245 pfxsize = snprintf(buffer, sizeof(buffer), "MCDI RPC %s:", in sfc_efx_mcdi_logger()
248 start = sfc_efx_mcdi_do_log(mcdi, buffer, header, header_size, in sfc_efx_mcdi_logger()
250 start = sfc_efx_mcdi_do_log(mcdi, buffer, data, data_size, in sfc_efx_mcdi_logger()
253 buffer[start] = '\0'; in sfc_efx_mcdi_logger()
254 sfc_efx_log_mcdi(mcdi, "%s", buffer); in sfc_efx_mcdi_logger()
/dpdk/examples/multi_process/client_server_mp/shared/
H A Dcommon.h50 static char buffer[sizeof(MP_CLIENT_RXQ_NAME) + 2]; in get_rx_queue_name() local
52 snprintf(buffer, sizeof(buffer), MP_CLIENT_RXQ_NAME, id); in get_rx_queue_name()
53 return buffer; in get_rx_queue_name()
/dpdk/examples/server_node_efd/shared/
H A Dcommon.h62 static char buffer[sizeof(MP_NODE_RXQ_NAME) + 2]; in get_rx_queue_name() local
64 snprintf(buffer, sizeof(buffer), MP_NODE_RXQ_NAME, id); in get_rx_queue_name()
65 return buffer; in get_rx_queue_name()
/dpdk/drivers/net/atlantic/hw_atl/
H A Dhw_atl_llh_internal.h547 #define HW_ATL_RPB_RXBHI_THRESH_ADR(buffer) (0x00005714 + (buffer) * 0x10) argument
566 #define HW_ATL_RPB_RXBLO_THRESH_ADR(buffer) (0x00005714 + (buffer) * 0x10) argument
603 #define HW_ATL_RPB_RXBBUF_SIZE_ADR(buffer) (0x00005710 + (buffer) * 0x10) argument
622 #define HW_ATL_RPB_RXBXOFF_EN_ADR(buffer) (0x00005714 + (buffer) * 0x10) argument
1887 #define HW_ATL_TPB_TXBHI_THRESH_ADR(buffer) (0x00007914 + (buffer) * 0x10) argument
1906 #define HW_ATL_TPB_TXBLO_THRESH_ADR(buffer) (0x00007914 + (buffer) * 0x10) argument
1943 #define HW_ATL_TPB_TXBBUF_SIZE_ADR(buffer) (0x00007910 + (buffer) * 0x10) argument
/dpdk/app/test/
H A Dtest_cryptodev.h113 pktmbuf_write(struct rte_mbuf *mbuf, int offset, int len, const uint8_t *buffer) in pktmbuf_write() argument
128 rte_memcpy(dst, buffer, len); in pktmbuf_write()
132 rte_memcpy(dst, buffer, l); in pktmbuf_write()
133 buffer += l; in pktmbuf_write()
140 rte_memcpy(dst, buffer, n); in pktmbuf_write()
143 rte_memcpy(dst, buffer, l); in pktmbuf_write()
144 buffer += l; in pktmbuf_write()
/dpdk/lib/cmdline/
H A Dcmdline.c137 const char *history, *buffer; in cmdline_in() local
149 buffer = rdline_get_buffer(&cl->rdl); in cmdline_in()
153 same = !memcmp(buffer, history, histlen) && in cmdline_in()
154 buffer[histlen] == '\n'; in cmdline_in()
158 buflen = strnlen(buffer, RDLINE_BUF_SIZE); in cmdline_in()
160 rdline_add_history(&cl->rdl, buffer); in cmdline_in()
/dpdk/drivers/net/ngbe/base/
H A Dngbe_mng.c24 ngbe_hic_unlocked(struct ngbe_hw *hw, u32 *buffer, u32 length, u32 timeout) in ngbe_hic_unlocked() argument
46 wr32a(hw, NGBE_MNGMBX, i, cpu_to_le32(buffer[i])); in ngbe_hic_unlocked()
47 buffer[i] = rd32a(hw, NGBE_MNGMBX, i); in ngbe_hic_unlocked()
86 ngbe_host_interface_command(struct ngbe_hw *hw, u32 *buffer, in ngbe_host_interface_command() argument
90 struct ngbe_hic_hdr *resp = (struct ngbe_hic_hdr *)buffer; in ngbe_host_interface_command()
106 err = ngbe_hic_unlocked(hw, buffer, length, timeout); in ngbe_host_interface_command()
118 buffer[bi] = rd32a(hw, NGBE_MNGMBX, bi); in ngbe_host_interface_command()
127 buffer[bi] = rd32a(hw, NGBE_MNGMBX, bi); in ngbe_host_interface_command()
149 buffer[bi] = rd32a(hw, NGBE_MNGMBX, bi); in ngbe_host_interface_command()

1234567891011