Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 191) sorted by relevance

12345678

/device/linaro/hikey/hifi/xaf/host-apf/utest/
Dxaf-mem-test.c34 int index; in mem_malloc() local
39 index = g_mem_obj.num_malloc_dev; in mem_malloc()
40 if(index >= MEM_NUM_MEM_ALLOC-1) in mem_malloc()
48 g_mem_obj.mem_dev[index].heap_ptr = heap_ptr; in mem_malloc()
49 g_mem_obj.mem_dev[index].size = size; in mem_malloc()
55 index = g_mem_obj.num_malloc_comp; in mem_malloc()
56 if(index >= MEM_NUM_MEM_ALLOC-1) in mem_malloc()
64 g_mem_obj.mem_comp[index].heap_ptr = heap_ptr; in mem_malloc()
65 g_mem_obj.mem_comp[index].size = size; in mem_malloc()
99 int index; in mem_free() local
[all …]
/device/google/contexthub/util/nanotool/
Dsensorevent.cpp137 uint64_t TimestampedSensorEvent::GetSampleTime(uint8_t index) const { in GetSampleTime()
143 for (uint8_t i = 1; i <= index; i++) { in GetSampleTime()
144 sample = GetSampleAtIndex(index); in GetSampleTime()
151 std::string TimestampedSensorEvent::GetSampleTimeStr(uint8_t index) const { in GetSampleTimeStr()
152 uint64_t sample_time = GetSampleTime(index); in GetSampleTimeStr()
162 uint8_t index) const { in GetSampleAtIndex()
163 if (index >= GetNumSamples()) { in GetSampleAtIndex()
164 LOGW("Requested sample at invalid index %u", index); in GetSampleAtIndex()
169 index * GetSampleDataSize()); in GetSampleAtIndex()
208 std::string SingleAxisSensorEvent::StringForSample(uint8_t index) const { in StringForSample()
[all …]
Dsensorevent.h117 uint64_t GetSampleTime(uint8_t index) const;
118 std::string GetSampleTimeStr(uint8_t index) const;
119 const SensorSampleHeader *GetSampleAtIndex(uint8_t index) const;
123 virtual std::string StringForSample(uint8_t index) const = 0;
138 virtual std::string StringForSample(uint8_t index) const override;
148 std::string StringForSample(uint8_t index) const override;
153 std::string StringForSample(uint8_t index) const override;
161 std::string StringForSample(uint8_t index) const override;
Dnanotool.cpp247 unsigned int index = 0; in ParseSensorArg() local
250 if (index == 0) { in ParseSensorArg()
252 } else if (index == 1) { in ParseSensorArg()
260 index++; in ParseSensorArg()
263 index = 0; in ParseSensorArg()
266 if (index == 0) { // Parse sensor type in ParseSensorArg()
273 } else if (index == 1) { // Parse sample rate in ParseSensorArg()
279 } else if (index == 2) { // Parse latency in ParseSensorArg()
290 index++; in ParseSensorArg()
309 int index = 0; in ParseArgs() local
[all …]
/device/google/contexthub/firmware/external/arm/
Darm_sin_cos_f32.c213 uint16_t index; /* Index variable */ in arm_sin_f32() local
236 index = ((uint16_t)findex) & 0x1ff; in arm_sin_f32()
239 fract = findex - (float32_t) index; in arm_sin_f32()
242 a = sinTable_f32[index]; in arm_sin_f32()
243 b = sinTable_f32[index+1]; in arm_sin_f32()
302 uint16_t index; /* Index variable */ in arm_cos_f32() local
325 index = ((uint16_t)findex) & 0x1ff; in arm_cos_f32()
328 fract = findex - (float32_t) index; in arm_cos_f32()
331 a = sinTable_f32[index]; in arm_cos_f32()
332 b = sinTable_f32[index+1]; in arm_cos_f32()
/device/google/coral/powerstats/
DRailDataProvider.cpp91 uint32_t index = 0; in parsePowerRails() local
117 .index = index, in parsePowerRails()
121 index++; in parsePowerRails()
127 return index; in parsePowerRails()
156 size_t index = mOdpm.railsInfo[railName].index; in parseIioEnergyNode() local
157 mOdpm.reading[index].index = index; in parseIioEnergyNode()
158 mOdpm.reading[index].timestamp = timestamp; in parseIioEnergyNode()
159 mOdpm.reading[index].energy = strtoull(words[1].c_str(), NULL, 10); in parseIioEnergyNode()
160 if (mOdpm.reading[index].energy == ULLONG_MAX) { in parseIioEnergyNode()
162 mOdpm.reading[index].energy); in parseIioEnergyNode()
[all …]
/device/google/cuttlefish_vmm/aarch64-linux-gnu/
DCargo.lock75 source = "registry+https://github.com/rust-lang/crates.io-index"
81 source = "registry+https://github.com/rust-lang/crates.io-index"
87 source = "registry+https://github.com/rust-lang/crates.io-index"
231 source = "registry+https://github.com/rust-lang/crates.io-index"
246 source = "registry+https://github.com/rust-lang/crates.io-index"
256 source = "registry+https://github.com/rust-lang/crates.io-index"
262 source = "registry+https://github.com/rust-lang/crates.io-index"
273 source = "registry+https://github.com/rust-lang/crates.io-index"
279 source = "registry+https://github.com/rust-lang/crates.io-index"
291 source = "registry+https://github.com/rust-lang/crates.io-index"
[all …]
/device/google/cuttlefish_vmm/x86_64-linux-gnu/
DCargo.lock75 source = "registry+https://github.com/rust-lang/crates.io-index"
81 source = "registry+https://github.com/rust-lang/crates.io-index"
87 source = "registry+https://github.com/rust-lang/crates.io-index"
231 source = "registry+https://github.com/rust-lang/crates.io-index"
246 source = "registry+https://github.com/rust-lang/crates.io-index"
256 source = "registry+https://github.com/rust-lang/crates.io-index"
262 source = "registry+https://github.com/rust-lang/crates.io-index"
273 source = "registry+https://github.com/rust-lang/crates.io-index"
279 source = "registry+https://github.com/rust-lang/crates.io-index"
291 source = "registry+https://github.com/rust-lang/crates.io-index"
[all …]
/device/google/cuttlefish/guest/hals/gps/
Dgps_thread.cpp90 int index; in reader_accept_string() local
91 for (index = 0; index < len; index++) { in reader_accept_string()
92 if (r->index >= (int)sizeof(r->buffer) - 1) { in reader_accept_string()
93 if (str[index] == '\n') { in reader_accept_string()
94 ALOGW("Message longer than buffer; new byte (%d) skipped.", str[index]); in reader_accept_string()
95 r->index = 0; in reader_accept_string()
98 r->buffer[r->index++] = str[index]; in reader_accept_string()
99 if (str[index] == '\n') { in reader_accept_string()
100 r->buffer[r->index] = '\0'; in reader_accept_string()
102 r->index = 0; in reader_accept_string()
/device/google/coral-kernel/sm8150/kernel-headers/linux/mfd/adnc/
Diaxxx-sysid-defs.h195 #define IAXXX_SYSID_GEN_SPECIAL_SYSID(type,index) \ argument
198 (((index) << IAXXX_SYSID_POS_SPECIAL_INST_INDEX) & IAXXX_SYSID_MASK_SPECIAL_INST_INDEX))
203 #define IAXXX_SYSID_GEN_DRIVER_SYSID(type,index) \ argument
206 (((index) << IAXXX_SYSID_POS_DRIVER_INST_INDEX) & IAXXX_SYSID_MASK_DRIVER_INST_INDEX))
221 #define IAXXX_SYSID_GEN_PLUGIN_SYSID(pluginId,dir,index) \ argument
225 (((index) << IAXXX_SYSID_POS_PLUGIN_EP_INDEX) & IAXXX_SYSID_MASK_PLUGIN_EP_INDEX))
231 #define IAXXX_SYSID_GEN_CHANNEL_SYSID(channelId,dir,index) \ argument
235 (((index) << IAXXX_SYSID_POS_CHANNEL_EP_INDEX) & IAXXX_SYSID_MASK_CHANNEL_EP_INDEX))
243 #define IAXXX_SYSID_GEN_TUNNEL_SYSID(tunnelId,dir,index) \ argument
247 (((index) << IAXXX_SYSID_POS_TUNNEL_EP_INDEX) & IAXXX_SYSID_MASK_TUNNEL_EP_INDEX))
[all …]
/device/google/coral-kernel/sm8150/original-kernel-headers/linux/mfd/adnc/
Diaxxx-sysid-defs.h704 #define IAXXX_SYSID_GEN_SPECIAL_SYSID(type, index) \ argument
709 (((index) << IAXXX_SYSID_POS_SPECIAL_INST_INDEX)\
731 #define IAXXX_SYSID_GEN_DRIVER_SYSID(type, index) \ argument
736 (((index) << IAXXX_SYSID_POS_DRIVER_INST_INDEX)\
788 #define IAXXX_SYSID_GEN_PLUGIN_SYSID(pluginId, dir, index) \ argument
795 (((index) << IAXXX_SYSID_POS_PLUGIN_EP_INDEX) \
820 #define IAXXX_SYSID_GEN_CHANNEL_SYSID(channelId, dir, index) \ argument
827 (((index) << IAXXX_SYSID_POS_CHANNEL_EP_INDEX) \
856 #define IAXXX_SYSID_GEN_TUNNEL_SYSID(tunnelId, dir, index) \ argument
863 (((index) << IAXXX_SYSID_POS_TUNNEL_EP_INDEX) \
[all …]
/device/linaro/poplar/wifi/wifi_hal/
Dwifi_offload.cpp82 MKeepAliveCommand(wifi_interface_handle iface, u8 index, u8 *ip_packet, u16 ip_packet_len, in MKeepAliveCommand() argument
84 : WifiCommand("MKeepAliveCommand", iface, 0), mIndex(index), mIpPkt(ip_packet), in MKeepAliveCommand()
90 MKeepAliveCommand(wifi_interface_handle iface, u8 index, GetCmdType cmdType) in MKeepAliveCommand() argument
91 : WifiCommand("MKeepAliveCommand", iface, 0), mIndex(index), mType(cmdType) in MKeepAliveCommand()
218 wifi_error wifi_start_sending_offloaded_packet(wifi_request_id index, wifi_interface_handle iface, in wifi_start_sending_offloaded_packet() argument
222 if ((index > 0 && index <= N_AVAIL_ID) && (ip_packet != NULL) && (src_mac_addr != NULL) in wifi_start_sending_offloaded_packet()
225 MKeepAliveCommand *cmd = new MKeepAliveCommand(iface, index, ip_packet, ip_packet_len, in wifi_start_sending_offloaded_packet()
238 wifi_error wifi_stop_sending_offloaded_packet(wifi_request_id index, wifi_interface_handle iface) in wifi_stop_sending_offloaded_packet() argument
240 if (index > 0 && index <= N_AVAIL_ID) { in wifi_stop_sending_offloaded_packet()
241 MKeepAliveCommand *cmd = new MKeepAliveCommand(iface, index, STOP_MKEEP_ALIVE); in wifi_stop_sending_offloaded_packet()
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/
DGLSharedGroup.cpp64 GLuint index, GLint base, GLint size, GLenum type) { in setIndexInfo() argument
66 if (index >= m_numIndexes) return; in setIndexInfo()
68 m_Indexes[index].base = base; in setIndexInfo()
69 m_Indexes[index].size = size; in setIndexInfo()
70 m_Indexes[index].type = type; in setIndexInfo()
71 m_Indexes[index].hostLocsPerElement = 1; in setIndexInfo()
72 m_Indexes[index].flags = 0; in setIndexInfo()
73 m_Indexes[index].samplerValue = 0; in setIndexInfo()
76 void ProgramData::setIndexFlags(GLuint index, GLuint flags) { in setIndexFlags() argument
78 if (index >= m_numIndexes) return; in setIndexFlags()
[all …]
/device/generic/goldfish-opengl/system/codecs/omx/plugin/
DGoldfishOMXComponent.h59 OMX_INDEXTYPE index, OMX_PTR params);
62 OMX_INDEXTYPE index, const OMX_PTR params);
65 OMX_INDEXTYPE index, OMX_PTR params);
68 OMX_INDEXTYPE index, const OMX_PTR params);
71 const char *name, OMX_INDEXTYPE *index);
113 OMX_INDEXTYPE index,
118 OMX_INDEXTYPE index,
123 OMX_INDEXTYPE index,
128 OMX_INDEXTYPE index,
134 OMX_INDEXTYPE *index);
DSimpleGoldfishOMXComponent.h77 OMX_INDEXTYPE index, OMX_PTR params);
80 OMX_INDEXTYPE index, const OMX_PTR params);
83 OMX_INDEXTYPE index, const OMX_PTR params, bool *frameConfig);
113 OMX_INDEXTYPE index, const OMX_PTR params) const;
119 OMX_INDEXTYPE index, OMX_PTR params);
122 OMX_INDEXTYPE index, const OMX_PTR params);
125 OMX_INDEXTYPE index, const OMX_PTR params);
DGoldfishOMXComponent.cpp130 OMX_INDEXTYPE index, in GetParameterWrapper() argument
136 return me->getParameter(index, params); in GetParameterWrapper()
142 OMX_INDEXTYPE index, in SetParameterWrapper() argument
148 return me->setParameter(index, params); in SetParameterWrapper()
154 OMX_INDEXTYPE index, in GetConfigWrapper() argument
160 return me->getConfig(index, params); in GetConfigWrapper()
166 OMX_INDEXTYPE index, in SetConfigWrapper() argument
172 return me->setConfig(index, params); in SetConfigWrapper()
179 OMX_INDEXTYPE *index) { in GetExtensionIndexWrapper() argument
184 return me->getExtensionIndex(name, index); in GetExtensionIndexWrapper()
/device/google/contexthub/firmware/os/drivers/leds/
Dleds_lp3943.c221 uint8_t index; in sensorCfgDataLedsLP3943() local
228 index = lcfg->led_num >> 2; in sensorCfgDataLedsLP3943()
230 lval = mTask.led[index]; in sensorCfgDataLedsLP3943()
231 laddr += index; in sensorCfgDataLedsLP3943()
239 mTask.led[index] = lval; in sensorCfgDataLedsLP3943()
248 uint8_t index; in sensorLedsOnOff() local
250 for (index=0; index < LP3943_MAX_LED_SECTION; index++) { in sensorLedsOnOff()
251 lval = flag ? mTask.led[index] : 0; in sensorLedsOnOff()
252 writeRegister(laddr + index, lval, STATE_LED); in sensorLedsOnOff()
/device/google/cuttlefish/guest/hals/camera/
DEmulatedFakeCamera.cpp75 for (size_t index = 0; index < params.resolutions.size(); ++index) { in Initialize() local
79 resolutions << params.resolutions[index].width << "x" in Initialize()
80 << params.resolutions[index].height; in Initialize()
/device/google/cuttlefish/common/libs/net/
Dnetwork_interface_manager.cpp83 int32_t index = if_nametoindex(if_name.c_str()); in Open() local
84 if (index == 0) { in Open()
89 index = if_nametoindex(if_name_alt.c_str()); in Open()
90 if (index == 0) { in Open()
96 iface.reset(new NetworkInterface(index)); in Open()
/device/google/cuttlefish/guest/commands/ip_link_add/
Dmain.cpp36 int32_t index = if_nametoindex(name); in main() local
37 if (index == 0) { in main()
51 link_add_request.AddInt(IFLA_LINK, index); in main()
67 .ifi_index = index, in main()
/device/generic/opengl-transport/host/libs/virglrenderer/OpenGLESDispatch/
Dgles2_core.entries7 void glBindAttribLocation(GLuint program, GLuint index, const GLchar *name);
44 void glDisableVertexAttribArray(GLuint index);
48 void glEnableVertexAttribArray(GLuint index);
59 void glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size,…
60 void glGetActiveUniform(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size…
82 void glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params);
83 void glGetVertexAttribiv(GLuint index, GLenum pname, GLint *params);
84 void glGetVertexAttribPointerv(GLuint index, GLenum pname, void **pointer);
137 void glVertexAttrib1f(GLuint index, GLfloat x);
138 void glVertexAttrib1fv(GLuint index, const GLfloat *v);
[all …]
/device/google/cuttlefish/host/frontend/vnc_server/
Dframe_buffer_watcher.cpp92 return Stripes(stripe.orientation)[stripe.index]->raw_data != stripe.raw_data; in StripeIsDifferentFromPrevious()
121 if (most_recent_identical_stripe_seq_nums_[stripe.index] <= in UpdateMostRecentSeqNumIfStripeIsNew()
123 most_recent_identical_stripe_seq_nums_[stripe.index] = stripe.seq_number; in UpdateMostRecentSeqNumIfStripeIsNew()
133 Stripes(stripe->orientation)[stripe->index] = stripe; in UpdateStripeIfStripeIsNew()
168 auto index = portrait_stripe.index; in Worker() local
185 bb_->NewStripeReady(index, seq_num); in Worker()
/device/google/cuttlefish/guest/commands/setup_wifi/
Dmain.cpp56 int32_t index = if_nametoindex(source.c_str()); in CreateWifiWrapper() local
65 .ifi_index = index, in CreateWifiWrapper()
81 if (index == 0) { in CreateWifiWrapper()
86 link_add_request.AddInt(IFLA_LINK, index); in CreateWifiWrapper()
103 .ifi_index = index, in CreateWifiWrapper()
/device/google/cuttlefish/host/commands/modem_simulator/
Dcall_service.cpp213 int index = last_active_call_index_++; in HandleDial() local
215 auto call_token = std::make_pair(index, call_status.number); in HandleDial()
222 active_calls_[index] = call_status; in HandleDial()
227 auto index = last_active_call_index_++; in HandleDial() local
228 active_calls_[index] = call_status; in HandleDial()
343 int index = iter->first; in HandleCurrentCalls() local
352 ss << "+CLCC: " << index << "," << dir << "," << call_state << "," in HandleCurrentCalls()
398 int index = -1; in HandleHangup() local
400 index = std::stoi(action.substr(1)); in HandleHangup()
417 if (index == -1) { // Release all active calls and accepts the other(hold or waiting) call in HandleHangup()
[all …]
/device/google/contexthub/firmware/os/algos/calibration/over_temp/
Dover_temp_cal.c775 struct OverTempCal *over_temp_cal, size_t index, in overTempValidateAndSetWeight() argument
790 if (index == 0 || in overTempValidateAndSetWeight()
791 over_temp_cal->weighting_function[index - 1].offset_age_nanos < in overTempValidateAndSetWeight()
793 over_temp_cal->weighting_function[index] = *new_otc_weight; in overTempValidateAndSetWeight()
816 for (size_t index = 0; index < 3; index++) { in compensateWithLinearModel() local
817 if (over_temp_cal->temp_sensitivity[index] < OTC_INITIAL_SENSITIVITY) { in compensateWithLinearModel()
822 compensated_offset[index] = in compensateWithLinearModel()
823 over_temp_cal->temp_sensitivity[index] * temperature_celsius + in compensateWithLinearModel()
824 over_temp_cal->sensor_intercept[index]; in compensateWithLinearModel()
841 for (size_t index = 0; index < 3; index++) { in addLinearTemperatureExtrapolation() local
[all …]

12345678