/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 | 92 DIR *dp; in iioutils_get_type() local 113 dp = opendir(scan_el_dir); in iioutils_get_type() 114 if (!dp) { in iioutils_get_type() 120 while (ent = readdir(dp), ent) in iioutils_get_type() 193 if (closedir(dp) == -1) in iioutils_get_type() 222 DIR *dp; in iioutils_get_param_float() local 238 dp = opendir(device_dir); in iioutils_get_param_float() 239 if (!dp) { in iioutils_get_param_float() 245 while (ent = readdir(dp), ent) in iioutils_get_param_float() 273 if (closedir(dp) == -1) in iioutils_get_param_float() [all …]
|
D | iio_generic_buffer.c | 215 DIR *dp; in enable_disable_all_channels() local 222 dp = opendir(scanelemdir); in enable_disable_all_channels() 223 if (!dp) { in enable_disable_all_channels() 230 while (ent = readdir(dp), ent) { in enable_disable_all_channels() 243 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 | 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 | 195 DIR *dp; in main() local 198 dp = opendir("/dev"); in main() 199 if (!dp) { in main() 205 while (ent = readdir(dp), ent) { in main() 214 if (closedir(dp) == -1) { in main()
|
/tools/testing/selftests/resctrl/ |
D | resctrlfs.c | 368 DIR *dp; in create_grp() local 379 dp = opendir(parent_grp); in create_grp() 380 if (dp) { in create_grp() 381 while ((ep = readdir(dp)) != NULL) { in create_grp() 385 closedir(dp); in create_grp() 566 DIR *dp; in check_resctrlfs_support() local 585 dp = opendir(RESCTRL_PATH); in check_resctrlfs_support() 587 dp ? "" : "not ", RESCTRL_PATH); in check_resctrlfs_support() 588 if (dp) in check_resctrlfs_support() 589 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/gpio/ |
D | gpio-mockup-chardev.c | 132 DIR *dp; in list_gpiochip() local 142 dp = opendir("/dev"); in list_gpiochip() 143 if (!dp) { in list_gpiochip() 150 while (ent = readdir(dp), ent) { in list_gpiochip() 188 closedir(dp); in list_gpiochip()
|
/tools/testing/selftests/filesystems/incfs/ |
D | utils.c | 332 struct dirent *dp; in delete_dir_tree() local 341 while ((dp = readdir(dir))) { in delete_dir_tree() 344 if (!strcmp(dp->d_name, ".") || !strcmp(dp->d_name, "..")) in delete_dir_tree() 347 full_path = concat_file_name(dir_path, dp->d_name); in delete_dir_tree() 348 if (dp->d_type == DT_DIR) in delete_dir_tree()
|
/tools/testing/selftests/net/forwarding/ |
D | tc_police.sh | 135 -t udp sp=12345,dp=54321 -p 1000 -c 0 -q & 185 -t udp sp=12345,dp=$dport -p 1000 -c 0 -q & 255 -t udp sp=12345,dp=54321 -p 1000 -c 0 -q & 312 -t udp sp=12345,dp=54321 -p 1001 -c 10 -q 315 -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/perf/pmu-events/arch/x86/ |
D | mapfile.csv | 31 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/perf/scripts/python/ |
D | exported-sql-viewer.py | 1387 self.dp = XY(0, 0) 2079 def __init__(self, scale, subrange, region_attributes, dp): argument 2084 self.dp = dp # data decimal places 2094 return round((round(px, 0) / self.scale.x), self.dp.x) + self.subrange.x.lo 2097 return round((round(py, 0) / self.scale.y), self.dp.y) + self.subrange.y.lo 2115 def ToPDP(self, dp, scale): argument 2123 x = math.log10((10 ** dp) * scale) 2132 x = self.ToPDP(self.dp.x, self.scale.x) 2133 y = self.ToPDP(self.dp.y, self.scale.y) 2219 self.attrs = GraphAttributes(scale, subrange, region_attributes, collection.dp)
|