/device/google/contexthub/util/stm32_flash/ |
D | flash.c | 35 static inline size_t pad(ssize_t length) in pad() argument 37 return (length + 3) & ~3; in pad() 40 static inline size_t tot_len(ssize_t length) in tot_len() argument 43 return sizeof(uint32_t) + pad(length) + sizeof(uint32_t); in tot_len() 78 ssize_t length = 0; in main() local 119 length = strtol(optarg, NULL, 0); in main() 205 if (length == 0 || length > buf.st_size) in main() 206 length = buf.st_size; in main() 208 if (fread(&buffer[sizeof(uint32_t)], 1, length, file) < (size_t)length) { in main() 213 printf("Writing %zd bytes from %s to 0x%08x\n", length, in main() [all …]
|
D | stm32_bl.c | 26 uint8_t checksum(__attribute__((unused)) handle_t *handle, uint8_t *bytes, int length) in checksum() argument 31 if (length == 1) { in checksum() 33 } else if (length > 1) { in checksum() 34 for (csum=0,i=0; i<length; i++) in checksum() 120 uint8_t read_memory(handle_t *handle, uint32_t addr, uint32_t length, uint8_t *buffer) in read_memory() argument 125 while (ret == CMD_ACK && length > offset) { in read_memory() 132 if (length-offset >= 256) { in read_memory() 140 write_len(handle, length-offset); in read_memory() 143 handle->read_data(handle, &buffer[offset], length - offset); in read_memory() 144 offset = length; in read_memory() [all …]
|
D | i2c.c | 26 uint8_t i2c_write_data(handle_t *handle, uint8_t *buffer, int length) in i2c_write_data() argument 30 buffer[length] = checksum(handle, buffer, length); in i2c_write_data() 32 if (write(i2c_handle->fd, buffer, length+1) == (length+1)) in i2c_write_data() 48 uint8_t i2c_read_data(handle_t *handle, uint8_t *data, int length) in i2c_read_data() argument 52 if (read(i2c_handle->fd, data, length) == length) in i2c_read_data()
|
D | stm32_bl.h | 36 uint8_t (*write_data)(struct handle *, uint8_t *buffer, int length); 38 uint8_t (*read_data)(struct handle *, uint8_t *buffer, int length); 42 uint8_t checksum(handle_t *handle, uint8_t *bytes, int length); 44 uint8_t read_memory(handle_t *handle, uint32_t addr, uint32_t length, uint8_t *buffer); 45 uint8_t write_memory(handle_t *handle, uint32_t addr, uint32_t length, uint8_t *buffer);
|
D | spi.c | 24 uint8_t spi_write_data(handle_t *handle, uint8_t *buffer, int length) in spi_write_data() argument 29 .len = length + 1, in spi_write_data() 35 buffer[length] = checksum(handle, buffer, length); in spi_write_data() 38 return buffer[length]; in spi_write_data() 66 uint8_t spi_read_data(handle_t *handle, uint8_t *data, int length) in spi_read_data() argument 81 .len = length, in spi_read_data()
|
D | stm32f4_crc.c | 45 uint32_t stm32f4_crc32(uint8_t *buffer, int length) in stm32f4_crc32() argument 53 for (i=0; i<(length>>2); i++) { in stm32f4_crc32() 58 if (length & 0x3) { in stm32f4_crc32() 59 for (i*=4, word=0; i<length; i++) in stm32f4_crc32()
|
D | spi.h | 28 uint8_t spi_write_data(handle_t *handle, uint8_t *buffer, int length); 30 uint8_t spi_read_data(handle_t *handle, uint8_t *data, int length);
|
D | i2c.h | 29 uint8_t i2c_write_data(handle_t *handle, uint8_t *buffer, int length); 31 uint8_t i2c_read_data(handle_t *handle, uint8_t *data, int length);
|
/device/google/contexthub/util/nanotool/ |
D | nanopacket.cpp | 44 uint32_t Crc32(const uint8_t *buffer, int length) { in Crc32() argument 49 for (i = 0; i < (length >> 2); i++) { in Crc32() 54 if (length & 0x3) { in Crc32() 57 for (i*=4; i<length; i++) { in Crc32() 145 NanoPacket::ParseResult NanoPacket::Parse(uint8_t *buffer, size_t length, in Parse() argument 147 for (size_t i = 0; i < length; i++) { in Parse() 165 uint8_t length = buffer[i]; in Parse() local 166 if (length > 0) { in Parse() 191 *bytes_parsed = length; in Parse()
|
/device/linaro/hikey/installer/ |
D | hisi-idt.py | 123 def sendheadframe(self,length,address): argument 125 self.headframe[self.chip][4] = (length>>24)&0xff 126 self.headframe[self.chip][5] = (length>>16)&0xff 127 self.headframe[self.chip][6] = (length>>8)&0xff 128 self.headframe[self.chip][7] = (length)&0xff 168 length=len(data) 169 self.sendheadframe(length,address) 171 while length > self.MAX_DATA_LEN: 174 length = length-self.MAX_DATA_LEN
|
/device/google/contexthub/firmware/src/platform/stm32f4xx/ |
D | bl.c | 203 uint32_t length; member 287 static void blExtApiGetSnum(uint32_t *snum, uint32_t length) in blExtApiGetSnum() argument 292 if (length > 3) in blExtApiGetSnum() 293 length = 3; in blExtApiGetSnum() 295 for (i = 0; i < length; i++) in blExtApiGetSnum() 402 static void blWriteBytes(uint8_t *dst, const uint8_t *src, uint32_t length) in blWriteBytes() argument 420 for (i = 0; i < length; i++) { in blWriteBytes() 429 static bool blProgramFlash(uint8_t *dst, const uint8_t *src, uint32_t length, uint32_t key1, uint32… in blProgramFlash() argument 436 if (((length == 0)) || in blProgramFlash() 437 ((0xFFFFFFFF - (uint32_t)dst) < (length - 1)) || in blProgramFlash() [all …]
|
D | platform.c | 141 userData->length = 0; in platLogAllocUserData() 155 mEarlyLogBufferCnt += userData->length + HOSTINTF_HEADER_SIZE; in platEarlyLogFree() 173 i += HOSTINTF_HEADER_SIZE + userData->length; in platEarlyLogFlush() 202 if (buffer->length == sizeof(uint64_t) + HOSTINTF_SENSOR_DATA_MAX) { in platLogPutcharF() 203 buffer->buffer[buffer->length - 1] = '\n'; in platLogPutcharF() 206 buffer->buffer[buffer->length - 1] = '\n'; in platLogPutcharF() 208 buffer->buffer[buffer->length++] = ch; in platLogPutcharF() 212 buffer->buffer[buffer->length++] = ch; in platLogPutcharF() 595 uint64_t predecrement = 0, curTime = timGetTime(), length = mWakeupTime - curTime, intState; in platSleep() local 619 if (predecrement > length) in platSleep() [all …]
|
/device/generic/goldfish/camera/ |
D | EmulatedCameraHotplugThread.cpp | 149 int length = TEMP_FAILURE_RETRY( in threadLoop() local 152 if (length < 0) { in threadLoop() 160 ALOGV("%s: Read %d bytes from inotify FD", __FUNCTION__, length); in threadLoop() 163 while (i < length) { in threadLoop() 349 int length; in readFile() local 351 length = TEMP_FAILURE_RETRY( in readFile() 357 __FUNCTION__, filePath.string(), length, buffer[0]); in readFile() 359 if (length == 0) { // EOF in readFile()
|
/device/google/contexthub/firmware/src/ |
D | timer.c | 146 static uint32_t timTimerSetEx(uint64_t length, uint32_t jitterPpm, uint32_t driftPpm, TaggedPtr inf… in timTimerSetEx() argument 163 t->expires = curTime + length; in timTimerSetEx() 164 t->period = oneShot ? 0 : length; in timTimerSetEx() 181 uint32_t timTimerSet(uint64_t length, uint32_t jitterPpm, uint32_t driftPpm, TimTimerCbkF cbk, void… in timTimerSet() argument 183 return timTimerSetEx(length, jitterPpm, driftPpm, taggedPtrMakeFromPtr(cbk), data, oneShot); in timTimerSet() 186 uint32_t timTimerSetAsApp(uint64_t length, uint32_t jitterPpm, uint32_t driftPpm, uint32_t tid, voi… in timTimerSetAsApp() argument 188 return timTimerSetEx(length, jitterPpm, driftPpm, taggedPtrMakeFromUint(0), data, oneShot); in timTimerSetAsApp()
|
D | hostIntf.c | 498 sensor->buffer.length = 0; in resetBuffer() 537 if (mActiveSensorTable[mLastSensor].buffer.length > 0) { in hostIntfPacketDequeue() 768 …simpleQueueEnqueue(mOutputQ, &sensor->buffer, sizeof(uint32_t) + sensor->buffer.length, sensor->di… in copyTripleSamplesRaw() 779 …sensor->buffer.length = sizeof(struct RawTripleAxisDataEvent) + sizeof(struct RawTripleAxisDataPoi… in copyTripleSamplesRaw() 795 …QueueEnqueue(mOutputQ, &sensor->buffer, sizeof(uint32_t) + sensor->buffer.length, sensor->discard); in copyTripleSamplesRaw() 799 …QueueEnqueue(mOutputQ, &sensor->buffer, sizeof(uint32_t) + sensor->buffer.length, sensor->discard); in copyTripleSamplesRaw() 806 sensor->buffer.length += sizeof(struct RawTripleAxisDataPoint); in copyTripleSamplesRaw() 819 sensor->buffer.length += sizeof(struct RawTripleAxisDataPoint); in copyTripleSamplesRaw() 840 …simpleQueueEnqueue(mOutputQ, &sensor->buffer, sizeof(uint32_t) + sensor->buffer.length, sensor->di… in copySingleSamples() 851 … sensor->buffer.length = sizeof(struct SingleAxisDataEvent) + sizeof(struct SingleAxisDataPoint); in copySingleSamples() [all …]
|
D | simpleQ.c | 146 bool simpleQueueEnqueue(struct SimpleQueue* sq, const void *data, int length, bool possiblyDiscarda… in simpleQueueEnqueue() argument 150 if (length > sq->entrySz - sizeof(struct SimpleQueueEntry)) in simpleQueueEnqueue() 176 memcpy(e->data, data, length); in simpleQueueEnqueue()
|
/device/linaro/hikey/gralloc/ |
D | framebuffer_device.cpp | 243 info.red.length = 5; in init_frame_buffer_locked() 245 info.green.length = 6; in init_frame_buffer_locked() 247 info.blue.length = 5; in init_frame_buffer_locked() 249 info.transp.length = 0; in init_frame_buffer_locked() 256 info.red.length = 8; in init_frame_buffer_locked() 258 info.green.length = 8; in init_frame_buffer_locked() 260 info.blue.length = 8; in init_frame_buffer_locked() 262 info.transp.length = 8; in init_frame_buffer_locked() 342 info.red.offset, info.red.length, in init_frame_buffer_locked() 343 info.green.offset, info.green.length, in init_frame_buffer_locked() [all …]
|
/device/generic/goldfish/opengl/shared/OpenglCodecCommon/ |
D | glUtils.cpp | 441 void glUtilsPackStrings(char *ptr, char **strings, GLint *length, GLsizei count) in glUtilsPackStrings() argument 448 if (length == NULL || length[i] < 0) { in glUtilsPackStrings() 452 l = length[i]; in glUtilsPackStrings() 461 int glUtilsCalcShaderSourceLen( char **strings, GLint *length, GLsizei count) in glUtilsCalcShaderSourceLen() argument 466 if (length == NULL || length[i] < 0) { in glUtilsCalcShaderSourceLen() 469 l = length[i]; in glUtilsCalcShaderSourceLen()
|
D | glUtils.h | 58 void glUtilsPackStrings(char *ptr, char **strings, GLint *length, GLsizei count); 59 int glUtilsCalcShaderSourceLen(char **strings, GLint *length, GLsizei count);
|
/device/asus/fugu/recovery/ |
D | recovery_ui.cpp | 75 current_mode.red.length = 8; in SetupDisplayMode() 77 current_mode.green.length = 8; in SetupDisplayMode() 79 current_mode.blue.length = 8; in SetupDisplayMode()
|
/device/google/contexthub/firmware/inc/platform/stm32f4xx/ |
D | bl.h | 66 void (*blGetSnum)(uint32_t *snum, uint32_t length); 69 …bool (*blProgramShared)(uint8_t *dst, const uint8_t *src, uint32_t length, uint32_t key… 71 …bool (*blProgramEe)(uint8_t *dst, const uint8_t *src, uint32_t length, uint32_t key1, u…
|
/device/generic/goldfish/opengl/system/GLESv2_enc/ |
D | gl2_entry.cpp | 63 …void glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size… 64 …void glGetActiveUniform(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* siz… 74 void glGetProgramInfoLog(GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog); 77 void glGetShaderInfoLog(GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog); 79 void glGetShaderSource(GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source); 106 …inary(GLsizei n, const GLuint* shaders, GLenum binaryformat, const GLvoid* binary, GLsizei length); 107 …void glShaderSource(GLuint shader, GLsizei count, const GLchar* const* string, const GLint* length… 153 …void glGetProgramBinaryOES(GLuint program, GLsizei bufSize, GLsizei* length, GLenum* binaryFormat,… 154 void glProgramBinaryOES(GLuint program, GLenum binaryFormat, const GLvoid* binary, GLint length); 172 …void glGetPerfMonitorGroupStringAMD(GLuint group, GLsizei bufSize, GLsizei* length, GLchar* groupS… [all …]
|
/device/google/contexthub/firmware/inc/ |
D | timer.h | 42 uint32_t timTimerSet(uint64_t length, uint32_t jitterPpm, uint32_t driftPpm, TimTimerCbkF cbk, void… 43 uint32_t timTimerSetAsApp(uint64_t length, uint32_t jitterPpm, uint32_t driftPpm, uint32_t tid, voi…
|
/device/moto/shamu/camera/QCamera/HAL/core/src/ |
D | QCameraHWI_Rdi.cpp | 122 void* cbcr_off = newFrame->buffer + newFrame->planes[0].length; in dumpFrameToFile() 124 write(file_fd, (const void *)(y_off), newFrame->planes[0].length); in dumpFrameToFile() 126 (newFrame->planes[1].length * newFrame->num_planes)); in dumpFrameToFile()
|
/device/moto/shamu/camera/QCamera/stack/mm-camera-test/src/ |
D | mm_qcamera_rdi.c | 74 void *cbcr_off = newFrame->buffer + newFrame->planes[0].length; in dumpRdi() 76 …ength = %d cbcr_off length = %d", __func__, newFrame->planes[0].length,newFrame->planes[1].length); in dumpRdi() 78 write(file_fd, (const void *)(y_off), newFrame->planes[0].length); in dumpRdi() 80 (newFrame->planes[1].length * newFrame->num_planes)); in dumpRdi()
|