Lines Matching refs:pkt

571 	struct cpucp_packet pkt;  in hl_get_temperature()  local
575 memset(&pkt, 0, sizeof(pkt)); in hl_get_temperature()
577 pkt.ctl = cpu_to_le32(CPUCP_PACKET_TEMPERATURE_GET << in hl_get_temperature()
579 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_get_temperature()
580 pkt.type = __cpu_to_le16(attr); in hl_get_temperature()
583 pkt.ctl, pkt.sensor_index, pkt.type); in hl_get_temperature()
585 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), in hl_get_temperature()
603 struct cpucp_packet pkt; in hl_set_temperature() local
606 memset(&pkt, 0, sizeof(pkt)); in hl_set_temperature()
608 pkt.ctl = cpu_to_le32(CPUCP_PACKET_TEMPERATURE_SET << in hl_set_temperature()
610 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_set_temperature()
611 pkt.type = __cpu_to_le16(attr); in hl_set_temperature()
612 pkt.value = __cpu_to_le64(value); in hl_set_temperature()
614 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), in hl_set_temperature()
628 struct cpucp_packet pkt; in hl_get_voltage() local
632 memset(&pkt, 0, sizeof(pkt)); in hl_get_voltage()
634 pkt.ctl = cpu_to_le32(CPUCP_PACKET_VOLTAGE_GET << in hl_get_voltage()
636 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_get_voltage()
637 pkt.type = __cpu_to_le16(attr); in hl_get_voltage()
639 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), in hl_get_voltage()
657 struct cpucp_packet pkt; in hl_get_current() local
661 memset(&pkt, 0, sizeof(pkt)); in hl_get_current()
663 pkt.ctl = cpu_to_le32(CPUCP_PACKET_CURRENT_GET << in hl_get_current()
665 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_get_current()
666 pkt.type = __cpu_to_le16(attr); in hl_get_current()
668 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), in hl_get_current()
686 struct cpucp_packet pkt; in hl_get_fan_speed() local
690 memset(&pkt, 0, sizeof(pkt)); in hl_get_fan_speed()
692 pkt.ctl = cpu_to_le32(CPUCP_PACKET_FAN_SPEED_GET << in hl_get_fan_speed()
694 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_get_fan_speed()
695 pkt.type = __cpu_to_le16(attr); in hl_get_fan_speed()
697 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), in hl_get_fan_speed()
715 struct cpucp_packet pkt; in hl_get_pwm_info() local
719 memset(&pkt, 0, sizeof(pkt)); in hl_get_pwm_info()
721 pkt.ctl = cpu_to_le32(CPUCP_PACKET_PWM_GET << in hl_get_pwm_info()
723 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_get_pwm_info()
724 pkt.type = __cpu_to_le16(attr); in hl_get_pwm_info()
726 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), in hl_get_pwm_info()
744 struct cpucp_packet pkt; in hl_set_pwm_info() local
747 memset(&pkt, 0, sizeof(pkt)); in hl_set_pwm_info()
749 pkt.ctl = cpu_to_le32(CPUCP_PACKET_PWM_SET << in hl_set_pwm_info()
751 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_set_pwm_info()
752 pkt.type = __cpu_to_le16(attr); in hl_set_pwm_info()
753 pkt.value = cpu_to_le64(value); in hl_set_pwm_info()
755 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), in hl_set_pwm_info()
767 struct cpucp_packet pkt; in hl_set_voltage() local
770 memset(&pkt, 0, sizeof(pkt)); in hl_set_voltage()
772 pkt.ctl = cpu_to_le32(CPUCP_PACKET_VOLTAGE_SET << in hl_set_voltage()
774 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_set_voltage()
775 pkt.type = __cpu_to_le16(attr); in hl_set_voltage()
776 pkt.value = __cpu_to_le64(value); in hl_set_voltage()
778 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), in hl_set_voltage()
792 struct cpucp_packet pkt; in hl_set_current() local
795 memset(&pkt, 0, sizeof(pkt)); in hl_set_current()
797 pkt.ctl = cpu_to_le32(CPUCP_PACKET_CURRENT_SET << in hl_set_current()
799 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_set_current()
800 pkt.type = __cpu_to_le16(attr); in hl_set_current()
801 pkt.value = __cpu_to_le64(value); in hl_set_current()
803 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), in hl_set_current()
817 struct cpucp_packet pkt; in hl_set_power() local
821 memset(&pkt, 0, sizeof(pkt)); in hl_set_power()
824 pkt.ctl = cpu_to_le32(CPUCP_PACKET_POWER_GET << in hl_set_power()
827 pkt.ctl = cpu_to_le32(CPUCP_PACKET_POWER_SET << in hl_set_power()
830 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_set_power()
831 pkt.type = __cpu_to_le16(attr); in hl_set_power()
832 pkt.value = __cpu_to_le64(value); in hl_set_power()
834 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), in hl_set_power()
848 struct cpucp_packet pkt; in hl_get_power() local
852 memset(&pkt, 0, sizeof(pkt)); in hl_get_power()
854 pkt.ctl = cpu_to_le32(CPUCP_PACKET_POWER_GET << in hl_get_power()
856 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_get_power()
857 pkt.type = __cpu_to_le16(attr); in hl_get_power()
859 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), in hl_get_power()