/tools/iio/ |
D | lsiio.c | 42 DIR *dp; in dump_channels() local 45 dp = opendir(dev_dir_name); in dump_channels() 46 if (!dp) in dump_channels() 49 while (ent = readdir(dp), ent) in dump_channels() 55 return (closedir(dp) == -1) ? -errno : 0; in dump_channels() 105 DIR *dp; in dump_devices() local 107 dp = opendir(iio_dir); in dump_devices() 108 if (!dp) { in dump_devices() 113 while (ent = readdir(dp), ent) { in dump_devices() 134 rewinddir(dp); in dump_devices() [all …]
|
D | iio_utils.c | 94 DIR *dp; in iioutils_get_type() local 115 dp = opendir(scan_el_dir); in iioutils_get_type() 116 if (!dp) { in iioutils_get_type() 122 while (ent = readdir(dp), ent) in iioutils_get_type() 195 if (closedir(dp) == -1) in iioutils_get_type() 224 DIR *dp; in iioutils_get_param_float() local 240 dp = opendir(device_dir); in iioutils_get_param_float() 241 if (!dp) { in iioutils_get_param_float() 247 while (ent = readdir(dp), ent) in iioutils_get_param_float() 275 if (closedir(dp) == -1) in iioutils_get_param_float() [all …]
|
D | iio_event_monitor.c | 290 DIR *dp; in enable_events() local 295 dp = opendir(evdir); in enable_events() 296 if (!dp) { in enable_events() 302 while (ent = readdir(dp), ent) { in enable_events() 315 if (closedir(dp) == -1) { in enable_events()
|
D | iio_generic_buffer.c | 217 DIR *dp; in enable_disable_all_channels() local 224 dp = opendir(scanelemdir); in enable_disable_all_channels() 225 if (!dp) { in enable_disable_all_channels() 232 while (ent = readdir(dp), ent) { in enable_disable_all_channels() 245 if (closedir(dp) == -1) { in enable_disable_all_channels()
|
/tools/testing/selftests/powerpc/dscr/ |
D | dscr_sysfs_test.c | 44 struct dirent *dp; in check_all_cpu_dscr_defaults() local 53 while ((dp = readdir(sysfs))) { in check_all_cpu_dscr_defaults() 56 if (!(dp->d_type & DT_DIR)) in check_all_cpu_dscr_defaults() 58 if (!strcmp(dp->d_name, "cpuidle")) in check_all_cpu_dscr_defaults() 60 if (!strstr(dp->d_name, "cpu")) in check_all_cpu_dscr_defaults() 63 len = snprintf(file, LEN_MAX, "%s%s/dscr", CPU_PATH, dp->d_name); in check_all_cpu_dscr_defaults()
|
/tools/testing/selftests/drivers/net/mlxsw/ |
D | devlink_trap_control.sh | 309 -t udp sp=68,dp=67 -p 100 -q 313 -B 255.255.255.255 -t udp sp=67,dp=68 -p 100 -q 319 $MZ $h1 -6 -c 1 -A fe80::1 -B ff02::1:2 -t udp sp=546,dp=547 \ 323 $MZ $h1 -6 -c 1 -A fe80::1 -B ff02::1:2 -t udp sp=547,dp=546 \ 373 -A 192.0.2.1 -B 192.0.2.2 -t udp sp=49153,dp=3784 -p 100 -q 377 -A 192.0.2.1 -B 192.0.2.2 -t udp sp=49153,dp=3785 -p 100 -q 385 -t udp sp=49153,dp=3784 -p 100 -q 390 -t udp sp=49153,dp=3785 -p 100 -q 419 -A 192.0.2.1 -B 192.0.2.2 -t tcp sp=54321,dp=179,flags=rst \ 428 -t tcp sp=54321,dp=179,flags=rst -p 100 -q [all …]
|
D | tc_sample.sh | 238 -B $dip -t udp dp=52768,sp=42768 -q 338 -B 198.51.100.1 -t udp dp=52768,sp=42768 -q 364 -A 192.0.2.17 -B 198.51.100.17 -t udp dp=52768,sp=42768 -q 390 -B 198.51.100.1 -t udp dp=52768,sp=42768 -q 416 -A 192.0.2.17 -B 198.51.100.17 -t udp dp=52768,sp=42768 -q 445 -B 198.51.100.1 -t udp dp=52768,sp=42768 -q 460 -B 198.51.100.1 -t udp dp=52768,sp=42768 -q 493 -B 198.51.100.1 -t udp dp=52768,sp=42768 -q & 533 -B 198.51.100.1 -t udp dp=52768,sp=42768 -q 591 -B 198.51.100.1 -t udp dp=52768,sp=42768 -q [all …]
|
D | devlink_trap_tunnel_vxlan.sh | 176 -t udp sp=12345,dp=$VXPORT,tos=$outer_tos,p=$payload -q & 244 -B 192.0.2.17 -t udp sp=12345,dp=$VXPORT,p=$payload -q & 311 -B 192.0.2.17 -t udp sp=12345,dp=$VXPORT,p=$payload -q &
|
D | one_armed_router.sh | 147 -B 198.51.100.1 -t udp dp=52768,sp=42768 -q 190 -B 2001:db8:2::1 -t udp dp=52768,sp=42768 -q
|
/tools/gpio/ |
D | lsgpio.c | 199 DIR *dp; in main() local 202 dp = opendir("/dev"); in main() 203 if (!dp) { in main() 209 while (ent = readdir(dp), ent) { in main() 218 if (closedir(dp) == -1) { in main()
|
/tools/testing/selftests/resctrl/ |
D | resctrlfs.c | 363 DIR *dp; in create_grp() local 374 dp = opendir(parent_grp); in create_grp() 375 if (dp) { in create_grp() 376 while ((ep = readdir(dp)) != NULL) { in create_grp() 380 closedir(dp); in create_grp() 557 DIR *dp; in check_resctrlfs_support() local 579 dp = opendir(RESCTRL_PATH); in check_resctrlfs_support() 581 dp ? "Pass:" : "Fail:", RESCTRL_PATH); in check_resctrlfs_support() 582 if (dp) in check_resctrlfs_support() 583 closedir(dp); in check_resctrlfs_support()
|
D | resctrl_val.c | 228 DIR *dp; in num_of_imcs() local 230 dp = opendir(DYN_PMU_PATH); in num_of_imcs() 231 if (dp) { in num_of_imcs() 232 while ((ep = readdir(dp))) { in num_of_imcs() 256 closedir(dp); in num_of_imcs() 263 closedir(dp); in num_of_imcs()
|
/tools/testing/selftests/filesystems/incfs/ |
D | utils.c | 342 struct dirent *dp; in delete_dir_tree() local 351 while ((dp = readdir(dir))) { in delete_dir_tree() 354 if (!strcmp(dp->d_name, ".") || !strcmp(dp->d_name, "..")) in delete_dir_tree() 357 full_path = concat_file_name(dir_path, dp->d_name); in delete_dir_tree() 358 if (dp->d_type == DT_DIR) in delete_dir_tree()
|
/tools/testing/selftests/net/forwarding/ |
D | tc_police.sh | 137 -t udp sp=12345,dp=54321 -p 1000 -c 0 -q & 187 -t udp sp=12345,dp=$dport -p 1000 -c 0 -q & 257 -t udp sp=12345,dp=54321 -p 1000 -c 0 -q & 309 -t udp sp=12345,dp=54321 -p 1000 -c 0 -q & 368 -t udp sp=12345,dp=54321 -p 1001 -c 10 -q 371 -t udp sp=12345,dp=54321 -p 1000 -c 3 -q
|
D | pedit_l4port.sh | 136 -a own -b $h2mac -q -t $pedit_prot sp=54321,dp=12345
|
D | pedit_dsfield.sh | 132 -a own -b $h2mac -q -t tcp tos=0x7d,sp=54321,dp=12345
|
D | vxlan_bridge_1d.sh | 564 -t udp tos=$outer_tos,sp=23456,dp=$VXPORT,p=$(:
|
/tools/testing/selftests/filesystems/fuse/ |
D | bpf_loader.c | 525 struct dirent *dp; in delete_dir_tree() local 534 while ((dp = readdir(dir))) { in delete_dir_tree() 537 if (!strcmp(dp->d_name, ".") || !strcmp(dp->d_name, "..")) in delete_dir_tree() 540 full_path = concat_file_name(dir_path, dp->d_name); in delete_dir_tree() 541 if (dp->d_type == DT_DIR) in delete_dir_tree()
|
/tools/perf/pmu-events/arch/x86/ |
D | mapfile.csv | 32 GenuineIntel-6-2C,v2,westmereep-dp,core
|
/tools/testing/selftests/net/ |
D | drop_monitor_tests.sh | 77 -A 192.0.2.1 -B 192.0.2.10 -t udp sp=12345,dp=54321 -c 0 -q \
|
/tools/bpf/bpftool/ |
D | prog.c | 1663 DIR *dp = opendir("/proc/self/fd"); in count_open_fds() local 1667 if (!dp) in count_open_fds() 1670 while ((de = readdir(dp))) in count_open_fds() 1673 closedir(dp); in count_open_fds()
|
/tools/perf/scripts/python/ |
D | exported-sql-viewer.py | 1388 self.dp = XY(0, 0) 2080 def __init__(self, scale, subrange, region_attributes, dp): argument 2085 self.dp = dp # data decimal places 2095 return round((round(px, 0) / self.scale.x), self.dp.x) + self.subrange.x.lo 2098 return round((round(py, 0) / self.scale.y), self.dp.y) + self.subrange.y.lo 2116 def ToPDP(self, dp, scale): argument 2124 x = math.log10((10 ** dp) * scale) 2133 x = self.ToPDP(self.dp.x, self.scale.x) 2134 y = self.ToPDP(self.dp.y, self.scale.y) 2220 self.attrs = GraphAttributes(scale, subrange, region_attributes, collection.dp)
|