Home
last modified time | relevance | path

Searched refs:_p (Results 1 – 25 of 49) sorted by relevance

12

/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Include/IndustryStandard/
Dpci22.h265 #define IS_CLASS1(_p, c) ((_p)->Hdr.ClassCode[2] == (c)) argument
266 #define IS_CLASS2(_p, c, s) (IS_CLASS1 (_p, c) && ((_p)->Hdr.ClassCode[1] == (s))) argument
267 #define IS_CLASS3(_p, c, s, p) (IS_CLASS2 (_p, c, s) && ((_p)->Hdr.ClassCode[0] == (p))) argument
269 #define IS_PCI_DISPLAY(_p) IS_CLASS1 (_p, PCI_CLASS_DISPLAY) argument
270 #define IS_PCI_VGA(_p) IS_CLASS3 (_p, PCI_CLASS_DISPLAY, PCI_CLASS_DISPLAY_VGA, 0) argument
271 #define IS_PCI_8514(_p) IS_CLASS3 (_p, PCI_CLASS_DISPLAY, PCI_CLASS_DISPLAY_VGA, 1) argument
272 #define IS_PCI_GFX(_p) IS_CLASS3 (_p, PCI_CLASS_DISPLAY, PCI_CLASS_DISPLAY_GFX, 0) argument
273 #define IS_PCI_OLD(_p) IS_CLASS1 (_p, PCI_CLASS_OLD) argument
274 #define IS_PCI_OLD_VGA(_p) IS_CLASS2 (_p, PCI_CLASS_OLD, PCI_CLASS_OLD_VGA) argument
275 #define IS_PCI_IDE(_p) IS_CLASS2 (_p, PCI_CLASS_MASS_STORAGE, PCI_CLASS_MASS_STORAGE… argument
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/C/Include/IndustryStandard/
Dpci22.h256 #define IS_CLASS1(_p, c) ((_p)->Hdr.ClassCode[2] == (c)) argument
257 #define IS_CLASS2(_p, c, s) (IS_CLASS1 (_p, c) && ((_p)->Hdr.ClassCode[1] == (s))) argument
258 #define IS_CLASS3(_p, c, s, p) (IS_CLASS2 (_p, c, s) && ((_p)->Hdr.ClassCode[0] == (p))) argument
260 #define IS_PCI_DISPLAY(_p) IS_CLASS1 (_p, PCI_CLASS_DISPLAY) argument
261 #define IS_PCI_VGA(_p) IS_CLASS3 (_p, PCI_CLASS_DISPLAY, PCI_CLASS_DISPLAY_VGA, 0) argument
262 #define IS_PCI_8514(_p) IS_CLASS3 (_p, PCI_CLASS_DISPLAY, PCI_CLASS_DISPLAY_VGA, 1) argument
263 #define IS_PCI_GFX(_p) IS_CLASS3 (_p, PCI_CLASS_DISPLAY, PCI_CLASS_DISPLAY_GFX, 0) argument
264 #define IS_PCI_OLD(_p) IS_CLASS1 (_p, PCI_CLASS_OLD) argument
265 #define IS_PCI_OLD_VGA(_p) IS_CLASS2 (_p, PCI_CLASS_OLD, PCI_CLASS_OLD_VGA) argument
266 #define IS_PCI_IDE(_p) IS_CLASS2 (_p, PCI_CLASS_MASS_STORAGE, PCI_CLASS_MASS_STORAGE… argument
[all …]
/device/linaro/bootloader/arm-trusted-firmware/include/common/
Dparam_header.h22 #define SET_PARAM_HEAD(_p, _type, _ver, _attr) do { \ argument
23 (_p)->h.type = (uint8_t)(_type); \
24 (_p)->h.version = (uint8_t)(_ver); \
25 (_p)->h.size = (uint16_t)sizeof(*_p); \
26 (_p)->h.attr = (uint32_t)(_attr) ; \
30 #define SET_STATIC_PARAM_HEAD(_p, _type, _ver, _p_type, _attr) \ argument
31 ._p.h.type = (uint8_t)(_type), \
32 ._p.h.version = (uint8_t)(_ver), \
33 ._p.h.size = (uint16_t)sizeof(_p_type), \
34 ._p.h.attr = (uint32_t)(_attr)
/device/linaro/bootloader/edk2/MdePkg/Include/IndustryStandard/
DPci22.h317 #define IS_CLASS1(_p, c) ((_p)->Hdr.ClassCode[2] == (c)) argument
329 #define IS_CLASS2(_p, c, s) (IS_CLASS1 (_p, c) && ((_p)->Hdr.ClassCode[1] == (s))) argument
342 #define IS_CLASS3(_p, c, s, p) (IS_CLASS2 (_p, c, s) && ((_p)->Hdr.ClassCode[0] == (p))) argument
353 #define IS_PCI_DISPLAY(_p) IS_CLASS1 (_p, PCI_CLASS_DISPLAY) argument
363 #define IS_PCI_VGA(_p) IS_CLASS3 (_p, PCI_CLASS_DISPLAY, PCI_CLASS_DISPLAY_VGA, PCI_… argument
373 #define IS_PCI_8514(_p) IS_CLASS3 (_p, PCI_CLASS_DISPLAY, PCI_CLASS_DISPLAY_VGA, PCI_… argument
383 #define IS_PCI_OLD(_p) IS_CLASS1 (_p, PCI_CLASS_OLD) argument
393 #define IS_PCI_OLD_VGA(_p) IS_CLASS2 (_p, PCI_CLASS_OLD, PCI_CLASS_OLD_VGA) argument
403 #define IS_PCI_IDE(_p) IS_CLASS2 (_p, PCI_CLASS_MASS_STORAGE, PCI_CLASS_MASS_STORAGE… argument
413 #define IS_PCI_SCSI(_p) IS_CLASS2 (_p, PCI_CLASS_MASS_STORAGE, PCI_CLASS_MASS_STORAGE… argument
[all …]
DPci30.h47 #define IS_PCI_SATADPA(_p) IS_CLASS2 (_p, PCI_CLASS_MASS_STORAGE, PCI_CLASS_MASS_STORAGE_SATADPA) argument
/device/linaro/bootloader/arm-trusted-firmware/include/lib/psci/
Dpsci_lib.h50 #define SET_PSCI_LIB_ARGS_V1(_p, _entry) do { \ argument
51 SET_PARAM_HEAD(_p, PARAM_PSCI_LIB_ARGS, VERSION_1, 0); \
52 (_p)->mailbox_ep = (_entry); \
66 #define VERIFY_PSCI_LIB_ARGS_V1(_p) ((_p) \ argument
67 && ((_p)->h.type == PARAM_PSCI_LIB_ARGS) \
68 && ((_p)->h.version == VERSION_1) \
69 && ((_p)->h.size == sizeof(*(_p))) \
70 && ((_p)->h.attr == 0) \
71 && ((_p)->mailbox_ep))
/device/linaro/bootloader/edk2/StdLib/LibC/Stdio/
Dfgetstr.c118 if ((p = memchr((void *)fp->_p, sep, (size_t)fp->_r)) != NULL) { in __fgetstr()
127 ret = (char *)fp->_p; in __fgetstr()
128 *lenp = len = p - fp->_p; in __fgetstr()
131 fp->_p = p; in __fgetstr()
155 (void)memcpy((void *)(fp->_lb._base + off), (void *)fp->_p, in __fgetstr()
160 if ((p = memchr((void *)fp->_p, sep, (size_t)fp->_r)) == NULL) in __fgetstr()
165 diff = p - fp->_p; in __fgetstr()
169 (void)memcpy((void *)(fp->_lb._base + off), (void *)fp->_p, in __fgetstr()
172 fp->_p = p; in __fgetstr()
Dfvwrite.c88 #define COPY(n) (void)memcpy((void *)fp->_p, (void *)p, (size_t)(n)) in __sfvwrite()
131 size_t blen = fp->_p - fp->_bf._base; in __sfvwrite()
147 fp->_p = _base + blen; in __sfvwrite()
155 fp->_p += w; in __sfvwrite()
157 } else if (fp->_p > fp->_bf._base && len > (size_t)w) { in __sfvwrite()
161 fp->_p += w; in __sfvwrite()
174 fp->_p += w; in __sfvwrite()
198 if (fp->_p > fp->_bf._base && s > w) { in __sfvwrite()
201 fp->_p += w; in __sfvwrite()
212 fp->_p += w; in __sfvwrite()
Dungetc.c86 fp->_p = p; in __submore()
95 fp->_p = p + i; in __submore()
147 *--fp->_p = (unsigned char)c; in ungetc()
159 if (fp->_bf._base != NULL && fp->_p > fp->_bf._base && in ungetc()
160 fp->_p[-1] == c) { in ungetc()
161 fp->_p--; in ungetc()
172 fp->_up = fp->_p; in ungetc()
176 fp->_p = &fp->_ubuf[sizeof(fp->_ubuf) - 1]; in ungetc()
Dvfscanf.c202 isspace(*fp->_p)) in __svfscanf_unlocked()
203 nread++, fp->_r--, fp->_p++; in __svfscanf_unlocked()
223 if (*fp->_p != c) in __svfscanf_unlocked()
225 fp->_r--, fp->_p++; in __svfscanf_unlocked()
382 while (isspace(*fp->_p)) { in __svfscanf_unlocked()
385 fp->_p++; in __svfscanf_unlocked()
420 buf[n++] = *fp->_p; in __svfscanf_unlocked()
421 fp->_p++; in __svfscanf_unlocked()
454 fp->_p += n; in __svfscanf_unlocked()
463 fp->_p += width; in __svfscanf_unlocked()
[all …]
Dfread.c84 (void)memcpy((void *)p, (void *)fp->_p, (size_t)r); in fread()
85 fp->_p += r; in fread()
95 (void)memcpy((void *)p, (void *)fp->_p, resid); in fread()
97 fp->_p += resid; in fread()
Dfseeko.c135 } else if (fp->_flags & __SWR && fp->_p != NULL) in __weak_alias()
136 curoff += fp->_p - fp->_bf._base; in __weak_alias()
222 n = fp->_p - fp->_bf._base; in __weak_alias()
237 fp->_p = fp->_bf._base + o; in __weak_alias()
262 fp->_p = fp->_bf._base; in __weak_alias()
274 fp->_p += n; in __weak_alias()
296 fp->_p = fp->_bf._base; in __weak_alias()
Dsnprintf.c83 f._bf._base = f._p = dummy; in __weak_alias()
86 f._bf._base = f._p = (unsigned char *)str; in __weak_alias()
90 *f._p = 0; in __weak_alias()
Dvsnprintf.c76 f._bf._base = f._p = dummy; in __weak_alias()
79 f._bf._base = f._p = (unsigned char *)str; in __weak_alias()
83 *f._p = 0; in __weak_alias()
Dfgets.c93 p = fp->_p; in fgets()
107 fp->_p = t; in fgets()
114 fp->_p += len; in fgets()
Drefill.c127 fp->_p = fp->_up; in __srefill()
146 fp->_p = fp->_bf._base; in __srefill()
147 fp->_r = (*fp->_read)(fp->_cookie, (char *)fp->_p, fp->_bf._size); in __srefill()
Dmakebuf.c79 fp->_bf._base = fp->_p = fp->_nbuf; in __smakebuf()
87 fp->_bf._base = fp->_p = fp->_nbuf; in __smakebuf()
93 fp->_bf._base = fp->_p = p; in __smakebuf()
Dvsprintf.c68 f._bf._base = f._p = (unsigned char *)str; in vsprintf()
71 *f._p = 0; in vsprintf()
Dsprintf.c71 f._bf._base = f._p = (unsigned char *)str; in sprintf()
76 *f._p = 0; in sprintf()
Dwbuf.c94 n = (int)(fp->_p - fp->_bf._base); in __swbuf()
101 *fp->_p++ = (unsigned char)c; in __swbuf()
Dftell.c93 } else if (fp->_flags & __SWR && fp->_p != NULL) { in ftell()
99 pos += fp->_p - fp->_bf._base; in ftell()
/device/linaro/bootloader/edk2/DuetPkg/PciBusNoEnumerationDxe/
DPciBus.h221 #define IS_ISA_BRIDGE(_p) IS_CLASS2 (_p, PCI_CLASS_BRIDGE, PCI_CLASS_BRIDGE_ISA) argument
222 …e IS_INTEL_ISA_BRIDGE(_p) (IS_CLASS2 (_p, PCI_CLASS_BRIDGE, PCI_CLASS_BRIDGE_ISA_PDECODE) && ((_p)… argument
223 #define IS_PCI_GFX(_p) IS_CLASS2 (_p, PCI_CLASS_DISPLAY, PCI_CLASS_DISPLAY_OTHER) argument
/device/linaro/bootloader/edk2/StdLib/Include/
Dstdio.h220 unsigned char *_p; /**< current position in (some) buffer */ member
1572 #define __sgetc(p) (--(p)->_r < 0 ? __srget(p) : (int)(*(p)->_p++))
1575 static __inline int __sputc(int _c, FILE *_p) { in __sputc() argument
1576 if (--_p->_w >= 0 || (_p->_w >= _p->_lbfsize && (char)_c != '\n')) in __sputc()
1577 return (*_p->_p++ = _c); in __sputc()
1579 return (__swbuf(_c, _p)); in __sputc()
1588 (*(p)->_p = (unsigned char)(c)), *(p)->_p != '\n' ? \
1589 (int)*(p)->_p++ : \
1592 (*(p)->_p = (unsigned char)(c), (int)*(p)->_p++))
/device/linaro/bootloader/edk2/CorebootPayloadPkg/Library/PlatformBootManagerLib/
DPlatformConsole.h29 #define IS_PCI_ISA_PDECODE(_p) IS_CLASS3 (_p, PCI_CLASS_BRIDGE, PCI_CLASS_BRIDGE_ISA_PDECODE… argument
30 #define IS_PCI_16550SERIAL(_p) IS_CLASS3 (_p, PCI_CLASS_SCC, PCI_SUBCLASS_SERIAL, PCI_IF_165… argument
/device/linaro/bootloader/edk2/OvmfPkg/Library/PlatformBootManagerLib/
DBdsPlatform.h150 #define IS_PCI_16550SERIAL(_p) IS_CLASS3 (_p, PCI_CLASS_SCC, PCI_SUBCLASS_SERIAL, PCI_IF_… argument
151 #define IS_PCI_ISA_PDECODE(_p) IS_CLASS3 (_p, PCI_CLASS_BRIDGE, PCI_CLASS_BRIDGE_ISA_PDECODE… argument

12