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