| /dpdk/devtools/ |
| H A D | check-meson.py | 25 def split_code_comments(line): argument 27 if line.lstrip().startswith('#'): 28 return ('', line) 29 elif '#' in line and '#include' not in line: # catch 99% of cases, not 100% 30 idx = line.index('#') 31 while (line[idx - 1].isspace()): 33 return line[:idx], line[idx:] 35 return (line, '') 40 line = contents[index] = value 42 return line, code, comments [all …]
|
| H A D | update_version_map_abi.py | 63 for line in f_in: 65 line = line.strip('\n').strip() 78 experimental_lines += [line] 84 internal_lines += [line] 88 if not line: 104 match = func_line_regex.match(line) 122 for line in sorted(lines): 140 for line in lines: 142 if not line: 155 for line in lines: [all …]
|
| H A D | check-maintainers.sh | 42 for line in $( (sed '/^-\+$/d' $1 ; echo) | sed 's,^$,§,') ; do 43 if echo "$line" | grep -q '^§$' ; then 61 elif echo "$line" | grep -q '^[A-Z]: ' ; then 63 maintainers=$(add_line_to_if "$line" "$maintainers" 'M: ') 65 flines=$(add_line_to_if "$line" "$flines" 'F: ') 67 xlines=$(add_line_to_if "$line" "$xlines" 'X: ') 69 title="$line" 79 for line in $(sed -n 's,^[FX]: ,,p' $1 | tr '*' '#') ; do 80 line=$(printf "$line" | tr '#' '*') 81 match=$(files "$line") [all …]
|
| H A D | process-iwyu.py | 84 for line in fileinput.input(args.file): 85 if 'should remove' in line: 89 filename = line.split()[0] 93 elif line.startswith('-') and filepath: 94 include = '#include ' + line.split()[2]
|
| /dpdk/lib/eal/common/ |
| H A D | eal_common_hexdump.c | 15 char line[LINE_LEN]; /* space needed 8+16*3+3+16 == 75 */ in rte_hexdump() local 22 out = snprintf(line, LINE_LEN, "%08X:", ofs); in rte_hexdump() 25 snprintf(line + out, LINE_LEN - out, in rte_hexdump() 28 strcpy(line + out, " "); in rte_hexdump() 34 out += snprintf(line + out, LINE_LEN - out, " | "); in rte_hexdump() 43 fprintf(f, "%s\n", line); in rte_hexdump() 53 char line[LINE_LEN]; in rte_memdump() local 58 line[0] = '\0'; in rte_memdump() 62 fprintf(f, "%s", line); in rte_memdump() 64 line[out] = '\0'; in rte_memdump() [all …]
|
| /dpdk/drivers/common/dpaax/caamflib/rta/ |
| H A D | sec_run_time_asm.h | 669 if (line < 0) in rta_patch_move() 672 opcode = bswap ? swab32(program->buffer[line]) : program->buffer[line]; in rta_patch_move() 687 if (line < 0) in rta_patch_jmp() 690 opcode = bswap ? swab32(program->buffer[line]) : program->buffer[line]; in rta_patch_jmp() 705 if (line < 0) in rta_patch_header() 708 opcode = bswap ? swab32(program->buffer[line]) : program->buffer[line]; in rta_patch_header() 729 if (line < 0) in rta_patch_load() 752 if (line < 0) in rta_patch_store() 755 opcode = bswap ? swab32(program->buffer[line]) : program->buffer[line]; in rta_patch_store() 784 if (line < 0) in rta_patch_raw() [all …]
|
| /dpdk/doc/guides/ |
| H A D | conf.py | 215 line = '' 217 line += ' ' + name[0] 219 print_table_row(outfile, title, line) 222 line = '' 224 line += ' ' + name[i] 226 print_table_row(outfile, '', line) 235 line = '' 247 line = line.rstrip() 253 line = ' ' 255 line += ' '.join(column_dividers) [all …]
|
| /dpdk/buildtools/pkg-config/ |
| H A D | set-static-linker-flags.py | 17 def fix_libs_private(line): argument 18 if not line.startswith('Libs.private'): 19 return line 20 ldflags = [fix_ldflag(flag) for flag in line.split()] 29 dst.writelines([fix_libs_private(line) for line in lines])
|
| /dpdk/app/test-crypto-perf/ |
| H A D | cperf_test_vector_parsing.c | 466 char *line = NULL; in parse_file() local 478 if (line[0] == '#' || line[0] == '/' || line[0] == '\n' in parse_file() 479 || line[0] == '\r' || line[0] == ' ') in parse_file() 482 trim_space(line); in parse_file() 485 if (line[0] == '[' && line[strlen(line) - 1] == ']' && tc_found) in parse_file() 488 else if (line[0] == '[' && line[strlen(line) - 1] == ']') in parse_file() 509 strcpy(entry, line); in parse_file() 515 trim_space(line); in parse_file() 520 * (strlen(line) + strlen(entry)) in parse_file() 546 free(line); in parse_file() [all …]
|
| H A D | dpdk-graph-crypto-perf.py | 171 line = process.stdout.readline().strip() 172 if not line: 175 print("\t\t>>" + line) 177 if line.replace(' ', '').startswith('#lcore'): 178 columns = line[1:].split(',') 179 elif line[0].isdigit(): 180 line = line.replace(';', ',') 181 rows.append(line.split(','))
|
| /dpdk/app/test/ |
| H A D | test_table_acl.c | 328 char line[128]; variable 469 strlcpy(line, lines[n], sizeof(line)); in setup_acl_pipeline() 470 printf("PARSING [%s]\n", line); in setup_acl_pipeline() 472 ret = parser(line, &keys[n]); in setup_acl_pipeline() 511 strlcpy(line, lines[n], sizeof(line)); in setup_acl_pipeline() 512 printf("PARSING [%s]\n", line); in setup_acl_pipeline() 547 strlcpy(line, lines[n - 1], sizeof(line)); in setup_acl_pipeline() 548 printf("PARSING [%s]\n", line); in setup_acl_pipeline() 573 strlcpy(line, lines[n - 1], sizeof(line)); in setup_acl_pipeline() 574 printf("PARSING [%s]\n", line); in setup_acl_pipeline() [all …]
|
| /dpdk/drivers/common/dpaax/caamflib/ |
| H A D | rta.h | 841 #define PATCH_JUMP(program, line, new_ref) rta_patch_jmp(program, line, new_ref) argument 856 #define PATCH_MOVE(program, line, new_ref) \ argument 857 rta_patch_move(program, line, new_ref) 872 #define PATCH_LOAD(program, line, new_ref) \ argument 873 rta_patch_load(program, line, new_ref) 888 #define PATCH_STORE(program, line, new_ref) \ argument 889 rta_patch_store(program, line, new_ref) 904 #define PATCH_HDR(program, line, new_ref) \ argument 905 rta_patch_header(program, line, new_ref) 921 #define PATCH_RAW(program, line, mask, new_val) \ argument [all …]
|
| /dpdk/examples/fips_validation/ |
| H A D | fips_validation_aes.c | 133 char *line = info.vec[i]; in parse_test_aes_init() local 135 tmp = strstr(line, MODE_STR); in parse_test_aes_init() 138 if (strstr(line, aes_test_types[j].desc)) { in parse_test_aes_init() 147 tmp = strstr(line, ALGO_STR); in parse_test_aes_init() 164 tmp = strstr(line, OP_STR); in parse_test_aes_init() 168 tmp = strstr(line, KEY_SIZE_STR); in parse_test_aes_init()
|
| H A D | fips_validation_cmac.c | 83 char *line = info.vec[i]; in parse_test_cmac_init() local 85 tmp = strstr(line, ALGO_STR); in parse_test_cmac_init() 90 if (!strstr(line, cmac_algo[j].str)) in parse_test_cmac_init() 100 tmp = strstr(line, MODE_STR); in parse_test_cmac_init()
|
| H A D | fips_validation_gcm.c | 199 char *line = info.vec[i]; in parse_test_gcm_init() local 201 tmp = strstr(line, OP_STR); in parse_test_gcm_init() 203 if (strstr(line, OP_ENC_STR)) { in parse_test_gcm_init() 208 } else if (strstr(line, OP_DEC_STR)) { in parse_test_gcm_init()
|
| /dpdk/lib/eal/windows/ |
| H A D | eal_debug.c | 40 IMAGEHLP_LINE64 line; in rte_dump_stack() local 44 line.SizeOfStruct = sizeof(IMAGEHLP_LINE64); in rte_dump_stack() 60 ret = SymGetLineFromAddr64(process, address, &lin_disp, &line); in rte_dump_stack() 72 error_code ? "<unknown>" : line.FileName, in rte_dump_stack()
|
| /dpdk/drivers/bus/pci/linux/ |
| H A D | pci.c | 140 pci_parse_one_sysfs_resource(char *line, size_t len, uint64_t *phys_addr, in pci_parse_one_sysfs_resource() argument 152 if (rte_strsplit(line, len, res_info.ptrs, 3, ' ') != 3) { in pci_parse_one_sysfs_resource() 559 char *line = NULL; in pci_device_iommu_support_va() local 573 while (getline(&line, &len, fp) != -1) { in pci_device_iommu_support_va() 574 if (strstr(line, "platform") != NULL) { in pci_device_iommu_support_va() 575 if (strstr(line, "PowerNV") != NULL) { in pci_device_iommu_support_va() 578 } else if (strstr(line, "pSeries") != NULL) { in pci_device_iommu_support_va() 582 } else if (strstr(line, "model") != NULL) { in pci_device_iommu_support_va() 583 if (strstr(line, "qemu") != NULL) { in pci_device_iommu_support_va() 590 free(line); in pci_device_iommu_support_va()
|
| /dpdk/doc/guides/regexdevs/ |
| H A D | features_overview.rst | 42 PCRE New line conventions 43 Support new line conventions. 45 PCRE new line SEQ 46 Support new line sequence.
|
| /dpdk/examples/pipeline/ |
| H A D | cli.c | 1066 if (!line) in pipeline_table_entries_add() 1098 free(line); in pipeline_table_entries_add() 1164 if (!line) in pipeline_table_entries_delete() 1197 free(line); in pipeline_table_entries_delete() 1262 if (!line) in pipeline_table_default_entry_add() 1295 free(line); in pipeline_table_default_entry_add() 1609 if (!line) in pipeline_selector_group_members_add() 1642 free(line); in pipeline_selector_group_members_add() 1720 if (!line) in pipeline_selector_group_members_delete() 1752 free(line); in pipeline_selector_group_members_delete() [all …]
|
| /dpdk/usertools/ |
| H A D | dpdk-hugepages.py | 129 for line in meminfo: 130 if line.startswith('Hugepagesize:'): 131 return int(line.split()[1]) 165 for line in mounts: 166 fields = line.split()
|
| /dpdk/doc/guides/tools/ |
| H A D | testeventdev.rst | 17 The application has a number of command line options: 26 The following are the EAL command-line options that can be used in conjunction 42 The following are the application command-line options: 261 Supported application command line options are following:: 324 Supported application command line options are following:: 390 command line arguments respectively. 414 Supported application command line options are following:: 526 Supported application command line options are following:: 623 ``--wlcores`` and the ``--stlist`` application command line arguments 653 Supported application command line options are following:: [all …]
|
| /dpdk/drivers/net/qede/base/ |
| H A D | ecore_cxt.c | 891 line += lines_to_skip; in ecore_ilt_blk_alloc() 906 ilt_shadow[line].phys_addr = p_phys; in ecore_ilt_blk_alloc() 907 ilt_shadow[line].virt_addr = p_virt; in ecore_ilt_blk_alloc() 908 ilt_shadow[line].size = size; in ecore_ilt_blk_alloc() 916 line++; in ecore_ilt_blk_alloc() 1571 u32 line, rt_offst, i; in ecore_ilt_init_pf() local 1598 (p_shdw[line].phys_addr >> 12)); in ecore_ilt_init_pf() 1604 rt_offst, line, i, in ecore_ilt_init_pf() 1605 (unsigned long)(p_shdw[line]. in ecore_ilt_init_pf() 1938 line = p_info->iid / cxts_per_p; in ecore_cxt_get_cid_info() [all …]
|
| /dpdk/doc/guides/contributing/ |
| H A D | coding_style.rst | 30 Generally, line lengths up to 100 characters are acceptable in the code. 44 * VERY important single-line comments look like this. 47 /* Most single-line comments look like this. */ 50 * Multi-line comments look like this. Make them real sentences. Fill 297 * Each structure element gets its own line. 444 …Alternatively, the line continuation may use additional spaces to line up to an appropriately poin… 469 * Do not add whitespace at the end of a line. 471 * Do not add whitespace or a blank line at the end of a file. 562 …ns would cause the line to exceed a reasonable line length, begin a new set of declarations on the… 571 char a = 0; /* OK, one variable per line with initializer */ [all …]
|
| /dpdk/drivers/common/mlx5/linux/ |
| H A D | mlx5_common_os.c | 36 char line[32]; in mlx5_get_pci_addr() local 45 while (fgets(line, sizeof(line), file) == line) { in mlx5_get_pci_addr() 46 size_t len = strlen(line); in mlx5_get_pci_addr() 49 if (len == (sizeof(line) - 1)) { in mlx5_get_pci_addr() 50 while (line[(len - 1)] != '\n') { in mlx5_get_pci_addr() 55 line[(len - 1)] = ret; in mlx5_get_pci_addr() 61 if (sscanf(line, in mlx5_get_pci_addr()
|
| /dpdk/app/test-bbdev/ |
| H A D | test_bbdev_vector.c | 1367 char *line = NULL; in test_bbdev_vector_read() local 1376 while (getline(&line, &len, fp) != -1) { in test_bbdev_vector_read() 1379 if (line[0] == '#' || line[0] == '/' || line[0] == '\n' in test_bbdev_vector_read() 1380 || line[0] == '\r') in test_bbdev_vector_read() 1383 trim_space(line); in test_bbdev_vector_read() 1393 strcpy(entry, line); in test_bbdev_vector_read() 1399 trim_space(line); in test_bbdev_vector_read() 1403 strlen(line) + in test_bbdev_vector_read() 1408 strlen(line) + in test_bbdev_vector_read() 1416 strcpy(&entry[strlen(entry)], line); in test_bbdev_vector_read() [all …]
|