Home
last modified time | relevance | path

Searched refs:mData (Results 1 – 16 of 16) sorted by relevance

/device/google/contexthub/firmware/os/drivers/ams_tmd2772/
Dams_tmd2772.c192 static struct SensorData mData; variable
225 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mData.tid); in i2cCallback()
236 for (i = 0; i < ARRAY_SIZE(mData.transfers); i++) { in allocXfer()
237 if (!mData.transfers[i].inUse) { in allocXfer()
238 mData.transfers[i].inUse = true; in allocXfer()
239 mData.transfers[i].state = state; in allocXfer()
240 return &mData.transfers[i]; in allocXfer()
266 osEnqueuePrivateEvt(EVT_SENSOR_ALS_TIMER, cookie, NULL, mData.tid); in alsTimerCallback()
271 osEnqueuePrivateEvt(EVT_SENSOR_PROX_TIMER, cookie, NULL, mData.tid); in proxTimerCallback()
325 if (mData.alsTimerHandle) { in sensorPowerAls()
[all …]
/device/google/contexthub/firmware/os/drivers/intersil_isl29034/
Disl29034.c150 static struct SensorData mData; variable
177 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mData.tid); in i2cCallback()
188 for (i = 0; i < ARRAY_SIZE(mData.transfers); i++) { in allocXfer()
189 if (!mData.transfers[i].inUse) { in allocXfer()
190 mData.transfers[i].inUse = true; in allocXfer()
191 mData.transfers[i].state = state; in allocXfer()
192 return &mData.transfers[i]; in allocXfer()
218 osEnqueuePrivateEvt(EVT_SENSOR_ALS_TIMER, cookie, NULL, mData.tid); in alsTimerCallback()
233 if (mData.alsTimerHandle) { in sensorPowerAls()
234 timTimerCancel(mData.alsTimerHandle); in sensorPowerAls()
[all …]
/device/google/contexthub/util/common/
Dring.cpp27 mData((sensors_event_t *)malloc(sizeof(sensors_event_t) * mSize)), in RingBuffer()
33 free(mData); in ~RingBuffer()
34 mData = NULL; in ~RingBuffer()
54 memcpy(&mData[writePos], ev, copy * sizeof(sensors_event_t)); in write()
57 memcpy(mData, &ev[copy], (size - copy) * sizeof(sensors_event_t)); in write()
93 memcpy(ev, &mData[readPos], copy * sizeof(sensors_event_t)); in read()
96 memcpy(&ev[copy], mData, (size - copy) * sizeof(sensors_event_t)); in read()
105 : mData((sensors_event_t *)buf), mSize(size/sizeof(sensors_event_t)), in LockfreeBuffer()
107 memset(mData, 0, size); in LockfreeBuffer()
111 memset(mData, 0, mSize*sizeof(sensors_event_t)); in ~LockfreeBuffer()
[all …]
Dring.h40 sensors_event_t *mData; member
53 sensors_event_t *mData;
/device/generic/goldfish-opengl/android-emu/android/base/files/
DMemStream.cpp26 mData.reserve(reserveSize); in MemStream()
29 MemStream::MemStream(Buffer&& data) : mData(std::move(data)) {} in MemStream()
33 memcpy(buffer, mData.data() + mReadPos, sizeToRead); in read()
39 mData.insert(mData.end(), (const char*)buffer, (const char*)buffer + size); in write()
44 return (int)mData.size(); in writtenSize()
52 return mData.size() - mReadPos; in readSize()
56 saveBuffer(stream, mData); in save()
60 loadBuffer(stream, &mData); in load()
DMemStream.h48 const Buffer& buffer() const { return mData; } in buffer()
53 Buffer mData; variable
/device/generic/goldfish/wifi/wifi_hal/
Dnetlinkmessage.cpp38 : mData(getSpaceForMessageType(type), 0) { in NetlinkMessage()
40 auto header = reinterpret_cast<nlmsghdr*>(mData.data()); in NetlinkMessage()
41 header->nlmsg_len = mData.size(); in NetlinkMessage()
49 : mData(data, data + size) { in NetlinkMessage()
66 auto header = reinterpret_cast<const nlmsghdr*>(mData.data()); in type()
71 auto header = reinterpret_cast<const nlmsghdr*>(mData.data()); in sequence()
78 const uint8_t* end = mData.data() + mData.size(); in findAttribute()
83 const uint8_t* attribute = mData.data() + attrOffset; in findAttribute()
Dnetlinkmessage.h41 return reinterpret_cast<nlmsghdr*>(mData.data()); in header()
44 return reinterpret_cast<const nlmsghdr*>(mData.data()); in header()
56 const uint8_t* data() const { return mData.data(); } in data()
57 size_t size() const { return mData.size(); } in size()
67 std::vector<uint8_t> mData; variable
/device/generic/goldfish/network/wifi_forwarder/
Dframe.cpp99 Frame::Frame(const uint8_t* data, size_t size) : mData(data, data + size) { in Frame()
105 : mData(data, data + size) in Frame()
141 auto hdr = reinterpret_cast<const struct ieee80211_hdr*>(mData.data()); in source()
146 auto hdr = reinterpret_cast<const struct ieee80211_hdr*>(mData.data()); in destination()
151 uint8_t type = (mData[0] >> 2) & 0x3; in str()
152 uint8_t subType = (mData[0] >> 4) & 0x0F; in str()
331 uint8_t totalType = mData[0] & 0xFC; in isBeacon()
336 uint8_t totalType = mData[0] & 0x0C; in isData()
341 uint8_t totalType = mData[0] & 0xFC; in isDataQoS()
348 bool uses4Addresses = !!(mData[1] & 0x03); in getQoSControl()
[all …]
Dframe.h99 size_t size() const { return mData.size(); } in size()
100 const uint8_t* data() const { return mData.data(); } in data()
101 uint8_t* data() { return mData.data(); } in data()
147 std::vector<uint8_t> mData; variable
/device/google/contexthub/firmware/os/algos/
Dfusion.c96 initVec3(&fusion->mData[0], 0.0f, 0.0f, 0.0f); in initFusion()
97 initVec3(&fusion->mData[1], 0.0f, 0.0f, 0.0f); in initFusion()
98 initVec3(&fusion->mData[2], 0.0f, 0.0f, 0.0f); in initFusion()
151 vec3Add(&fusion->mData[0], &unityD); in fusion_init_complete()
165 vec3Add(&fusion->mData[1], &unityD); in fusion_init_complete()
179 vec3Add(&fusion->mData[2], &scaledD); in fusion_init_complete()
192 vec3ScalarMul(&fusion->mData[0], 1.0f / fusion->mCount[0]); in fusion_init_complete()
195 vec3ScalarMul(&fusion->mData[1], 1.0f / fusion->mCount[1]); in fusion_init_complete()
200 struct Vec3 up = fusion->mData[0]; in fusion_init_complete()
204 vec3Cross(&east, &fusion->mData[1], &up); in fusion_init_complete()
/device/generic/goldfish-opengl/android-emu/android/base/containers/
DSmallVector.h293 offsetof(SmallFixedVector, mData) && in SmallFixedVector()
337 this->mBegin = mData.array; in SmallFixedVector()
392 void init_inplace() { this->init(mData.array, mData.array, kSmallSize); } in init_inplace()
402 } mData; variable
/device/generic/goldfish-opengl/system/hwc2/
DEmuHWC2.h171 mData(sizeof(ComposeDevice) + layerCnt * sizeof(ComposeLayer))
173 mComposeDevice = reinterpret_cast<ComposeDevice*>(mData.data());
182 std::vector<uint8_t> mData;
190 mData(sizeof(ComposeDevice_v2) + layerCnt * sizeof(ComposeLayer))
192 mComposeDevice = reinterpret_cast<ComposeDevice_v2*>(mData.data());
201 std::vector<uint8_t> mData;
/device/google/contexthub/firmware/os/inc/algos/
Dfusion.h51 struct Vec3 mData[3]; member
/device/google/contexthub/contexthubhal/
Dsystem_comms.cpp341 mData.clear(); in setup()
342 mData = std::vector<uint8_t>(msgData, msgData + mLen); in setup()
373 mData.clear(); in setup()
374 mData = std::vector<uint8_t>(msgData, msgData + mLen); in setup()
557 buf.writeRaw(&mData[mPos], chunkSize); in handleTransfer()
676 mData.clear(); in handleFinish()
Dsystem_comms.h258 std::vector<uint8_t> mData; variable