Lines Matching defs:ehcp
3376 eHc_start_pcf8584(struct eHc_envcunit *ehcp, uint8_t byteaddress)
3388 ddi_get8(ehcp->ctlr_handle, &ehcp->bus_ctl_regs->s1);
3408 ddi_put8(ehcp->ctlr_handle, &ehcp->bus_ctl_regs->s0, byteaddress);
3411 ddi_put8(ehcp->ctlr_handle, &ehcp->bus_ctl_regs->s1,
3419 ddi_get8(ehcp->ctlr_handle, &ehcp->bus_ctl_regs->s1);
3452 discard = ddi_get8(ehcp->ctlr_handle, &ehcp->bus_ctl_regs->s0);
3460 poll_status = ddi_get8(ehcp->ctlr_handle,
3461 &ehcp->bus_ctl_regs->s1);
3490 eHc_stop_pcf8584(struct eHc_envcunit *ehcp)
3492 ddi_put8(ehcp->ctlr_handle, &ehcp->bus_ctl_regs->s1,
3497 eHc_read_pcf8584(struct eHc_envcunit *ehcp, uint8_t *data)
3503 *data = ddi_get8(ehcp->ctlr_handle, &ehcp->bus_ctl_regs->s0);
3509 ddi_get8(ehcp->ctlr_handle, &ehcp->bus_ctl_regs->s1);
3537 eHc_write_pcf8584(struct eHc_envcunit *ehcp, uint8_t data)
3543 ddi_put8(ehcp->ctlr_handle, &ehcp->bus_ctl_regs->s0, data);
3549 ddi_get8(ehcp->ctlr_handle, &ehcp->bus_ctl_regs->s1);
3577 eHc_after_read_pcf8584(struct eHc_envcunit *ehcp, uint8_t *data)
3584 ddi_put8(ehcp->ctlr_handle, &ehcp->bus_ctl_regs->s1, EHC_S1_ES0);
3590 *data = ddi_get8(ehcp->ctlr_handle, &ehcp->bus_ctl_regs->s0);
3596 ddi_get8(ehcp->ctlr_handle, &ehcp->bus_ctl_regs->s1);
3619 eHc_stop_pcf8584(ehcp);
3624 discard = ddi_get8(ehcp->ctlr_handle, &ehcp->bus_ctl_regs->s0);
3637 eHc_write_tda8444(struct eHc_envcunit *ehcp, int byteaddress, int instruction,
3646 ASSERT(MUTEX_HELD(&ehcp->umutex));
3650 if ((status = eHc_start_pcf8584(ehcp, byteaddress)) != EHC_SUCCESS) {
3655 eHc_stop_pcf8584(ehcp);
3660 if ((status = eHc_write_pcf8584(ehcp, control)) != EHC_SUCCESS) {
3665 eHc_stop_pcf8584(ehcp);
3671 if ((status = eHc_write_pcf8584(ehcp, (buf[i] & 0x3f))) !=
3674 eHc_stop_pcf8584(ehcp);
3679 eHc_stop_pcf8584(ehcp);
3689 eHc_read_pcf8574a(struct eHc_envcunit *ehcp, int byteaddress, uint8_t *buf,
3697 ASSERT(MUTEX_HELD(&ehcp->umutex));
3702 if ((status = eHc_start_pcf8584(ehcp, EHC_BYTE_READ | byteaddress)) !=
3708 eHc_stop_pcf8584(ehcp);
3712 discard = ddi_get8(ehcp->ctlr_handle,
3713 &ehcp->bus_ctl_regs->s0);
3722 if ((status = eHc_read_pcf8584(ehcp, &buf[i])) != EHC_SUCCESS) {
3732 if (eHc_after_read_pcf8584(ehcp, &buf[i]) != EHC_SUCCESS) {
3744 eHc_write_pcf8574a(struct eHc_envcunit *ehcp, int byteaddress, uint8_t *buf,
3751 ASSERT(MUTEX_HELD(&ehcp->umutex));
3756 if ((status = eHc_start_pcf8584(ehcp, byteaddress)) != EHC_SUCCESS) {
3761 eHc_stop_pcf8584(ehcp);
3770 if ((status = eHc_write_pcf8584(ehcp, buf[i])) != EHC_SUCCESS) {
3772 eHc_stop_pcf8584(ehcp);
3781 eHc_stop_pcf8584(ehcp);
3791 eHc_read_pcf8574(struct eHc_envcunit *ehcp, int byteaddress, uint8_t *buf,
3799 ASSERT(MUTEX_HELD(&ehcp->umutex));
3804 if ((status = eHc_start_pcf8584(ehcp, EHC_BYTE_READ | byteaddress)) !=
3810 eHc_stop_pcf8584(ehcp);
3814 discard = ddi_get8(ehcp->ctlr_handle,
3815 &ehcp->bus_ctl_regs->s0);
3824 if ((status = eHc_read_pcf8584(ehcp, &buf[i])) != EHC_SUCCESS) {
3834 if (eHc_after_read_pcf8584(ehcp, &buf[i]) != EHC_SUCCESS) {
3846 eHc_write_pcf8574(struct eHc_envcunit *ehcp, int byteaddress, uint8_t *buf,
3853 ASSERT(MUTEX_HELD(&ehcp->umutex));
3858 if ((status = eHc_start_pcf8584(ehcp, byteaddress)) != EHC_SUCCESS) {
3863 eHc_stop_pcf8584(ehcp);
3872 if ((status = eHc_write_pcf8584(ehcp, buf[i])) != EHC_SUCCESS) {
3874 eHc_stop_pcf8584(ehcp);
3882 eHc_stop_pcf8584(ehcp);
3892 eHc_read_lm75(struct eHc_envcunit *ehcp, int byteaddress, uint8_t *buf,
3900 ASSERT(MUTEX_HELD(&ehcp->umutex));
3905 if ((status = eHc_start_pcf8584(ehcp, EHC_BYTE_READ | byteaddress)) !=
3911 eHc_stop_pcf8584(ehcp);
3915 discard = ddi_get8(ehcp->ctlr_handle,
3916 &ehcp->bus_ctl_regs->s0);
3925 if ((status = eHc_read_pcf8584(ehcp, &buf[i])) != EHC_SUCCESS) {
3934 if (eHc_after_read_pcf8584(ehcp, &buf[i]) != EHC_SUCCESS) {
3946 eHc_write_pcf8583(struct eHc_envcunit *ehcp, int byteaddress, uint8_t *buf,
3953 ASSERT(MUTEX_HELD(&ehcp->umutex));
3955 if ((status = eHc_start_pcf8584(ehcp, byteaddress)) != EHC_SUCCESS) {
3960 eHc_stop_pcf8584(ehcp);
3969 if ((status = eHc_write_pcf8584(ehcp, buf[i])) != EHC_SUCCESS) {
3971 eHc_stop_pcf8584(ehcp);
3980 eHc_stop_pcf8584(ehcp);
3990 eHc_read_pcf8591(struct eHc_envcunit *ehcp, int byteaddress, int channel,
4001 ASSERT(MUTEX_HELD(&ehcp->umutex));
4012 if ((status = eHc_start_pcf8584(ehcp, byteaddress)) != EHC_SUCCESS) {
4014 eHc_stop_pcf8584(ehcp);
4019 if ((status = eHc_write_pcf8584(ehcp, control)) != EHC_SUCCESS) {
4021 eHc_stop_pcf8584(ehcp);
4031 ddi_put8(ehcp->ctlr_handle, &ehcp->bus_ctl_regs->s1,
4034 ddi_put8(ehcp->ctlr_handle, &ehcp->bus_ctl_regs->s0,
4042 ddi_get8(ehcp->ctlr_handle, &ehcp->bus_ctl_regs->s1);
4056 eHc_stop_pcf8584(ehcp);
4060 discard = ddi_get8(ehcp->ctlr_handle, &ehcp->bus_ctl_regs->s0);
4081 if ((status = eHc_read_pcf8584(ehcp, &discard)) != EHC_SUCCESS) {
4086 if ((status = eHc_read_pcf8584(ehcp, &discard)) != EHC_SUCCESS) {
4091 if ((status = eHc_read_pcf8584(ehcp, &buf[i])) != EHC_SUCCESS) {
4096 if (eHc_after_read_pcf8584(ehcp, &buf[i]) != EHC_SUCCESS) {