/device/linaro/bootloader/edk2/StdLib/Include/sys/ |
H A D | dirent.h | 106 #define _DIRENT_ALIGN(dp) (sizeof((dp)->Size) - 1)
112 #define _DIRENT_NAMEOFF(dp) \
113 ((char *)(void *)&(dp)->FileName - (char *)(void *)dp)
121 #define _DIRENT_RECLEN(dp, namlen) \
122 ((_DIRENT_NAMEOFF(dp) + (namlen) + 1 + _DIRENT_ALIGN(dp)) & \
123 ~_DIRENT_ALIGN(dp))
125 #define _DIRENT_NAMELEN(dp) \
[all...] |
/device/linaro/bootloader/edk2/StdLib/PosixLib/Gen/ |
H A D | readdir.c | 63 struct dirent *dp;
local 77 dp = (struct dirent *) (void *)(dirp->dd_buf + (size_t)dirp->dd_loc);
78 if ((intptr_t)dp & _DIRENT_ALIGN(dp))/* bogus pointer check */
80 dirp->dd_loc += (long)dp->Size;
81 if ((dp->Attribute & DT_HIDDEN) && (dirp->dd_flags & DTF_HIDEW))
83 return (dp);
90 struct dirent *dp;
local 95 dp = _readdir_unlocked(dirp, 1);
100 dp 107 struct dirent *dp; local [all...] |
/device/google/marlin/dataservices/datatop/src/ |
H A D | datatop_helpers.c | 53 * @param dp Dp whose name and prefix is printed. 54 * @param prefix Directory where dp is contained. 59 static int dtop_format_dp_names(struct dtop_data_point *dp, const char argument 62 if (dp->prefix) { 63 if (fprintf(fw, "\"%s:%s:%s\",", prefix, dp->prefix, 64 dp->name) < 0) 67 if (fprintf(fw, "\"%s::%s\",", prefix, dp->name) < 0) 78 * @param dp Pointer to the data_point struct which holds the value that will 84 static int dtop_format_dp_values(struct dtop_data_point *dp, FILE *fw) argument 86 switch (dp 133 dtop_format_text_for_snapshot(struct dtop_data_point_gatherer *dpset, struct dtop_data_point dp) argument 151 dtop_print_dp_csv(struct dtop_data_point *dp, FILE *fw) argument 166 dtop_print_dp(struct dtop_data_point *dp, const char *prefix) argument 182 dtop_handle_dp_type_for_snapshot( struct dtop_data_point_gatherer *dpset, struct dtop_data_point dp) argument 316 dtop_store_dp(struct dtop_data_point *dp, const char *str) argument [all...] |
H A D | datatop_cpu_stats_poll.c | 64 DIR *dp; local 75 dp = opendir("/sys/devices/system/cpu/"); 76 if (dp == NULL) { 85 while ((entry = readdir(dp))) { 100 closedir(dp); 113 struct dtop_data_point *dp = local 120 dp[0].type = DTOP_ULONG; 121 dp[0].name = malloc(5); 122 strlcpy(dp[0].name, "", 5); 123 dp[ [all...] |
H A D | datatop_gen_poll.c | 146 * @brief Creates a dpg and all necessary dp's corresponding to it. 148 * Dynamically allocates memory for dpg and dp structs which are then 153 * @param name Name of file that dpg represents, assigned to a dp name. 175 struct dtop_data_point *dp = malloc local 179 dp[i].name = malloc(strlen(name) + 1); 180 strlcpy(dp[i].name, name, strlen(name) + 1); 191 dp[i].name = malloc(dpn_len); 192 strlcpy(dp[i].name, newname, dpn_len); 196 dp[i].prefix = NULL; 197 dp[ 223 DIR *dp; local [all...] |
H A D | datatop_dev_poll.c | 53 * Array of strings where necessary dp names and values are held. 121 int dp = 0; local 151 /* Assigns the dp value to the dp struct */ 155 dtop_store_dp(&(dpg->data_points[dp]), 157 dp++; 178 int i, j, dp; local 179 dp = 0; 183 free(dpset->data_points[dp].prefix); 184 dp 243 int dp = 0; local [all...] |
H A D | datatop_interface.h | 74 * @brief Provides the type for dp value. 93 * Stores the individual prefix for the dp. 95 * Type dp value is, see definitions. 97 * Holds the initial value of the dp the first time it was polled. 101 * Value of the dp at the most recent poll. 130 * Pointer to a dtop_data_point struct (dp). 132 * Number of elements in the array of dp's the dpg accesses. 148 void dtop_store_dp(struct dtop_data_point *dp, const char *str);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/ |
H A D | strtod.c | 70 register char *sp, *dp;
local 80 dp = buffer;
81 *dp++ = '0'; *dp++ = '.';
82 buforg = dp, buflim = buffer+48;
92 if (dp != buforg) {
94 if (dp < buflim) *dp++ = c;
103 if (dp < buflim) *dp [all...] |
H A D | import.c | 1625 struct dirent *dp;
1646 while ((dp = readdir(dirp)) != NULL) {
1649 dp->d_namlen;
1651 strlen(dp->d_name);
1654 strcmp(dp->d_name, nameWithExt) == 0) {
|
/device/google/cuttlefish_common/guest/commands/vport_trigger/ |
H A D | main.cpp | 60 dirent *dp; local 61 while ((dp = readdir(dir)) != nullptr) { 62 std::string dirname = dp->d_name;
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/ |
H A D | dictobject.h | 149 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/ |
H A D | dictobject.h | 149 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/arm-trusted-firmware/plat/rockchip/rk3399/ |
H A D | platform.mk | 21 -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/ |
H A D | DebugPort.h | 83 #define IS_UART_DEVICEPATH(dp) (DevicePathType (dp) == MESSAGING_DEVICE_PATH && DevicePathSubType (dp) == MSG_UART_DP)
|
/device/linaro/bootloader/edk2/StdLib/Include/Ipf/machine/ |
H A D | pmap.h | 128 #define pmap_copy(dp, sp, da, l, sa) /* nothing */
|
/device/google/marlin/usb/ |
H A D | Usb.cpp | 330 DIR *dp; local 332 dp = opendir("/sys/class/typec"); 333 if (dp != NULL) { 336 while ((ep = readdir(dp))) { 349 closedir(dp); 546 DIR *dp = opendir(std::string("/sys/class/typec/" local 549 if (dp == NULL) { 553 closedir(dp);
|
/device/google/wahoo/thermal/ |
H A D | thermal-helper.cpp | 100 struct dirent* dp; local 102 while ((dp = readdir(thermal_zone_dir.get())) != nullptr) { 103 std::string dir_name(dp->d_name);
|
/device/google/wahoo/usb/ |
H A D | Usb.cpp | 379 DIR *dp; local 381 dp = opendir("/sys/class/typec"); 382 if (dp != NULL) { 385 while ((ep = readdir(dp))) { 398 closedir(dp); 596 DIR *dp = opendir(std::string("/sys/class/typec/" local 599 if (dp == NULL) { 603 closedir(dp);
|
/device/linaro/bootloader/edk2/StdLib/PosixLib/Glob/ |
H A D | glob.c | 676 struct dirent *dp;
local 725 while ((dp = (*readdirfunc)(dirp)) != NULL) {
742 if (dp->FileName[0] == DOT && *pattern != DOT)
748 (dp->FileName[0] == DOT) &&
749 ((dp->FileName[1] == EOS) ||
750 ((dp->FileName[1] == DOT) && (dp->FileName[2] == EOS))))
756 for (sc = (u_char *) dp->FileName, dc = pathend;
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
H A D | test_struct.py | 86 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/ |
H A D | import.c | 1625 struct dirent *dp;
1646 while ((dp = readdir(dirp)) != NULL) {
1649 dp->d_namlen;
1651 strlen(dp->d_name);
1654 strcmp(dp->d_name, nameWithExt) == 0) {
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/ |
H A D | import.c | 1710 struct dirent *dp;
1731 while ((dp = readdir(dirp)) != NULL) {
1734 dp->d_namlen;
1736 strlen(dp->d_name);
1739 strcmp(dp->d_name, nameWithExt) == 0) {
|