Home
last modified time | relevance | path

Searched refs:dp (Results 1 – 25 of 29) sorted by relevance

12

/device/google/marlin/dataservices/datatop/src/
Ddatatop_helpers.c59 static int dtop_format_dp_names(struct dtop_data_point *dp, const char in dtop_format_dp_names() argument
62 if (dp->prefix) { in dtop_format_dp_names()
63 if (fprintf(fw, "\"%s:%s:%s\",", prefix, dp->prefix, in dtop_format_dp_names()
64 dp->name) < 0) in dtop_format_dp_names()
67 if (fprintf(fw, "\"%s::%s\",", prefix, dp->name) < 0) in dtop_format_dp_names()
84 static int dtop_format_dp_values(struct dtop_data_point *dp, FILE *fw) in dtop_format_dp_values() argument
86 switch (dp->type) { in dtop_format_dp_values()
88 if (fprintf(fw, "%"PRIu64, dp->data.d_ulong) < 0) in dtop_format_dp_values()
92 if (fprintf(fw, "%"PRId64, dp->data.d_long) < 0) in dtop_format_dp_values()
96 if (fprintf(fw, "%d", dp->data.d_uint) < 0) in dtop_format_dp_values()
[all …]
Ddatatop_cpu_stats_poll.c64 DIR *dp; in dtop_cpu_search() local
75 dp = opendir("/sys/devices/system/cpu/"); in dtop_cpu_search()
76 if (dp == NULL) { in dtop_cpu_search()
85 while ((entry = readdir(dp))) { in dtop_cpu_search()
100 closedir(dp); in dtop_cpu_search()
113 struct dtop_data_point *dp = in construct_cpu_stat_dpg() local
120 dp[0].type = DTOP_ULONG; in construct_cpu_stat_dpg()
121 dp[0].name = malloc(5); in construct_cpu_stat_dpg()
122 strlcpy(dp[0].name, "", 5); in construct_cpu_stat_dpg()
123 dp[0].prefix = NULL; in construct_cpu_stat_dpg()
[all …]
Ddatatop_gen_poll.c175 struct dtop_data_point *dp = malloc in dpg_construction() local
179 dp[i].name = malloc(strlen(name) + 1); in dpg_construction()
180 strlcpy(dp[i].name, name, strlen(name) + 1); in dpg_construction()
191 dp[i].name = malloc(dpn_len); in dpg_construction()
192 strlcpy(dp[i].name, newname, dpn_len); in dpg_construction()
196 dp[i].prefix = NULL; in dpg_construction()
197 dp[i].type = DTOP_ULONG; in dpg_construction()
198 dp[i].skip = DO_NOT_SKIP; in dpg_construction()
199 dp[i].initial_data_populated = NOT_POPULATED; in dpg_construction()
202 dpg->data_points = dp; in dpg_construction()
[all …]
Ddatatop_dev_poll.c121 int dp = 0; in dtop_dev_poll() local
155 dtop_store_dp(&(dpg->data_points[dp]), in dtop_dev_poll()
157 dp++; in dtop_dev_poll()
178 int i, j, dp; in dtop_dev_dpg_deconstructor() local
179 dp = 0; in dtop_dev_dpg_deconstructor()
183 free(dpset->data_points[dp].prefix); in dtop_dev_dpg_deconstructor()
184 dp++; in dtop_dev_dpg_deconstructor()
243 int dp = 0; in dtop_dev_search() local
291 data_points[dp].skip = 0; in dtop_dev_search()
292 data_points[dp].initial_data_populated = NOT_POPULATED; in dtop_dev_search()
[all …]
Ddatatop_interface.h148 void dtop_store_dp(struct dtop_data_point *dp, const char *str);
/device/linaro/bootloader/edk2/StdLib/Include/sys/
Ddirent.h106 #define _DIRENT_ALIGN(dp) (sizeof((dp)->Size) - 1) argument
112 #define _DIRENT_NAMEOFF(dp) \ argument
113 ((char *)(void *)&(dp)->FileName - (char *)(void *)dp)
121 #define _DIRENT_RECLEN(dp, namlen) \ argument
122 ((_DIRENT_NAMEOFF(dp) + (namlen) + 1 + _DIRENT_ALIGN(dp)) & \
123 ~_DIRENT_ALIGN(dp))
125 #define _DIRENT_NAMELEN(dp) \ argument
126 ((dp)->Size - _DIRENT_NAMEOFF(dp) - 1)
132 #define _DIRENT_SIZE(dp) _DIRENT_RECLEN(dp, _DIRENT_NAMELEN(dp)) argument
137 #define _DIRENT_NEXT(dp) ((void *)((char *)(void *)(dp) + (dp)->Size)) argument
[all …]
/device/linaro/bootloader/edk2/StdLib/PosixLib/Gen/
Dreaddir.c63 struct dirent *dp; in _readdir_unlocked() local
77 dp = (struct dirent *) (void *)(dirp->dd_buf + (size_t)dirp->dd_loc); in _readdir_unlocked()
78 if ((intptr_t)dp & _DIRENT_ALIGN(dp))/* bogus pointer check */ in _readdir_unlocked()
80 dirp->dd_loc += (long)dp->Size; in _readdir_unlocked()
81 if ((dp->Attribute & DT_HIDDEN) && (dirp->dd_flags & DTF_HIDEW)) in _readdir_unlocked()
83 return (dp); in _readdir_unlocked()
90 struct dirent *dp; in readdir() local
95 dp = _readdir_unlocked(dirp, 1); in readdir()
100 dp = _readdir_unlocked(dirp, 1); in readdir()
101 return (dp); in readdir()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dstrtod.c70 register char *sp, *dp; in strtod() local
80 dp = buffer; in strtod()
81 *dp++ = '0'; *dp++ = '.'; in strtod()
82 buforg = dp, buflim = buffer+48; in strtod()
92 if (dp != buforg) { in strtod()
94 if (dp < buflim) *dp++ = c; in strtod()
103 if (dp < buflim) *dp++ = c; in strtod()
113 while (dp > buforg && dp[-1] == '0') --dp; in strtod()
114 if (dp == buforg) *dp++ = '0'; in strtod()
115 *dp = '\0'; in strtod()
[all …]
Dimport.c1625 struct dirent *dp; in find_module()
1646 while ((dp = readdir(dirp)) != NULL) { in find_module()
1649 dp->d_namlen; in find_module()
1651 strlen(dp->d_name); in find_module()
1654 strcmp(dp->d_name, nameWithExt) == 0) { in find_module()
/device/google/cuttlefish_common/guest/commands/vport_trigger/
Dmain.cpp60 dirent *dp; in main() local
61 while ((dp = readdir(dir)) != nullptr) { in main()
62 std::string dirname = dp->d_name; in main()
/device/linaro/bootloader/arm-trusted-firmware/plat/rockchip/rk3399/
Dplatform.mk21 -I${RK_PLAT_SOC}/drivers/dp/ \
53 ${RK_PLAT_SOC}/drivers/dp/cdn_dp.c \
80 HDCPFW=${RK_PLAT_SOC}/drivers/dp/hdcp.bin
89 ${RK_PLAT_SOC}/drivers/dp/cdn_dp.c: $(HDCPFW)
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/DebugPortDxe/
DDebugPort.h83 #define IS_UART_DEVICEPATH(dp) (DevicePathType (dp) == MESSAGING_DEVICE_PATH && DevicePat… argument
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/
Ddictobject.h149 PyAPI_FUNC(PyObject *) PyDict_GetItemString(PyObject *dp, const char *key);
150 PyAPI_FUNC(int) PyDict_SetItemString(PyObject *dp, const char *key, PyObject *item);
151 PyAPI_FUNC(int) PyDict_DelItemString(PyObject *dp, const char *key);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/
Ddictobject.h149 PyAPI_FUNC(PyObject *) PyDict_GetItemString(PyObject *dp, const char *key);
150 PyAPI_FUNC(int) PyDict_SetItemString(PyObject *dp, const char *key, PyObject *item);
151 PyAPI_FUNC(int) PyDict_DelItemString(PyObject *dp, const char *key);
/device/google/marlin/usb/
DUsb.cpp330 DIR *dp; in getTypeCPortNamesHelper() local
332 dp = opendir("/sys/class/typec"); in getTypeCPortNamesHelper()
333 if (dp != NULL) { in getTypeCPortNamesHelper()
336 while ((ep = readdir(dp))) { in getTypeCPortNamesHelper()
349 closedir(dp); in getTypeCPortNamesHelper()
546 DIR *dp = opendir(std::string("/sys/class/typec/" in uevent_event() local
549 if (dp == NULL) { in uevent_event()
553 closedir(dp); in uevent_event()
/device/google/crosshatch/usb/
DUsb.cpp355 DIR *dp; in getTypeCPortNamesHelper() local
357 dp = opendir("/sys/class/typec"); in getTypeCPortNamesHelper()
358 if (dp != NULL) { in getTypeCPortNamesHelper()
361 while ((ep = readdir(dp))) { in getTypeCPortNamesHelper()
374 closedir(dp); in getTypeCPortNamesHelper()
573 DIR *dp = opendir(std::string("/sys/class/typec/" in uevent_event() local
576 if (dp == NULL) { in uevent_event()
580 closedir(dp); in uevent_event()
/device/google/wahoo/usb/
DUsb.cpp379 DIR *dp; in getTypeCPortNamesHelper() local
381 dp = opendir("/sys/class/typec"); in getTypeCPortNamesHelper()
382 if (dp != NULL) { in getTypeCPortNamesHelper()
385 while ((ep = readdir(dp))) { in getTypeCPortNamesHelper()
398 closedir(dp); in getTypeCPortNamesHelper()
596 DIR *dp = opendir(std::string("/sys/class/typec/" in uevent_event() local
599 if (dp == NULL) { in uevent_event()
603 closedir(dp); in uevent_event()
/device/google/bonito/usb/
DUsb.cpp353 DIR *dp; in getTypeCPortNamesHelper() local
355 dp = opendir("/sys/class/typec"); in getTypeCPortNamesHelper()
356 if (dp != NULL) { in getTypeCPortNamesHelper()
359 while ((ep = readdir(dp))) { in getTypeCPortNamesHelper()
372 closedir(dp); in getTypeCPortNamesHelper()
569 DIR *dp = opendir(std::string("/sys/class/typec/" in uevent_event() local
572 if (dp == NULL) { in uevent_event()
576 closedir(dp); in uevent_event()
/device/linaro/bootloader/edk2/PerformancePkg/Dp_App/
DDpStrings.uni20 // String definitions for the Shell dp command
38 … "dp [-b] [-v] [-x] [-s | -A | -R] [-T] [-P] [-t value] [-n count] [-c [token]] [-i] [-?]\r\n"
40 … "dp [-b] [-v] [-x] [-s | -A | -R] [-t value] [-n count] [-c [token]] [-i] [-?]\r\n"
60 " -? display dp help information\r\n"
69 … "dp [-b] [-v] [-x] [-s | -A | -R] [-T] [-P] [-t value] [-n count] [-c [token]] [-i] [-?]\r\n"
71 … "dp [-b] [-v] [-x] [-s | -A | -R] [-t value] [-n count] [-c [token]] [-i] [-?]\r\n"
86 " -? montrer dp aider l'information\r\n"
91 #string STR_DP_HELP_FLAGS #language en-US "dp [-b] [-v] [-x] [-s | -A | -R] [-T] [-P]…
92 …#language fr-FR "dp [-b] [-v] [-x] [-s | -A | -R] [-T] [-P] [-t value] [-n count] [-c [token]] [-…
93 #string STR_DP_HELP_FLAGS_2 #language en-US "dp [-b] [-v] [-x] [-s | -A | -R] [-t value…
[all …]
/device/linaro/bootloader/edk2/StdLib/PosixLib/Glob/
Dglob.c676 struct dirent *dp; in glob3() local
725 while ((dp = (*readdirfunc)(dirp)) != NULL) { in glob3()
742 if (dp->FileName[0] == DOT && *pattern != DOT) in glob3()
748 (dp->FileName[0] == DOT) && in glob3()
749 ((dp->FileName[1] == EOS) || in glob3()
750 ((dp->FileName[1] == DOT) && (dp->FileName[2] == EOS)))) in glob3()
756 for (sc = (u_char *) dp->FileName, dc = pathend; in glob3()
/device/linaro/bootloader/edk2/StdLib/Include/Ipf/machine/
Dpmap.h128 #define pmap_copy(dp, sp, da, l, sa) /* nothing */ argument
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiDpLib/
DUefiDpLib.uni21 // String definitions for the Shell dp command
94 ".TH dp 0 "Display performance metrics"\r\n"
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_struct.py86 cp, bp, hp, ip, lp, fp, dp, tp = struct.unpack(format, s)
93 self.assertEqual(int(100 * dp), int(100 * d))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Python/
Dimport.c1625 struct dirent *dp; in find_module()
1646 while ((dp = readdir(dirp)) != NULL) { in find_module()
1649 dp->d_namlen; in find_module()
1651 strlen(dp->d_name); in find_module()
1654 strcmp(dp->d_name, nameWithExt) == 0) { in find_module()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Dimport.c1710 struct dirent *dp; in case_ok()
1731 while ((dp = readdir(dirp)) != NULL) { in case_ok()
1734 dp->d_namlen; in case_ok()
1736 strlen(dp->d_name); in case_ok()
1739 strcmp(dp->d_name, nameWithExt) == 0) { in case_ok()

12