Home | History | Annotate | Download | only in dev

Lines Matching defs:pmu_send

138 static int pmu_send(void *, int, int, uint8_t *, int, uint8_t *);
330 sc->sc_pmu_ops.do_command = pmu_send;
336 pmu_send(sc, PMU_SYSTEM_READY, 1, cmd, 16, resp);
339 if (pmu_send(sc, PMU_GET_VERSION, 0, cmd, 16, resp) > 1)
391 if (pmu_send(sc, PMU_READ_BRIGHTNESS, 1, cmd, 16, resp) > 1) {
455 pmu_send(sc, PMU_SET_IMASK, 1, &pmu_imask, 16, resp);
509 pmu_send(void *cookie, int cmd, int length, uint8_t *in_msg, int rlen,
516 DPRINTF("pmu_send: ");
636 len = pmu_send(sc, PMU_INT_ACK, 0, NULL, 16, resp);
727 pmu_send(sc, PMU_READ_RTC, 0, NULL, 16, resp);
754 if (pmu_send(sc, PMU_SET_RTC, 4, (uint8_t *)&sec, 16, resp) >= 0)
769 if (pmu_send(sc, PMU_POWER_OFF, 4, cmd, 16, resp) >= 0)
782 if (pmu_send(sc, PMU_RESET_CPU, 0, NULL, 16, resp) >= 0)
797 pmu_send(sc, PMU_POWER_CTRL0, 1, cmd, 16, resp);
812 pmu_send(sc, PMU_ADB_CMD, 4, cmd, 16, resp);
814 pmu_send(sc, PMU_ADB_POLL_OFF, 0, NULL, 16, resp);
835 pmu_send(sc, PMU_ADB_CMD, 4, cmd, 16, resp);
855 (void)pmu_send(sc, PMU_ADB_CMD, len + 3, packet, 16, resp);
901 len = pmu_send(sc, PMU_I2C_CMD, 7, command, 16, resp);
907 len = pmu_send(sc, PMU_I2C_CMD, 1, command, 16, resp);
926 len = pmu_send(sc, PMU_I2C_CMD, send_len + 7, command, 16, resp);
932 len = pmu_send(sc, PMU_I2C_CMD, 7, command, 16, resp);
938 len = pmu_send(sc, PMU_I2C_CMD, 1, command, 16, resp);
972 len = pmu_send(sc, PMU_I2C_CMD, len, command, 16, resp);
990 pmu_send(sc, PMU_EJECT_PCMCIA, 1, buf, 4, res);
1014 pmu_send(sc, PMU_POWER_CTRL, 1, cmd, 16, resp);
1024 pmu_send(sc, PMU_POWER_CTRL, 1, cmd, 16, resp);
1036 pmu_send(sc, PMU_SET_BRIGHTNESS, 1, cmd, 16, resp);