Lines Matching refs:pkt
270 struct armcp_packet pkt; in hl_get_temperature() local
274 memset(&pkt, 0, sizeof(pkt)); in hl_get_temperature()
276 pkt.ctl = cpu_to_le32(ARMCP_PACKET_TEMPERATURE_GET << in hl_get_temperature()
278 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_get_temperature()
279 pkt.type = __cpu_to_le16(attr); in hl_get_temperature()
281 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), in hl_get_temperature()
296 struct armcp_packet pkt; in hl_get_voltage() local
300 memset(&pkt, 0, sizeof(pkt)); in hl_get_voltage()
302 pkt.ctl = cpu_to_le32(ARMCP_PACKET_VOLTAGE_GET << in hl_get_voltage()
304 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_get_voltage()
305 pkt.type = __cpu_to_le16(attr); in hl_get_voltage()
307 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), in hl_get_voltage()
322 struct armcp_packet pkt; in hl_get_current() local
326 memset(&pkt, 0, sizeof(pkt)); in hl_get_current()
328 pkt.ctl = cpu_to_le32(ARMCP_PACKET_CURRENT_GET << in hl_get_current()
330 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_get_current()
331 pkt.type = __cpu_to_le16(attr); in hl_get_current()
333 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), in hl_get_current()
348 struct armcp_packet pkt; in hl_get_fan_speed() local
352 memset(&pkt, 0, sizeof(pkt)); in hl_get_fan_speed()
354 pkt.ctl = cpu_to_le32(ARMCP_PACKET_FAN_SPEED_GET << in hl_get_fan_speed()
356 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_get_fan_speed()
357 pkt.type = __cpu_to_le16(attr); in hl_get_fan_speed()
359 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), in hl_get_fan_speed()
374 struct armcp_packet pkt; in hl_get_pwm_info() local
378 memset(&pkt, 0, sizeof(pkt)); in hl_get_pwm_info()
380 pkt.ctl = cpu_to_le32(ARMCP_PACKET_PWM_GET << in hl_get_pwm_info()
382 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_get_pwm_info()
383 pkt.type = __cpu_to_le16(attr); in hl_get_pwm_info()
385 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), in hl_get_pwm_info()
401 struct armcp_packet pkt; in hl_set_pwm_info() local
404 memset(&pkt, 0, sizeof(pkt)); in hl_set_pwm_info()
406 pkt.ctl = cpu_to_le32(ARMCP_PACKET_PWM_SET << in hl_set_pwm_info()
408 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_set_pwm_info()
409 pkt.type = __cpu_to_le16(attr); in hl_set_pwm_info()
410 pkt.value = cpu_to_le64(value); in hl_set_pwm_info()
412 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), in hl_set_pwm_info()