/device/google/contexthub/firmware/os/drivers/synaptics_s3708/ |
D | synaptics_s3708.c | 148 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/ |
D | leds_lp3943.c | 108 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/ |
D | isl29034.c | 142 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/ |
D | hts221.c | 164 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/ |
D | si7034a10.c | 133 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/ |
D | lps22hb.c | 177 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/ |
D | rohm_rpr0521.c | 236 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/ |
D | bosch_bmp280.c | 129 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/ |
D | ams_tmd2772.c | 179 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/ |
D | st_acc44.c | 253 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/ |
D | ams_tmd4903.c | 239 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/ |
D | st_mag40.c | 234 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()
|