Home
last modified time | relevance | path

Searched full:descriptor (Results 1 – 25 of 934) sorted by relevance

12345678910>>...38

/openbmc/phosphor-power/test/
H A Dfile_descriptor_tests.cpp31 * Returns whether the specified file descriptor is valid/open.
33 * @param[in] fd - File descriptor
34 * @return true if descriptor is valid/open, false otherwise
42 * Creates an open file descriptor.
44 * Verifies the file descriptor is valid.
46 * @return file descriptor
58 FileDescriptor descriptor; in TEST() local
59 EXPECT_EQ(descriptor(), -1); in TEST()
60 EXPECT_FALSE(descriptor.operator bool()); in TEST()
66 FileDescriptor descriptor{fd}; in TEST() local
[all …]
/openbmc/openpower-hw-diags/util/
H A Dfile_descriptor.hpp11 * This class manages an open file descriptor.
13 * The file descriptor can be closed by calling close(). Otherwise it will be
29 * @param[in] fd - File descriptor
36 * Transfers ownership of a file descriptor.
48 * Closes the file descriptor owned by this object, if any. Then transfers
49 * ownership of the file descriptor owned by the other object.
67 * Closes the file descriptor if necessary.
75 * Returns the file descriptor.
77 * @return File descriptor. Returns -1 if this object does not contain an
78 * open file descriptor.
[all …]
H A Dffdc_file.cpp26 // Store file descriptor in FileDescriptor object
27 descriptor.set(fd);
32 // Close file descriptor. Does nothing if descriptor was already closed. in remove()
34 if (descriptor.close() == -1) in remove()
/openbmc/phosphor-power/
H A Dfile_descriptor.hpp11 * This class manages an open file descriptor.
13 * The file descriptor can be closed by calling close(). Otherwise it will be
29 * @param[in] fd - File descriptor
36 * Transfers ownership of a file descriptor.
48 * Closes the file descriptor owned by this object, if any. Then transfers
49 * ownership of the file descriptor owned by the other object.
67 * Closes the file descriptor if necessary.
75 * Returns the file descriptor.
77 * @return File descriptor. Returns -1 if this object does not contain an
78 * open file descriptor.
[all …]
/openbmc/openpower-debug-collector/watchdog/
H A Dfile_descriptor.hpp13 * This class manages an open file descriptor.
15 * The file descriptor can be closed by calling close(). Otherwise it will be
31 * @param[in] fd - File descriptor
38 * @details description ownership of a file descriptor.
50 * @details description the file descriptor owned by this object, if any.
51 * Then transfers ownership of the file descriptor owned by the other
70 * @details Closes the file descriptor if necessary.
78 * @brief Returns the file descriptor.
80 * @return File descriptor. Returns -1 if this object does not contain an
81 * open file descriptor.
[all …]
/openbmc/gpioplus/src/gpioplus/internal/
H A Dfd.hpp18 /** @brief Opens a file and holds the file descriptor
27 /** @brief Duplicates and holds a file descriptor
28 * Does not automatically close the input descriptor
30 * @param[in] fd - File descriptor being duplicated
36 /** @brief Holds the input file descriptor
37 * Becomes the sole owner of the file descriptor
39 * @param[in] fd - File descriptor being duplicated
51 /** @brief Gets the managed file descriptor
53 * @return The file descriptor
69 /** @brief Sets flags on the file descriptor
[all …]
/openbmc/openpower-occ-control/
H A Docc_errors.hpp59 /** @class Descriptor
62 class Descriptor class in open_power::occ::Error
65 Descriptor(const Descriptor&) = default;
66 Descriptor& operator=(const Descriptor&) = default;
67 Descriptor(Descriptor&&) = default;
68 Descriptor& operator=(Descriptor&&) = default;
70 Descriptor() : log(false), err(0), callout(nullptr), path(nullptr) {} in Descriptor() function in open_power::occ::Error::Descriptor
72 /** @brief Constructs the Descriptor object
80 Descriptor(const char* path, int err = 0, const char* callout = nullptr, in Descriptor() function in open_power::occ::Error::Descriptor
129 * @param[in] fd - Associated File descriptor
[all …]
/openbmc/google-misc/subprojects/libcr51sign/src/
H A Dlibcr51sign.c38 // Descriptor alignment on the external EEPROM.
195 if (ctx->descriptor.image_family != ctx->current_image_family && in validate_transition()
196 ctx->descriptor.image_family != IMAGE_FAMILY_ALL && in validate_transition()
208 if (intf->is_production_mode() && (ctx->descriptor.image_type == IMAGE_DEV)) in validate_transition()
268 // - That the image descriptor resides in a static region
271 // validates the hash. d_offset is the absolute image descriptor offset
295 image_size = ctx->descriptor.image_size; in validate_payload_regions()
296 region_count = ctx->descriptor.region_count; in validate_payload_regions()
304 "%s: ctx->descriptor.region_count is greater " in validate_payload_regions()
343 // The image descriptor must be part of a static region. in validate_payload_regions()
[all …]
H A Dlibcr51sign_mauv.c33 // Verify BLOB magic bytes in payload's image descriptor at the expected offset
40 // payload's image descriptor
76 // Find offset of Image MAUV data in payload BLOB inside the image descriptor
84 // descriptor
86 // descriptor
89 // descriptor
91 // payload's image descriptor
132 "in image descriptor", in find_image_mauv_data_offset_in_payload()
152 * descriptor */ in find_image_mauv_data_offset_in_payload()
177 // Read Image MAUV data from BLOB inside payload's image descriptor
[all …]
/openbmc/u-boot/drivers/usb/gadget/
H A Dconfig.c25 * @src: Array of descriptor pointers, terminated by null pointer.
42 /* fill buffer from src[] until null descriptor ptr */ in usb_descriptor_fillbuf()
57 * usb_gadget_config_buf - builts a complete configuration descriptor
58 * @config: Header for the descriptor, including characteristics such
62 * @buf: Buffer for the resulting configuration descriptor.
64 * entire configuration descriptor, an error code will be returned.
66 * This copies descriptors into the response buffer, building a descriptor
69 * of the result, but other descriptor fields (including power usage and
72 * Gadget drivers could use this when constructing a config descriptor
86 /* config descriptor first */ in usb_gadget_config_buf()
[all …]
/openbmc/phosphor-gpio-monitor/
H A Dfile.hpp9 * @brief Responsible for handling file descriptor
14 /** @brief File descriptor for the gpio input device */
24 /** @brief Saves File descriptor and uses it to do file operation
26 * @param[in] fd - File descriptor
51 void set(int descriptor) in set() argument
53 fd = descriptor; in set()
/openbmc/libcper/
H A Dir-parse.c21 EFI_ERROR_SECTION_DESCRIPTOR *descriptor);
23 EFI_ERROR_SECTION_DESCRIPTOR *descriptor, FILE *out);
172 EFI_ERROR_SECTION_DESCRIPTOR *descriptor, FILE *out) in ir_section_to_cper() argument
178 select_section_by_guid(&descriptor->SectionType); in ir_section_to_cper()
206 //Converts a single CPER-JSON IR section descriptor into a CPER structure.
208 EFI_ERROR_SECTION_DESCRIPTOR *descriptor) in ir_section_descriptor_to_cper() argument
211 descriptor->SectionOffset = (UINT32)json_object_get_uint64( in ir_section_descriptor_to_cper()
213 descriptor->SectionLength = (UINT32)json_object_get_uint64( in ir_section_descriptor_to_cper()
223 descriptor->Revision = minor + (major << 8); in ir_section_descriptor_to_cper()
229 descriptor->SectionFlags = ir_to_bitfield( in ir_section_descriptor_to_cper()
[all …]
/openbmc/libcper/generator/
H A Dcper-generate.c103 //Generate a descriptor, correct the offset. in generate_single_section_record()
120 //Generates a single section descriptor for a section with the given properties.
126 EFI_ERROR_SECTION_DESCRIPTOR *descriptor = in generate_section_descriptor() local
131 descriptor->Resv1 = 0; in generate_section_descriptor()
132 descriptor->SectionFlags &= 0xFF; in generate_section_descriptor()
135 descriptor->SecValidMask = 0x3; in generate_section_descriptor()
138 descriptor->Severity = rand() % 4; in generate_section_descriptor()
141 descriptor->SectionLength = (UINT32)lengths[index]; in generate_section_descriptor()
142 descriptor->SectionOffset = in generate_section_descriptor()
146 descriptor->SectionOffset += lengths[i]; in generate_section_descriptor()
[all …]
/openbmc/u-boot/drivers/net/
H A Darmada100_fec.h17 /* RX & TX descriptor command */
20 /* RX descriptor status */
26 /* TX descriptor command */
113 /* Size of a Tx/Rx descriptor used in chain list data structure */
138 u8 *buf_ptr; /* pointer to buffer for this descriptor */
139 struct tx_desc *nextdesc_p; /* Pointer to next descriptor */
143 u32 cmd_sts; /* Descriptor command status */
144 u16 byte_cnt; /* Descriptor buffer byte count */
146 u8 *buf_ptr; /* Descriptor buffer pointer */
147 struct rx_desc *nxtdesc_p; /* Next descriptor pointer */
[all …]
H A Daltera_tse.h28 * Descriptor control bit masks & offsets
40 * Descriptor status bit masks & offsets
49 * The SGDMA controller buffer descriptor allocates
51 * struct implementing a descriptor places 32-bits
53 * be cleared when initializing a descriptor.
57 * Buffer Descriptor data structure
67 u32 next; /* the next descriptor in the list. */
93 /* mSGDMA extended descriptor format */
105 /* mSGDMA descriptor control field bit definitions */
121 /* mSGDMA extended descriptor stride definitions */
H A Dep93xx_eth.h21 * Number of descriptor and status entries in our RX queues.
27 * Number of descriptor and status entries in our TX queues.
37 * Receive descriptor queue entry
57 * Transmit descriptor queue entry
77 * Transmit descriptor queue
95 * Receive descriptor queue
/openbmc/openpower-proc-control/
H A Dfiledescriptor.hpp13 * Class to wrap a file descriptor.
15 * Opens the descriptor in the constructor, and
28 * Creates a file descriptor by opening the device
41 * The method to access the file descriptor value
50 * The actual file descriptor
/openbmc/witherspoon-pfault-analysis/
H A Dfile.hpp14 * Closes the file descriptor on destruction
28 * @param[in] fd - File descriptor
50 void set(int descriptor) in set() argument
57 fd = descriptor; in set()
62 * File descriptor
/openbmc/u-boot/lib/libavb/
H A Davb_descriptor.h19 /* Well-known descriptor tags.
35 /* The header for a serialized descriptor.
37 * A descriptor always have two fields, a |tag| (denoting its type,
57 * The passed in descriptor is given by |descriptor| and the
62 * Note that |descriptor| points into the image passed to
65 typedef bool AvbDescriptorForeachFunc(const AvbDescriptor* descriptor,
72 * descriptor. The given function should return true to continue
/openbmc/sdbusplus/include/sdbusplus/asio/
H A Dsd_event.hpp37 evt(nullptr), descriptor(io), io(io) in sd_event_wrapper()
42 descriptor.assign(sd_event_get_fd(evt)); in sd_event_wrapper()
47 evt(evt), descriptor(io), io(io) in sd_event_wrapper()
52 descriptor.assign(sd_event_get_fd(evt)); in sd_event_wrapper()
58 // sd_event really wants to close the descriptor on its own in ~sd_event_wrapper()
60 descriptor.release(); in ~sd_event_wrapper()
116 descriptor.async_wait(boost::asio::posix::stream_descriptor::wait_read, in async_wait()
125 boost::asio::posix::stream_descriptor descriptor; member in sdbusplus::asio::sd_event_wrapper
/openbmc/openbmc/poky/meta/recipes-devtools/valgrind/valgrind/
H A D0001-none-tests-fdleak_cmsg.stderr.exp-adjust-tmp-paths.patch19 @@ -25,10 +25,10 @@ Open file descriptor ...: /dev/null
23 -Open file descriptor ...: /tmp/data2
24 +Open file descriptor ...: ...
27 -Open file descriptor ...: /tmp/data1
28 +Open file descriptor ...: ...
/openbmc/openpower-pnor-code-mgmt/ubi/
H A Dwatch.hpp29 * RAII wrapper for file descriptor.
40 /** @brief Saves File descriptor and uses it to do file operation
42 * @param[in] fd - File descriptor
60 /** @brief File descriptor */
106 /** initialize an inotify instance and returns file descriptor */
109 /** @brief PNOR symlink file watch descriptor */
119 /** @brief inotify file descriptor */
/openbmc/openpower-sbe-interface/
H A Dfile.hpp15 * @brief Provide RAII file descriptor
20 /** @brief File descriptor for the SBE FIFO device */
30 /** @brief Opens the input file and saves the file descriptor
49 /** @brief Saves File descriptor and uses it to do file operation
51 * @param[in] fd - File descriptor
/openbmc/qemu/hw/net/
H A De1000_regs.h41 #define E1000_RDBAL1 0x02900 /* RX Descriptor Base Address Low (1) - RW */
42 #define E1000_RDBAH1 0x02904 /* RX Descriptor Base Address High (1) - RW */
43 #define E1000_RDLEN1 0x02908 /* RX Descriptor Length (1) - RW */
44 #define E1000_RDH1 0x02910 /* RX Descriptor Head (1) - RW */
45 #define E1000_RDT1 0x02918 /* RX Descriptor Tail (1) - RW */
66 #define E1000_RDBAL 0x02800 /* RX Descriptor Base Address Low - RW */
67 #define E1000_RDBAH 0x02804 /* RX Descriptor Base Address High - RW */
68 #define E1000_RDLEN 0x02808 /* RX Descriptor Length - RW */
69 #define E1000_RDH 0x02810 /* RX Descriptor Head - RW */
70 #define E1000_RDT 0x02818 /* RX Descriptor Tail - RW */
[all …]
/openbmc/qemu/include/io/
H A Dchannel-util.h34 * @fd: the file descriptor
38 * descriptor @fd. The particular subclass of QIOChannel
40 * the file descriptor is associated with. It may be either
43 * the @fd file descriptor, and take responsibility for
54 * @read_fd: the file descriptor for the read handler
57 * @write_fd: the file descriptor for the write handler

12345678910>>...38