Lines Matching refs:request

103 	struct aux_request_transaction_data request;  member
188 engine->funcs->submit_channel_request(engine, &ctx->request); in process_read_request()
246 struct i2caux_transaction_request *request, in read_command() argument
251 ctx.buffer = request->payload.data; in read_command()
252 ctx.current_read_length = request->payload.length; in read_command()
262 if (request->payload.address_space == in read_command()
264 ctx.request.type = AUX_TRANSACTION_TYPE_DP; in read_command()
265 ctx.request.action = I2CAUX_TRANSACTION_ACTION_DP_READ; in read_command()
266 ctx.request.address = request->payload.address; in read_command()
267 } else if (request->payload.address_space == in read_command()
269 ctx.request.type = AUX_TRANSACTION_TYPE_I2C; in read_command()
270 ctx.request.action = middle_of_transaction ? in read_command()
273 ctx.request.address = request->payload.address >> 1; in read_command()
280 ctx.request.delay = 0; in read_command()
285 ctx.request.data = ctx.buffer + ctx.offset; in read_command()
286 ctx.request.length = ctx.current_read_length; in read_command()
290 request->status = ctx.status; in read_command()
293 if (ctx.request.type == AUX_TRANSACTION_TYPE_I2C) in read_command()
297 if (request->payload.address_space == in read_command()
300 request->payload.address, in read_command()
301 request->payload.data[0], in read_command()
315 struct aux_request_transaction_data request; member
344 ctx->request.action = ctx->mot ? in process_write_reply()
381 ctx->request.action = ctx->mot ? in process_write_reply()
408 engine->funcs->submit_channel_request(engine, &ctx->request); in process_write_request()
460 struct i2caux_transaction_request *request, in write_command() argument
466 ctx.buffer = request->payload.data; in write_command()
467 ctx.current_write_length = request->payload.length; in write_command()
476 if (request->payload.address_space == in write_command()
478 ctx.request.type = AUX_TRANSACTION_TYPE_DP; in write_command()
479 ctx.request.action = I2CAUX_TRANSACTION_ACTION_DP_WRITE; in write_command()
480 ctx.request.address = request->payload.address; in write_command()
481 } else if (request->payload.address_space == in write_command()
483 ctx.request.type = AUX_TRANSACTION_TYPE_I2C; in write_command()
484 ctx.request.action = middle_of_transaction ? in write_command()
487 ctx.request.address = request->payload.address >> 1; in write_command()
494 ctx.request.delay = 0; in write_command()
501 ctx.request.data = ctx.buffer; in write_command()
502 ctx.request.length = ctx.current_write_length; in write_command()
506 request->status = ctx.status; in write_command()
509 if (ctx.request.type == AUX_TRANSACTION_TYPE_I2C) in write_command()
513 if (request->payload.address_space == in write_command()
516 request->payload.address, in write_command()
517 request->payload.data[0], in write_command()
526 struct i2caux_transaction_request *request) in end_of_transaction_command() argument
534 if (request->payload.address_space != in end_of_transaction_command()
538 dummy_request.operation = request->operation; in end_of_transaction_command()
539 dummy_request.payload.address_space = request->payload.address_space; in end_of_transaction_command()
540 dummy_request.payload.address = request->payload.address; in end_of_transaction_command()
551 if (request->operation == I2CAUX_TRANSACTION_READ) in end_of_transaction_command()
561 struct i2caux_transaction_request *request, in dal_aux_engine_submit_request() argument
569 switch (request->operation) { in dal_aux_engine_submit_request()
571 result = read_command(aux_engine, request, mot_used); in dal_aux_engine_submit_request()
574 result = write_command(aux_engine, request, mot_used); in dal_aux_engine_submit_request()
585 end_of_transaction_command(aux_engine, request); in dal_aux_engine_submit_request()