/external/u-boot/lib/efi_loader/ |
D | efi_file.c | 41 static char *basename(struct file_handle *fh) in basename() argument 43 char *s = strrchr(fh->path, '/'); in basename() 46 return fh->path; in basename() 49 static int set_blk_dev(struct file_handle *fh) in set_blk_dev() argument 51 return fs_set_blk_dev_with_part(fh->fs->desc, fh->fs->part); in set_blk_dev() 54 static int is_dir(struct file_handle *fh) in is_dir() argument 58 set_blk_dev(fh); in is_dir() 59 dirs = fs_opendir(fh->path); in is_dir() 135 struct file_handle *fh; in file_open() local 153 fh = calloc(1, sizeof(*fh) + plen + (flen * MAX_UTF8_PER_UTF16) + 2); in file_open() [all …]
|
/external/grpc-grpc/tools/http2_interop/ |
D | frameheader.go | 26 func (fh *FrameHeader) Parse(r io.Reader) error { 31 return fh.UnmarshalBinary(buf) 34 func (fh *FrameHeader) UnmarshalBinary(b []byte) error { 38 *fh = FrameHeader{ 48 func (fh *FrameHeader) MarshalBinary() ([]byte, error) { 49 buf := make([]byte, 9, 9+fh.Length) 51 if fh.Length > 0xFFFFFF || fh.Length < 0 { 52 return nil, fmt.Errorf("Invalid frame header length: %d", fh.Length) 54 if fh.StreamID < 0 { 55 return nil, fmt.Errorf("Invalid Stream ID: %v", fh.StreamID) [all …]
|
D | http2interop.go | 38 fh := FrameHeader{} 39 if err := fh.Parse(r); err != nil { 43 switch fh.Type { 46 Header: fh, 50 Header: fh, 54 Header: fh, 58 Header: fh, 155 fh := &UnknownFrame{ 160 if err := streamFrame(conn, fh); err != nil { 161 ctx.T.Log("Unable to stream frame", fh)
|
/external/libcups/filter/ |
D | raster.c | 875 cups_page_header2_t fh; /* File page header */ in cupsRasterWriteHeader() local 877 memset(&fh, 0, sizeof(fh)); in cupsRasterWriteHeader() 879 strlcpy(fh.MediaClass, "PwgRaster", sizeof(fh.MediaClass)); in cupsRasterWriteHeader() 881 strlcpy(fh.MediaColor, r->header.MediaColor, sizeof(fh.MediaColor)); in cupsRasterWriteHeader() 882 strlcpy(fh.MediaType, r->header.MediaType, sizeof(fh.MediaType)); in cupsRasterWriteHeader() 883 strlcpy(fh.OutputType, r->header.OutputType, sizeof(fh.OutputType)); in cupsRasterWriteHeader() 886 fh.CutMedia = htonl(r->header.CutMedia); in cupsRasterWriteHeader() 887 fh.Duplex = htonl(r->header.Duplex); in cupsRasterWriteHeader() 888 fh.HWResolution[0] = htonl(r->header.HWResolution[0]); in cupsRasterWriteHeader() 889 fh.HWResolution[1] = htonl(r->header.HWResolution[1]); in cupsRasterWriteHeader() [all …]
|
/external/antlr/runtime/Perl5/lib/ANTLR/Runtime/ |
D | ANTLRFileStream.pm | 25 my $fh; 28 open $fh, "<:encoding($encoding)", $file_name 32 open $fh, '<', $file_name 39 $content = <$fh>; 41 close $fh or carp "Can't close $fh: $!"; 55 my $fh; 57 open $fh, "<:encoding($encoding)", $file_name 61 open $fh, '<', $file_name 68 $content = <$fh>; 70 close $fh or carp "Can't close $fh: $!";
|
/external/syzkaller/vendor/golang.org/x/net/http2/ |
D | frame.go | 125 type frameParser func(fc *frameCache, fh FrameHeader, payload []byte) (Frame, error) 492 fh, err := readFrameHeader(fr.headerBuf[:], fr.r) 496 if fh.Length > fr.maxReadSize { 499 payload := fr.getReadBuf(fh.Length) 503 f, err := typeFrameParser(fh.Type)(fr.frameCache, fh, payload) 516 if fh.Type == FrameHeaders && fr.ReadMetaHeaders != nil { 541 fh := f.Header() 543 if fh.Type != FrameContinuation { 546 fh.Type, fh.StreamID, 549 if fh.StreamID != fr.lastHeaderStream { [all …]
|
/external/clang/utils/analyzer/ |
D | update_plist_test.pl | 13 my $fh = File::Temp->new(); 14 my $filename = $fh->filename; 15 $fh->unlink_on_destroy(1); 21 print $fh $_; 39 print $fh "// CHECK: "; 43 print $fh "// CHECK-NEXT: "; 45 print $fh $_; 48 close ($fh);
|
/external/iproute2/tc/ |
D | f_route.c | 41 __u32 fh = 0xFFFF8000; in route_parse_opt() local 67 fh &= ~0x80FF; in route_parse_opt() 68 fh |= id&0xFF; in route_parse_opt() 78 fh &= 0xFFFF; in route_parse_opt() 79 fh |= id<<16; in route_parse_opt() 90 fh &= 0xFFFF; in route_parse_opt() 91 fh |= (0x8000|id)<<16; in route_parse_opt() 134 fh &= ~0x7F00; in route_parse_opt() 135 fh |= (order<<8)&0x7F00; in route_parse_opt() 138 t->tcm_handle = fh; in route_parse_opt()
|
/external/u-boot/test/py/ |
D | u_boot_utils.py | 42 with open(fn, 'rb') as fh: 47 data = fh.read(*params) 85 with open(self.abs_fn, 'wb') as fh: 86 fh.write(data) 124 fh = attempt_to_open_file(fn) 125 if fh: 126 return fh 147 fh = attempt_to_open_file(fn) 148 if not fh: 150 fh.close()
|
/external/e2fsprogs/misc/ |
D | fuse2fs.c | 2138 fp->fh = (uintptr_t)file; in __op_open() 2165 struct fuse2fs_file_handle *fh = in op_read() local 2166 (struct fuse2fs_file_handle *)(uintptr_t)fp->fh; in op_read() 2175 FUSE2FS_CHECK_MAGIC(fs, fh, FUSE2FS_FILE_MAGIC); in op_read() 2176 dbg_printf("%s: ino=%d off=%jd len=%jd\n", __func__, fh->ino, offset, in op_read() 2179 err = ext2fs_file_open(fs, fh->ino, fh->open_flags, &efp); in op_read() 2181 ret = translate_error(fs, fh->ino, err); in op_read() 2187 ret = translate_error(fs, fh->ino, err); in op_read() 2193 ret = translate_error(fs, fh->ino, err); in op_read() 2202 ret = translate_error(fs, fh->ino, err); in op_read() [all …]
|
/external/python/oauth2client/tests/ |
D | test__pure_python_crypt.py | 40 with open(self.PUBLIC_KEY_FILENAME, 'rb') as fh: 41 return fh.read() 44 with open(self.PUBLIC_CERT_FILENAME, 'rb') as fh: 45 return fh.read() 48 with open(self.PRIVATE_KEY_FILENAME, 'rb') as fh: 49 return fh.read() 125 with open(self.PKCS1_KEY_FILENAME, 'rb') as fh: 126 return fh.read() 129 with open(self.PKCS8_KEY_FILENAME, 'rb') as fh: 130 return fh.read() [all …]
|
D | test__pycrypto_crypt.py | 31 with open(self.PUBLIC_CERT_FILENAME, 'rb') as fh: 32 return fh.read() 35 with open(self.PRIVATE_KEY_FILENAME, 'rb') as fh: 36 return fh.read()
|
/external/chromium-trace/catapult/common/py_utils/py_utils/ |
D | logging_util.py | 20 fh = logging.StreamHandler(file_stream) 25 fh.formatter = logger.handlers[0].formatter 27 fh.setFormatter(logging.Formatter( 29 logger.addHandler(fh) 35 logger.removeHandler(fh)
|
/external/google-breakpad/src/client/mac/handler/ |
D | breakpad_nlist_64.cc | 206 struct fat_header fh; in __breakpad_fdnlist() local 210 if (read(fd, (char *)&fh, sizeof(fh)) != sizeof(fh)) { in __breakpad_fdnlist() 215 fh.nfat_arch = CFSwapInt32BigToHost(fh.nfat_arch); in __breakpad_fdnlist() 219 (struct fat_arch *)malloc(fh.nfat_arch * sizeof(struct fat_arch)); in __breakpad_fdnlist() 224 sizeof(struct fat_arch) * fh.nfat_arch) != in __breakpad_fdnlist() 225 (ssize_t)(sizeof(struct fat_arch) * fh.nfat_arch)) { in __breakpad_fdnlist() 234 for (unsigned i = 0; i < fh.nfat_arch; i++) { in __breakpad_fdnlist() 248 for (unsigned i = 0; i < fh.nfat_arch; i++) { in __breakpad_fdnlist()
|
/external/strace/tests-mx32/ |
D | file_handle.c | 99 struct file_handle *fh = in do_name_to_handle_at() local 104 fh->handle_bytes, fh->handle_type); in do_name_to_handle_at() 105 print_handle_data((unsigned char *) fh + in do_name_to_handle_at() 107 fh->handle_bytes); in do_name_to_handle_at() 128 struct file_handle *fh = in do_open_by_handle_at() local 131 printf("{handle_bytes=%u, handle_type=%d", fh->handle_bytes, in do_open_by_handle_at() 132 fh->handle_type); in do_open_by_handle_at() 136 print_handle_data((unsigned char *) fh + in do_open_by_handle_at() 138 fh->handle_bytes); in do_open_by_handle_at()
|
/external/strace/tests/ |
D | file_handle.c | 99 struct file_handle *fh = in do_name_to_handle_at() local 104 fh->handle_bytes, fh->handle_type); in do_name_to_handle_at() 105 print_handle_data((unsigned char *) fh + in do_name_to_handle_at() 107 fh->handle_bytes); in do_name_to_handle_at() 128 struct file_handle *fh = in do_open_by_handle_at() local 131 printf("{handle_bytes=%u, handle_type=%d", fh->handle_bytes, in do_open_by_handle_at() 132 fh->handle_type); in do_open_by_handle_at() 136 print_handle_data((unsigned char *) fh + in do_open_by_handle_at() 138 fh->handle_bytes); in do_open_by_handle_at()
|
/external/strace/tests-m32/ |
D | file_handle.c | 99 struct file_handle *fh = in do_name_to_handle_at() local 104 fh->handle_bytes, fh->handle_type); in do_name_to_handle_at() 105 print_handle_data((unsigned char *) fh + in do_name_to_handle_at() 107 fh->handle_bytes); in do_name_to_handle_at() 128 struct file_handle *fh = in do_open_by_handle_at() local 131 printf("{handle_bytes=%u, handle_type=%d", fh->handle_bytes, in do_open_by_handle_at() 132 fh->handle_type); in do_open_by_handle_at() 136 print_handle_data((unsigned char *) fh + in do_open_by_handle_at() 138 fh->handle_bytes); in do_open_by_handle_at()
|
/external/kernel-headers/original/uapi/linux/ |
D | fuse.h | 445 uint64_t fh; member 488 uint64_t fh; member 517 uint64_t fh; member 523 uint64_t fh; member 530 uint64_t fh; member 537 uint64_t fh; member 549 uint64_t fh; member 570 uint64_t fh; member 591 uint64_t fh; member 667 uint64_t fh; member [all …]
|
/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_state_framebuffer.c | 409 float fh = flip * viewport->scale[1] * 2.0f; in emit_viewport() local 424 fh); in emit_viewport() 452 if (fh < 0.0) { in emit_viewport() 455 prescale.translate[1] = fh + fy * 2.0f; in emit_viewport() 459 prescale.translate[1] = fh - 1.0f + fy * 2.0f; in emit_viewport() 461 fh = -fh; in emit_viewport() 462 fy -= fh; in emit_viewport() 481 prescale.scale[1] *= fh / (fh + fy); in emit_viewport() 482 fh += fy; in emit_viewport() 493 if (fy + fh > fb_height) { in emit_viewport() [all …]
|
/external/python/cpython2/Demo/rpc/ |
D | nfsclient.py | 83 fh = self.unpack_fhandle() 85 rest = (fh, fa) 136 def Getattr(self, fh): argument 137 return self.make_call(1, fh, \ 194 fh = sf[1] 195 if fh: 197 attrstat = ncl.Getattr(fh) 199 list = ncl.Listdir(fh)
|
/external/u-boot/test/py/tests/ |
D | test_ut.py | 15 with open(fn, 'wb') as fh: 16 fh.write(data) 21 with open(fn, 'wb') as fh: 22 fh.write(data)
|
D | test_dfu.py | 148 fh = u_boot_utils.attempt_to_open_file( 150 if fh: 151 fh.close() 167 fh = u_boot_utils.wait_until_open_succeeds( 169 fh.close()
|
/external/iproute2/doc/actions/ |
D | gact-usage | 38 filter u32 fh 800: ht divisor 1 39 filter u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:16 (rule hit 32 success 20) 56 …tocol ip pref 6 u32 filter protocol ip pref 6 u32 fh 800: ht divisor 1filter protocol ip pref 6 u3… 72 …tocol ip pref 6 u32 filter protocol ip pref 6 u32 fh 800: ht divisor 1filter protocol ip pref 6 u3…
|
/external/iperf3/contrib/ |
D | iperf3_to_gnuplot.py | 97 with open(file_path, 'r') as fh: 98 data = fh.read() 110 fh = open(absp, 'a') 112 fh = sys.stdout 120 fh.write(i)
|
/external/ltp/testcases/cve/ |
D | stack_clash.c | 97 FILE *fh; in read_stack_addr_from_proc() local 101 fh = SAFE_FOPEN("/proc/self/maps", "r"); in read_stack_addr_from_proc() 103 while (!feof(fh)) { in read_stack_addr_from_proc() 104 if (fgets(buf, sizeof(buf), fh) == NULL) { in read_stack_addr_from_proc() 127 SAFE_FCLOSE(fh); in read_stack_addr_from_proc()
|