/device/google/contexthub/firmware/os/drivers/ams_tmd2772/ |
D | ams_tmd2772.c | 219 struct I2cTransfer *xfer = cookie; in i2cCallback() local 221 xfer->tx = tx; in i2cCallback() 222 xfer->rx = rx; in i2cCallback() 223 xfer->err = err; in i2cCallback() 252 struct I2cTransfer *xfer = allocXfer(state); in writeRegister() local 255 if (xfer != NULL) { in writeRegister() 256 xfer->txrxBuf.bytes[0] = reg; in writeRegister() 257 xfer->txrxBuf.bytes[1] = value; in writeRegister() 258 ret = i2cMasterTx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf.bytes, 2, i2cCallback, xfer); in writeRegister() 307 struct I2cTransfer *xfer; in setMode() local [all …]
|
/device/google/contexthub/firmware/os/drivers/ams_tmd4903/ |
D | ams_tmd4903.c | 305 struct AlsProxTransfer *xfer = allocXfer(state); in writeRegister() local 308 if (xfer != NULL) { in writeRegister() 309 xfer->txrxBuf[0] = reg; in writeRegister() 310 xfer->txrxBuf[1] = value; in writeRegister() 311 ret = i2cMasterTx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf, 2, i2cCallback, xfer); in writeRegister() 371 struct AlsProxTransfer *xfer = cookie; in i2cCallback() local 373 xfer->tx = tx; in i2cCallback() 374 xfer->rx = rx; in i2cCallback() 375 xfer->err = err; in i2cCallback() 632 struct AlsProxTransfer *xfer; in sensorCfgDataProx() local [all …]
|
/device/google/contexthub/firmware/os/drivers/intersil_isl29034/ |
D | isl29034.c | 171 struct I2cTransfer *xfer = cookie; in i2cCallback() local 173 xfer->tx = tx; in i2cCallback() 174 xfer->rx = rx; in i2cCallback() 175 xfer->err = err; in i2cCallback() 204 struct I2cTransfer *xfer = allocXfer(state); in writeRegister() local 207 if (xfer != NULL) { in writeRegister() 208 xfer->txrxBuf[0] = reg; in writeRegister() 209 xfer->txrxBuf[1] = value; in writeRegister() 210 … ret = i2cMasterTx(ISL29034_I2C_BUS_ID, ISL29034_I2C_ADDR, xfer->txrxBuf, 2, i2cCallback, xfer); in writeRegister() 313 static void handle_i2c_event(struct I2cTransfer *xfer) in handle_i2c_event() argument [all …]
|
/device/google/contexthub/firmware/os/drivers/synaptics_s3708/ |
D | synaptics_s3708.c | 189 struct I2cTransfer *xfer = cookie; in i2cCallback() local 191 xfer->tx = tx; in i2cCallback() 192 xfer->rx = rx; in i2cCallback() 193 xfer->err = err; in i2cCallback() 231 static bool performXfer(struct I2cTransfer *xfer, size_t txBytes, size_t rxBytes) in performXfer() argument 241 …ret = i2cMasterTxRx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf, txBytes, xfer->txrxBuf, rxBytes, i2cCallb… in performXfer() 243 ret = i2cMasterTx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf, txBytes, i2cCallback, xfer); in performXfer() 257 struct I2cTransfer *xfer = allocXfer(state); in writeRegister() local 259 if (xfer != NULL) { in writeRegister() 260 xfer->txrxBuf[0] = reg; in writeRegister() [all …]
|
/device/google/contexthub/firmware/os/drivers/si_si7034/ |
D | si7034a10.c | 159 static inline void releaseXfer(struct I2cTransfer *xfer) in releaseXfer() argument 161 xfer->inUse = false; in releaseXfer() 166 struct I2cTransfer *xfer = cookie; in i2cCallback() local 168 xfer->tx = tx; in i2cCallback() 169 xfer->rx = rx; in i2cCallback() 170 xfer->err = err; in i2cCallback() 179 struct I2cTransfer *xfer = allocXfer(state); in si7034_i2c_read() local 182 if (xfer != NULL) { in si7034_i2c_read() 183 xfer->txrxBuf[0] = addr0; in si7034_i2c_read() 184 xfer->txrxBuf[1] = addr1; in si7034_i2c_read() [all …]
|
/device/google/contexthub/firmware/os/drivers/st_hts221/ |
D | hts221.c | 205 static inline void releaseXfer(struct I2cTransfer *xfer) in releaseXfer() argument 207 xfer->inUse = false; in releaseXfer() 213 struct I2cTransfer *xfer = cookie; in i2cCallback() local 215 xfer->tx = tx; in i2cCallback() 216 xfer->rx = rx; in i2cCallback() 217 xfer->err = err; in i2cCallback() 226 struct I2cTransfer *xfer = allocXfer(state); in i2c_read() local 229 if (xfer != NULL) { in i2c_read() 232 releaseXfer(xfer); in i2c_read() 236 xfer->txrxBuf[0] = 0x80 | addr; in i2c_read() [all …]
|
/device/google/contexthub/firmware/os/drivers/rohm_rpr0521/ |
D | rohm_rpr0521.c | 301 struct I2cTransfer *xfer = cookie; in i2cCallback() local 303 xfer->tx = tx; in i2cCallback() 304 xfer->rx = rx; in i2cCallback() 305 xfer->err = err; in i2cCallback() 335 static inline void releaseXfer(struct I2cTransfer *xfer) in releaseXfer() argument 337 xfer->inUse = false; in releaseXfer() 340 static bool i2cWrite(struct I2cTransfer *xfer, size_t txSize) in i2cWrite() argument 342 int ret = i2cMasterTx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf, txSize, i2cCallback, xfer); in i2cWrite() 345 releaseXfer(xfer); in i2cWrite() 355 struct I2cTransfer *xfer = allocXfer(state); in writeRegister() local [all …]
|
/device/google/contexthub/firmware/os/drivers/st_mag40/ |
D | st_mag40.c | 321 static inline void releaseXfer(struct I2cTransfer *xfer) in releaseXfer() argument 323 xfer->inUse = false; in releaseXfer() 331 struct I2cTransfer *xfer = data; in i2cDelayCallback() local 333 i2cCallback((void *)xfer, xfer->tx, xfer->rx, xfer->err); in i2cDelayCallback() 338 struct I2cTransfer *xfer = cookie; in i2cCallback() local 341 if (xfer && !xfer->last) { in i2cCallback() 342 releaseXfer(xfer); in i2cCallback() 347 if (xfer->delay > 0) { in i2cCallback() 348 xfer->tx = tx; in i2cCallback() 349 xfer->rx = rx; in i2cCallback() [all …]
|
/device/google/contexthub/firmware/os/drivers/st_acc44/ |
D | st_acc44.c | 570 static inline void releaseXfer(struct I2cTransfer *xfer) in releaseXfer() argument 572 xfer->inUse = false; in releaseXfer() 577 struct I2cTransfer *xfer = cookie; in st_acc44_i2cCallback() local 580 if (xfer && !xfer->last) { in st_acc44_i2cCallback() 581 releaseXfer(xfer); in st_acc44_i2cCallback() 585 xfer->tx = tx; in st_acc44_i2cCallback() 586 xfer->rx = rx; in st_acc44_i2cCallback() 587 xfer->err = err; in st_acc44_i2cCallback() 596 struct I2cTransfer *xfer = allocXfer(); in st_acc44_i2c_read() local 599 if (xfer != NULL) { in st_acc44_i2c_read() [all …]
|
/device/google/contexthub/firmware/os/drivers/st_lps22hb/ |
D | lps22hb.c | 230 static inline void releaseXfer(struct I2cTransfer *xfer) in releaseXfer() argument 232 xfer->inUse = false; in releaseXfer() 237 struct I2cTransfer *xfer = cookie; in i2cCallback() local 239 xfer->tx = tx; in i2cCallback() 240 xfer->rx = rx; in i2cCallback() 241 xfer->err = err; in i2cCallback() 250 struct I2cTransfer *xfer = allocXfer(state); in i2c_read() local 253 if (xfer != NULL) { in i2c_read() 254 xfer->txrxBuf[0] = 0x80 | addr; in i2c_read() 255 …MasterTxRx(LPS22HB_I2C_BUS_ID, LPS22HB_I2C_ADDR, xfer->txrxBuf, 1, xfer->txrxBuf, len, i2cCallback… in i2c_read() [all …]
|
/device/google/contexthub/firmware/os/platform/stm32/ |
D | i2c.c | 244 static inline void stmI2cPutXfer(struct StmI2cXfer *xfer) in stmI2cPutXfer() argument 246 if (xfer) { in stmI2cPutXfer() 247 atomicWrite32bits(&xfer->id, 0); in stmI2cPutXfer() 248 atomicBitsetClearBit(mXfersValid, xfer - mXfers); in stmI2cPutXfer() 496 struct StmI2cXfer *xfer = &mXfers[i]; in stmI2cGetNextPendingXfer() local 497 if (xfer->busId == busId) { in stmI2cGetNextPendingXfer() 498 uint32_t xferId = atomicRead32bits(&xfer->id); in stmI2cGetNextPendingXfer() 500 pendingXfer = xfer; in stmI2cGetNextPendingXfer() 514 struct StmI2cXfer *xfer; in stmI2cMasterTxRxDone() local 523 xfer = stmI2cGetNextPendingXfer(pdev - mStmI2cDevs); in stmI2cMasterTxRxDone() [all …]
|
/device/google/contexthub/firmware/os/drivers/leds/ |
D | leds_lp3943.c | 114 struct I2cTransfer *xfer = cookie; in i2cCallback() local 116 xfer->tx = tx; in i2cCallback() 117 xfer->rx = rx; in i2cCallback() 118 xfer->err = err; in i2cCallback() 166 static inline void releaseXfer(struct I2cTransfer *xfer) in releaseXfer() argument 168 xfer->inUse = false; in releaseXfer() 175 struct I2cTransfer *xfer = allocXfer(state); in writeRegister() local 178 if (xfer != NULL) { in writeRegister() 179 xfer->txrxBuf[0] = reg; in writeRegister() 180 xfer->txrxBuf[1] = value; in writeRegister() [all …]
|
/device/google/contexthub/util/stm32_flash/ |
D | spi.c | 27 struct spi_ioc_transfer xfer = in spi_write_data() local 37 if (ioctl(spi_handle->fd, SPI_IOC_MESSAGE(1), &xfer) >= 0) in spi_write_data() 52 struct spi_ioc_transfer xfer = in spi_write_cmd() local 60 if (ioctl(spi_handle->fd, SPI_IOC_MESSAGE(1), &xfer) >= 0) in spi_write_cmd() 73 struct spi_ioc_transfer xfer[] = in spi_read_data() local 88 if (ioctl(spi_handle->fd, SPI_IOC_MESSAGE(2), xfer) >= 0) in spi_read_data() 103 struct spi_ioc_transfer xfer = in spi_read_ack() local 111 if (ioctl(spi_handle->fd, SPI_IOC_MESSAGE(1), &xfer) >= 0) { in spi_read_ack() 113 ioctl(spi_handle->fd, SPI_IOC_MESSAGE(1), &xfer); in spi_read_ack() 121 ioctl(spi_handle->fd, SPI_IOC_MESSAGE(1), &xfer); in spi_read_ack() [all …]
|
/device/google/contexthub/firmware/os/drivers/bosch_bmp280/ |
D | bosch_bmp280.c | 203 static inline void releaseXfer(struct I2cTransfer *xfer) in releaseXfer() argument 205 xfer->inUse = false; in releaseXfer() 212 struct I2cTransfer *xfer = allocXfer(state); in writeRegister() local 215 if (xfer != NULL) { in writeRegister() 216 xfer->txrxBuf[0] = reg; in writeRegister() 217 xfer->txrxBuf[1] = value; in writeRegister() 218 ret = i2cMasterTx(I2C_BUS_ID, I2C_ADDR, xfer->txrxBuf, 2, i2cCallback, xfer); in writeRegister() 220 releaseXfer(xfer); in writeRegister() 255 struct I2cTransfer *xfer = cookie; in i2cCallback() local 257 xfer->tx = tx; in i2cCallback() [all …]
|
/device/google/cuttlefish_vmm/qemu/x86_64-linux-gnu/usr/share/qemu/ |
D | trace-events-all | 3926 scsi_req_parsed(int target, int lun, int tag, int cmd, int mode, int xfer) "target %d lun %d tag %d… 3974 …rame, int bus, int dev, int lun, void *sdev, unsigned long size) "%s dev %x/%x/%x sdev %p xfer %lu" 3985 megasas_scsi_complete(int cmd, uint32_t status, int len, int xfer) "scmd %d: status 0x%x, len %u/%u" 4006 megasas_dcmd_invalid_xfer_len(int cmd, unsigned long size, unsigned long max) "scmd %d: xfer len %l… 4008 megasas_dcmd_dummy(int cmd, unsigned long size) "scmd %d: xfer len %ld" 4144 spapr_vscsi_transfer_data(uint32_t tag, uint32_t len, void *req) "SCSI xfer complete tag=0x%"PRIx32… 4237 scsi_disk_emulate_vpd_page_00(size_t xfer) "Inquiry EVPD[Supported pages] buffer size %zd" 4239 scsi_disk_emulate_vpd_page_80(size_t xfer) "Inquiry EVPD[Serial number] buffer size %zd" 4240 scsi_disk_emulate_vpd_page_83(size_t xfer) "Inquiry EVPD[Device identification] buffer size %zd" 4242 …i_disk_emulate_mode_sense(int cmd, int page, size_t xfer, int control) "Mode Sense(%d) (page %d, x… [all …]
|
/device/google/cuttlefish_vmm/qemu/aarch64-linux-gnu/usr/share/qemu/ |
D | trace-events-all | 3926 scsi_req_parsed(int target, int lun, int tag, int cmd, int mode, int xfer) "target %d lun %d tag %d… 3974 …rame, int bus, int dev, int lun, void *sdev, unsigned long size) "%s dev %x/%x/%x sdev %p xfer %lu" 3985 megasas_scsi_complete(int cmd, uint32_t status, int len, int xfer) "scmd %d: status 0x%x, len %u/%u" 4006 megasas_dcmd_invalid_xfer_len(int cmd, unsigned long size, unsigned long max) "scmd %d: xfer len %l… 4008 megasas_dcmd_dummy(int cmd, unsigned long size) "scmd %d: xfer len %ld" 4144 spapr_vscsi_transfer_data(uint32_t tag, uint32_t len, void *req) "SCSI xfer complete tag=0x%"PRIx32… 4237 scsi_disk_emulate_vpd_page_00(size_t xfer) "Inquiry EVPD[Supported pages] buffer size %zd" 4239 scsi_disk_emulate_vpd_page_80(size_t xfer) "Inquiry EVPD[Serial number] buffer size %zd" 4240 scsi_disk_emulate_vpd_page_83(size_t xfer) "Inquiry EVPD[Device identification] buffer size %zd" 4242 …i_disk_emulate_mode_sense(int cmd, int page, size_t xfer, int control) "Mode Sense(%d) (page %d, x… [all …]
|