Home
last modified time | relevance | path

Searched refs:mode (Results 1 – 25 of 978) sorted by relevance

12345678910>>...40

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dtty.py20 mode = tcgetattr(fd)
21 mode[IFLAG] = mode[IFLAG] & ~(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
22 mode[OFLAG] = mode[OFLAG] & ~(OPOST)
23 mode[CFLAG] = mode[CFLAG] & ~(CSIZE | PARENB)
24 mode[CFLAG] = mode[CFLAG] | CS8
25 mode[LFLAG] = mode[LFLAG] & ~(ECHO | ICANON | IEXTEN | ISIG)
26 mode[CC][VMIN] = 1
27 mode[CC][VTIME] = 0
28 tcsetattr(fd, when, mode)
32 mode = tcgetattr(fd)
[all …]
Dstat.py21 def S_IMODE(mode): argument
22 return mode & 07777
24 def S_IFMT(mode): argument
25 return mode & 0170000
40 def S_ISDIR(mode): argument
41 return S_IFMT(mode) == S_IFDIR
43 def S_ISCHR(mode): argument
44 return S_IFMT(mode) == S_IFCHR
46 def S_ISBLK(mode): argument
47 return S_IFMT(mode) == S_IFBLK
[all …]
Dgzip.py27 def open(filename, mode="rb", compresslevel=9): argument
34 return GzipFile(filename, mode, compresslevel)
45 def __init__(self, filename=None, mode=None, argument
86 if mode and 'b' not in mode:
87 mode += 'b'
89 fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
93 if mode is None:
94 if hasattr(fileobj, 'mode'): mode = fileobj.mode
95 else: mode = 'rb'
97 if mode[0:1] == 'r':
[all …]
Duu.py42 def encode(in_file, out_file, name=None, mode=None): argument
54 if mode is None:
56 mode = os.stat(in_file).st_mode
74 if mode is None:
75 mode = 0666
79 out_file.write('begin %o %s\n' % ((mode&0777),name))
90 def decode(in_file, out_file=None, mode=None, quiet=0): argument
122 if mode is None:
123 mode = int(hdrfields[1], 8)
132 os.path.chmod(out_file, mode)
Dos.py136 def makedirs(name, mode=0777): argument
150 makedirs(head, mode)
157 mkdir(name, mode)
529 def _spawnvef(mode, file, args, env, func): argument
543 if mode == P_NOWAIT:
556 def spawnv(mode, file, args): argument
563 return _spawnvef(mode, file, args, None, execv)
565 def spawnve(mode, file, args, env): argument
573 return _spawnvef(mode, file, args, env, execve)
577 def spawnvp(mode, file, args): argument
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dstat.py21 def S_IMODE(mode): argument
22 return mode & 07777
24 def S_IFMT(mode): argument
25 return mode & 0170000
40 def S_ISDIR(mode): argument
41 return S_IFMT(mode) == S_IFDIR
43 def S_ISCHR(mode): argument
44 return S_IFMT(mode) == S_IFCHR
46 def S_ISBLK(mode): argument
47 return S_IFMT(mode) == S_IFBLK
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/zlib/
Dgzlib.c79 if (state->mode == GZ_READ) { /* for reading ... */
91 local gzFile gz_open(path, fd, mode) in gz_open() argument
94 const char *mode;
119 state->mode = GZ_NONE;
123 while (*mode) {
124 if (*mode >= '0' && *mode <= '9')
125 state->level = *mode - '0';
127 switch (*mode) {
129 state->mode = GZ_READ;
133 state->mode = GZ_WRITE;
[all …]
Dinflate.c115 state->mode = HEAD;
633 if (state->mode == TYPE) state->mode = TYPEDO; /* skip check */
639 switch (state->mode) {
642 state->mode = TYPEDO;
651 state->mode = FLAGS;
663 state->mode = BAD;
668 state->mode = BAD;
677 state->mode = BAD;
683 state->mode = hold & 0x200 ? DICTID : TYPE;
692 state->mode = BAD;
[all …]
/device/linaro/bootloader/edk2/StdLib/LibC/Stdio/
Dfwide.c50 fwide(FILE *fp, int mode) in fwide() argument
66 if (mode > 0) in fwide()
67 mode = 1; in fwide()
68 else if (mode < 0) in fwide()
69 mode = -1; in fwide()
76 if (wcio->wcio_mode == 0 && mode != 0) in fwide()
77 wcio->wcio_mode = mode; in fwide()
79 mode = wcio->wcio_mode; in fwide()
82 return mode; in fwide()
Dflags.c63 __sflags(const char *mode, int *optr) in __sflags() argument
67 _DIAGASSERT(mode != NULL); in __sflags()
69 switch (*mode++) { in __sflags()
98 for (; *mode; mode++) in __sflags()
99 switch (*mode) { in __sflags()
/device/linaro/bootloader/arm-trusted-firmware/plat/arm/board/fvp/
Dfvp_io_storage.c40 .mode = FOPEN_MODE_RB
44 .mode = FOPEN_MODE_RB
48 .mode = FOPEN_MODE_RB
52 .mode = FOPEN_MODE_RB
57 .mode = FOPEN_MODE_RB
61 .mode = FOPEN_MODE_RB
65 .mode = FOPEN_MODE_RB
69 .mode = FOPEN_MODE_RB
73 .mode = FOPEN_MODE_RB
77 .mode = FOPEN_MODE_RB
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/pdist/
Dcmptree.py18 mode = ''
26 s = raw_input("mode [%s] " % mode)
27 if s: mode = s
32 compare(local, remote, mode)
50 def compare(local, remote, mode): argument
68 if 'r' in mode and 'c' in mode:
78 if 'r' in mode:
82 if 'w' in mode:
91 if 'w' in mode and 'c' in mode:
93 elif 'r' in mode and 'd' in mode:
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Core/
DFileHook.py42 def __init__(self, action, path, mode=-1): argument
45 self.mode = mode
76 def bkmkfile(self, path, mode, bufsize): argument
79 return __built_in_open__(path, mode, bufsize)
89 def bkmkdir(self, path, mode): argument
92 __built_in_mkdir__(path, mode)
94 def bkchmod(self, path, mode): argument
99 __built_in_chmod__(path, mode)
140 __built_in_chmod__(item.path, item.mode)
169 def _hookmkdir(path, mode=0777): argument
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/zlib/
Dinflate.c113 state->mode = HEAD;
582 if (state->mode == TYPE) state->mode = TYPEDO; /* skip check */
588 switch (state->mode) {
591 state->mode = TYPEDO;
600 state->mode = FLAGS;
612 state->mode = BAD;
617 state->mode = BAD;
624 state->mode = BAD;
630 state->mode = hold & 0x200 ? DICTID : TYPE;
639 state->mode = BAD;
[all …]
/device/google/contexthub/firmware/os/platform/stm32/
Dspi.c144 struct dmaMode mode; in stmSpiStartDma() local
146 memset(&mode, 0, sizeof(mode)); in stmSpiStartDma()
149 mode.psize = DMA_SIZE_8_BITS; in stmSpiStartDma()
150 mode.msize = DMA_SIZE_8_BITS; in stmSpiStartDma()
152 mode.psize = DMA_SIZE_16_BITS; in stmSpiStartDma()
153 mode.msize = DMA_SIZE_16_BITS; in stmSpiStartDma()
155 mode.priority = DMA_PRIORITY_HIGH; in stmSpiStartDma()
156 mode.direction = rx ? DMA_DIRECTION_PERIPH_TO_MEM : in stmSpiStartDma()
158 mode.periphAddr = (uintptr_t)&regs->DR; in stmSpiStartDma()
159 mode.minc = minc; in stmSpiStartDma()
[all …]
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/ZLib/
Dinflate.c114 state->mode < HEAD || state->mode > SYNC)
130 state->mode = HEAD;
230 state->mode = HEAD; /* to pass state test in inflateReset2() */
650 if (state->mode == TYPE) state->mode = TYPEDO; /* skip check */
656 switch (state->mode) {
659 state->mode = TYPEDO;
670 state->mode = FLAGS;
682 state->mode = BAD;
687 state->mode = BAD;
696 state->mode = BAD;
[all …]
/device/google/contexthub/firmware/os/inc/
Dspi_priv.h30 const struct SpiMode *mode);
32 const struct SpiMode *mode);
35 size_t size, const struct SpiMode *mode);
40 int (*slaveStartSync)(struct SpiDevice *dev, const struct SpiMode *mode);
41 int (*slaveStartAsync)(struct SpiDevice *dev, const struct SpiMode *mode);
43 int (*slaveIdle)(struct SpiDevice *dev, const struct SpiMode *mode);
45 size_t size, const struct SpiMode *mode);
/device/google/contexthub/firmware/os/core/
Dspi.c40 struct SpiMode mode; member
62 spi_cs_t cs, const struct SpiMode *mode) in spiMasterStart() argument
67 return dev->ops->masterStartAsync(dev, cs, mode); in spiMasterStart()
70 int err = dev->ops->masterStartSync(dev, cs, mode); in spiMasterStart()
76 state->packets[0].txBuf, state->packets[0].size, mode); in spiMasterStart()
106 const struct SpiMode *mode = &state->mode; in spiMasterNext() local
108 int err = dev->ops->masterRxTx(dev, rxBuf, txBuf, size, mode); in spiMasterNext()
165 const struct SpiMode *mode) in spiSlaveStart() argument
170 return dev->ops->slaveStartAsync(dev, mode); in spiSlaveStart()
173 int err = dev->ops->slaveStartSync(dev, mode); in spiSlaveStart()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/freeze/
Dbkfile.py4 def __init__(self, file, mode, bufsize): argument
16 self.__file = _orig_open(file, mode, bufsize)
21 self.mode = self.__file.mode
44 def open(file, mode = 'r', bufsize = -1): argument
45 if 'w' not in mode:
46 return _orig_open(file, mode, bufsize)
47 return _BkFile(file, mode, bufsize)
/device/linaro/bootloader/arm-trusted-firmware/plat/qemu/
Dqemu_io_storage.c115 .mode = FOPEN_MODE_RB
119 .mode = FOPEN_MODE_RB
123 .mode = FOPEN_MODE_RB
127 .mode = FOPEN_MODE_RB
131 .mode = FOPEN_MODE_RB
135 .mode = FOPEN_MODE_RB
140 .mode = FOPEN_MODE_RB
144 .mode = FOPEN_MODE_RB
148 .mode = FOPEN_MODE_RB
152 .mode = FOPEN_MODE_RB
[all …]
/device/google/contexthub/util/common/
Dfile.cpp30 File::File(const char *path, const char *mode) in File() argument
33 mInitCheck = setTo(path, mode); in File()
44 status_t File::setTo(const char *path, const char *mode) { in setTo() argument
48 if (!strcmp("r", mode)) { in setTo()
50 } else if (!strcmp("w", mode)) { in setTo()
52 } else if (!strcmp("rw", mode)) { in setTo()
/device/google/sunfish/
Dconfig.fs36 mode: 0755
42 mode: 0755
48 mode: 0755
54 mode: 0755
60 mode: 0755
66 mode: 0755
72 mode: 0755
78 mode: 0755
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Lib/
Dos.py150 def makedirs(name, mode=0777): argument
164 makedirs(head, mode)
171 mkdir(name, mode)
543 def _spawnvef(mode, file, args, env, func): argument
557 if mode == P_NOWAIT:
570 def spawnv(mode, file, args): argument
577 return _spawnvef(mode, file, args, None, execv)
579 def spawnve(mode, file, args, env): argument
587 return _spawnvef(mode, file, args, env, execve)
591 def spawnvp(mode, file, args): argument
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Lib/
Dos.py163 def makedirs(name, mode=0777): argument
177 makedirs(head, mode)
184 mkdir(name, mode)
558 def _spawnvef(mode, file, args, env, func): argument
572 if mode == P_NOWAIT:
585 def spawnv(mode, file, args): argument
592 return _spawnvef(mode, file, args, None, execv)
594 def spawnve(mode, file, args, env): argument
602 return _spawnvef(mode, file, args, env, execve)
606 def spawnvp(mode, file, args): argument
[all …]
/device/generic/opengl-transport/host/libs/virglrenderer/
Dgen_entries.py249 def parse_file(filename, lines, mode): argument
263 if mode == 'def':
265 elif mode == 'sym':
267 elif mode == 'wrapper':
269 elif mode == 'symbols':
271 elif mode == '_symbols':
273 elif mode == 'functions':
275 elif mode == 'funcargs':
307 if not args.mode:
315 parse_file("<stdin>", sys.stdin, args.mode)
[all …]

12345678910>>...40