/third_party/skia/tests/ |
H A D | StreamTest.cpp | 41 size_t bytes = stream->read(tmp, len); in test_loop_stream() local 42 REPORTER_ASSERT(reporter, bytes == len); in test_loop_stream() 47 size_t bytes = stream->read(tmp, 1); in test_loop_stream() local 48 REPORTER_ASSERT(reporter, 0 == bytes); in test_loop_stream() 119 size_t bytes = stream->read(&tmp, 1); in TestWStream() local 120 REPORTER_ASSERT(reporter, 0 == bytes); in TestWStream() 148 // we know that packeduint tries to write 1, 2 or 4 bytes for the length, in TestPackedUInt() 353 const uint8_t* expect = expected->bytes(); in stream_peek_test() 366 ERRORF(rep, "Peek returned wrong bytes!"); in stream_peek_test() 459 const uint8_t* ptr = data->bytes(); in DEF_TEST() [all...] |
/third_party/python/Parser/ |
H A D | pegen.c | 153 token->bytes = PyBytes_FromStringAndSize(start, end - start); in initialize_token() 154 if (token->bytes == NULL) { in initialize_token() 158 if (_PyArena_AddPyObject(p->arena, token->bytes) < 0) { in initialize_token() 159 Py_DECREF(token->bytes); in initialize_token() 428 const char *s = PyBytes_AsString(t->bytes); in _PyPegen_expect_soft_keyword() 515 const char *s = PyBytes_AsString(t->bytes); in _PyPegen_name_from_token() 549 PyBytes_AsStringAndSize(t->bytes, &the_token, &size); in _PyPegen_soft_keyword_token() 639 const char *num_raw = PyBytes_AsString(t->bytes); in _PyPegen_number_token()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | filter.h | 86 /* BPF program can access up to 512 bytes of stack space. */ 398 #define bytes_to_bpf_size(bytes) \ 402 if (bytes == sizeof(u8)) \ 404 else if (bytes == sizeof(u16)) \ 406 else if (bytes == sizeof(u32)) \ 408 else if (bytes == sizeof(u64)) \ 416 int bytes = -EINVAL; \ 419 bytes = sizeof(u8); \ 421 bytes = sizeof(u16); \ 423 bytes [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | filter.h | 89 /* BPF program can access up to 512 bytes of stack space. */ 423 #define bytes_to_bpf_size(bytes) \ 427 if (bytes == sizeof(u8)) \ 429 else if (bytes == sizeof(u16)) \ 431 else if (bytes == sizeof(u32)) \ 433 else if (bytes == sizeof(u64)) \ 441 int bytes = -EINVAL; \ 444 bytes = sizeof(u8); \ 446 bytes = sizeof(u16); \ 448 bytes [all...] |
/kernel/linux/linux-6.6/sound/soc/qcom/ |
H A D | lpass-platform.c | 1148 buf->bytes = lpass_platform_rxtx_hardware.buffer_bytes_max; in lpass_platform_prealloc_cdc_dma_buffer() 1152 buf->bytes = lpass_platform_rxtx_hardware.buffer_bytes_max; in lpass_platform_prealloc_cdc_dma_buffer() 1156 buf->bytes = lpass_platform_va_hardware.buffer_bytes_max; in lpass_platform_prealloc_cdc_dma_buffer() 1163 buf->area = (unsigned char * __force)memremap(buf->addr, buf->bytes, MEMREMAP_WC); in lpass_platform_prealloc_cdc_dma_buffer() 1223 unsigned long bytes) in lpass_platform_copy() 1234 ret = copy_from_iter_toio(dma_buf, buf, bytes); in lpass_platform_copy() 1236 if (copy_from_iter((void __force *)dma_buf, bytes, buf) != bytes) in lpass_platform_copy() 1241 ret = copy_to_iter_fromio(buf, dma_buf, bytes); in lpass_platform_copy() 1243 if (copy_to_iter((void __force *)dma_buf, bytes, bu in lpass_platform_copy() 1220 lpass_platform_copy(struct snd_soc_component *component, struct snd_pcm_substream *substream, int channel, unsigned long pos, struct iov_iter *buf, unsigned long bytes) lpass_platform_copy() argument [all...] |
/third_party/elfutils/libcpu/ |
H A D | i386_parse.y | 102 struct bitvalue *bytes; 189 static void fillin_arg (struct bitvalue *bytes, struct argname *name, 236 %type <bit> bit byte bytes 284 instr: bytes ':' bitfieldopt kID bitfieldopt optargs 306 newp->bytes = $1; 389 bytes: bytes ',' byte label 772 fillin_arg (struct bitvalue *bytes, struct argname *name, 822 struct bitvalue *b = bytes; 1251 /* First count the number of bytes [all...] |
/third_party/backends/backend/ |
H A D | canon_pp.c | 1142 unsigned int lines, bytes, bpl; in sane_read() local 1194 DBG(100, "sane_read: sent %d bytes, still have %d to " in sane_read() 1240 bytes = lines * bpl; in sane_read() 1243 if ((lbuf = malloc(bytes)) == NULL) in sane_read() 1290 DBG(10, "sane_read: bpl=%d, lines=%d, bytes=%d\n", bpl, lines, bytes); in sane_read() 1298 for(i = 0; i < bytes; i++) in sane_read() 1312 for(i = 0; i < (bytes/2); i++) in sane_read() 1332 if (bytes <= (unsigned int)maxlen) in sane_read() 1335 memcpy(buf, lbuf, bytes); in sane_read() [all...] |
H A D | canon630u-common.c | 294 /* write multiple bytes, one at a time (non-bulk) */ 317 /* read multiple bytes, one at a time (non-bulk) */ 398 /* Bulk read "ks" kilobytes + "remainder" bytes of data, to a buffer if the 404 int bytes = (ks - 1) * 1024 + remainder; in read_bulk_size() local 405 int dropdata = ((dest == 0) || (destsize < bytes)); in read_bulk_size() 407 if (bytes < 0) in read_bulk_size() 409 DBG (1, "read_bulk_size: invalid size %02x (%d)\n", ks, bytes); in read_bulk_size() 412 if (destsize && (destsize < bytes)) in read_bulk_size() 415 destsize, bytes); in read_bulk_size() 416 bytes in read_bulk_size() [all...] |
/third_party/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
H A D | CollationAPITest.java | 65 byte[] bytes = sortk1.toByteArray(); in TestCollationKey() 66 doAssert(bytes.length == 3 && bytes[0] == 1 && bytes[1] == 1 in TestCollationKey() 67 && bytes[2] == 0, in TestCollationKey() 147 if (key.bytes != null || key.size != 0) { in TestRawCollationKey() 148 errln("Empty default constructor expected to leave the bytes null " in TestRawCollationKey() 153 if (key.bytes != array || key.size != 0) { in TestRawCollationKey() 172 if (key.bytes != array || key.size != (array.length >> 1)) { in TestRawCollationKey() 177 if (key.bytes in TestRawCollationKey() [all...] |
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/collator/ |
H A D | CollationAPITest.java | 68 byte[] bytes = sortk1.toByteArray(); in TestCollationKey() 69 doAssert(bytes.length == 3 && bytes[0] == 1 && bytes[1] == 1 in TestCollationKey() 70 && bytes[2] == 0, in TestCollationKey() 150 if (key.bytes != null || key.size != 0) { in TestRawCollationKey() 151 errln("Empty default constructor expected to leave the bytes null " in TestRawCollationKey() 156 if (key.bytes != array || key.size != 0) { in TestRawCollationKey() 175 if (key.bytes != array || key.size != (array.length >> 1)) { in TestRawCollationKey() 180 if (key.bytes in TestRawCollationKey() [all...] |
/third_party/mesa3d/src/amd/compiler/ |
H A D | aco_print_ir.cpp | 93 fprintf(output, " v%ub: ", rc.bytes()); in print_reg_class() 104 print_physReg(PhysReg reg, unsigned bytes, FILE* output, unsigned flags) in print_physReg() argument 117 unsigned size = DIV_ROUND_UP(bytes, 4); in print_physReg() 127 if (reg.byte() || bytes % 4) in print_physReg() 128 fprintf(output, "[%d:%d]", reg.byte() * 8, (reg.byte() + bytes) * 8); in print_physReg() 159 if (operand->isLiteral() || (operand->isConstant() && operand->bytes() == 1)) { in aco_print_operand() 160 if (operand->bytes() == 1) in aco_print_operand() 162 else if (operand->bytes() == 2) in aco_print_operand() 185 print_physReg(operand->physReg(), operand->bytes(), output, flags); in aco_print_operand() 206 print_physReg(definition->physReg(), definition->bytes(), outpu in print_definition() [all...] |
/third_party/icu/icu4c/source/test/cintltst/ |
H A D | trie2test.c | 385 uint32_t value, bytes; in testTrieUTF8() local 395 /* first a couple of trail bytes in lead position */ in testTrieUTF8() 465 bytes=0; in testTrieUTF8() 469 bytes=(bytes<<8)|s[k++]; in testTrieUTF8() 473 log_err("error: wrong value from UTRIE2_U8_NEXT(%s)(from %d %lx->U+%04lx) (read %d bytes): " in testTrieUTF8() 475 testName, (int)prev8, (unsigned long)bytes, (long)c, (int)((p-s)-prev8), in testTrieUTF8() 480 testName, (int)prev8, (unsigned long)bytes, (long)c, (long)(p-s), (long)i8); in testTrieUTF8() 498 bytes=0; in testTrieUTF8() 502 bytes in testTrieUTF8() [all...] |
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/ |
H A D | VkImage.cpp | 308 int bufferRowBytes = backingMemory.stride * getFormat().bytes(); in prepareForExternalUseANDROID() 382 // an image to another image that has the same number of bytes per pixel. in copySingleAspectTo() 451 // both source and destination rows have the same size in bytes in copySingleAspectTo() 455 // formats, rowPitchBytes returns the number of bytes for a row of in copySingleAspectTo() 459 // block has 16 bytes and represents 5 rows, we change the equation to: in copySingleAspectTo() 465 // both source and destination slices have the same size in bytes in copySingleAspectTo() 1321 int bytes = decompressedImage->format.bytes(); in decodeETC2() local 1334 sizeToWrite = ((mipLevelExtent.height - 1) * pitchB) + (mipLevelExtent.width * bytes); in decodeETC2() 1349 pitchB, bytes, inputTyp in decodeETC2() 1360 int bytes = decompressedImage->format.bytes(); decodeBC() local 1385 int bytes = decompressedImage->format.bytes(); decodeASTC() local [all...] |
/kernel/linux/linux-5.10/drivers/md/ |
H A D | md-bitmap.c | 221 int last_page_size = store->bytes & (PAGE_SIZE-1); in write_sb_page() 604 /* bits to bytes */ in md_bitmap_read_sb() 615 int bytes = isize > PAGE_SIZE ? PAGE_SIZE : isize; in md_bitmap_read_sb() local 618 bitmap, bytes, sb_page); in md_bitmap_read_sb() 776 unsigned long bytes; in md_bitmap_storage_alloc() local 778 bytes = DIV_ROUND_UP(chunks, 8); in md_bitmap_storage_alloc() 780 bytes += sizeof(bitmap_super_t); in md_bitmap_storage_alloc() 782 num_pages = DIV_ROUND_UP(bytes, PAGE_SIZE); in md_bitmap_storage_alloc() 821 store->bytes = bytes; in md_bitmap_storage_alloc() 2088 long bytes; md_bitmap_resize() local [all...] |
/kernel/linux/linux-6.6/drivers/md/ |
H A D | md-bitmap.c | 239 unsigned int last_page_size = store->bytes & (PAGE_SIZE - 1); in __write_sb_page() 647 /* bits to bytes */ in md_bitmap_read_sb() 658 int bytes = isize > PAGE_SIZE ? PAGE_SIZE : isize; in md_bitmap_read_sb() local 661 bitmap, bytes, sb_page); in md_bitmap_read_sb() 816 unsigned long bytes; in md_bitmap_storage_alloc() local 818 bytes = DIV_ROUND_UP(chunks, 8); in md_bitmap_storage_alloc() 820 bytes += sizeof(bitmap_super_t); in md_bitmap_storage_alloc() 822 num_pages = DIV_ROUND_UP(bytes, PAGE_SIZE); in md_bitmap_storage_alloc() 860 store->bytes = bytes; in md_bitmap_storage_alloc() 2159 long bytes; md_bitmap_resize() local [all...] |
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/ |
H A D | snps_udc_core.c | 64 * slave mode: pending bytes in rx fifo after nyet, 653 unsigned bytes = 0; in udc_txfifo_write() local 665 bytes = ep->ep.maxpacket; in udc_txfifo_write() 666 if (bytes > remaining) in udc_txfifo_write() 667 bytes = remaining; in udc_txfifo_write() 670 for (i = 0; i < bytes / UDC_DWORD_BYTES; i++) in udc_txfifo_write() 673 /* remaining bytes must be written by byte access */ in udc_txfifo_write() 674 for (j = 0; j < bytes % UDC_DWORD_BYTES; j++) { in udc_txfifo_write() 695 /* Read bytes from RX fifo for OUT transfers */ 696 static int udc_rxfifo_read_bytes(struct udc *dev, u8 *buf, int bytes) in udc_rxfifo_read_bytes() argument 725 unsigned bytes = 0; udc_rxfifo_read() local 764 unsigned long bytes = req->req.length; udc_create_dma_chain() local [all...] |
/kernel/linux/linux-6.6/drivers/usb/gadget/udc/ |
H A D | snps_udc_core.c | 63 * slave mode: pending bytes in rx fifo after nyet, 649 unsigned bytes = 0; in udc_txfifo_write() local 661 bytes = ep->ep.maxpacket; in udc_txfifo_write() 662 if (bytes > remaining) in udc_txfifo_write() 663 bytes = remaining; in udc_txfifo_write() 666 for (i = 0; i < bytes / UDC_DWORD_BYTES; i++) in udc_txfifo_write() 669 /* remaining bytes must be written by byte access */ in udc_txfifo_write() 670 for (j = 0; j < bytes % UDC_DWORD_BYTES; j++) { in udc_txfifo_write() 691 /* Read bytes from RX fifo for OUT transfers */ 692 static int udc_rxfifo_read_bytes(struct udc *dev, u8 *buf, int bytes) in udc_rxfifo_read_bytes() argument 721 unsigned bytes = 0; udc_rxfifo_read() local 760 unsigned long bytes = req->req.length; udc_create_dma_chain() local [all...] |
/third_party/python/Lib/test/ |
H A D | test_codecs.py | 41 MAX_LEADBYTES = 12 # 5 ranges, 2 bytes ea., 0 term. 59 queue: write bytes at one end, read bytes from the other end 122 q.write(bytes([c])) 133 result += d.decode(bytes([c])) 143 result += d.decode(bytes([c])) 153 "".join(codecs.iterdecode([bytes([c]) for c in encoded], self.encoding)) 944 other_ascii = ''.join(sorted(set(bytes(range(0x80)).decode()) - 1173 b = bytes([b]) 1200 b = bytes([ [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
H A D | msg_zerocopy.c | 95 static long packets, bytes, completions, expected_completions; variable 214 bytes += ret; in do_sendmsg() 566 packets, bytes >> 20, completions, in do_tx() 603 /* Flush all outstanding bytes for the tcp receive queue */ 608 /* MSG_TRUNC flushes up to len bytes */ in do_flush_tcp() 618 bytes += ret; in do_flush_tcp() 621 /* Flush all outstanding datagrams. Verify first few bytes of each. */ 648 bytes += cfg_payload_len; in do_flush_datagram() 673 fprintf(stderr, "rx=%lu (%lu MB)\n", packets, bytes >> 20); in do_rx()
|
/kernel/linux/linux-6.6/drivers/spi/ |
H A D | spi-rockchip-sfc.c | 367 u8 bytes = len & 0x3; in rockchip_sfc_write_fifo() local 384 /* write the rest non word aligned bytes */ in rockchip_sfc_write_fifo() 385 if (bytes) { in rockchip_sfc_write_fifo() 389 memcpy(&tmp, buf, bytes); in rockchip_sfc_write_fifo() 398 u8 bytes = len & 0x3; in rockchip_sfc_read_fifo() local 416 /* read the rest non word aligned bytes */ in rockchip_sfc_read_fifo() 417 if (bytes) { in rockchip_sfc_read_fifo() 422 memcpy(buf, &tmp, bytes); in rockchip_sfc_read_fifo()
|
/kernel/linux/linux-6.6/drivers/soc/fsl/dpio/ |
H A D | dpio-service.c | 38 u64 bytes; member 191 obj->bytes = 0; in dpaa2_io_create() 879 * @bytes: how many bytes have been dequeued by the user since the last call 881 void dpaa2_io_update_net_dim(struct dpaa2_io *d, __u64 frames, __u64 bytes) in dpaa2_io_update_net_dim() argument 890 d->bytes += bytes; in dpaa2_io_update_net_dim() 893 dim_update_sample(d->event_ctr, d->frames, d->bytes, &dim_sample); in dpaa2_io_update_net_dim()
|
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | msg_zerocopy.c | 95 static long packets, bytes, completions, expected_completions; variable 214 bytes += ret; in do_sendmsg() 566 packets, bytes >> 20, completions, in do_tx() 603 /* Flush all outstanding bytes for the tcp receive queue */ 608 /* MSG_TRUNC flushes up to len bytes */ in do_flush_tcp() 618 bytes += ret; in do_flush_tcp() 621 /* Flush all outstanding datagrams. Verify first few bytes of each. */ 648 bytes += cfg_payload_len; in do_flush_datagram() 673 fprintf(stderr, "rx=%lu (%lu MB)\n", packets, bytes >> 20); in do_rx()
|
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/packaging/ |
H A D | metadata.py | 233 def _get_payload(msg: email.message.Message, source: Union[bytes, str]) -> str: 240 # If our source is a bytes, then we're managing the encoding and we need 243 bpayload: bytes = msg.get_payload(decode=True) 295 def parse_email(data: Union[bytes, str]) -> Tuple[RawMetadata, Dict[str, List[str]]]: 332 # The way the email module works when parsing bytes is that it 333 # unconditionally decodes the bytes as ascii using the surrogateescape 360 chunks: List[Tuple[bytes, Optional[str]]] = [] 448 parsed.get_payload(decode=isinstance(data, bytes)) 726 cls, data: Union[bytes, str], *, validate: bool = True
|
/third_party/icu/icu4c/source/samples/ucnv/ |
H A D | convsamp.cpp | 178 len will contain the number of bytes in target[] which were 197 'len' returns the number of OUTPUT bytes resulting from the 272 The 'buffersize' is in bytes of input. 275 expected for a given number of input bytes. 281 UChars as the input buffer has bytes. 285 chars as bytes are needed. 325 printf("input bytes %d / min chars %d = %d UChars\n", in convsample_05() 334 // Convert bytes to unicode in convsample_05() 427 fprintf(stderr, " Couldn't allocate %d bytes for freq counter\n", static_cast<int>(sizeof(CharFreqInfo)*charCount)); in convsample_06() 442 printf("input bytes in convsample_06() 624 char bytes[100]; convsample_20_didSubstitute() local 718 char bytes[100]; convsample_21_didSubstitute() local [all...] |
/third_party/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
H A D | CharsetBOCU1.java | 39 /* number of lead bytes */ 46 /* number of trail bytes */ 55 /* number of lead bytes for positive and negative 2/3/4-byte sequences */ 101 * External byte values that are illegal as trail bytes are mapped to -1. 164 * but are also used as trail bytes in difference encoding 219 /** Is a diff value encodable in two bytes? */ 276 * Encode a difference -0x10ffff..0x10ffff in 1..4 bytes 299 /* two bytes */ in packDiff() 309 /* three bytes */ in packDiff() 323 /* four bytes */ in packDiff() 691 byte[] bytes; global() field in CharsetBOCU1.CharsetDecoderBOCU [all...] |