/device/google/marlin/liblight/ |
lights.c | 125 size_t bytes = snprintf(buffer, sizeof(buffer), "%d\n", value); local 126 if(bytes >= sizeof(buffer)) return -EINVAL; 127 ssize_t amt = write(fd, buffer, bytes); 148 size_t bytes = snprintf(buffer, sizeof(buffer), "%d %d\n", value1, value2); local 149 if(bytes >= sizeof(buffer)) return -EINVAL; 150 ssize_t amt = write(fd, buffer, bytes);
|
/device/huawei/angler/liblight/ |
lights.c | 104 int bytes = snprintf(buffer, sizeof(buffer), "%d\n", value); local 105 ssize_t amt = write(fd, buffer, (size_t)bytes); 126 int bytes = snprintf(buffer, sizeof(buffer), "%d %d\n", on, off); local 127 int amt = write(fd, buffer, bytes);
|
/device/linaro/bootloader/arm-trusted-firmware/plat/hikey/drivers/ |
dw_mmc.c | 476 unsigned int blk_cnt, bytes, desc_num, buf[4], data; local 482 bytes = blk_cnt * MMC_BLOCK_SIZE; 483 memset((void *)MMC_DATA_BASE, 0, bytes); 485 mmio_write_32(MMC0_BYTCNT, bytes); 489 desc_num = (bytes + MMC_DMA_MAX_BUFFER_SIZE - 1) / 510 (desc + last_idx)->des1 = IDMAC_DES1_BS1(bytes - (last_idx * 548 unsigned int src_blk_cnt, offset, bytes, desc_num, buf[4]; local 565 bytes = src_blk_cnt * MMC_BLOCK_SIZE; 567 mmio_write_32(MMC0_BYTCNT, bytes); 571 desc_num = (bytes + MMC_DMA_MAX_BUFFER_SIZE - 1) 633 unsigned int bytes, resp_buf[4], desc_num; local [all...] |
/device/linaro/bootloader/arm-trusted-firmware/plat/hikey/ |
partitions.c | 133 int bytes; local 136 bytes = sprintf(ptable[entries].name, "ptable"); 137 ptable[entries].name[bytes] = '\0';
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/ |
_randommodule.c | 456 int k, i, bytes;
local 470 bytes = ((k - 1) / 32 + 1) * 4;
471 bytearray = (unsigned char *)PyMem_Malloc(bytes);
478 for (i=0 ; i<bytes ; i+=4, k-=32) {
489 result = _PyLong_FromByteArray(bytearray, bytes, 1, 0);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/pgen2/ |
tokenize.py | 42 bytes
44 # Support bytes type in Python <= 2.5, so 2to3 turns itself into
46 bytes = str
variable 259 (as a string) and a list of any lines (left as bytes) it has read
277 return bytes()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
uuid.py | 38 # get the raw 16 bytes of the UUID
39 >>> x.bytes
43 >>> uuid.UUID(bytes=x.bytes)
61 of 16 bytes (with all the integer fields in big-endian order) as an
62 argument named 'bytes', or a string of 16 bytes (with the first three
68 bytes the UUID as a 16-byte string (containing the six
101 def __init__(self, hex=None, bytes=None, bytes_le=None, fields=None,
104 a string of 16 bytes as the 'bytes' argument, a string of 16 bytes 208 bytes = property(get_bytes) variable in class:UUID [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
_randommodule.c | 441 int k, i, bytes;
local 455 bytes = ((k - 1) / 32 + 1) * 4;
456 bytearray = (unsigned char *)PyMem_Malloc(bytes);
463 for (i=0 ; i<bytes ; i+=4, k-=32) {
474 result = _PyLong_FromByteArray(bytearray, bytes, 1, 0);
|
/external/ImageMagick/MagickCore/ |
cipher.c | 296 Xor corresponding text input and round key input bytes. 999 bytes, local [all...] |
/external/Microsoft-GSL/tests/ |
strided_span_tests.cpp | 450 multi_span<const byte, dynamic_range> bytes = as_bytes(av); local 454 strided_bounds<2> bounds{ { 2, bytes.size() / 4 }, { bytes.size() / 2, 1 } }; 455 strided_span<const byte, 2> sav2{ bytes.data(), bytes.size(), bounds }; 465 strided_bounds<2> bounds{ { 2, bytes.size() / 4 }, { bytes.size() / 2, 1 } }; 466 multi_span<const byte, 2, dynamic_range> bytes2 = as_multi_span(bytes, dim<2>(), dim(bytes.size() / 2)); 478 multi_span<const byte, 2, dynamic_range> bytes2 = as_multi_span(bytes, dim<2>(), dim(bytes.size() / 2)) [all...] |
/external/avb/libavb/ |
avb_util.c | 57 uint8_t bytes[4]; member in union:__anon13188 59 ret.bytes[0] = (in >> 24) & 0xff; 60 ret.bytes[1] = (in >> 16) & 0xff; 61 ret.bytes[2] = (in >> 8) & 0xff; 62 ret.bytes[3] = in & 0xff; 70 uint8_t bytes[8]; member in union:__anon13189 72 ret.bytes[0] = (in >> 56) & 0xff; 73 ret.bytes[1] = (in >> 48) & 0xff; 74 ret.bytes[2] = (in >> 40) & 0xff; 75 ret.bytes[3] = (in >> 32) & 0xff [all...] |
/external/bison/lib/ |
abitset.c | 318 size_t bytes; local 320 bytes = sizeof (bitset_word) * dst->b.csize; 322 memset (dstp, -1, bytes); 331 size_t bytes; local 333 bytes = sizeof (bitset_word) * dst->b.csize; 335 memset (dstp, 0, bytes); 788 size_t bytes; local 794 bytes = header_size + size * sizeof (bitset_word); 800 bytes += bitset_alignment - 1; 801 bytes -= bytes % bitset_alignment [all...] |
bitset.c | 36 /* Return number of bytes required to create a N_BIT bitset 37 of TYPE. The bitset may grow to require more bytes than this. */ 41 size_t bytes; local 52 bytes = abitset_bytes (n_bits); 56 bytes = lbitset_bytes (n_bits); 60 bytes = ebitset_bytes (n_bits); 64 bytes = vbitset_bytes (n_bits); 68 return bytes; 136 size_t bytes; local 139 bytes = bitset_bytes (type, n_bits) 156 size_t bytes; local [all...] |
vbitset.c | 345 unsigned int bytes; local 347 bytes = sizeof (bitset_word) * VBITSET_SIZE (dst); 349 memset (dstp, -1, bytes); 358 unsigned int bytes; local 360 bytes = sizeof (bitset_word) * VBITSET_SIZE (dst); 362 memset (dstp, 0, bytes);
|
/external/boringssl/src/crypto/bn/ |
convert.c | 146 /* Make sure the top bytes will be zeroed. */ 234 /* Write the bytes out one by one. Serialization is done without branching on 290 /* decode_hex decodes |in_len| bytes of hex data from |in| and updates |bn|. */ 337 /* decode_dec decodes |in_len| bytes of decimal data from |in| and updates |bn|. */ 591 const size_t bytes = (bits + 7) / 8; local 595 if (bytes != 0 && (bits & 0x07) == 0) { 599 const size_t len = bytes + extend; 600 if (len < bytes ||
|
/external/boringssl/src/crypto/bytestring/ |
cbs.c | 198 * continuation bytes contain the tag number. This parser only supports tag 331 CBS bytes; local 335 if (!CBS_get_asn1(cbs, &bytes, CBS_ASN1_INTEGER)) { 340 data = CBS_data(&bytes); 341 len = CBS_len(&bytes);
|
/external/chromium-trace/catapult/telemetry/third_party/modulegraph/modulegraph_tests/ |
test_modulegraph.py | 15 bytes 17 bytes = str variable 48 self.assertTrue(isinstance(b, bytes)) 162 self.assertIsInstance(content, bytes) [all...] |
/external/curl/lib/ |
security.c | 163 /* Write |len| bytes from the buffer |to| to the socket |fd|. Return a 268 /* Send |length| bytes from |from| to the |fd| socket taking care of encoding 274 int bytes, htonl_bytes; /* 32-bit integers for htonl */ local 290 bytes = conn->mech->encode(conn->app_data, from, length, prot_level, 292 if(!buffer || bytes <= 0) 296 error = Curl_base64_encode(conn->data, buffer, curlx_sitouz(bytes), 318 htonl_bytes = htonl(bytes); 320 socket_write(conn, fd, buffer, curlx_sitouz(bytes));
|
/external/dhcpcd-6.8.2/ |
arp.c | 129 ssize_t bytes; local 139 bytes = if_readrawpacket(ifp, ETHERTYPE_ARP, 141 if (bytes == -1) { 148 if ((size_t)bytes < sizeof(ar)) 168 if ((hw_t + ar.ar_hln + ar.ar_pln) - arp_buffer > bytes)
|
control.c | 106 ssize_t bytes; local 110 bytes = read(fd->fd, buffer, sizeof(buffer) - 1); 111 if (bytes == -1 || bytes == 0) { 117 buffer[bytes] = '\0'; 119 e = buffer + bytes;
|
/external/e2fsprogs/e2fsck/ |
ea_refcount.c | 53 size_t bytes; local 63 bytes = (size_t) (size * sizeof(struct ea_refcount_el)); 65 printf("Refcount allocated %d entries, %d bytes.\n", 66 refcount->size, bytes); 68 retval = ext2fs_get_mem(bytes, &refcount->list); 71 memset(refcount->list, 0, bytes);
|
/external/elfutils/libdwfl/ |
linux-core-attach.c | 76 unsigned bytes = ebl_get_elfclass (process->ebl) == ELFCLASS64 ? 8 : 4; local 77 if (addr < start || addr + bytes > end) 81 bytes, ELF_T_ADDR); 87 assert (data->d_size == bytes); 88 if (bytes == 8)
|
/external/fio/engines/ |
windowsaio.c | 372 DWORD bytes; local 378 if (!GetQueuedCompletionStatus(ctx->iocp, &bytes, &ulKey, &ovl, 250) && ovl == NULL)
|
/external/flac/libFLAC/ |
bitwriter.c | 53 /* SWAP_BE_WORD_TO_HOST swaps bytes in a uint32_t (which is always big-endian) if necessary to match host byte order */ 202 size_t bytes; local 206 if(!FLAC__bitwriter_get_buffer(bw, &buffer, &bytes)) 209 *crc = (FLAC__uint16)FLAC__crc16(buffer, bytes); 217 size_t bytes; local 221 if(!FLAC__bitwriter_get_buffer(bw, &buffer, &bytes)) 224 *crc = FLAC__crc8(buffer, bytes); 239 FLAC__bool FLAC__bitwriter_get_buffer(FLAC__BitWriter *bw, const FLAC__byte **buffer, size_t *bytes) 255 *bytes = (FLAC__BYTES_PER_WORD * bw->words) + (bw->bits >> 3);
|
/external/freetype/src/pshinter/ |
pshrec.h | 98 FT_Byte* bytes; member in struct:PS_MaskRec_
|