Home
last modified time | relevance | path

Searched refs:f (Results 1 – 25 of 281) sorted by relevance

12345678910>>...12

/dpdk/lib/graph/
H A Dgraph_debug.c9 graph_dump(FILE *f, struct graph *g) in graph_dump() argument
14 fprintf(f, "graph <%s>\n", g->name); in graph_dump()
15 fprintf(f, " id=%" PRIu32 "\n", g->id); in graph_dump()
18 fprintf(f, " addr=%p\n", g); in graph_dump()
19 fprintf(f, " graph=%p\n", g->graph); in graph_dump()
20 fprintf(f, " mem_sz=%zu\n", g->mem_sz); in graph_dump()
29 node_dump(FILE *f, struct node *n) in node_dump() argument
33 fprintf(f, "node <%s>\n", n->name); in node_dump()
34 fprintf(f, " id=%" PRIu32 "\n", n->id); in node_dump()
36 fprintf(f, " addr=%p\n", n); in node_dump()
[all …]
/dpdk/drivers/net/cxgbe/
H A Dcxgbe_filter.c301 cxgbe_clip_release(f->dev, f->clipt); in clear_filter()
316 memset(f, 0, sizeof(*f)); in clear_filter()
616 f = t4_os_alloc(sizeof(*f)); in cxgbe_set_hash_filter()
647 f->fs.eport, f->fs.dmac); in cxgbe_set_hash_filter()
658 f->smt = cxgbe_smt_alloc_switching(f->dev, f->fs.smac); in cxgbe_set_hash_filter()
671 f->clipt = cxgbe_clip_alloc(f->dev, (u32 *)&f->fs.val.lip); in cxgbe_set_hash_filter()
1110 f->l2t = cxgbe_l2t_alloc_switching(f->dev, f->fs.vlan, in cxgbe_set_filter()
1111 f->fs.eport, f->fs.dmac); in cxgbe_set_filter()
1122 f->smt = cxgbe_smt_alloc_switching(f->dev, f->fs.smac); in cxgbe_set_filter()
1191 cxgbe_insert_tid(t, f, f->tid, 0); in cxgbe_hash_filter_rpl()
[all …]
/dpdk/lib/table/
H A Drte_table_hash_key16.c260 signature = f->f_hash(key, f->key_mask, f->key_size, f->seed); in rte_table_hash_entry_add_key16_lru()
263 &f->memory[bucket_index * f->bucket_size]; in rte_table_hash_entry_add_key16_lru()
326 signature = f->f_hash(key, f->key_mask, f->key_size, f->seed); in rte_table_hash_entry_delete_key16_lru()
329 &f->memory[bucket_index * f->bucket_size]; in rte_table_hash_entry_delete_key16_lru()
470 signature = f->f_hash(key, f->key_mask, f->key_size, f->seed); in rte_table_hash_entry_add_key16_ext()
517 bucket_index = f->stack[--f->stack_pos]; in rte_table_hash_entry_add_key16_ext()
547 signature = f->f_hash(key, f->key_mask, f->key_size, f->seed); in rte_table_hash_entry_delete_key16_ext()
582 (uint8_t *)f->memory)/f->bucket_size) - f->n_buckets; in rte_table_hash_entry_delete_key16_ext()
654 signature = f->f_hash(key, f->key_mask, KEY_SIZE, f->seed); \
789 signature10 = f->f_hash(key10, f->key_mask, KEY_SIZE, f->seed);\
[all …]
H A Drte_table_hash_key8.c250 signature = f->f_hash(key, &f->key_mask, f->key_size, f->seed); in rte_table_hash_entry_add_key8_lru()
253 &f->memory[bucket_index * f->bucket_size]; in rte_table_hash_entry_add_key8_lru()
313 signature = f->f_hash(key, &f->key_mask, f->key_size, f->seed); in rte_table_hash_entry_delete_key8_lru()
316 &f->memory[bucket_index * f->bucket_size]; in rte_table_hash_entry_delete_key8_lru()
454 signature = f->f_hash(key, &f->key_mask, f->key_size, f->seed); in rte_table_hash_entry_add_key8_ext()
457 &f->memory[bucket_index * f->bucket_size]; in rte_table_hash_entry_add_key8_ext()
505 bucket_index = f->stack[--f->stack_pos]; in rte_table_hash_entry_add_key8_ext()
535 signature = f->f_hash(key, &f->key_mask, f->key_size, f->seed); in rte_table_hash_entry_delete_key8_ext()
538 &f->memory[bucket_index * f->bucket_size]; in rte_table_hash_entry_delete_key8_ext()
569 (uint8_t *)f->memory)/f->bucket_size) - f->n_buckets; in rte_table_hash_entry_delete_key8_ext()
[all …]
H A Drte_table_hash_key32.c268 signature = f->f_hash(key, f->key_mask, f->key_size, f->seed); in rte_table_hash_entry_add_key32_lru()
271 &f->memory[bucket_index * f->bucket_size]; in rte_table_hash_entry_add_key32_lru()
334 signature = f->f_hash(key, f->key_mask, f->key_size, f->seed); in rte_table_hash_entry_delete_key32_lru()
337 &f->memory[bucket_index * f->bucket_size]; in rte_table_hash_entry_delete_key32_lru()
484 signature = f->f_hash(key, f->key_mask, f->key_size, f->seed); in rte_table_hash_entry_add_key32_ext()
533 bucket_index = f->stack[--f->stack_pos]; in rte_table_hash_entry_add_key32_ext()
564 signature = f->f_hash(key, f->key_mask, f->key_size, f->seed); in rte_table_hash_entry_delete_key32_ext()
599 (uint8_t *)f->memory)/f->bucket_size) - f->n_buckets; in rte_table_hash_entry_delete_key32_ext()
682 signature = f->f_hash(key, f->key_mask, KEY_SIZE, f->seed); \
822 signature10 = f->f_hash(key10, f->key_mask, KEY_SIZE, f->seed); \
[all …]
/dpdk/drivers/net/ionic/
H A Dionic_rx_filter.c17 LIST_REMOVE(f, by_id); in ionic_rx_filter_free()
18 LIST_REMOVE(f, by_hash); in ionic_rx_filter_free()
19 rte_free(f); in ionic_rx_filter_free()
58 f = rte_zmalloc("ionic", sizeof(*f), 0); in ionic_rx_filter_save()
60 if (!f) in ionic_rx_filter_save()
63 f->flow_id = flow_id; in ionic_rx_filter_save()
66 f->match = rte_le_to_cpu_16(f->cmd.match); in ionic_rx_filter_save()
67 memcpy(&f->cmd, &ctx->cmd, sizeof(f->cmd)); in ionic_rx_filter_save()
69 switch (f->match) { in ionic_rx_filter_save()
106 return f; in ionic_rx_filter_by_vlan()
[all …]
/dpdk/drivers/common/cnxk/
H A Droc_sso_debug.c9 sso_hws_dump(uintptr_t base, FILE *f) in sso_hws_dump() argument
12 fprintf(f, "SSOW_LF_GWS_LINKS 0x%" PRIx64 "\n", in sso_hws_dump()
14 fprintf(f, "SSOW_LF_GWS_PENDWQP 0x%" PRIx64 "\n", in sso_hws_dump()
16 fprintf(f, "SSOW_LF_GWS_PENDSTATE 0x%" PRIx64 "\n", in sso_hws_dump()
18 fprintf(f, "SSOW_LF_GWS_NW_TIM 0x%" PRIx64 "\n", in sso_hws_dump()
20 fprintf(f, "SSOW_LF_GWS_TAG 0x%" PRIx64 "\n", in sso_hws_dump()
22 fprintf(f, "SSOW_LF_GWS_WQP 0x%" PRIx64 "\n", in sso_hws_dump()
24 fprintf(f, "SSOW_LF_GWS_SWTP 0x%" PRIx64 "\n", in sso_hws_dump()
31 sso_hwgrp_dump(uintptr_t base, FILE *f) in sso_hwgrp_dump() argument
60 sso_hws_dump(base, f); in roc_sso_dump()
[all …]
/dpdk/drivers/event/dlb2/
H A Ddlb2_xstats.c1020 fprintf(f, "STOPPED\n"); in dlb2_eventdev_dump()
1022 fprintf(f, "STOPPING\n"); in dlb2_eventdev_dump()
1024 fprintf(f, "STARTING\n"); in dlb2_eventdev_dump()
1026 fprintf(f, "STARTED\n"); in dlb2_eventdev_dump()
1028 fprintf(f, "UNEXPECTED\n"); in dlb2_eventdev_dump()
1084 fprintf(f, "Port_%d\n", i); in dlb2_eventdev_dump()
1085 fprintf(f, "=======\n"); in dlb2_eventdev_dump()
1093 fprintf(f, "\tport is %s\n", in dlb2_eventdev_dump()
1113 fprintf(f, "\n"); in dlb2_eventdev_dump()
1237 fprintf(f, "========\n"); in dlb2_eventdev_dump()
[all …]
/dpdk/drivers/common/dpaax/
H A Ddpaa_of.c58 struct dt_file *f = malloc(sizeof(*f)); in process_file() local
60 if (!f) { in process_file()
68 f->parent = parent; in process_file()
72 free(f); in process_file()
75 f->len = read(fd, f->buf, OF_FILE_BUF_MAX); in process_file()
77 if (f->len < 0) { in process_file()
79 free(f); in process_file()
181 d->status = f; in linear_dir()
206 d->reg = f; in linear_dir()
253 free(f); in destroy_dir()
[all …]
/dpdk/lib/bpf/
H A Dbpf_dump.c55 fprintf(f, " L%u:\t", i); in rte_bpf_dump()
59 fprintf(f, "unimp 0x%x // class: %s\n", in rte_bpf_dump()
71 fprintf(f, "%s%s r%u, #0x%x\n", op, postfix, in rte_bpf_dump()
82 fprintf(f, "%s%s r%d, #0x%"PRIx64"\n", in rte_bpf_dump()
86 fprintf(f, "%s%s r%d, #0x%x\n", op, postfix, in rte_bpf_dump()
89 fprintf(f, "%s%s r%d, [%d]\n", op, postfix, in rte_bpf_dump()
92 fprintf(f, "%s%s r%d, [r%u + %d]\n", op, postfix, in rte_bpf_dump()
108 fprintf(f, "%s%s [r%d + %d], #0x%x\n", op, postfix, in rte_bpf_dump()
117 fprintf(f, "%s%s [r%d + %d], r%u\n", op, postfix, in rte_bpf_dump()
126 fprintf(f, "%s L%d\n", op, L(i, ins->off)); in rte_bpf_dump()
[all …]
/dpdk/devtools/
H A Dcheck-meson.py55 print(f'Error parsing {filename}:{lineno}, got some tabulation')
83 print(f'Error: Incorrect indent at {filename}:{lineno + 1}')
87 print(f'Error: Missing trailing "," in list at {filename}:{lineno + 1}')
103 print(f'Processing {filename}')
104 with open(filename) as f:
105 contents = [ln.rstrip() for ln in f.readlines()]
108 print(f"Fixing {filename}")
109 with open(filename, 'w') as f:
110 f.writelines([f'{ln}\n' for ln in contents])
123 for f in scan_dir(args.d):
[all …]
H A Dupdate-patches.py31 if f'lib/{d}' in contents[i]:
33 contents[i] = contents[i].replace(f'lib/{d}', f'lib/librte_{d}')
40 with open(patch) as f:
41 contents = f.readlines()
48 shutil.copyfile(f'{patch}', f'{patch}.bak')
49 with open(patch, 'w') as f:
50 f.writelines(contents)
H A Dprocess-iwyu.py37 with open(filepath) as f:
38 lines = f.readlines() # Read lines when file is opened
40 with open(filepath, 'w') as f:
43 f.write(ln)
52 with open(filepath, 'w') as f:
53 f.writelines(lines)
59 with open(join(builddir, 'rte_build_config.h')) as f:
60 return [ln for ln in f.readlines() if condition(ln)]
95 print(f"Remove {include} from {filepath} ... ", end='', flush=True)
/dpdk/drivers/net/hns3/
H A Dhns3_stats.h120 #define HNS3_MAC_STATS_OFFSET(f) \ argument
121 (offsetof(struct hns3_mac_stats, f))
123 #define HNS3_ERR_INT_STATS_FIELD_OFFSET(f) \ argument
127 #define HNS3_RESET_STATS_FIELD_OFFSET(f) \ argument
128 (offsetof(struct hns3_reset_stats, f))
133 #define HNS3_RXQ_DFX_STATS_FIELD_OFFSET(f) \ argument
134 (offsetof(struct hns3_rx_dfx_stats, f))
137 (offsetof(struct hns3_tx_dfx_stats, f))
140 (offsetof(struct hns3_rx_basic_stats, f))
143 (offsetof(struct hns3_tx_basic_stats, f))
[all …]
/dpdk/lib/power/
H A Dpower_common.c28 FILE *f; in cpufreq_check_scaling_driver() local
36 if (f == NULL) in cpufreq_check_scaling_driver()
39 s = fgets(readbuf, sizeof(readbuf), f); in cpufreq_check_scaling_driver()
41 fclose(f); in cpufreq_check_scaling_driver()
77 *f = tmpf; in open_core_sysfs_file()
85 read_core_sysfs_u32(FILE *f, uint32_t *val) in read_core_sysfs_u32() argument
91 s = fgets(buf, sizeof(buf), f); in read_core_sysfs_u32()
114 s = fgets(buf, len, f); in read_core_sysfs_s()
132 ret = fseek(f, 0, SEEK_SET); in write_core_sysfs_s()
136 ret = fputs(str, f); in write_core_sysfs_s()
[all …]
H A Dpower_acpi_cpufreq.c86 fflush(pi->f); in set_freq_internal()
121 FILE *f; in power_get_available_freqs() local
128 if (f == NULL) { in power_get_available_freqs()
179 if (f != NULL) in power_get_available_freqs()
180 fclose(f); in power_get_available_freqs()
191 FILE *f; in power_init_for_setting_freq() local
214 pi->f = f; in power_init_for_setting_freq()
220 if (f != NULL) in power_init_for_setting_freq()
221 fclose(f); in power_init_for_setting_freq()
333 fclose(pi->f); in power_acpi_cpufreq_exit()
[all …]
/dpdk/drivers/raw/ioat/
H A Ddpdk_idxd_cfg.py22 with open(os.path.join(self.path, filename)) as f:
23 return int(f.readline())
28 with open(os.path.join(self.path, filename), "w") as f:
29 f.write(str(contents))
43 drv_dir.write_values({"unbind": f"dsa{dsa_id}"})
53 sys.exit(f"Could not find sysfs directory for device {pci}")
63 sys.exit(f"Could not get device ID for device {pci}")
68 dsa_dir = SysfsDir(f"/sys/bus/dsa/devices/dsa{dsa_id}")
90 "name": f"{prefix}_wq{dsa_id}.{q}",
97 idxd_dir.write_values({"bind": f"dsa{dsa_id}"})
[all …]
H A Dioat_common.c77 idxd_dev_dump(struct rte_rawdev *dev, FILE *f) in idxd_dev_dump() argument
83 fprintf(f, "Raw Device #%d\n", dev->dev_id); in idxd_dev_dump()
84 fprintf(f, "Driver: %s\n\n", dev->driver_name); in idxd_dev_dump()
86 fprintf(f, "Portal: %p\n", rte_idxd->portal); in idxd_dev_dump()
90 fprintf(f, "max batches: %u\n", rte_idxd->max_batches); in idxd_dev_dump()
93 fprintf(f, "batch idxes:"); in idxd_dev_dump()
95 fprintf(f, "%u ", rte_idxd->batch_idx_ring[i]); in idxd_dev_dump()
96 fprintf(f, "\n\n"); in idxd_dev_dump()
98 fprintf(f, "hdls read: %u\n", rte_idxd->max_batches); in idxd_dev_dump()
99 fprintf(f, "hdls avail: %u\n", rte_idxd->hdls_avail); in idxd_dev_dump()
[all …]
/dpdk/drivers/dma/idxd/
H A Ddpdk_idxd_cfg.py22 with open(os.path.join(self.path, filename)) as f:
23 return int(f.readline())
28 with open(os.path.join(self.path, filename), "w") as f:
29 f.write(str(contents))
43 drv_dir.write_values({"unbind": f"dsa{dsa_id}"})
53 sys.exit(f"Could not find sysfs directory for device {pci}")
63 sys.exit(f"Could not get device ID for device {pci}")
68 dsa_dir = SysfsDir(f"/sys/bus/dsa/devices/dsa{dsa_id}")
90 "name": f"{prefix}_wq{dsa_id}.{q}",
97 idxd_dir.write_values({"bind": f"dsa{dsa_id}"})
[all …]
/dpdk/buildtools/pkg-config/
H A Dset-static-linker-flags.py11 def fix_ldflag(f): argument
12 if not f.startswith('-lrte_'):
13 return f
14 return '-l:lib' + f[2:] + '.a'
36 pc_files = [f for f in files if f.endswith('.pc')]
37 for f in pc_files:
38 process_pc_file(os.path.join(root, f))
/dpdk/lib/eal/common/
H A Deal_common_hexdump.c11 rte_hexdump(FILE *f, const char *title, const void *buf, unsigned int len) in rte_hexdump() argument
17 fprintf(f, "%s at [%p], len=%u\n", in rte_hexdump()
43 fprintf(f, "%s\n", line); in rte_hexdump()
45 fflush(f); in rte_hexdump()
49 rte_memdump(FILE *f, const char *title, const void *buf, unsigned int len) in rte_memdump() argument
56 fprintf(f, "%s: ", title); in rte_memdump()
62 fprintf(f, "%s", line); in rte_memdump()
70 fprintf(f, "%s", line); in rte_memdump()
71 fprintf(f, "\n"); in rte_memdump()
73 fflush(f); in rte_memdump()
H A Deal_common_launch.c35 rte_eal_remote_launch(lcore_function_t *f, void *arg, unsigned int worker_id) in rte_eal_remote_launch() argument
51 __atomic_store_n(&lcore_config[worker_id].f, f, __ATOMIC_RELEASE); in rte_eal_remote_launch()
57 rte_eal_trace_thread_remote_launch(f, arg, worker_id, rc); in rte_eal_remote_launch()
67 rte_eal_mp_remote_launch(int (*f)(void *), void *arg, in rte_eal_mp_remote_launch()
81 rte_eal_remote_launch(f, arg, lcore_id); in rte_eal_mp_remote_launch()
85 lcore_config[main_lcore].ret = f(arg); in rte_eal_mp_remote_launch()
/dpdk/app/test/
H A Dtest_resource.c39 FILE *f; in test_resource_c() local
50 f = fopen("test_resource.c", "r"); in test_resource_c()
51 TEST_ASSERT_NOT_NULL(f, in test_resource_c()
53 fclose(f); in test_resource_c()
65 FILE *f; in test_resource_tar() local
76 f = fopen("test_resource.c", "r"); in test_resource_tar()
77 TEST_ASSERT_NOT_NULL(f, in test_resource_tar()
79 fclose(f); in test_resource_tar()
/dpdk/drivers/dma/ioat/
H A Dioat_dmadev.c307 __dev_dump(void *dev_private, FILE *f) in __dev_dump() argument
314 fprintf(f, "========= IOAT =========\n"); in __dev_dump()
320 fprintf(f, " No Channel Errors\n"); in __dev_dump()
324 fprintf(f, " Invalid Source Address\n"); in __dev_dump()
330 fprintf(f, " Descriptor Read Error\n"); in __dev_dump()
335 fprintf(f, " Unknown Error(s)\n"); in __dev_dump()
337 fprintf(f, "== Private Data ==\n"); in __dev_dump()
347 fprintf(f, " Last Descriptor Written {\n"); in __dev_dump()
353 fprintf(f, " }\n"); in __dev_dump()
354 fprintf(f, " Next Descriptor {\n"); in __dev_dump()
[all …]
/dpdk/examples/pipeline/examples/
H A Dpacket.txt12 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11
18 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11
24 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11
30 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11
36 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11
42 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11
48 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11
54 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11
60 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11
66 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11
[all …]

12345678910>>...12