• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/powerpc/powermac/

Lines Matching refs:resp

346 	uint8_t resp[16];
387 pmu_send(sc, PMU_SET_IMASK, 1, &reg, 16, resp);
391 pmu_send(sc, PMU_SYSTEM_READY, 1, cmd, 16, resp);
392 pmu_send(sc, PMU_GET_VERSION, 0, cmd, 16, resp);
694 uint8_t resp[16];
703 len = pmu_send(sc, PMU_INT_ACK, 0, NULL, 16, resp);
707 if ((len < 1) || (resp[1] == 0)) {
711 if (resp[1] & PMU_INT_ADB) {
720 if ((resp[2] & 0x0f) != (ADB_COMMAND_TALK << 2)) {
732 adb_receive_raw_packet(sc->adb_bus,resp[1],resp[2],
733 len - 3,&resp[3]);
735 if (resp[1] & PMU_INT_ENVIRONMENT) {
737 if ((resp[2] & PMU_ENV_LID_CLOSED) && (!sc->lid_closed)) {
741 else if (!(resp[2] & PMU_ENV_LID_CLOSED) && (sc->lid_closed)) {
746 if (resp[2] & PMU_ENV_POWER)
757 uint8_t packet[16], resp[16];
769 replen = pmu_send(sc, PMU_ADB_CMD, len + 3, packet, 16, resp);
785 uint8_t resp[16];
797 pmu_send(sc, PMU_ADB_CMD, 4, cmd, 16, resp);
799 pmu_send(sc, PMU_ADB_POLL_OFF, 0, NULL, 16, resp);
841 uint8_t resp[3];
845 len = pmu_send(sc, PMU_POWER_EVENTS, 1, getcmd, 3, resp);
849 server_mode = (resp[2] & PMU_PWR_WAKEUP_AC_INSERT) ? 1 : 0;
866 setcmd[1] = resp[1];
869 pmu_send(sc, PMU_POWER_EVENTS, 3, setcmd, 2, resp);
879 uint8_t resp[16];
885 len = pmu_send(sc, PMU_SMART_BATTERY_STATE, 1, &reg, 16, resp);
896 info->state = resp[2];
898 switch (resp[1]) {
909 info->charge = resp[3];
910 info->maxcharge = resp[4];
912 info->current = (int8_t)resp[5];
913 info->voltage = resp[6];
924 info->charge = (resp[3] << 8) | resp[4];
925 info->maxcharge = (resp[5] << 8) | resp[6];
927 info->current = (int16_t)((resp[7] << 8) | resp[8]);
928 info->voltage = (resp[9] << 8) | resp[10];
932 resp[1]);
1082 uint8_t resp[16];
1086 pmu_send(sc, PMU_READ_RTC, 0, NULL, 16, resp);
1089 memcpy(&sec, &resp[1], 4);
1116 uint8_t resp[16];
1126 pmu_send(sc, PMU_CPU_SPEED, 5, sleepcmd, 16, resp);