/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
D | uuid.py | 101 def __init__(self, hex=None, bytes=None, bytes_le=None, fields=None, argument 128 if [hex, bytes, bytes_le, fields, int].count(None) != 4: 139 bytes = (bytes_le[3] + bytes_le[2] + bytes_le[1] + bytes_le[0] + 142 if bytes is not None: 143 if len(bytes) != 16: 145 int = long(('%02x'*16) % tuple(map(ord, bytes)), 16) 203 bytes = '' 205 bytes = chr((self.int >> shift) & 0xff) + bytes 206 return bytes 208 bytes = property(get_bytes) variable in UUID [all …]
|
/device/google/fuchsia/bioniccompat/src/ |
D | sendfile.cc | 39 int bytes = read(in_fd, buffer, sizeof(buffer)); in sendfile() local 40 if (bytes == 0) { in sendfile() 44 if (bytes < 0) { in sendfile() 45 return bytes; in sendfile() 48 count -= bytes; in sendfile() 51 while(bytes > 0) { in sendfile() 52 int written = write(out_fd, data, bytes); in sendfile() 58 bytes -= written; in sendfile()
|
/device/generic/goldfish-opengl/android-emu/android/base/ |
D | Pool.h | 58 size_t bytes = sizeof(T) * count; in allocArray() local 59 void* res = alloc(bytes); in allocArray() 64 size_t bytes = strlen(toCopy) + 1; in strDup() local 65 void* res = alloc(bytes); in strDup() 66 memset(res, 0x0, bytes); in strDup() 67 memcpy(res, toCopy, bytes); in strDup() 81 void* dupArray(const void* buf, size_t bytes) { in dupArray() argument 82 void* res = alloc(bytes); in dupArray() 83 memcpy(res, buf, bytes); in dupArray()
|
D | AndroidSubAllocator.h | 67 size_t bytes = sizeof(T) * count; in allocArray() local 68 void* res = alloc(bytes); in allocArray() 73 size_t bytes = strlen(toCopy) + 1; in strDup() local 74 void* res = alloc(bytes); in strDup() 75 memset(res, 0x0, bytes); in strDup() 76 memcpy(res, toCopy, bytes); in strDup() 90 void* dupArray(const void* buf, size_t bytes) { in dupArray() argument 91 void* res = alloc(bytes); in dupArray() 92 memcpy(res, buf, bytes); in dupArray()
|
D | ring_buffer.c | 69 bool ring_buffer_can_write(const struct ring_buffer* r, uint32_t bytes) { in ring_buffer_can_write() argument 72 return get_ring_pos(read_view - r->write_pos - 1) >= bytes; in ring_buffer_can_write() 75 bool ring_buffer_can_read(const struct ring_buffer* r, uint32_t bytes) { in ring_buffer_can_read() argument 78 return get_ring_pos(write_view - r->read_pos) >= bytes; in ring_buffer_can_read() 242 uint32_t bytes) { in ring_buffer_view_can_write() argument 246 v, read_view - r->write_pos - 1) >= bytes; in ring_buffer_view_can_write() 252 uint32_t bytes) { in ring_buffer_view_can_read() argument 256 v, write_view - r->read_pos) >= bytes; in ring_buffer_view_can_read() 421 uint32_t bytes, in ring_buffer_wait_write() argument 425 v ? ring_buffer_view_can_write(r, v, bytes) : in ring_buffer_wait_write() [all …]
|
D | ring_buffer.h | 119 uint32_t bytes, 124 uint32_t bytes, 132 uint32_t bytes); 137 uint32_t bytes); 147 uint32_t bytes, 154 uint32_t bytes, 163 const struct ring_buffer* r, uint32_t bytes); 165 const struct ring_buffer* r, uint32_t bytes); 169 uint32_t bytes); 173 uint32_t bytes);
|
/device/google/contexthub/firmware/os/drivers/ams_tmd2772/ |
D | ams_tmd2772.c | 153 uint8_t bytes[AMS_TMD2772_MAX_I2C_TRANSFER_SIZE]; member 256 xfer->txrxBuf.bytes[0] = reg; in writeRegister() 257 xfer->txrxBuf.bytes[1] = value; in writeRegister() 258 ret = i2cMasterTx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf.bytes, 2, i2cCallback, xfer); in writeRegister() 311 xfer->txrxBuf.bytes[0] = AMS_TMD2772_REG_ENABLE; in setMode() 312 xfer->txrxBuf.bytes[1] = POWER_ON_BIT | WAIT_ENABLE_BIT | in setMode() 314 xfer->txrxBuf.bytes[2] = AMS_TMD2772_ATIME_SETTING; in setMode() 315 xfer->txrxBuf.bytes[3] = AMS_TMD2772_PTIME_SETTING; in setMode() 316 …xfer->txrxBuf.bytes[4] = alsOn ? AMS_TMD2772_WTIME_SETTING_ALS_ON : AMS_TMD2772_WTIME_SETTING_ALS_… in setMode() 317 i2cMasterTx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf.bytes, 5, i2cCallback, xfer); in setMode() [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Library/BaseMemoryLibOptDxe/Arm/ |
D | SetMem.asm | 52 cmp r1, #16 ; fewer than 16 bytes of input? 58 str r2, [r0] ; potentially unaligned store of 4 bytes 59 str r3, [r0, #4] ; potentially unaligned store of 4 bytes 60 str r2, [r0, #8] ; potentially unaligned store of 4 bytes 61 str r3, [r0, #12] ; potentially unaligned store of 4 bytes 65 add lr, lr, #16 ; advance the output pointer by 16 bytes 68 strd r2, r3, [lr, #-16] ; aligned store of 16 bytes 79 cmp r4, #4 ; between 4 and 15 bytes? 81 cmp r4, #8 ; between 8 and 15 bytes? 82 str r2, [lr, #-16] ; overlapping store of 4 + (4 + 4) + 4 bytes [all …]
|
/device/amlogic/yukawa/audio/ |
D | fifo_wrapper.cpp | 33 void *fifo_init(uint32_t bytes, bool reader_throttles_writer) { in fifo_init() argument 35 interface->p_buffer = new int8_t[bytes]; in fifo_init() 40 … interface->p_fifo = new audio_utils_fifo(bytes, 1, interface->p_buffer, reader_throttles_writer); in fifo_init() 56 ssize_t fifo_read(void *fifo_itfe, void *buffer, size_t bytes) { in fifo_read() argument 58 return interface->p_fifo_reader->read(buffer, bytes); in fifo_read() 61 ssize_t fifo_write(void *fifo_itfe, void *buffer, size_t bytes) { in fifo_write() argument 63 return interface->p_fifo_writer->write(buffer, bytes); in fifo_write()
|
D | audio_aec.c | 300 size_t bytes = info->bytes; in write_to_reference_fifo() local 303 ssize_t written_bytes = fifo_write(aec->spk_fifo, buffer, bytes); in write_to_reference_fifo() 304 if (written_bytes != bytes) { in write_to_reference_fifo() 305 ALOGE("Could only write %zu of %zu bytes", written_bytes, bytes); in write_to_reference_fifo() 310 info->bytes = written_bytes; in write_to_reference_fifo() 328 spk_time_offset = (aec->last_spk_info.bytes + aec->read_write_diff_bytes) * usec_per_byte; in get_spk_timestamp() 340 aec->read_write_diff_bytes -= aec->last_spk_info.bytes; in get_spk_timestamp() 359 spk_info.bytes, aec->read_write_diff_bytes, timespec_to_usec(spk_info.timestamp)); in get_spk_timestamp() 360 aec->read_write_diff_bytes -= spk_info.bytes; in get_spk_timestamp() 373 size_t bytes = info->bytes; in get_reference_samples() local [all …]
|
D | fifo_wrapper.h | 24 void *fifo_init(uint32_t bytes, bool reader_throttles_writer); 26 ssize_t fifo_read(void *fifo_itfe, void *buffer, size_t bytes); 27 ssize_t fifo_write(void *fifo_itfe, void *buffer, size_t bytes);
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/dlg/ |
D | support.c | 56 char *dlg_malloc(int bytes,char *file,int line) in dlg_malloc() argument 58 char *dlg_malloc(bytes,file,line) in dlg_malloc() 59 int bytes; in dlg_malloc() 66 t = (char *) malloc(bytes); 77 char *dlg_calloc(int n,int bytes,char *file,int line) in dlg_calloc() argument 79 char *dlg_calloc(n,bytes,file,line) in dlg_calloc() 80 int n,bytes; in dlg_calloc() 87 t = (char *) calloc(n,bytes);
|
/device/linaro/bootloader/arm-trusted-firmware/tools/cert_create/src/ |
D | sha.c | 18 int bytes; in sha_file() local 33 while ((bytes = fread(data, 1, BUFFER_SIZE, inFile)) != 0) { in sha_file() 34 SHA256_Update(&shaContext, data, bytes); in sha_file()
|
/device/linaro/bootloader/arm-trusted-firmware/drivers/io/ |
D | io_semihosting.c | 131 size_t bytes = length; in sh_file_read() local 140 sh_result = semihosting_file_read(file_handle, &bytes, buffer); in sh_file_read() 143 *length_read = (bytes != length) ? bytes : length; in sh_file_read() 157 size_t bytes = length; in sh_file_write() local 165 sh_result = semihosting_file_write(file_handle, &bytes, buffer); in sh_file_write() 167 *length_written = length - bytes; in sh_file_write()
|
/device/google/contexthub/util/nanotool/ |
D | androidcontexthub.cpp | 60 const uint8_t *bytes = (const uint8_t *) data; in AppendBytes() local 62 buffer.push_back(bytes[i]); in AppendBytes() 67 sp<JSONObject> json, std::vector<uint8_t>& bytes) { in CopyInt32Array() argument 73 AppendBytes(&val, sizeof(uint32_t), bytes); in CopyInt32Array() 82 sp<JSONObject> json, std::vector<uint8_t>& bytes) { in CopyFloatArray() argument 88 AppendBytes(&val, sizeof(float), bytes); in CopyFloatArray() 97 std::vector<uint8_t>& bytes) { in GetCalibrationBytes() argument 108 success = CopyInt32Array(key, json, bytes); in GetCalibrationBytes() 112 success = CopyFloatArray(key, json, bytes); in GetCalibrationBytes() 120 AppendBytes(&value, sizeof(float), bytes); in GetCalibrationBytes() [all …]
|
/device/google/cuttlefish/common/libs/device_config/ |
D | device_config.cpp | 45 auto bytes = fd->Write(buffer + sent, kDataSize - sent); in SendRawData() local 46 if (bytes < 0) { in SendRawData() 50 sent += bytes; in SendRawData()
|
/device/generic/goldfish-opengl/android-emu/android/base/files/ |
D | Stream.cpp | 91 uint8_t bytes[sizeof(float)]; in putFloat() member 94 this->write(u.bytes, sizeof(u.bytes)); in putFloat() 100 uint8_t bytes[sizeof(float)]; in getFloat() member 102 this->read(u.bytes, sizeof(u.bytes)); in getFloat()
|
/device/linaro/bootloader/edk2/OvmfPkg/QemuVideoDxe/ |
D | VbeShim.sh | 30 "$STEM".bytes 67 | sed -e 's, \+$,,' -e 's/\(..\)/ 0x\1,/g' >"$STEM".bytes 81 paste -d ' ' -- "$STEM".offsets "$STEM".insns "$STEM".bytes
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/scripts/ |
D | lpwatch.py | 56 bytes = int(fields[n-2]) 60 aheadbytes += bytes 62 totalbytes += bytes 66 ubytes += bytes
|
/device/linaro/bootloader/edk2/DuetPkg/BootSector/ |
D | bs32.S | 37 jmp BootSectorEntryPoint # JMP inst - 3 bytes 40 OemId: .ascii "INTEL " # OemId - 8 bytes 62 SectorsPerFat32: .long 0 # Sectors Per FAT for FAT32 - 4 bytes 63 ExtFlags: .word 0 # Mirror Flag - 2 bytes 64 FSVersion: .word 0 # File System Version - 2 bytes 65 RootCluster: .long 0 # 1st Cluster Number of Root Dir - 4 bytes 66 FSInfo: .word 0 # Sector Number of FSINFO - 2 bytes 67 BkBootSector: .word 0 # Sector Number of Bk BootSector - 2 bytes 68 Reserved: .fill 12, 1, 0 # Reserved Field - 12 bytes 72 VolId: .ascii " " # Volume Serial Number - 4 bytes [all …]
|
D | bs32.asm | 35 jmp BootSectorEntryPoint ; JMP inst - 3 bytes 38 OemId db "INTEL " ; OemId - 8 bytes 60 SectorsPerFat32 dd 0 ; Sectors Per FAT for FAT32 - 4 bytes 61 ExtFlags dw 0 ; Mirror Flag - 2 bytes 62 FSVersion dw 0 ; File System Version - 2 bytes 63 RootCluster dd 0 ; 1st Cluster Number of Root Dir - 4 bytes 64 FSInfo dw 0 ; Sector Number of FSINFO - 2 bytes 65 BkBootSector dw 0 ; Sector Number of Bk BootSector - 2 bytes 66 Reserved db 12 dup(0) ; Reserved Field - 12 bytes 70 VolId db " " ; Volume Serial Number - 4 bytes [all …]
|
/device/linaro/bootloader/edk2/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/ |
D | CPU.asl | 33 0) // CPU0 P_BLK length = 6 bytes. 39 0) // CPU1 P_BLK length = 6 bytes. 45 0) // CPU2 P_BLK length = 6 bytes. 51 0) // CPU3 P_BLK length = 6 bytes.
|
/device/linaro/bootloader/edk2/StdLib/Include/sys/ |
D | param.h | 155 #define STACK_ALIGN(sp, bytes) \ argument 156 ((caddr_t)((((unsigned long)(sp)) + (bytes)) & ~(bytes))) 162 #define STACK_ALIGN(sp, bytes) \ argument 163 ((caddr_t)(((unsigned long)(sp)) & ~(bytes)))
|
/device/generic/goldfish-opengl/system/vulkan_enc/ |
D | VulkanStreamGuest.cpp | 40 void alloc(void **ptrAddr, size_t bytes) { in alloc() argument 41 if (!bytes) { in alloc() 46 *ptrAddr = mPool.alloc(bytes); in alloc() 129 void VulkanStreamGuest::alloc(void** ptrAddr, size_t bytes) { in alloc() argument 130 mImpl->alloc(ptrAddr, bytes); in alloc()
|
/device/linaro/bootloader/edk2/OvmfPkg/ |
D | DecomprScratchEnd.fdf.inc | 28 # is to pad the start of PEIFV to 128 bytes. 29 # 120 Zero bytes (padding). 35 # object to 128 bytes. See also the "guided.dummy.txt" 40 # is to pad the start of DXEFV to 16 bytes. 41 # 8 Zero bytes (padding). 47 # object to 16 bytes. See also the "guided.dummy.txt" file
|