Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 765) sorted by relevance

12345678910>>...31

/hardware/bsp/intel/peripheral/libupm/src/nrf8001/
Dacilib.cxx42 void acil_encode_cmd_set_test_mode(uint8_t *buffer, aci_cmd_params_test_t *p_aci_cmd_params_test) in acil_encode_cmd_set_test_mode() argument
44 *(buffer + OFFSET_ACI_CMD_T_LEN) = 2; in acil_encode_cmd_set_test_mode()
45 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_TEST; in acil_encode_cmd_set_test_mode()
46 …*(buffer + OFFSET_ACI_CMD_T_TEST + OFFSET_ACI_CMD_PARAMS_TEST_T_TEST_MODE_CHANGE) = p_aci_cmd_para… in acil_encode_cmd_set_test_mode()
49 void acil_encode_cmd_sleep(uint8_t *buffer) in acil_encode_cmd_sleep() argument
51 *(buffer + OFFSET_ACI_CMD_T_LEN) = 1; in acil_encode_cmd_sleep()
52 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_SLEEP; in acil_encode_cmd_sleep()
55 void acil_encode_cmd_get_device_version(uint8_t *buffer) in acil_encode_cmd_get_device_version() argument
57 *(buffer + OFFSET_ACI_CMD_T_LEN) = 1; in acil_encode_cmd_get_device_version()
58 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_GET_DEVICE_VERSION; in acil_encode_cmd_get_device_version()
[all …]
Dacilib_if.h40 void acil_encode_cmd_set_test_mode(uint8_t *buffer, aci_cmd_params_test_t *p_aci_cmd_params_test);
48 void acil_encode_cmd_sleep(uint8_t *buffer);
56 void acil_encode_cmd_get_device_version(uint8_t *buffer);
66 void acil_encode_cmd_set_local_data(uint8_t *buffer, aci_cmd_params_set_local_data_t *p_aci_cmd_par…
75 void acil_encode_cmd_connect(uint8_t *buffer, aci_cmd_params_connect_t *p_aci_cmd_params_connect);
84 void acil_encode_cmd_bond(uint8_t *buffer, aci_cmd_params_bond_t *p_aci_cmd_params_bond);
93 void acil_encode_cmd_disconnect(uint8_t *buffer, aci_cmd_params_disconnect_t *p_aci_cmd_params_disc…
101 void acil_encode_baseband_reset(uint8_t *buffer);
109 void acil_encode_direct_connect(uint8_t *buffer);
117 void acil_encode_cmd_wakeup(uint8_t *buffer);
[all …]
Dlib_aci.cxx136 msg_to_send.buffer[0] = 4; //Length in lib_aci_board_init()
137 msg_to_send.buffer[1] = 0x81; //Device Started Event in lib_aci_board_init()
138 msg_to_send.buffer[2] = 0x02; //Setup in lib_aci_board_init()
139 msg_to_send.buffer[3] = 0; //Hardware Error -> None in lib_aci_board_init()
140 msg_to_send.buffer[4] = 2; //Data Credit Available in lib_aci_board_init()
146 msg_to_send.buffer[0] = 4; //Length in lib_aci_board_init()
147 msg_to_send.buffer[1] = 0x81; //Device Started Event in lib_aci_board_init()
148 msg_to_send.buffer[2] = 0x03; //Standby in lib_aci_board_init()
149 msg_to_send.buffer[3] = 0; //Hardware Error -> None in lib_aci_board_init()
150 msg_to_send.buffer[4] = 2; //Data Credit Available in lib_aci_board_init()
[all …]
Dhal_aci_tl.cxx60 const uint8_t length = p_data->buffer[0]; in m_aci_data_print()
66 printf("%x", p_data->buffer[i]); in m_aci_data_print()
85 data_to_send.buffer[0] = 0; in m_aci_isr()
97 if (received_data.buffer[0] > 0) in m_aci_isr()
149 data_to_send.buffer[0] = 0; in m_aci_event_check()
162 if (received_data.buffer[0] > 0) in m_aci_event_check()
216 received_data->status_byte = spi_readwrite(data_to_send->buffer[byte_sent_cnt++]); in m_aci_spi_transfer()
218 received_data->buffer[0] = spi_readwrite(data_to_send->buffer[byte_sent_cnt++]); in m_aci_spi_transfer()
219 if (0 == data_to_send->buffer[0]) in m_aci_spi_transfer()
221 max_bytes = received_data->buffer[0]; in m_aci_spi_transfer()
[all …]
/hardware/bsp/intel/peripheral/libupm/src/ds1307/
Dds1307.cxx49 mraa::Result DS1307::writeBytes(uint8_t reg, uint8_t *buffer, int len) in writeBytes() argument
51 if (!len || !buffer) in writeBytes()
62 buf2[i] = buffer[i-1]; in writeBytes()
74 int DS1307::readBytes(uint8_t reg, uint8_t *buffer, int len) in readBytes() argument
76 if (!len || !buffer) in readBytes()
87 return m_i2c.read(buffer, len); in readBytes()
93 uint8_t buffer[7]; in loadTime() local
94 int bytesRead = readBytes(0, buffer, 7); in loadTime()
109 seconds = bcdToDec(buffer[0] & 0x7f); in loadTime()
110 minutes = bcdToDec(buffer[1]); in loadTime()
[all …]
/hardware/bsp/intel/peripheral/libupm/src/maxds3231m/
Dmaxds3231m.cxx56 uint8_t buffer[7]; in getDate() local
59 if (i2cReadReg_N (TIME_CAL_ADDR, 7, buffer) > 6) { in getDate()
60 uint8_t century = (buffer[5] & 0x80) >> 7; in getDate()
62 time.second = BCDtoDEC(buffer[0]); in getDate()
63 time.minute = BCDtoDEC(buffer[1]); in getDate()
64 time.hour = BCDtoDEC(buffer[2]); in getDate()
65 time.day = BCDtoDEC(buffer[4]); in getDate()
66 time.month = BCDtoDEC(buffer[5] & 0x1F); in getDate()
67 time.year = (century == 1) ? 2000 + BCDtoDEC(buffer[6]) : 1900 + BCDtoDEC(buffer[6]); in getDate()
68 time.weekDay = BCDtoDEC(buffer[3]); in getDate()
[all …]
/hardware/intel/common/libva/va/
Dsysdeps.h51 # define va_log_error(buffer) do { ALOGE("%s", buffer); } while (0) argument
52 # define va_log_info(buffer) do { ALOGI("%s", buffer); } while (0) argument
54 # define va_log_error(buffer) do { LOGE("%s", buffer); } while (0) argument
55 # define va_log_info(buffer) do { LOGI("%s", buffer); } while (0) argument
60 #define va_log_error(buffer) do { \ argument
61 fprintf(stderr, "libva error: %s", buffer); \
66 #define va_log_info(buffer) do { \ argument
67 fprintf(stderr, "libva info: %s", buffer); \
/hardware/libhardware_legacy/audio/
DAudioHardwareGeneric.cpp169 char buffer[SIZE]; in dumpInternals() local
172 snprintf(buffer, SIZE, "\tmFd: %d mMicMute: %s\n", mFd, mMicMute? "true": "false"); in dumpInternals()
173 result.append(buffer); in dumpInternals()
233 ssize_t AudioStreamOutGeneric::write(const void* buffer, size_t bytes) in write() argument
236 return ssize_t(::write(mFd, buffer, bytes)); in write()
248 char buffer[SIZE]; in dump() local
250 snprintf(buffer, SIZE, "AudioStreamOutGeneric::dump\n"); in dump()
251 result.append(buffer); in dump()
252 snprintf(buffer, SIZE, "\tsample rate: %d\n", sampleRate()); in dump()
253 result.append(buffer); in dump()
[all …]
DAudioHardwareStub.cpp102 char buffer[SIZE]; in dumpInternals() local
105 snprintf(buffer, SIZE, "\tmMicMute: %s\n", mMicMute? "true": "false"); in dumpInternals()
106 result.append(buffer); in dumpInternals()
128 ssize_t AudioStreamOutStub::write(const void* buffer, size_t bytes) in write() argument
144 char buffer[SIZE]; in dump() local
146 snprintf(buffer, SIZE, "AudioStreamOutStub::dump\n"); in dump()
147 snprintf(buffer, SIZE, "\tsample rate: %d\n", sampleRate()); in dump()
148 snprintf(buffer, SIZE, "\tbuffer size: %d\n", bufferSize()); in dump()
149 snprintf(buffer, SIZE, "\tchannels: %d\n", channels()); in dump()
150 snprintf(buffer, SIZE, "\tformat: %d\n", format()); in dump()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/decoder/
Dvp9_reader.c21 int vp9_reader_init(vp9_reader *r, const uint8_t *buffer, size_t size) { in vp9_reader_init() argument
22 if (size && !buffer) { in vp9_reader_init()
25 r->buffer_end = buffer + size; in vp9_reader_init()
26 r->buffer = buffer; in vp9_reader_init()
37 const uint8_t *buffer = r->buffer; in vp9_reader_fill() local
42 const int bits_left = (int)((buffer_end - buffer) * CHAR_BIT); in vp9_reader_fill()
53 value |= (BD_VALUE)*buffer++ << shift; in vp9_reader_fill()
58 r->buffer = buffer; in vp9_reader_fill()
67 r->buffer--; in vp9_reader_find_end()
69 return r->buffer; in vp9_reader_find_end()
/hardware/bsp/intel/peripheral/libupm/src/mic/
Djavaupm_mic.i10 %typemap(jni) (uint16_t *buffer, int len) "jshortArray";
11 %typemap(jtype) (uint16_t *buffer, int len) "short[]";
12 %typemap(jstype) (uint16_t *buffer, int len) "short[]";
14 %typemap(javain) (uint16_t *buffer, int len) "$javainput";
16 %typemap(in) (uint16_t *buffer, int len) {
21 %typemap(freearg) (uint16_t *buffer, int len) {
25 %typemap(jni) (int numberOfSamples, uint16_t *buffer) "jshortArray";
26 %typemap(jtype) (int numberOfSamples, uint16_t *buffer) "short[]";
27 %typemap(jstype) (int numberOfSamples, uint16_t *buffer) "short[]";
29 %typemap(javain) (int numberOfSamples, uint16_t *buffer) "$javainput";
[all …]
/hardware/bsp/intel/peripheral/libupm/src/gas/
Djavaupm_gas.i18 %typemap(jni) (uint16_t *buffer, int len) "jshortArray";
19 %typemap(jtype) (uint16_t *buffer, int len) "short[]";
20 %typemap(jstype) (uint16_t *buffer, int len) "short[]";
22 %typemap(javain) (uint16_t *buffer, int len) "$javainput";
24 %typemap(in) (uint16_t *buffer, int len) {
29 %typemap(freearg) (uint16_t *buffer, int len) {
33 %typemap(jni) (int numberOfSamples, uint16_t *buffer) "jshortArray";
34 %typemap(jtype) (int numberOfSamples, uint16_t *buffer) "short[]";
35 %typemap(jstype) (int numberOfSamples, uint16_t *buffer) "short[]";
37 %typemap(javain) (int numberOfSamples, uint16_t *buffer) "$javainput";
[all …]
/hardware/bsp/intel/peripheral/libupm/src/tcs3414cs/
Dtcs3414cs.cxx70 uint8_t buffer[8]; in readRGB() local
73 if (i2cReadReg_N (REG_BLOCK_READ, 8, buffer) > 7) { in readRGB()
74 rgb->g = buffer[1] * 256 + buffer[0]; in readRGB()
75 rgb->r = buffer[3] * 256 + buffer[2]; in readRGB()
76 rgb->b = buffer[5] * 256 + buffer[4]; in readRGB()
77 rgb->clr = buffer[7] * 256 + buffer[6]; in readRGB()
100 TCS3414CS::i2cReadReg_N (int reg, unsigned int len, uint8_t * buffer) { in i2cReadReg_N() argument
107 readByte = m_i2Ctx.read(buffer, len); in i2cReadReg_N()
112 TCS3414CS::i2cWriteReg_N (uint8_t reg, unsigned int len, uint8_t * buffer) { in i2cWriteReg_N() argument
117 error = m_i2Ctx.write (buffer, len); in i2cWriteReg_N()
/hardware/invensense/6515/libsensors_iio/software/simple_apps/playback/linux/
Dand_constructor.c113 int32_t buffer[4]; in inv_playback() local
155 r = fread(buffer, sizeof(buffer[0]), 3, inv_construct.file); in inv_playback()
157 int32_to_long(buffer, accel, 3); in inv_playback()
160 buffer[0], buffer[1], buffer[2], ts); in inv_playback()
166 r = fread(buffer, sizeof(buffer[0]), 3, inv_construct.file); in inv_playback()
168 int32_to_long(buffer, compass, 3); in inv_playback()
171 buffer[0], buffer[1], buffer[2], ts); in inv_playback()
175 r = fread(buffer, sizeof(buffer[0]), 1, inv_construct.file); in inv_playback()
177 inv_build_temp(buffer[0], ts); in inv_playback()
179 buffer[0], ts); in inv_playback()
[all …]
/hardware/bsp/intel/peripheral/libupm/src/
Djava_buffer.i2 %typemap(jni) (uint8_t *buffer, int len) "jbyteArray";
3 %typemap(jtype) (uint8_t *buffer, int len) "byte[]";
4 %typemap(jstype) (uint8_t *buffer, int len) "byte[]";
6 %typemap(javain) (uint8_t *buffer, int len) "$javainput";
8 %typemap(in) (uint8_t *buffer, int len) {
13 %typemap(freearg) (uint8_t *buffer, int len) {
32 %typemap(jni) (char *buffer, int len) "jbyteArray";
33 %typemap(jtype) (char *buffer, int len) "byte[]";
34 %typemap(jstype) (char *buffer, int len) "byte[]";
36 %typemap(javain) (char *buffer, int len) "$javainput";
[all …]
/hardware/qcom/display/msm8996/libgralloc1/
Dgr_device_impl.cpp194 buffer_handle_t buffer) { in CheckDeviceAndHandle() argument
195 const private_handle_t *hnd = PRIV_HANDLE_CONST(buffer); in CheckDeviceAndHandle()
197 ALOGE("Gralloc Error : device= %p, buffer-handle=%p", (void *)device, (void *)buffer); in CheckDeviceAndHandle()
274 gralloc1_error_t GrallocImpl::GetBackingStore(gralloc1_device_t *device, buffer_handle_t buffer, in GetBackingStore() argument
276 if (!device || !buffer) { in GetBackingStore()
281 static_cast<gralloc1_backing_store_t>(PRIV_HANDLE_CONST(buffer)->GetBackingstore()); in GetBackingStore()
286 gralloc1_error_t GrallocImpl::GetConsumerUsage(gralloc1_device_t *device, buffer_handle_t buffer, in GetConsumerUsage() argument
288 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetConsumerUsage()
290 *outUsage = PRIV_HANDLE_CONST(buffer)->GetConsumerUsage(); in GetConsumerUsage()
296 gralloc1_error_t GrallocImpl::GetBufferDimensions(gralloc1_device_t *device, buffer_handle_t buffer, in GetBufferDimensions() argument
[all …]
Dgr_device_impl.h60 buffer_handle_t buffer);
76 static gralloc1_error_t GetBackingStore(gralloc1_device_t *device, buffer_handle_t buffer,
78 static gralloc1_error_t GetConsumerUsage(gralloc1_device_t *device, buffer_handle_t buffer,
80 static gralloc1_error_t GetBufferDimensions(gralloc1_device_t *device, buffer_handle_t buffer,
84 static gralloc1_error_t GetProducerUsage(gralloc1_device_t *device, buffer_handle_t buffer,
86 static gralloc1_error_t GetBufferStride(gralloc1_device_t *device, buffer_handle_t buffer,
91 static gralloc1_error_t RetainBuffer(gralloc1_device_t *device, buffer_handle_t buffer);
92 static gralloc1_error_t ReleaseBuffer(gralloc1_device_t *device, buffer_handle_t buffer);
93 static gralloc1_error_t getNumFlexPlanes(gralloc1_device_t *device, buffer_handle_t buffer,
95 static gralloc1_error_t LockBuffer(gralloc1_device_t *device, buffer_handle_t buffer,
[all …]
/hardware/qcom/display/msm8998/libgralloc1/
Dgr_device_impl.cpp194 buffer_handle_t buffer) { in CheckDeviceAndHandle() argument
195 const private_handle_t *hnd = PRIV_HANDLE_CONST(buffer); in CheckDeviceAndHandle()
197 ALOGE("Gralloc Error : device= %p, buffer-handle=%p", (void *)device, (void *)buffer); in CheckDeviceAndHandle()
274 gralloc1_error_t GrallocImpl::GetBackingStore(gralloc1_device_t *device, buffer_handle_t buffer, in GetBackingStore() argument
276 if (!device || !buffer) { in GetBackingStore()
281 static_cast<gralloc1_backing_store_t>(PRIV_HANDLE_CONST(buffer)->GetBackingstore()); in GetBackingStore()
286 gralloc1_error_t GrallocImpl::GetConsumerUsage(gralloc1_device_t *device, buffer_handle_t buffer, in GetConsumerUsage() argument
288 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetConsumerUsage()
290 *outUsage = PRIV_HANDLE_CONST(buffer)->GetConsumerUsage(); in GetConsumerUsage()
296 gralloc1_error_t GrallocImpl::GetBufferDimensions(gralloc1_device_t *device, buffer_handle_t buffer, in GetBufferDimensions() argument
[all …]
Dgr_device_impl.h60 buffer_handle_t buffer);
76 static gralloc1_error_t GetBackingStore(gralloc1_device_t *device, buffer_handle_t buffer,
78 static gralloc1_error_t GetConsumerUsage(gralloc1_device_t *device, buffer_handle_t buffer,
80 static gralloc1_error_t GetBufferDimensions(gralloc1_device_t *device, buffer_handle_t buffer,
84 static gralloc1_error_t GetProducerUsage(gralloc1_device_t *device, buffer_handle_t buffer,
86 static gralloc1_error_t GetBufferStride(gralloc1_device_t *device, buffer_handle_t buffer,
91 static gralloc1_error_t RetainBuffer(gralloc1_device_t *device, buffer_handle_t buffer);
92 static gralloc1_error_t ReleaseBuffer(gralloc1_device_t *device, buffer_handle_t buffer);
93 static gralloc1_error_t getNumFlexPlanes(gralloc1_device_t *device, buffer_handle_t buffer,
95 static gralloc1_error_t LockBuffer(gralloc1_device_t *device, buffer_handle_t buffer,
[all …]
/hardware/qcom/display/msm8996/sdm/libs/core/
Ddump_impl.cpp37 DisplayError DumpInterface::GetDump(char *buffer, uint32_t length) { in GetDump() argument
38 if (!buffer || !length) { in GetDump()
42 buffer[0] = '\0'; in GetDump()
43 DumpImpl::AppendString(buffer, length, "\n-------- Snapdragon Display Manager --------"); in GetDump()
45 DumpImpl::dump_list_[i]->AppendDump(buffer, length); in GetDump()
47 DumpImpl::AppendString(buffer, length, "\n\n"); in GetDump()
60 void DumpImpl::AppendString(char *buffer, uint32_t length, const char *format, ...) { in AppendString() argument
61 uint32_t filled = UINT32(strlen(buffer)); in AppendString()
66 buffer += filled; in AppendString()
70 vsnprintf(buffer, length - filled -1, format, list); in AppendString()
/hardware/qcom/display/msm8998/sdm/libs/core/
Ddump_impl.cpp37 DisplayError DumpInterface::GetDump(char *buffer, uint32_t length) { in GetDump() argument
38 if (!buffer || !length) { in GetDump()
42 buffer[0] = '\0'; in GetDump()
43 DumpImpl::AppendString(buffer, length, "\n-------- Snapdragon Display Manager --------"); in GetDump()
45 DumpImpl::dump_list_[i]->AppendDump(buffer, length); in GetDump()
47 DumpImpl::AppendString(buffer, length, "\n\n"); in GetDump()
60 void DumpImpl::AppendString(char *buffer, uint32_t length, const char *format, ...) { in AppendString() argument
61 uint32_t filled = UINT32(strlen(buffer)); in AppendString()
66 buffer += filled; in AppendString()
70 vsnprintf(buffer, length - filled -1, format, list); in AppendString()
/hardware/bsp/intel/peripheral/libupm/src/lsm9ds0/
Dlsm9ds0.cxx215 uint8_t buffer[6]; in updateGyroscope() local
217 memset(buffer, 0, 6); in updateGyroscope()
218 readRegs(DEV_GYRO, REG_OUT_X_L_G, buffer, 6); in updateGyroscope()
222 x = ( (buffer[1] << 8) | buffer[0] ); in updateGyroscope()
223 y = ( (buffer[3] << 8) | buffer[2] ); in updateGyroscope()
224 z = ( (buffer[5] << 8) | buffer[4] ); in updateGyroscope()
233 uint8_t buffer[6]; in updateAccelerometer() local
235 memset(buffer, 0, 6); in updateAccelerometer()
236 readRegs(DEV_XM, REG_OUT_X_L_A, buffer, 6); in updateAccelerometer()
240 x = ( (buffer[1] << 8) | buffer[0] ); in updateAccelerometer()
[all …]
/hardware/ril/librilutils/
Drecord_stream.c37 unsigned char *buffer; member
55 ret->buffer = (unsigned char *)malloc (maxRecordLen + HEADER_SIZE); in record_stream_new()
57 ret->unconsumed = ret->buffer; in record_stream_new()
58 ret->read_end = ret->buffer; in record_stream_new()
59 ret->buffer_end = ret->buffer + maxRecordLen + HEADER_SIZE; in record_stream_new()
67 free(rs->buffer); in record_stream_free()
143 if (p_rs->unconsumed == p_rs->buffer in record_stream_get_next()
153 if (p_rs->unconsumed != p_rs->buffer) { in record_stream_get_next()
159 memmove(p_rs->buffer, p_rs->unconsumed, toMove); in record_stream_get_next()
162 p_rs->read_end = p_rs->buffer + toMove; in record_stream_get_next()
[all …]
/hardware/bsp/intel/peripheral/libupm/src/mpr121/
Dmpr121.cxx51 mraa::Result MPR121::writeBytes(uint8_t reg, uint8_t *buffer, int len) in writeBytes() argument
53 if (!len || !buffer) in writeBytes()
64 buf2[i] = buffer[i-1]; in writeBytes()
71 int MPR121::readBytes(uint8_t reg, uint8_t *buffer, int len) in readBytes() argument
73 if (!len || !buffer) in readBytes()
79 buffer[i] = m_i2c.readReg(reg + i); in readBytes()
194 uint8_t buffer[2]; in readButtons() local
199 readBytes(0x00, buffer, 2); in readButtons()
201 m_buttonStates = (buffer[0] | ((buffer[1] & 0x1f) << 8)); in readButtons()
202 if (buffer[1] & 0x80) in readButtons()
/hardware/bsp/intel/peripheral/libupm/src/mlx90614/
Dmlx90614.cxx73 MLX90614::i2cReadReg_N (int reg, unsigned int len, uint8_t * buffer) { in i2cReadReg_N() argument
79 readByte = m_i2Ctx.read(buffer, len); in i2cReadReg_N()
84 MLX90614::i2cWriteReg_N (uint8_t reg, unsigned int len, uint8_t * buffer) { in i2cWriteReg_N() argument
88 error = m_i2Ctx.write(buffer, len); in i2cWriteReg_N()
95 uint8_t buffer[3]; in readTemperature() local
101 if (i2cReadReg_N(address, 3, buffer) > 2) { in readTemperature()
102 temperature = buffer[0]; in readTemperature()
103 temperature = buffer[1] << 8; in readTemperature()

12345678910>>...31