Lines Matching full:we
38 * We will be using 3 submission queue events (SQEs); i2c write, i2c read,
46 * actions submitted to the RTIO context. In this sample, we are using an I2C
47 * controller device, so we use the I2C specific helper to define the RTIO IODEV.
52 * For async write read operation we will be waiting for a callback from RTIO.
53 * We will wait on this sem which we will give from the callback.
58 * We register a simple I2C target which we will be targeting using RTIO. We
199 * We allocate one of the 3 submission queue events (SQEs) as defined by in sample_rtio_write_read()
213 * transaction. We configure this by setting the RTIO_SQE_TRANSACTION. in sample_rtio_write_read()
218 * We then allocate an SQE and configure it to read in sample_rtio_write_read()
229 * Since we are working with I2C messages, we need to specify the I2C in sample_rtio_write_read()
230 * message options. The I2C_READ and I2C_WRITE are implicit since we in sample_rtio_write_read()
232 * so we add them to the read SQE. in sample_rtio_write_read()
237 * With the two SQEs of the sample_rtio context prepared, we call in sample_rtio_write_read()
241 * In this case, we wait for the two SQEs to be completed before in sample_rtio_write_read()
250 * Since the RTIO SQEs are executed in the background, we need to in sample_rtio_write_read()
251 * get the CQE after and check its result. Since we configured the in sample_rtio_write_read()
253 * generated which includes both of them. If we had chained them in sample_rtio_write_read()
313 * The next SQE is a callback which we will use to signal that the in sample_rtio_write_read_async()
315 * after the write and read SQEs, which we configure by setting the in sample_rtio_write_read_async()
322 * argument to the handler, which we will use to store a pointer to in sample_rtio_write_read_async()
323 * the binary semaphore we will be waiting on. in sample_rtio_write_read_async()
333 * to be completed. We use the callback to signal completion of all in sample_rtio_write_read_async()
342 * We wait for the callback which signals RTIO transfer has completed. in sample_rtio_write_read_async()
344 * We will be checking the CQE result from within the callback, which in sample_rtio_write_read_async()
346 * If the result is ok, we give the sem, if its not ok, we reset the in sample_rtio_write_read_async()