Home
last modified time | relevance | path

Searched refs:i2ctp (Results 1 – 5 of 5) sorted by relevance

/titanic_41/usr/src/uts/sun4u/io/i2c/clients/
H A Dmax1617.c234 i2c_transfer_t *i2ctp; in max1617_do_resume() local
243 &i2ctp, 2, 0, I2C_SLEEP); in max1617_do_resume()
244 i2ctp->i2c_version = I2C_XFER_REV; in max1617_do_resume()
245 i2ctp->i2c_flags = I2C_WR; in max1617_do_resume()
248 i2ctp->i2c_wbuf[0] = MAX1617_CONFIG_WR_REG; in max1617_do_resume()
249 i2ctp->i2c_wbuf[1] = unitp->max1617_cpr_state.max1617_config; in max1617_do_resume()
251 if (i2c_transfer(unitp->max1617_hdl, i2ctp) != I2C_SUCCESS) { in max1617_do_resume()
256 i2ctp->i2c_wbuf[0] = MAX1617_CONV_RATE_WR_REG; in max1617_do_resume()
257 i2ctp->i2c_wbuf[1] = unitp->max1617_cpr_state.max1617_conv_rate; in max1617_do_resume()
258 if (i2c_transfer(unitp->max1617_hdl, i2ctp) != I2C_SUCCESS) { in max1617_do_resume()
[all …]
H A Dseeprom.c386 i2c_transfer_t *i2ctp = NULL; in seeprom_io() local
433 if (i2ctp == NULL) { in seeprom_io()
435 &i2ctp, in seeprom_io()
440 if ((err = uiomove(&i2ctp->i2c_wbuf[ in seeprom_io()
444 i2ctp); in seeprom_io()
447 i2ctp->i2c_version = I2C_XFER_REV; in seeprom_io()
448 i2ctp->i2c_flags = I2C_WR; in seeprom_io()
456 i2ctp->i2c_wbuf += actual_data_xfer; in seeprom_io()
458 i2ctp->i2c_wlen -= actual_data_xfer; in seeprom_io()
462 i2ctp->i2c_wbuf[0] = (seeprom_addr >> 8); in seeprom_io()
[all …]
H A Dssc100.c625 i2c_transfer_t *i2ctp = NULL; in ssc100_io() local
661 (void) i2c_transfer_alloc(unitp->ssc100_hdl, &i2ctp, in ssc100_io()
663 if (i2ctp == NULL) { in ssc100_io()
669 i2ctp->i2c_version = I2C_XFER_REV; in ssc100_io()
670 i2ctp->i2c_flags = I2C_WR; in ssc100_io()
671 i2ctp->i2c_wbuf[0] = (uchar_t)ssc100_addr; in ssc100_io()
672 if ((err = uiomove(&i2ctp->i2c_wbuf[1], current_xfer_len, in ssc100_io()
679 if ((err = i2c_transfer(unitp->ssc100_hdl, i2ctp)) != in ssc100_io()
690 (void) i2c_transfer_alloc(unitp->ssc100_hdl, &i2ctp, 1, in ssc100_io()
692 if (i2ctp == NULL) { in ssc100_io()
[all …]
/titanic_41/usr/src/uts/sun4u/montecarlo/io/
H A Dpcf8591_nct.c406 i2c_transfer_t *i2ctp = unitp->i2c_tran; in call_copyin() local
420 wbuf = i2ctp->i2c_wbuf; in call_copyin()
421 rbuf = i2ctp->i2c_rbuf; in call_copyin()
423 bcopy(&i2ct, i2ctp, sizeof (i2c_transfer_t)); in call_copyin()
425 i2ctp->i2c_wbuf = wbuf; in call_copyin()
426 i2ctp->i2c_rbuf = rbuf; in call_copyin()
433 if (ddi_copyin(i2ct.i2c_wbuf, (caddr_t)i2ctp->i2c_wbuf, in call_copyin()
446 i2c_transfer_t *i2ctp = unitp->i2c_tran; in call_copyout() local
469 if (ddi_copyout((void *)((intptr_t)i2ctp+kskip), (void *) in call_copyout()
480 if (i2ctp->i2c_rlen - i2ctp->i2c_r_resid > 0) { in call_copyout()
[all …]
H A Dpcf8574_nct.c879 i2c_transfer_t *i2ctp = unitp->i2c_tran; in call_copyin() local
893 wbuf = i2ctp->i2c_wbuf; in call_copyin()
894 rbuf = i2ctp->i2c_rbuf; in call_copyin()
896 bcopy(&i2ct, i2ctp, sizeof (i2c_transfer_t)); in call_copyin()
898 i2ctp->i2c_wbuf = wbuf; in call_copyin()
899 i2ctp->i2c_rbuf = rbuf; in call_copyin()
906 if (ddi_copyin(i2ct.i2c_wbuf, (caddr_t)i2ctp->i2c_wbuf, in call_copyin()
919 i2c_transfer_t *i2ctp = unitp->i2c_tran; in call_copyout() local
941 if (ddi_copyout((void *)((intptr_t)i2ctp+kskip), (void *) in call_copyout()
952 if (i2ctp->i2c_rlen > i2ctp->i2c_r_resid) { in call_copyout()
[all …]