Home
last modified time | relevance | path

Searched full:length (Results 1 – 25 of 6123) sorted by relevance

12345678910>>...245

/openbmc/qemu/tests/qemu-iotests/
H A D146.out5 [{ "start": 0, "length": 136363130880, "depth": 0, "present": true, "zero": true, "data": false, "c…
9 [{ "start": 0, "length": 136365211648, "depth": 0, "present": true, "zero": true, "data": false, "c…
13 [{ "start": 0, "length": 136363130880, "depth": 0, "present": true, "zero": true, "data": false, "c…
17 [{ "start": 0, "length": 136365211648, "depth": 0, "present": true, "zero": true, "data": false, "c…
21 [{ "start": 0, "length": 136365211648, "depth": 0, "present": true, "zero": true, "data": false, "c…
25 [{ "start": 0, "length": 136363130880, "depth": 0, "present": true, "zero": true, "data": false, "c…
29 [{ "start": 0, "length": 2097152, "depth": 0, "present": true, "zero": false, "data": true, "compre…
30 { "start": 2097152, "length": 2097152, "depth": 0, "present": true, "zero": false, "data": true, "c…
31 { "start": 4194304, "length": 2097152, "depth": 0, "present": true, "zero": false, "data": true, "c…
32 { "start": 6291456, "length": 2097152, "depth": 0, "present": true, "zero": false, "data": true, "c…
[all …]
H A D179.out16 [{ "start": 0, "length": 2097152, "depth": 0, "present": false, "zero": true, "data": false, "compr…
17 { "start": 2097152, "length": 2097152, "depth": 0, "present": true, "zero": true, "data": false, "c…
18 { "start": 4194304, "length": 2097152, "depth": 0, "present": false, "zero": true, "data": false, "…
19 { "start": 6291456, "length": 2097152, "depth": 0, "present": true, "zero": true, "data": false, "c…
20 { "start": 8388608, "length": 58720256, "depth": 0, "present": false, "zero": true, "data": false, …
34 [{ "start": 0, "length": 2097152, "depth": 0, "present": false, "zero": true, "data": false, "compr…
35 { "start": 2097152, "length": 2097152, "depth": 0, "present": true, "zero": true, "data": false, "c…
36 { "start": 4194304, "length": 2097152, "depth": 0, "present": false, "zero": true, "data": false, "…
37 { "start": 6291456, "length": 2097152, "depth": 0, "present": true, "zero": true, "data": false, "c…
38 { "start": 8388608, "length": 2097152, "depth": 0, "present": false, "zero": true, "data": false, "…
[all …]
/openbmc/pldm/oem/ibm/libpldmresponder/
H A Dfile_io.cpp50 int DMA::transferHostDataToSocket(int fd, uint32_t length, uint64_t address) in transferHostDataToSocket() argument
53 uint32_t numPages = length / pageSize; in transferHostDataToSocket()
56 if (length > pageAlignedLength) in transferHostDataToSocket()
96 xdmaOp.len = length; in transferHostDataToSocket()
103 …ansferring remote terminus data to socket at address '{ADDRESS}' and length '{LENGTH}' with respon… in transferHostDataToSocket()
104 "RC", rc, "ADDRESS", address, "LENGTH", length); in transferHostDataToSocket()
109 length); in transferHostDataToSocket()
122 int DMA::transferDataHost(int fd, uint32_t offset, uint32_t length, in transferDataHost() argument
126 uint32_t numPages = length / pageSize; in transferDataHost()
129 if (length > pageAlignedLength) in transferDataHost()
[all …]
H A Dfile_io_by_type.hpp25 * @param[in] length - length to be read/write mentioned by Host
31 virtual int writeFromMemory(uint32_t offset, uint32_t length,
39 * @param[in] length - length to be read mentioned by Host
45 virtual int readIntoMemory(uint32_t offset, uint32_t length,
51 * @param[in/out] length - length to be read
57 virtual int read(uint32_t offset, uint32_t& length, Response& response,
63 * @param[in/out] length - length to be written
68 virtual int write(const char* buffer, uint32_t offset, uint32_t& length,
76 * @param[in] length - size of the file content to be transferred
80 virtual int newFileAvailable(uint64_t length) = 0;
[all …]
/openbmc/slpd-lite/test/
H A Dtest-suite.py14 print("Invalid Lang Tag Length, large payload")
18 + b"\x00" * 2 # Ignored Length bytes?
19 + b"\xff" # Length
23 + b"\xff" * 2 # Language Tag Length
30 print("Large Lang Tag Length, large payload")
34 + b"\x00" * 2 # Ignored Length bytes?
35 + b"\xff" # Length
39 + b"\xfd\xe8" # Language Tag Length
46 print("Invalid Lang Tag Length, small payload")
50 + b"\x00" * 2 # Ignored Length bytes?
[all …]
/openbmc/linux/sound/usb/line6/
H A Dmidibuf.c20 static const int length[] = { 3, 3, 3, 3, 2, 2, 3 }; in midibuf_message_length() local
22 message_length = length[(code >> 4) - 8]; in midibuf_message_length()
24 static const int length[] = { -1, 2, 2, 2, -1, -1, 1, 1, 1, -1, in midibuf_message_length() local
27 message_length = length[code & 0x0f]; in midibuf_message_length()
81 int length) in line6_midibuf_write() argument
87 if (midibuf_is_full(this) || (length <= 0)) in line6_midibuf_write()
91 if (data[length - 1] == 0xfe) { in line6_midibuf_write()
92 --length; in line6_midibuf_write()
98 if (length > bytes_free) in line6_midibuf_write()
99 length = bytes_free; in line6_midibuf_write()
[all …]
/openbmc/qemu/hw/usb/
H A Ddesc-msos.c57 int length = sizeof(*hdr); in usb_desc_msos_compat() local
60 func = (void *)(dest + length); in usb_desc_msos_compat()
67 length += sizeof(*func); in usb_desc_msos_compat()
70 hdr->dwLength = cpu_to_le32(length); in usb_desc_msos_compat()
76 return length; in usb_desc_msos_compat()
117 int length = wcslen(name) + 1; in usb_desc_msos_prop_name() local
120 prop->dwPropertyNameLength_lo = usb_lo(length*2); in usb_desc_msos_prop_name()
121 prop->dwPropertyNameLength_hi = usb_hi(length*2); in usb_desc_msos_prop_name()
122 for (i = 0; i < length; i++) { in usb_desc_msos_prop_name()
126 return length*2; in usb_desc_msos_prop_name()
[all …]
/openbmc/qemu/system/
H A Dmemory_mapping.c42 ram_addr_t length) in create_new_memory_mapping() argument
49 memory_mapping->length = length; in create_new_memory_mapping()
59 return phys_addr == map->phys_addr + map->length && in mapping_contiguous()
60 virt_addr == map->virt_addr + map->length; in mapping_contiguous()
64 * [map->phys_addr, map->phys_addr + map->length) and
65 * [phys_addr, phys_addr + length) have intersection?
69 ram_addr_t length) in mapping_have_same_region() argument
71 return !(phys_addr + length < map->phys_addr || in mapping_have_same_region()
72 phys_addr >= map->phys_addr + map->length); in mapping_have_same_region()
76 * [map->phys_addr, map->phys_addr + map->length) and
[all …]
/openbmc/libpldm/src/oem/ibm/
H A Dfile_io.c11 uint32_t *length, uint64_t *address) in decode_rw_file_memory_req() argument
14 length == NULL || address == NULL) { in decode_rw_file_memory_req()
27 *length = le32toh(request->length); in decode_rw_file_memory_req()
35 uint8_t completion_code, uint32_t length, in encode_rw_file_memory_resp() argument
56 response->length = htole32(length); in encode_rw_file_memory_resp()
65 uint32_t length, uint64_t address, in encode_rw_file_memory_req() argument
86 req->length = htole32(length); in encode_rw_file_memory_req()
94 uint32_t *length) in decode_rw_file_memory_resp() argument
96 if (msg == NULL || length == NULL || completion_code == NULL) { in decode_rw_file_memory_resp()
108 *length = le32toh(response->length); in decode_rw_file_memory_resp()
[all …]
/openbmc/linux/drivers/video/fbdev/mmp/fb/
H A Dmmpfb.c25 if (var->bits_per_pixel == 16 && var->red.length == 8 && in var_to_pixfmt()
26 var->green.length == 4 && var->blue.length == 4) { in var_to_pixfmt()
36 if (var->bits_per_pixel == 12 && var->red.length == 8 && in var_to_pixfmt()
37 var->green.length == 2 && var->blue.length == 2) { in var_to_pixfmt()
47 if (var->bits_per_pixel == 16 && var->red.length == 16 && in var_to_pixfmt()
48 var->green.length == 16 && var->blue.length == 16) { in var_to_pixfmt()
60 if (var->bits_per_pixel == 16 && var->red.length <= 5 && in var_to_pixfmt()
61 var->green.length <= 6 && var->blue.length <= 5) { in var_to_pixfmt()
62 if (var->transp.length == 0) { in var_to_pixfmt()
73 if (var->bits_per_pixel <= 32 && var->red.length <= 8 && in var_to_pixfmt()
[all …]
/openbmc/linux/security/selinux/
H A Dselinuxfs.c127 ssize_t length; in sel_read_enforce() local
129 length = scnprintf(tmpbuf, TMPBUFLEN, "%d", in sel_read_enforce()
131 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_enforce()
140 ssize_t length; in sel_write_enforce() local
155 length = -EINVAL; in sel_write_enforce()
163 length = avc_has_perm(current_sid(), SECINITSID_SECURITY, in sel_write_enforce()
166 if (length) in sel_write_enforce()
184 length = count; in sel_write_enforce()
187 return length; in sel_write_enforce()
203 ssize_t length; in sel_read_handle_unknown() local
[all …]
/openbmc/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_ctrl.c23 unsigned int length, unsigned int offset, in nfp_net_tls_parse_crypto_ops() argument
30 if (length < 32) { in nfp_net_tls_parse_crypto_ops()
33 length, offset); in nfp_net_tls_parse_crypto_ops()
58 unsigned int length, offset; in nfp_net_tlv_caps_parse() local
61 length = FIELD_GET(NFP_NET_CFG_TLV_HEADER_LENGTH, hdr); in nfp_net_tlv_caps_parse()
67 if (length % NFP_NET_CFG_TLV_LENGTH_INC) { in nfp_net_tlv_caps_parse()
69 NFP_NET_CFG_TLV_LENGTH_INC, offset, length); in nfp_net_tlv_caps_parse()
72 if (data + length > end) { in nfp_net_tlv_caps_parse()
74 offset, length); in nfp_net_tlv_caps_parse()
85 if (!length) in nfp_net_tlv_caps_parse()
[all …]
/openbmc/linux/drivers/acpi/acpica/
H A Dexstorob.c33 u32 length; in acpi_ex_store_buffer_to_buffer() local
47 length = source_desc->buffer.length; in acpi_ex_store_buffer_to_buffer()
50 * If target is a buffer of length zero or is a static buffer, in acpi_ex_store_buffer_to_buffer()
51 * allocate a new buffer of the proper length in acpi_ex_store_buffer_to_buffer()
53 if ((target_desc->buffer.length == 0) || in acpi_ex_store_buffer_to_buffer()
55 target_desc->buffer.pointer = ACPI_ALLOCATE(length); in acpi_ex_store_buffer_to_buffer()
60 target_desc->buffer.length = length; in acpi_ex_store_buffer_to_buffer()
65 if (length <= target_desc->buffer.length) { in acpi_ex_store_buffer_to_buffer()
70 target_desc->buffer.length); in acpi_ex_store_buffer_to_buffer()
71 memcpy(target_desc->buffer.pointer, buffer, length); in acpi_ex_store_buffer_to_buffer()
[all …]
/openbmc/linux/drivers/net/fjes/
H A Dfjes_trace.h54 __field(int, length)
62 __entry->length = res_buf->info.length;
71 TP_printk("res_buf=[length=%d, code=%d, es_zones=%s, es_status=%s]",
72 __entry->length, __entry->code,
98 __field(int, length)
110 __entry->length = req_buf->share_buffer.length;
119 …TP_printk("req_buf=[length=%d, epid=%d], TX=[phy=0x%016llx, size=%zu], RX=[phy=0x%016llx, size=%zu…
120 __entry->length, __entry->epid, __entry->tx, __entry->tx_size,
128 __field(int, length)
133 __entry->length = res_buf->share_buffer.length;
[all …]
/openbmc/pldm/oem/ibm/test/
H A Dlibpldmresponder_fileio_test.cpp71 // <2 bytes - Filename length - 11 (0x0b 0x00>
76 // <2 bytes - Filename length - 17 (0x11 0x00>
80 // No pad bytes added since the length for both the file entries in the
103 MOCK_METHOD5(transferDataHost, int(int fd, uint32_t offset, uint32_t length,
124 // Minimum length of 16 and expect transferDataHost to be called once in TEST()
127 uint32_t length = minSize; in TEST() local
128 EXPECT_CALL(dmaObj, transferDataHost(_, 0, length, 0, true)).Times(1); in TEST()
130 path, 0, length, 0, true, 0); in TEST()
134 &length, sizeof(length))); in TEST()
137 length = maxSize; in TEST()
[all …]
/openbmc/linux/Documentation/arch/arm64/
H A Dsme.rst21 * PSTATE.SM, PSTATE.ZA, the streaming mode vector length, the ZA and (when
78 SME defines a second vector length similar to the SVE vector length which is
110 length, the state of the PR_SME_VL_INHERIT flag, and the deferred vector
111 length (if any), is preserved across all syscalls, subject to the specific
127 the thread's vector length (in za_context.vl).
167 * The vector length cannot be changed via signal return. If za_context.vl in
168 the signal frame does not match the current vector length, the signal return
179 length:
183 Sets the vector length of the calling thread and related flags, where
186 vl is the desired vector length, where sve_vl_valid(vl) must be true.
[all …]
/openbmc/phosphor-ipmi-flash/tools/
H A Dio.cpp16 bool DevMemDevice::read(const std::size_t offset, const std::size_t length, in read() argument
28 const std::size_t alignedSize = length + alignedDiff; in read()
30 // addr, length, prot, flags, fd, offset in read()
35 std::fprintf(stderr, "Failed to mmap at offset: 0x%zx, length: %zu\n", in read()
36 offset, length); in read()
45 std::memcpy(destination, alignedSource, length); in read()
48 sys->munmap(devMemMapped, length); in read()
54 bool DevMemDevice::write(const std::size_t offset, const std::size_t length, in write() argument
67 const std::size_t alignedSize = length + alignedDiff; in write()
69 // addr, length, prot, flags, fd, offset in write()
[all …]
/openbmc/libpldm/tests/oem/ibm/
H A Dfileio.cpp18 // Random value for fileHandle, offset, length, address in TEST()
21 uint32_t length = 0x13245768; in TEST() local
25 uint32_t lengthLe = htole32(length); in TEST()
54 ASSERT_EQ(length, retLength); in TEST()
62 uint32_t length = 0; in TEST() local
66 auto rc = decode_rw_file_memory_req(NULL, 0, &fileHandle, &offset, &length, in TEST()
77 &fileHandle, &offset, &length, NULL); in TEST()
80 // Payload length is invalid in TEST()
81 rc = decode_rw_file_memory_req(request, 0, &fileHandle, &offset, &length, in TEST()
90 uint32_t length = 0xff00ee11; in TEST() local
[all …]
/openbmc/linux/drivers/infiniband/sw/rxe/
H A Drxe_opcode.c123 .length = RXE_BTH_BYTES,
133 .length = RXE_BTH_BYTES,
143 .length = RXE_BTH_BYTES,
153 .length = RXE_BTH_BYTES + RXE_IMMDT_BYTES,
166 .length = RXE_BTH_BYTES,
177 .length = RXE_BTH_BYTES + RXE_IMMDT_BYTES,
189 .length = RXE_BTH_BYTES + RXE_RETH_BYTES,
201 .length = RXE_BTH_BYTES,
211 .length = RXE_BTH_BYTES,
222 .length = RXE_BTH_BYTES + RXE_IMMDT_BYTES,
[all …]
/openbmc/qemu/util/
H A Duserfaultfd.c154 * @length: length of memory range
158 int uffd_register_memory(int uffd_fd, void *addr, uint64_t length, in uffd_register_memory() argument
164 uffd_register.range.len = length; in uffd_register_memory()
168 trace_uffd_register_memory_failed(addr, length, mode, errno); in uffd_register_memory()
185 * @length: length of memory range
187 int uffd_unregister_memory(int uffd_fd, void *addr, uint64_t length) in uffd_unregister_memory() argument
192 uffd_range.len = length; in uffd_unregister_memory()
195 trace_uffd_unregister_memory_failed(addr, length, errno); in uffd_unregister_memory()
209 * @length: length of memory range
213 int uffd_change_protection(int uffd_fd, void *addr, uint64_t length, in uffd_change_protection() argument
[all …]
/openbmc/linux/tools/testing/selftests/mm/
H A Dmap_hugetlb.c20 #define LENGTH (256UL*1024*1024) macro
37 static void write_bytes(char *addr, size_t length) in write_bytes() argument
41 for (i = 0; i < length; i++) in write_bytes()
45 static int read_bytes(char *addr, size_t length) in read_bytes() argument
50 for (i = 0; i < length; i++) in read_bytes()
63 size_t length = LENGTH; in main() local
68 /* munmap with fail if the length is not page aligned */ in main()
69 if (hugepage_size > length) in main()
70 length = hugepage_size; in main()
73 length = atol(argv[1]) << 20; in main()
[all …]
/openbmc/linux/include/linux/
H A Dbcm963xx_tag.h7 #define TAGVER_LEN 4 /* Length of Tag Version */
8 #define TAGLAYOUT_LEN 4 /* Length of FlashLayoutVer */
9 #define SIG1_LEN 20 /* Company Signature 1 Length */
10 #define SIG2_LEN 14 /* Company Signature 2 Length */
11 #define BOARDID_LEN 16 /* Length of BoardId */
12 #define ENDIANFLAG_LEN 2 /* Endian Flag Length */
13 #define CHIPID_LEN 6 /* Chip Id Length */
14 #define IMAGE_LEN 10 /* Length of Length Field */
15 #define ADDRESS_LEN 12 /* Length of Address field */
16 #define IMAGE_SEQUENCE_LEN 4 /* Image sequence Length */
[all …]
/openbmc/libpldm/include/libpldm/oem/ibm/
H A Dfile_io.h110 uint32_t length; //!< Number of bytes to be read/write member
121 uint32_t length; //!< Number of bytes read/written member
128 * @param[in] payload_length - Length of request payload
131 * @param[out] length - Number of bytes to be read
138 uint32_t *length, uint64_t *address);
146 * @param[in] length - Number of bytes read. This could be less than what the
153 uint8_t completion_code, uint32_t length,
163 * @param[in] length - Number of bytes to be read/written
171 uint32_t length, uint64_t address,
178 * @param[in] payload_length - Length of response payload
[all …]
/openbmc/linux/include/rdma/
H A Drdmavt_mr.h21 size_t length; member
35 size_t length; member
70 u32 sge_length; /* length of the SGE */
71 u32 length; /* remaining length of the segment */ member
102 static inline u32 rvt_get_sge_length(struct rvt_sge *sge, u32 length) in rvt_get_sge_length() argument
104 u32 len = sge->length; in rvt_get_sge_length()
106 if (len > length) in rvt_get_sge_length()
107 len = length; in rvt_get_sge_length()
114 static inline void rvt_update_sge(struct rvt_sge_state *ss, u32 length, in rvt_update_sge() argument
119 sge->vaddr += length; in rvt_update_sge()
[all …]
/openbmc/linux/fs/squashfs/
H A Dblock.c80 struct address_space *cache_mapping, u64 index, int length, in squashfs_bio_read_cached() argument
104 * Compare these to the original required index and length to in squashfs_bio_read_cached()
111 else if (idx == page_count - 1 && index + length != read_end) in squashfs_bio_read_cached()
189 static int squashfs_bio_read(struct super_block *sb, u64 index, int length, in squashfs_bio_read() argument
196 const u64 read_end = round_up(index + length, msblk->devblksize); in squashfs_bio_read()
236 length, read_start, read_end, in squashfs_bio_read()
255 * Read and decompress a metadata block or datablock. Length is non-zero
257 * filesystem), otherwise the length is obtained from the first two bytes of
258 * the metadata block. A bit in the length field indicates if the block
263 int squashfs_read_data(struct super_block *sb, u64 index, int length, in squashfs_read_data() argument
[all …]

12345678910>>...245