Lines Matching refs:pkt

572 	struct cpucp_packet pkt;  in hl_get_temperature()  local
576 memset(&pkt, 0, sizeof(pkt)); in hl_get_temperature()
578 pkt.ctl = cpu_to_le32(CPUCP_PACKET_TEMPERATURE_GET << in hl_get_temperature()
580 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_get_temperature()
581 pkt.type = __cpu_to_le16(attr); in hl_get_temperature()
582 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), in hl_get_temperature()
601 struct cpucp_packet pkt; in hl_set_temperature() local
604 memset(&pkt, 0, sizeof(pkt)); in hl_set_temperature()
606 pkt.ctl = cpu_to_le32(CPUCP_PACKET_TEMPERATURE_SET << in hl_set_temperature()
608 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_set_temperature()
609 pkt.type = __cpu_to_le16(attr); in hl_set_temperature()
610 pkt.value = __cpu_to_le64(value); in hl_set_temperature()
612 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), in hl_set_temperature()
625 struct cpucp_packet pkt; in hl_get_voltage() local
629 memset(&pkt, 0, sizeof(pkt)); in hl_get_voltage()
631 pkt.ctl = cpu_to_le32(CPUCP_PACKET_VOLTAGE_GET << in hl_get_voltage()
633 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_get_voltage()
634 pkt.type = __cpu_to_le16(attr); in hl_get_voltage()
636 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), in hl_get_voltage()
655 struct cpucp_packet pkt; in hl_get_current() local
659 memset(&pkt, 0, sizeof(pkt)); in hl_get_current()
661 pkt.ctl = cpu_to_le32(CPUCP_PACKET_CURRENT_GET << in hl_get_current()
663 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_get_current()
664 pkt.type = __cpu_to_le16(attr); in hl_get_current()
666 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), in hl_get_current()
685 struct cpucp_packet pkt; in hl_get_fan_speed() local
689 memset(&pkt, 0, sizeof(pkt)); in hl_get_fan_speed()
691 pkt.ctl = cpu_to_le32(CPUCP_PACKET_FAN_SPEED_GET << in hl_get_fan_speed()
693 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_get_fan_speed()
694 pkt.type = __cpu_to_le16(attr); in hl_get_fan_speed()
696 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()
745 struct cpucp_packet pkt; in hl_set_pwm_info() local
748 memset(&pkt, 0, sizeof(pkt)); in hl_set_pwm_info()
750 pkt.ctl = cpu_to_le32(CPUCP_PACKET_PWM_SET << in hl_set_pwm_info()
752 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_set_pwm_info()
753 pkt.type = __cpu_to_le16(attr); in hl_set_pwm_info()
754 pkt.value = cpu_to_le64(value); in hl_set_pwm_info()
756 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()
791 struct cpucp_packet pkt; in hl_set_current() local
794 memset(&pkt, 0, sizeof(pkt)); in hl_set_current()
796 pkt.ctl = cpu_to_le32(CPUCP_PACKET_CURRENT_SET << in hl_set_current()
798 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_set_current()
799 pkt.type = __cpu_to_le16(attr); in hl_set_current()
800 pkt.value = __cpu_to_le64(value); in hl_set_current()
802 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), 0, NULL); in hl_set_current()
814 struct cpucp_packet pkt; in hl_set_power() local
818 memset(&pkt, 0, sizeof(pkt)); in hl_set_power()
821 pkt.ctl = cpu_to_le32(CPUCP_PACKET_POWER_GET << in hl_set_power()
824 pkt.ctl = cpu_to_le32(CPUCP_PACKET_POWER_SET << in hl_set_power()
827 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_set_power()
828 pkt.type = __cpu_to_le16(attr); in hl_set_power()
829 pkt.value = __cpu_to_le64(value); in hl_set_power()
831 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), in hl_set_power()
844 struct cpucp_packet pkt; in hl_get_power() local
848 memset(&pkt, 0, sizeof(pkt)); in hl_get_power()
850 pkt.ctl = cpu_to_le32(CPUCP_PACKET_POWER_GET << in hl_get_power()
852 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_get_power()
853 pkt.type = __cpu_to_le16(attr); in hl_get_power()
855 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), in hl_get_power()