Lines Matching refs:payload

533 static enum i2caux_transaction_action i2caux_action_from_payload(struct aux_payload *payload)  in i2caux_action_from_payload()  argument
535 if (payload->i2c_over_aux) { in i2caux_action_from_payload()
536 if (payload->write_status_update) { in i2caux_action_from_payload()
537 if (payload->mot) in i2caux_action_from_payload()
542 if (payload->write) { in i2caux_action_from_payload()
543 if (payload->mot) in i2caux_action_from_payload()
548 if (payload->mot) in i2caux_action_from_payload()
553 if (payload->write) in i2caux_action_from_payload()
560 struct aux_payload *payload, in dce_aux_transfer_raw() argument
583 if (payload->i2c_over_aux) in dce_aux_transfer_raw()
588 aux_req.action = i2caux_action_from_payload(payload); in dce_aux_transfer_raw()
590 aux_req.address = payload->address; in dce_aux_transfer_raw()
592 aux_req.length = payload->length; in dce_aux_transfer_raw()
593 aux_req.data = payload->data; in dce_aux_transfer_raw()
601 bytes_replied = read_channel_reply(aux_engine, payload->length, in dce_aux_transfer_raw()
602 payload->data, payload->reply, in dce_aux_transfer_raw()
605 EVENT_LOG_AUX_ORIGIN_NATIVE, *payload->reply, in dce_aux_transfer_raw()
606 bytes_replied, payload->data); in dce_aux_transfer_raw()
617 struct aux_payload *payload, in dce_aux_transfer_dmub_raw() argument
632 return dm_helper_dmub_aux_transfer_sync(ddc->ctx, ddc->link, payload, operation_result); in dce_aux_transfer_dmub_raw()
644 unsigned char *payload, uint32_t length, uint32_t max_length_to_log) in dce_aux_log_payload() argument
649 if (payload && length) { in dce_aux_log_payload()
653 unsigned char *payload_ptr = payload; in dce_aux_log_payload()
670 payload_ptr = payload; in dce_aux_log_payload()
696 struct aux_payload *payload) in dce_aux_transfer_with_retries() argument
720 if (!payload->reply) { in dce_aux_transfer_with_retries()
722 payload->reply = &reply; in dce_aux_transfer_with_retries()
732 payload->address, in dce_aux_transfer_with_retries()
733 payload->length, in dce_aux_transfer_with_retries()
734 (unsigned int) payload->write, in dce_aux_transfer_with_retries()
735 (unsigned int) payload->mot); in dce_aux_transfer_with_retries()
736 if (payload->write) in dce_aux_transfer_with_retries()
737 dce_aux_log_payload(" write", payload->data, payload->length, 16); in dce_aux_transfer_with_retries()
738 ret = dce_aux_transfer_raw(ddc, payload, &operation_result); in dce_aux_transfer_with_retries()
745 payload->address, in dce_aux_transfer_with_retries()
746 payload->length, in dce_aux_transfer_with_retries()
747 (unsigned int) payload->write, in dce_aux_transfer_with_retries()
748 (unsigned int) payload->mot, in dce_aux_transfer_with_retries()
751 (unsigned int) *payload->reply); in dce_aux_transfer_with_retries()
752 if (!payload->write) in dce_aux_transfer_with_retries()
753 dce_aux_log_payload(" read", payload->data, ret > 0 ? ret : 0, 16); in dce_aux_transfer_with_retries()
760 switch (*payload->reply) { in dce_aux_transfer_with_retries()
765 if (!payload->write && payload->length != ret) { in dce_aux_transfer_with_retries()
775 } else if (payload->write && ret > 0) { in dce_aux_transfer_with_retries()
789 payload->write = false; in dce_aux_transfer_with_retries()
790 payload->write_status_update = true; in dce_aux_transfer_with_retries()
791 payload->length = 0; in dce_aux_transfer_with_retries()
811 if (*payload->reply == AUX_TRANSACTION_REPLY_I2C_OVER_AUX_DEFER) in dce_aux_transfer_with_retries()
829 if ((*payload->reply == AUX_TRANSACTION_REPLY_AUX_DEFER) || in dce_aux_transfer_with_retries()
830 (*payload->reply == AUX_TRANSACTION_REPLY_I2C_OVER_AUX_DEFER)) { in dce_aux_transfer_with_retries()
834 payload->defer_delay); in dce_aux_transfer_with_retries()
835 fsleep(payload->defer_delay * 1000); in dce_aux_transfer_with_retries()
836 defer_time_in_ms += payload->defer_delay; in dce_aux_transfer_with_retries()
876 …_RET_SUCCESS: FAILURE: AUX_TRANSACTION_REPLY_* unknown, default case. Reply: %d", *payload->reply); in dce_aux_transfer_with_retries()
910 } else if (payload->defer_delay > 0) { in dce_aux_transfer_with_retries()
914 payload->defer_delay); in dce_aux_transfer_with_retries()
915 msleep(payload->defer_delay); in dce_aux_transfer_with_retries()
951 payload->reply = NULL; in dce_aux_transfer_with_retries()