Lines Matching refs:request

159 	struct aux_request_transaction_data *request)  in submit_channel_request()  argument
166 ((request->type == AUX_TRANSACTION_TYPE_DP) && in submit_channel_request()
167 (request->action == I2CAUX_TRANSACTION_ACTION_DP_WRITE)) || in submit_channel_request()
168 ((request->type == AUX_TRANSACTION_TYPE_I2C) && in submit_channel_request()
169 ((request->action == I2CAUX_TRANSACTION_ACTION_I2C_WRITE) || in submit_channel_request()
170 (request->action == I2CAUX_TRANSACTION_ACTION_I2C_WRITE_MOT))); in submit_channel_request()
207 length = request->length ? 4 : 3; in submit_channel_request()
209 length += request->length; in submit_channel_request()
212 AUX_SW_START_DELAY, request->delay, in submit_channel_request()
220 AUX_SW_DATA, COMPOSE_AUX_SW_DATA_16_20(request->action, request->address)); in submit_channel_request()
224 AUX_SW_DATA, COMPOSE_AUX_SW_DATA_8_15(request->address)); in submit_channel_request()
227 AUX_SW_DATA, COMPOSE_AUX_SW_DATA_0_7(request->address)); in submit_channel_request()
229 if (request->length) { in submit_channel_request()
231 AUX_SW_DATA, request->length - 1); in submit_channel_request()
242 while (i < request->length) { in submit_channel_request()
244 AUX_SW_DATA, request->data[i]); in submit_channel_request()
489 engine->funcs->submit_channel_request(engine, &ctx->request); in process_read_request()
547 struct i2caux_transaction_request *request, in read_command() argument
552 ctx.buffer = request->payload.data; in read_command()
553 ctx.current_read_length = request->payload.length; in read_command()
563 if (request->payload.address_space == in read_command()
565 ctx.request.type = AUX_TRANSACTION_TYPE_DP; in read_command()
566 ctx.request.action = I2CAUX_TRANSACTION_ACTION_DP_READ; in read_command()
567 ctx.request.address = request->payload.address; in read_command()
568 } else if (request->payload.address_space == in read_command()
570 ctx.request.type = AUX_TRANSACTION_TYPE_I2C; in read_command()
571 ctx.request.action = middle_of_transaction ? in read_command()
574 ctx.request.address = request->payload.address >> 1; in read_command()
581 ctx.request.delay = 0; in read_command()
586 ctx.request.data = ctx.buffer + ctx.offset; in read_command()
587 ctx.request.length = ctx.current_read_length; in read_command()
591 request->status = ctx.status; in read_command()
594 if (ctx.request.type == AUX_TRANSACTION_TYPE_I2C) in read_command()
598 if (request->payload.address_space == in read_command()
601 request->payload.address, in read_command()
602 request->payload.data[0], in read_command()
620 ctx->request.action = ctx->mot ? in process_write_reply()
657 ctx->request.action = ctx->mot ? in process_write_reply()
683 engine->funcs->submit_channel_request(engine, &ctx->request); in process_write_request()
735 struct i2caux_transaction_request *request, in write_command() argument
741 ctx.buffer = request->payload.data; in write_command()
742 ctx.current_write_length = request->payload.length; in write_command()
751 if (request->payload.address_space == in write_command()
753 ctx.request.type = AUX_TRANSACTION_TYPE_DP; in write_command()
754 ctx.request.action = I2CAUX_TRANSACTION_ACTION_DP_WRITE; in write_command()
755 ctx.request.address = request->payload.address; in write_command()
756 } else if (request->payload.address_space == in write_command()
758 ctx.request.type = AUX_TRANSACTION_TYPE_I2C; in write_command()
759 ctx.request.action = middle_of_transaction ? in write_command()
762 ctx.request.address = request->payload.address >> 1; in write_command()
769 ctx.request.delay = 0; in write_command()
776 ctx.request.data = ctx.buffer; in write_command()
777 ctx.request.length = ctx.current_write_length; in write_command()
781 request->status = ctx.status; in write_command()
784 if (ctx.request.type == AUX_TRANSACTION_TYPE_I2C) in write_command()
788 if (request->payload.address_space == in write_command()
791 request->payload.address, in write_command()
792 request->payload.data[0], in write_command()
800 struct i2caux_transaction_request *request) in end_of_transaction_command() argument
809 if (request->payload.address_space != in end_of_transaction_command()
813 dummy_request.operation = request->operation; in end_of_transaction_command()
814 dummy_request.payload.address_space = request->payload.address_space; in end_of_transaction_command()
815 dummy_request.payload.address = request->payload.address; in end_of_transaction_command()
826 if (request->operation == I2CAUX_TRANSACTION_READ) in end_of_transaction_command()
835 struct i2caux_transaction_request *request, in submit_request() argument
842 switch (request->operation) { in submit_request()
844 result = read_command(engine, request, mot_used); in submit_request()
847 result = write_command(engine, request, mot_used); in submit_request()
859 end_of_transaction_command(engine, request); in submit_request()