Home
last modified time | relevance | path

Searched refs:length (Results 1 – 25 of 4192) sorted by relevance

12345678910>>...168

/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/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()
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()
92 target_desc->buffer.length = length; in acpi_ex_store_buffer_to_buffer()
99 target_desc->buffer.length); in acpi_ex_store_buffer_to_buffer()
[all …]
H A Dutids.c40 u32 length; in acpi_ut_execute_HID() local
55 length = ACPI_EISAID_STRING_SIZE; in acpi_ut_execute_HID()
57 length = obj_desc->string.length + 1; in acpi_ut_execute_HID()
64 (acpi_size)length); in acpi_ut_execute_HID()
83 hid->length = length; in acpi_ut_execute_HID()
118 u32 length; in acpi_ut_execute_UID() local
133 length = ACPI_MAX64_DECIMAL_DIGITS + 1; in acpi_ut_execute_UID()
135 length = obj_desc->string.length + 1; in acpi_ut_execute_UID()
142 (acpi_size)length); in acpi_ut_execute_UID()
161 uid->length = length; in acpi_ut_execute_UID()
[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/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/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/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/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()
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()
94 ram_addr_t length) in mapping_merge() argument
97 map->length += map->virt_addr - virt_addr; in mapping_merge()
101 if ((virt_addr + length) > in mapping_merge()
[all …]
/openbmc/linux/include/linux/
H A Drelay.h174 size_t length);
191 size_t length) in relay_write() argument
198 if (unlikely(buf->offset + length > chan->subbuf_size)) in relay_write()
199 length = relay_switch_subbuf(buf, length); in relay_write()
200 memcpy(buf->data + buf->offset, data, length); in relay_write()
201 buf->offset += length; in relay_write()
219 size_t length) in __relay_write() argument
224 if (unlikely(buf->offset + length > buf->chan->subbuf_size)) in __relay_write()
225 length = relay_switch_subbuf(buf, length); in __relay_write()
226 memcpy(buf->data + buf->offset, data, length); in __relay_write()
[all …]
/openbmc/linux/drivers/net/arcnet/
H A Darc-rawmode.c40 struct archdr *pkthdr, int length) in rx() argument
47 arc_printk(D_DURING, dev, "it's a raw packet (length=%d)\n", length); in rx()
49 if (length > MTU) in rx()
50 ofs = 512 - length; in rx()
52 ofs = 256 - length; in rx()
54 skb = alloc_skb(length + ARC_HDR_SIZE, GFP_ATOMIC); in rx()
59 skb_put(skb, length + ARC_HDR_SIZE); in rx()
69 if (length > sizeof(pkt->soft)) in rx()
72 length - sizeof(pkt->soft)); in rx()
113 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, in prepare_tx() argument
[all …]
H A Dcapmode.c43 struct archdr *pkthdr, int length) in rx() argument
52 length); in rx()
54 if (length >= MinTU) in rx()
55 ofs = 512 - length; in rx()
57 ofs = 256 - length; in rx()
59 skb = alloc_skb(length + ARC_HDR_SIZE + sizeof(int), GFP_ATOMIC); in rx()
64 skb_put(skb, length + ARC_HDR_SIZE + sizeof(int)); in rx()
82 if (length > sizeof(pkt->soft)) in rx()
86 length - sizeof(pkt->soft)); in rx()
132 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, in prepare_tx() argument
[all …]
H A Drfc1051.c41 struct archdr *pkthdr, int length);
44 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
122 struct archdr *pkthdr, int length) in rx() argument
129 arc_printk(D_DURING, dev, "it's a raw packet (length=%d)\n", length); in rx()
131 if (length >= MinTU) in rx()
132 ofs = 512 - length; in rx()
134 ofs = 256 - length; in rx()
136 skb = alloc_skb(length + ARC_HDR_SIZE, GFP_ATOMIC); in rx()
141 skb_put(skb, length + ARC_HDR_SIZE); in rx()
148 if (length > sizeof(pkt->soft)) in rx()
[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/qemu/include/qemu/
H A Dbitops.h27 #define MAKE_64BIT_MASK(shift, length) \ argument
28 (((~0ULL) >> (64 - (length))) << (shift))
515 static inline uint32_t extract32(uint32_t value, int start, int length) in extract32() argument
517 assert(start >= 0 && length > 0 && length <= 32 - start); in extract32()
518 return (value >> start) & (~0U >> (32 - length)); in extract32()
534 static inline uint8_t extract8(uint8_t value, int start, int length) in extract8() argument
536 assert(start >= 0 && length > 0 && length <= 8 - start); in extract8()
537 return extract32(value, start, length); in extract8()
553 static inline uint16_t extract16(uint16_t value, int start, int length) in extract16() argument
555 assert(start >= 0 && length > 0 && length <= 16 - start); in extract16()
[all …]
/openbmc/linux/fs/ntfs/
H A Drunlist.c151 if ((dst->vcn + dst->length) != src->vcn) in ntfs_are_rl_mergeable()
155 ((dst->lcn + dst->length) == src->lcn)) in ntfs_are_rl_mergeable()
177 dst->length += src->length; in __ntfs_rl_merge()
238 dst[loc].length = dst[loc + 1].vcn - dst[loc].vcn; in ntfs_rl_append()
242 dst[marker].vcn = dst[marker - 1].vcn + dst[marker - 1].length; in ntfs_rl_append()
292 merged_length = dst[loc - 1].length; in ntfs_rl_insert()
294 merged_length += src->length; in ntfs_rl_insert()
325 dst[marker].vcn = dst[marker - 1].vcn + dst[marker - 1].length; in ntfs_rl_insert()
328 dst[marker].length = dst[marker + 1].vcn - dst[marker].vcn; in ntfs_rl_insert()
333 dst[loc].vcn = dst[loc - 1].vcn + dst[loc - 1].length; in ntfs_rl_insert()
[all …]
/openbmc/linux/drivers/video/fbdev/
H A D68328fb.c114 u_long length; in get_line_length() local
116 length = xres_virtual * bpp; in get_line_length()
117 length = (length + 31) & ~31; in get_line_length()
118 length >>= 3; in get_line_length()
119 return (length); in get_line_length()
191 var->red.length = 1; in mc68x328fb_check_var()
193 var->green.length = 1; in mc68x328fb_check_var()
195 var->blue.length = 1; in mc68x328fb_check_var()
197 var->transp.length = 0; in mc68x328fb_check_var()
201 var->red.length = 8; in mc68x328fb_check_var()
[all …]
/openbmc/linux/include/rdma/
H A Drdmavt_mr.h21 size_t length; member
35 size_t length; member
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()
120 sge->length -= length; in rvt_update_sge()
[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/net/sunrpc/auth_gss/
H A Dgss_generic_token.c76 der_length_size( int length) in der_length_size() argument
78 if (length < (1<<7)) in der_length_size()
80 else if (length < (1<<8)) in der_length_size()
86 else if (length < (1<<16)) in der_length_size()
88 else if (length < (1<<24)) in der_length_size()
96 der_write_length(unsigned char **buf, int length) in der_write_length() argument
98 if (length < (1<<7)) { in der_write_length()
99 *(*buf)++ = (unsigned char) length; in der_write_length()
101 *(*buf)++ = (unsigned char) (der_length_size(length)+127); in der_write_length()
103 if (length >= (1<<24)) in der_write_length()
[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 "Failed to execute the DMA operation for transferring remote terminus data to socket at address '{ADDRESS}' and length '{LENGTH}' with response code '{RC}'", 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 > pageAlignedLengt in transferDataHost()
255 encodeRWResponseHandler(uint8_t instance_id,uint8_t command,uint8_t completion_code,uint32_t length,struct pldm_msg * msg) encodeRWResponseHandler() argument
269 encodeReadResponseHandler(uint8_t instance_id,uint8_t completion_code,uint32_t length,struct pldm_msg * msg) encodeReadResponseHandler() argument
280 encodeWriteResponseHandler(uint8_t instance_id,uint8_t completion_code,uint32_t length,struct pldm_msg * msg) encodeWriteResponseHandler() argument
306 encodeRWTypeMemoryResponseHandler(uint8_t instance_id,uint8_t command,uint8_t completion_code,uint32_t length,struct pldm_msg * msg) encodeRWTypeMemoryResponseHandler() argument
320 encodeRWTypeResponseHandler(uint8_t instance_id,uint8_t command,uint8_t completion_code,uint32_t length,struct pldm_msg * msg) encodeRWTypeResponseHandler() argument
349 uint32_t length = 0; readFileIntoMemory() local
452 uint32_t length = 0; writeFileFromMemory() local
612 uint32_t length = 0; readFile() local
715 uint32_t length = 0; writeFile() local
826 uint32_t length{}; rwFileByTypeIntoMemory() local
909 uint32_t length{}; writeFileByType() local
966 uint32_t length{}; readFileByType() local
1111 uint64_t length{}; newFileAvailable() local
[all...]
/openbmc/u-boot/lib/
H A Dlz4.c110 size_t length; in LZ4_decompress_generic() local
115 if ((length=(token>>ML_BITS)) == RUN_MASK) in LZ4_decompress_generic()
121 length += s; in LZ4_decompress_generic()
124 …if ((safeDecode) && unlikely((size_t)(op+length)<(size_t)(op))) goto _output_error; /* overflow … in LZ4_decompress_generic()
125 …if ((safeDecode) && unlikely((size_t)(ip+length)<(size_t)(ip))) goto _output_error; /* overflow … in LZ4_decompress_generic()
129 cpy = op+length; in LZ4_decompress_generic()
130 …if (((endOnInput) && ((cpy>(partialDecoding?oexit:oend-MFLIMIT)) || (ip+length>iend-(2+1+LASTLITER… in LZ4_decompress_generic()
136 …if ((endOnInput) && (ip+length > iend)) goto _output_error; /* Error : read attempt beyond end o… in LZ4_decompress_generic()
141 …if ((endOnInput) && ((ip+length != iend) || (cpy > oend))) goto _output_error; /* Error : input … in LZ4_decompress_generic()
143 memcpy(op, ip, length); in LZ4_decompress_generic()
[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/u-boot/drivers/mtd/nand/raw/
H A Dfsmc_nand.c49 {.offset = 15, .length = 3},
50 {.offset = 31, .length = 3},
51 {.offset = 47, .length = 3},
52 {.offset = 63, .length = 3},
53 {.offset = 79, .length = 3},
54 {.offset = 95, .length = 3},
55 {.offset = 111, .length = 3},
56 {.offset = 127, .length = 1}
85 {.offset = 15, .length = 3},
86 {.offset = 31, .length = 3},
[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
138 uint32_t *length, uint64_t *address);
153 uint8_t completion_code, uint32_t length,
171 uint32_t length, uint64_t address,
185 uint32_t *length);
288 uint32_t length; //!< Bytes to be read member
297 uint32_t length; //!< Number of bytes read member
308 uint32_t length; //!< Bytes to be written member
318 uint32_t length; //!< Bytes written member
[all …]

12345678910>>...168