Lines Matching refs:payload
534 static enum i2caux_transaction_action i2caux_action_from_payload(struct aux_payload *payload) in i2caux_action_from_payload() argument
536 if (payload->i2c_over_aux) { in i2caux_action_from_payload()
537 if (payload->write) { in i2caux_action_from_payload()
538 if (payload->mot) in i2caux_action_from_payload()
542 if (payload->mot) in i2caux_action_from_payload()
546 if (payload->write) in i2caux_action_from_payload()
552 struct aux_payload *payload, in dce_aux_transfer_raw() argument
572 if (payload->i2c_over_aux) in dce_aux_transfer_raw()
577 aux_req.action = i2caux_action_from_payload(payload); in dce_aux_transfer_raw()
579 aux_req.address = payload->address; in dce_aux_transfer_raw()
581 aux_req.length = payload->length; in dce_aux_transfer_raw()
582 aux_req.data = payload->data; in dce_aux_transfer_raw()
590 bytes_replied = read_channel_reply(aux_engine, payload->length, in dce_aux_transfer_raw()
591 payload->data, payload->reply, in dce_aux_transfer_raw()
594 EVENT_LOG_AUX_ORIGIN_NATIVE, *payload->reply, in dce_aux_transfer_raw()
595 bytes_replied, payload->data); in dce_aux_transfer_raw()
606 struct aux_payload *payload, in dce_aux_transfer_dmub_raw() argument
621 return dm_helper_dmub_aux_transfer_sync(ddc->ctx, ddc->link, payload, operation_result); in dce_aux_transfer_dmub_raw()
632 unsigned char *payload, uint32_t length, uint32_t max_length_to_log) in dce_aux_log_payload() argument
637 if (payload && length) { in dce_aux_log_payload()
641 unsigned char *payload_ptr = payload; in dce_aux_log_payload()
658 payload_ptr = payload; in dce_aux_log_payload()
684 struct aux_payload *payload) in dce_aux_transfer_with_retries() argument
702 if (!payload->reply) { in dce_aux_transfer_with_retries()
704 payload->reply = &reply; in dce_aux_transfer_with_retries()
714 payload->address, in dce_aux_transfer_with_retries()
715 payload->length, in dce_aux_transfer_with_retries()
716 (unsigned int) payload->write, in dce_aux_transfer_with_retries()
717 (unsigned int) payload->mot); in dce_aux_transfer_with_retries()
718 if (payload->write) in dce_aux_transfer_with_retries()
719 dce_aux_log_payload(" write", payload->data, payload->length, 16); in dce_aux_transfer_with_retries()
720 ret = dce_aux_transfer_raw(ddc, payload, &operation_result); in dce_aux_transfer_with_retries()
727 payload->address, in dce_aux_transfer_with_retries()
728 payload->length, in dce_aux_transfer_with_retries()
729 (unsigned int) payload->write, in dce_aux_transfer_with_retries()
730 (unsigned int) payload->mot, in dce_aux_transfer_with_retries()
733 (unsigned int) *payload->reply); in dce_aux_transfer_with_retries()
734 if (!payload->write) in dce_aux_transfer_with_retries()
735 dce_aux_log_payload(" read", payload->data, ret > 0 ? ret : 0, 16); in dce_aux_transfer_with_retries()
742 switch (*payload->reply) { in dce_aux_transfer_with_retries()
747 if (!payload->write && payload->length != ret) { in dce_aux_transfer_with_retries()
772 if (*payload->reply == AUX_TRANSACTION_REPLY_I2C_OVER_AUX_DEFER) in dce_aux_transfer_with_retries()
780 if (*payload->reply == AUX_TRANSACTION_REPLY_I2C_OVER_AUX_NACK) in dce_aux_transfer_with_retries()
796 if ((*payload->reply == AUX_TRANSACTION_REPLY_AUX_DEFER) || in dce_aux_transfer_with_retries()
797 (*payload->reply == AUX_TRANSACTION_REPLY_I2C_OVER_AUX_DEFER)) { in dce_aux_transfer_with_retries()
801 payload->defer_delay); in dce_aux_transfer_with_retries()
802 if (payload->defer_delay > 1) { in dce_aux_transfer_with_retries()
803 msleep(payload->defer_delay); in dce_aux_transfer_with_retries()
804 defer_time_in_ms += payload->defer_delay; in dce_aux_transfer_with_retries()
805 } else if (payload->defer_delay <= 1) { in dce_aux_transfer_with_retries()
806 udelay(payload->defer_delay * 1000); in dce_aux_transfer_with_retries()
807 defer_time_in_ms += payload->defer_delay; in dce_aux_transfer_with_retries()
878 } else if (payload->defer_delay > 0) { in dce_aux_transfer_with_retries()
882 payload->defer_delay); in dce_aux_transfer_with_retries()
883 msleep(payload->defer_delay); in dce_aux_transfer_with_retries()
921 payload->reply = NULL; in dce_aux_transfer_with_retries()