Home
last modified time | relevance | path

Searched refs:fh (Results 1 – 25 of 54) sorted by relevance

123

/openbmc/u-boot/lib/efi_loader/
H A Defi_file.c42 static char *basename(struct file_handle *fh) in basename() argument
44 char *s = strrchr(fh->path, '/'); in basename()
47 return fh->path; in basename()
50 static int set_blk_dev(struct file_handle *fh) in set_blk_dev() argument
52 return fs_set_blk_dev_with_part(fh->fs->desc, fh->fs->part); in set_blk_dev()
63 static int is_dir(struct file_handle *fh) in is_dir() argument
67 dirs = fs_opendir(fh->path); in is_dir()
154 struct file_handle *fh; in file_open() local
172 fh = calloc(1, sizeof(*fh) + plen + (flen * MAX_UTF8_PER_UTF16) + 2); in file_open()
174 fh->base = efi_file_handle_protocol; in file_open()
[all …]
/openbmc/phosphor-mrw-tools/
H A Dgen_ipmi_fru.pl41 open(my $fh, '>', $outputFile) or die "Could not open file '$outputFile' $!";
82 print $fh $fruID.":";
83 print $fh "\n";
95 writeToFile($fruType,$item->{OBMC_NAME},$fruTypeConfig,$fh);
108 writeToFile($type,$device,$fruTypeConfig,$fh);
114 close $fh;
143 my $fh = $_[3];#file Handle
146 print $fh " ".$instancePath.":";
147 print $fh "\n";
148 print $fh " "."entityID: ".$fruTypeConfig->{$fruType}->{'EntityID'};
[all …]
H A Dgen_ipmi_sensor.pl41 open(my $fh, '>', $outputFile) or die "Could not open file '$outputFile' $!";
95 close $fh;
112 close $fh;
116 print $fh $sensorID.":\n";
136 $data{'FH'} = $fh;
182 close $fh;
228 my ($interfaces, $fh) = @_;
229 print $fh " interfaces:"."\n";
232 print $fh " ".$interface.":\n";
237 print $fh " ".$dbusProperty.":\n";
[all …]
H A Dgen_fru_properties.pl60 open(my $fh, '>', $outFile) or die "Could not open file '$outFile' $!";
77 close $fh;
89 print $fh $defaultPaths{$type}.":";
90 print $fh "\n";
93 print $fh " ".$interface.":";
94 print $fh "\n";
98 print $fh " ".$property.": ".$value;
99 print $fh "\n";
109 print $fh $item->{OBMC_NAME}.":";
110 print $fh "\n";
[all …]
H A Dgen_ipmi_sel.pl43 open(my $fh, '>', $outputFile) or die "Could not open file '$outputFile' $!";
81 close $fh;
91 close $fh;
97 print $fh $base.":"."\n";
98 print $fh " sensorID: ".$sensorID."\n";
99 print $fh " sensorType: ".$sensorType."\n";
100 print $fh " eventReadingType: ".$eventReadingType."\n";
101 print $fh " offset: ".$metaDataConfig->{$entityID}->{Offset}."\n";
106 close $fh;
H A Dgen_occ_map.pl88 open(my $fh, '>', $fileName) or die "Could not open file '$fileName' $!";
93 print $fh "- Instance: ";
94 print $fh "$instance\n";
95 print $fh " SensorID: ";
96 print $fh "$occHash{$instance}\n";
98 close $fh;
H A Dgen_led_groups.pl260 open(my $fh, '>', $fileName) or die "Could not open file '$fileName' $!";
286 print $fh "$group:\n";
288 print $fh " ";
292 print $fh "$led:\n";
293 print $fh " ";
295 print $fh " ";
296 print $fh "$property:";
297 print $fh " $hashGroup{$group}{$led}{$property}\n";
304 print $fh "$name:\n";
306 close $fh;
[all …]
H A Dgen_openpower_fru.pl80 open(my $fh, '>', $outFile) or die "Could not open file '$outFile' $!";
81 print $fh "FRUS=".join ',',@targetTypes;
82 print $fh "\n";
83 print $fh "PATHS=".join ',',@paths;
84 close $fh;
H A Dgen_callouts.pl45 open(my $fh, '>', $outFile) or die "Could not open file '$outFile' $!";
50 close $fh;
79 print $fh $path.": ";
81 print $fh Util::getObmcName(\@inventory, $fru)."\n";
106 print $fh $path.": ".Util::getObmcName(\@inventory, $fru);
116 print $fh "\n".$path.": ".Util::getObmcName(\@inventory, $fru);
/openbmc/qemu/block/
H A Dparallels-ext.c223 ParallelsFeatureHeader fh; in parallels_parse_format_extension() local
226 if (remaining < sizeof(fh)) { in parallels_parse_format_extension()
229 "size (%zu)", remaining, sizeof(fh)); in parallels_parse_format_extension()
233 memcpy(&fh, pos, sizeof(fh)); in parallels_parse_format_extension()
234 pos += sizeof(fh); in parallels_parse_format_extension()
235 remaining -= sizeof(fh); in parallels_parse_format_extension()
237 fh.magic = le64_to_cpu(fh.magic); in parallels_parse_format_extension()
238 fh.flags = le64_to_cpu(fh.flags); in parallels_parse_format_extension()
239 fh.data_size = le32_to_cpu(fh.data_size); in parallels_parse_format_extension()
241 if (fh.flags) { in parallels_parse_format_extension()
[all …]
H A Dnfs.c57 struct nfsfh *fh; member
273 if (nfs_pread_async(client->context, client->fh, in nfs_co_preadv()
317 if (nfs_pwrite_async(client->context, client->fh, in nfs_co_pwritev()
349 if (nfs_fsync_async(client->context, client->fh, nfs_co_generic_cb, in nfs_co_flush()
386 if (client->fh) { in nfs_client_close()
387 nfs_close(client->context, client->fh); in nfs_client_close()
388 client->fh = NULL; in nfs_client_close()
519 ret = nfs_creat(client->context, file, 0600, &client->fh); in nfs_client_open()
526 ret = nfs_open(client->context, file, flags, &client->fh); in nfs_client_open()
534 ret = nfs_fstat(client->context, client->fh, &st); in nfs_client_open()
[all …]
/openbmc/u-boot/test/py/
H A Du_boot_utils.py42 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()
/openbmc/qemu/hw/s390x/
H A Ds390-pci-kvm.c33 .fh = pbdev->fh, in s390_pci_kvm_aif_enable()
60 .fh = pbdev->fh, in s390_pci_kvm_aif_disable()
72 if (!s390_pci_get_host_fh(pbdev, &args.fh)) { in s390_pci_kvm_aif_disable()
H A Dtrace-events33 …nt32_t vid, uint32_t did, uint32_t fid, uint32_t fh) "g_l2 %d vendor id 0x%x device id 0x%x fid 0x…
37 s390_pci_nodev(const char *cmd, uint32_t fh) "%s no pci dev fh 0x%x"
38 s390_pci_invalid(const char *cmd, uint32_t fh) "%s invalid space fh 0x%x"
/openbmc/u-boot/test/py/tests/
H A Dtest_ut.py15 with open(fn, 'wb') as fh:
16 fh.write(data)
21 with open(fn, 'wb') as fh:
22 fh.write(data)
H A Dtest_dfu.py148 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()
H A Dtest_ums.py141 fh = u_boot_utils.wait_until_open_succeeds(host_ums_part_node)
143 fh.read(4096)
144 fh.close()
/openbmc/openbmc/poky/meta/recipes-devtools/apt/apt/
H A Dtriehash443 my ($self, $trie, $fh, $indent, $index) = @_;
464 …printf { $fh } ((' ' x $indent) . "switch(%s | 0x%s) {\n", $self->switch_key($index, $key_lengt…
466 … printf { $fh } ((' ' x $indent) . "switch(%s) {\n", $self->switch_key($index, $key_length));
472 printf { $fh } (' ' x $indent . " break;\n");
475 printf { $fh } (' ' x $indent . "case %s:\n", $self->case_label(lc($key)));
476 …printf { $fh } (' ' x $indent . "case %s:\n", $self->case_label(uc($key))) if lc($key) ne uc($k…
478 printf { $fh } (' ' x $indent . "case %s:\n", $self->case_label($key));
481 … $self->print_table($trie->{children}{$key}, $fh, $indent + 1, $index + length($key));
486 printf { $fh } (' ' x $indent . "}\n");
493 …printf { $fh } (' ' x $indent . "return %s;\n", ($enum_class ? "${enum_name}::" : '').$trie->{l…
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/
H A Dkerneldevelopment.py65 with open(recipe_append, 'w+') as fh:
66 fh.write('SRC_URI += "file://%s"\n' % patch_name)
67 fh.write('ERROR_QA:remove:pn-linux-yocto = "patch-status"\n')
68 fh.write('FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"')
/openbmc/qemu/include/hw/s390x/
H A Ds390-pci-vfio.h23 bool s390_pci_get_host_fh(S390PCIBusDevice *pbdev, uint32_t *fh);
37 static inline bool s390_pci_get_host_fh(S390PCIBusDevice *pbdev, uint32_t *fh) in s390_pci_get_host_fh() argument
H A Ds390-pci-clp.h56 uint32_t fh; member
113 uint32_t fh; /* function handle */ member
180 uint32_t fh; /* function handle */ member
192 uint32_t fh; /* function handle */ member
H A Ds390-pci-bus.h208 uint32_t fh; member
217 uint32_t fh; member
228 uint32_t fh; member
341 uint32_t fh; member
396 void s390_pci_generate_error_event(uint16_t pec, uint32_t fh, uint32_t fid,
401 S390PCIBusDevice *s390_pci_find_dev_by_fh(S390pciState *s, uint32_t fh);
/openbmc/openbmc/meta-openembedded/meta-python/recipes-extended/python-cson/python3-cson/
H A D0001-setup.py-Do-not-poke-at-git-describe-to-find-version.patch31 - with open(version_py, 'r') as fh:
33 + with open(version_py, 'r') as fh:
37 with open(version_py, 'w') as fh:
/openbmc/qemu/tests/migration-stress/guestperf/
H A Dplot.py590 def generate_html(self, fh): argument
604 """ % self._generate_style(), file=fh)
605 print(self._generate_chart(), file=fh)
610 """, file=fh)
611 print(self._generate_report(), file=fh)
616 """, file=fh)
622 with open(filename, "w") as fh:
623 self.generate_html(fh)
/openbmc/openbmc/poky/scripts/contrib/
H A Dconvert-spdx-licenses.py102 fh, abs_path = tempfile.mkstemp()
104 with os.fdopen(fh, 'w') as new_file:

123