Home
last modified time | relevance | path

Searched refs:transfers (Results 1 – 12 of 12) sorted by relevance

/device/google/contexthub/firmware/os/drivers/synaptics_s3708/
Dsynaptics_s3708.c148 struct I2cTransfer transfers[MAX_PENDING_I2C_REQUESTS]; member
216 for (i = 0; i < ARRAY_SIZE(mTask.transfers); i++) { in allocXfer()
217 if (!mTask.transfers[i].inUse) { in allocXfer()
218 mTask.transfers[i].inUse = true; in allocXfer()
219 mTask.transfers[i].state = state; in allocXfer()
220 memset(mTask.transfers[i].txrxBuf, 0x00, sizeof(mTask.transfers[i].txrxBuf)); in allocXfer()
221 return &mTask.transfers[i]; in allocXfer()
310 for (i = 0; i < ARRAY_SIZE(mTask.transfers); i++) { in setGesturePower()
311 if (mTask.transfers[i].inUse) { in setGesturePower()
312 mTask.transfers[i].state = STATE_CANCELLED; in setGesturePower()
/device/google/contexthub/firmware/os/drivers/leds/
Dleds_lp3943.c108 struct I2cTransfer transfers[LP3943_MAX_PENDING_I2C_REQUESTS]; member
153 for (i = 0; i < ARRAY_SIZE(mTask.transfers); i++) { in allocXfer()
154 if (!mTask.transfers[i].inUse) { in allocXfer()
155 mTask.transfers[i].inUse = true; in allocXfer()
156 mTask.transfers[i].state = state; in allocXfer()
157 return &mTask.transfers[i]; in allocXfer()
/device/google/contexthub/firmware/os/drivers/intersil_isl29034/
Disl29034.c142 struct I2cTransfer transfers[ISL29034_MAX_PENDING_I2C_REQUESTS]; member
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()
/device/google/contexthub/firmware/os/drivers/st_hts221/
Dhts221.c164 struct I2cTransfer transfers[HTS221_MAX_PENDING_I2C_REQUESTS]; member
193 for (i = 0; i < ARRAY_SIZE(mTask.transfers); i++) { in allocXfer()
194 if (!mTask.transfers[i].inUse) { in allocXfer()
195 mTask.transfers[i].inUse = true; in allocXfer()
196 mTask.transfers[i].state = state; in allocXfer()
197 return &mTask.transfers[i]; in allocXfer()
/device/google/contexthub/firmware/os/drivers/si_si7034/
Dsi7034a10.c133 struct I2cTransfer transfers[SI7034_MAX_PENDING_I2C_REQUESTS]; member
147 for (i = 0; i < ARRAY_SIZE(mTask.transfers); i++) { in allocXfer()
148 if (!mTask.transfers[i].inUse) { in allocXfer()
149 mTask.transfers[i].inUse = true; in allocXfer()
150 mTask.transfers[i].state = state; in allocXfer()
151 return &mTask.transfers[i]; in allocXfer()
/device/google/contexthub/firmware/os/drivers/st_lps22hb/
Dlps22hb.c177 struct I2cTransfer transfers[LPS22HB_MAX_PENDING_I2C_REQUESTS]; member
218 for (i = 0; i < ARRAY_SIZE(mTask.transfers); i++) { in allocXfer()
219 if (!mTask.transfers[i].inUse) { in allocXfer()
220 mTask.transfers[i].inUse = true; in allocXfer()
221 mTask.transfers[i].state = state; in allocXfer()
222 return &mTask.transfers[i]; in allocXfer()
/device/google/contexthub/firmware/os/drivers/rohm_rpr0521/
Drohm_rpr0521.c236 struct I2cTransfer transfers[ROHM_RPR0521_MAX_PENDING_I2C_REQUESTS]; member
323 for (i = 0; i < ARRAY_SIZE(mTask.transfers); i++) { in allocXfer()
324 if (!mTask.transfers[i].inUse) { in allocXfer()
325 mTask.transfers[i].inUse = true; in allocXfer()
326 mTask.transfers[i].state = state; in allocXfer()
327 return &mTask.transfers[i]; in allocXfer()
/device/google/contexthub/firmware/os/drivers/bosch_bmp280/
Dbosch_bmp280.c129 struct I2cTransfer transfers[BOSCH_BMP280_MAX_PENDING_I2C_REQUESTS]; member
190 for (i = 0; i < ARRAY_SIZE(mTask.transfers); i++) { in allocXfer()
191 if (!mTask.transfers[i].inUse) { in allocXfer()
192 mTask.transfers[i].inUse = true; in allocXfer()
193 mTask.transfers[i].state = state; in allocXfer()
194 return &mTask.transfers[i]; in allocXfer()
/device/google/contexthub/firmware/os/drivers/ams_tmd2772/
Dams_tmd2772.c179 struct I2cTransfer transfers[AMS_TMD2772_MAX_PENDING_I2C_REQUESTS]; member
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()
/device/google/contexthub/firmware/os/drivers/st_acc44/
Dst_acc44.c253 struct I2cTransfer transfers[ST_ACC44_MAX_PENDING_I2C_REQUESTS]; member
559 for (i = 0; i < ARRAY_SIZE(mTask.transfers); i++) { in allocXfer()
560 if (!mTask.transfers[i].inUse) { in allocXfer()
561 mTask.transfers[i].inUse = true; in allocXfer()
562 return &mTask.transfers[i]; in allocXfer()
/device/google/contexthub/firmware/os/drivers/ams_tmd4903/
Dams_tmd4903.c239 struct AlsProxTransfer transfers[AMS_TMD4903_MAX_PENDING_I2C_REQUESTS]; member
289 for (i = 0; i < ARRAY_SIZE(mTask.transfers); i++) { in allocXfer()
290 if (!mTask.transfers[i].inUse) { in allocXfer()
291 mTask.transfers[i].inUse = true; in allocXfer()
292 mTask.transfers[i].state = state; in allocXfer()
293 return &mTask.transfers[i]; in allocXfer()
/device/google/contexthub/firmware/os/drivers/st_mag40/
Dst_mag40.c234 struct I2cTransfer transfers[ST_MAG40_MAX_PENDING_I2C_REQUESTS]; member
310 for (i = 0; i < ARRAY_SIZE(mTask.transfers); i++) { in allocXfer()
311 if (!mTask.transfers[i].inUse) { in allocXfer()
312 mTask.transfers[i].inUse = true; in allocXfer()
313 return &mTask.transfers[i]; in allocXfer()