Home
last modified time | relevance | path

Searched refs:i2c_tran_pointer (Results 1 – 10 of 10) sorted by relevance

/titanic_41/usr/src/uts/sun4u/io/i2c/clients/
H A Dlm75.c221 i2c_transfer_t *i2c_tran_pointer; in lm75_get16() local
226 (void) i2c_transfer_alloc(unitp->lm75_hdl, &i2c_tran_pointer, in lm75_get16()
228 if (i2c_tran_pointer == NULL) { in lm75_get16()
235 i2c_tran_pointer->i2c_flags = I2C_WR_RD; in lm75_get16()
236 i2c_tran_pointer->i2c_wbuf[0] = (uchar_t)reg; in lm75_get16()
238 err = i2c_transfer(unitp->lm75_hdl, i2c_tran_pointer); in lm75_get16()
243 i2c_transfer_free(unitp->lm75_hdl, i2c_tran_pointer); in lm75_get16()
248 unitp->lm75_name, i2c_tran_pointer->i2c_rbuf[0], in lm75_get16()
249 i2c_tran_pointer->i2c_rbuf[0])); in lm75_get16()
250 temp16 = i2c_tran_pointer->i2c_rbuf[0]; in lm75_get16()
[all …]
H A Dpcf8591.c231 i2c_transfer_t *i2c_tran_pointer; in pcf8591_ioctl() local
260 (void) i2c_transfer_alloc(unitp->pcf8591_hdl, &i2c_tran_pointer, in pcf8591_ioctl()
262 if (i2c_tran_pointer == NULL) { in pcf8591_ioctl()
275 i2c_transfer_free(unitp->pcf8591_hdl, i2c_tran_pointer); in pcf8591_ioctl()
284 i2c_transfer_free(unitp->pcf8591_hdl, i2c_tran_pointer); in pcf8591_ioctl()
291 i2c_tran_pointer->i2c_flags = I2C_WR_RD; in pcf8591_ioctl()
292 i2c_tran_pointer->i2c_wbuf[0] = control; in pcf8591_ioctl()
294 err = i2c_transfer(unitp->pcf8591_hdl, i2c_tran_pointer); in pcf8591_ioctl()
299 i2c_transfer_free(unitp->pcf8591_hdl, i2c_tran_pointer); in pcf8591_ioctl()
302 i2c_tran_pointer->i2c_rbuf[0] = i2c_tran_pointer->i2c_rbuf[1]; in pcf8591_ioctl()
[all …]
H A Dpic16f819.c148 i2c_transfer_t *i2c_tran_pointer; in pic16f819_get() local
151 (void) i2c_transfer_alloc(unitp->pic16f819_hdl, &i2c_tran_pointer, in pic16f819_get()
153 if (i2c_tran_pointer == NULL) { in pic16f819_get()
157 i2c_tran_pointer->i2c_flags = I2C_WR_RD; in pic16f819_get()
158 i2c_tran_pointer->i2c_wbuf[0] = (uchar_t)reg; in pic16f819_get()
159 err = i2c_transfer(unitp->pic16f819_hdl, i2c_tran_pointer); in pic16f819_get()
164 *byte = i2c_tran_pointer->i2c_rbuf[0]; in pic16f819_get()
167 i2c_transfer_free(unitp->pic16f819_hdl, i2c_tran_pointer); in pic16f819_get()
174 i2c_transfer_t *i2c_tran_pointer; in pic16f819_set() local
177 (void) i2c_transfer_alloc(unitp->pic16f819_hdl, &i2c_tran_pointer, in pic16f819_set()
[all …]
H A Dpcf8574.c222 i2c_transfer_t *i2c_tran_pointer; in pcf8574_get() local
227 (void) i2c_transfer_alloc(unitp->pcf8574_hdl, &i2c_tran_pointer, in pcf8574_get()
229 if (i2c_tran_pointer == NULL) { in pcf8574_get()
236 i2c_tran_pointer->i2c_flags = I2C_RD; in pcf8574_get()
237 err = i2c_transfer(unitp->pcf8574_hdl, i2c_tran_pointer); in pcf8574_get()
241 i2c_transfer_free(unitp->pcf8574_hdl, i2c_tran_pointer); in pcf8574_get()
246 i2c_tran_pointer->i2c_rbuf[0])); in pcf8574_get()
247 *byte = i2c_tran_pointer->i2c_rbuf[0]; in pcf8574_get()
249 i2c_transfer_free(unitp->pcf8574_hdl, i2c_tran_pointer); in pcf8574_get()
255 i2c_transfer_t *i2c_tran_pointer; in pcf8574_set() local
[all …]
H A Dadm1026.c384 i2c_transfer_t *i2c_tran_pointer = NULL; in adm1026_get8() local
387 (void) i2c_transfer_alloc(unitp->adm1026_hdl, &i2c_tran_pointer, in adm1026_get8()
389 if (i2c_tran_pointer == NULL) in adm1026_get8()
392 i2c_tran_pointer->i2c_flags = I2C_WR_RD; in adm1026_get8()
393 i2c_tran_pointer->i2c_wbuf[0] = (uchar_t)reg; in adm1026_get8()
394 err = i2c_transfer(unitp->adm1026_hdl, i2c_tran_pointer); in adm1026_get8()
399 *val = i2c_tran_pointer->i2c_rbuf[0]; in adm1026_get8()
403 i2c_transfer_free(unitp->adm1026_hdl, i2c_tran_pointer); in adm1026_get8()
411 i2c_transfer_t *i2c_tran_pointer = NULL; in adm1026_put8() local
416 (void) i2c_transfer_alloc(unitp->adm1026_hdl, &i2c_tran_pointer, in adm1026_put8()
[all …]
H A Dssc050.c256 i2c_transfer_t *i2c_tran_pointer; in ssc050_get() local
259 (void) i2c_transfer_alloc(unitp->hdl, &i2c_tran_pointer, in ssc050_get()
261 if (i2c_tran_pointer == NULL) { in ssc050_get()
265 i2c_tran_pointer->i2c_flags = I2C_WR_RD; in ssc050_get()
266 i2c_tran_pointer->i2c_wbuf[0] = (uchar_t)reg; in ssc050_get()
267 err = i2c_transfer(unitp->hdl, i2c_tran_pointer); in ssc050_get()
272 *byte = i2c_tran_pointer->i2c_rbuf[0]; in ssc050_get()
275 i2c_transfer_free(unitp->hdl, i2c_tran_pointer); in ssc050_get()
282 i2c_transfer_t *i2c_tran_pointer; in ssc050_set() local
285 (void) i2c_transfer_alloc(unitp->hdl, &i2c_tran_pointer, in ssc050_set()
[all …]
H A Dltc1427.c228 i2c_transfer_t *i2c_tran_pointer; in ltc1427_ioctl() local
276 &i2c_tran_pointer, 2, 0, I2C_SLEEP); in ltc1427_ioctl()
277 if (i2c_tran_pointer == NULL) { in ltc1427_ioctl()
285 i2c_tran_pointer->i2c_flags = I2C_WR; in ltc1427_ioctl()
286 i2c_tran_pointer->i2c_wbuf[0] = in ltc1427_ioctl()
288 i2c_tran_pointer->i2c_wbuf[1] = in ltc1427_ioctl()
291 err = i2c_transfer(unitp->ltc1427_hdl, i2c_tran_pointer); in ltc1427_ioctl()
296 i2c_transfer_free(unitp->ltc1427_hdl, i2c_tran_pointer); in ltc1427_ioctl()
H A Dssc100.c227 i2c_transfer_t *i2c_tran_pointer; in ssc100_common() local
230 (void) i2c_transfer_alloc(unitp->ssc100_hdl, &i2c_tran_pointer, in ssc100_common()
232 if (i2c_tran_pointer == NULL) { in ssc100_common()
239 i2c_tran_pointer->i2c_flags = flag; in ssc100_common()
241 i2c_tran_pointer->i2c_wbuf[0] = input; in ssc100_common()
244 err = i2c_transfer(unitp->ssc100_hdl, i2c_tran_pointer); in ssc100_common()
249 *byte = i2c_tran_pointer->i2c_rbuf[0]; in ssc100_common()
252 i2c_transfer_free(unitp->ssc100_hdl, i2c_tran_pointer); in ssc100_common()
/titanic_41/usr/src/uts/sun4u/littleneck/io/
H A Dpcf8574_lneck.c233 i2c_transfer_t *i2c_tran_pointer; in pcf8574_get() local
238 (void) i2c_transfer_alloc(unitp->pcf8574_hdl, &i2c_tran_pointer, in pcf8574_get()
240 if (i2c_tran_pointer == NULL) { in pcf8574_get()
247 i2c_tran_pointer->i2c_flags = I2C_RD; in pcf8574_get()
249 err = i2c_transfer(unitp->pcf8574_hdl, i2c_tran_pointer); in pcf8574_get()
253 i2c_transfer_free(unitp->pcf8574_hdl, i2c_tran_pointer); in pcf8574_get()
258 i2c_tran_pointer->i2c_rbuf[0])); in pcf8574_get()
259 *byte = i2c_tran_pointer->i2c_rbuf[0]; in pcf8574_get()
261 i2c_transfer_free(unitp->pcf8574_hdl, i2c_tran_pointer); in pcf8574_get()
267 i2c_transfer_t *i2c_tran_pointer; in pcf8574_set() local
[all …]
/titanic_41/usr/src/uts/sun4u/daktari/io/
H A Dhpc3130_dak.c336 i2c_transfer_t *i2c_tran_pointer; in hpc3130_get() local
344 (void) i2c_transfer_alloc(unitp->hpc3130_hdl, &i2c_tran_pointer, in hpc3130_get()
346 if (i2c_tran_pointer == NULL) { in hpc3130_get()
352 i2c_tran_pointer->i2c_flags = I2C_WR_RD; in hpc3130_get()
353 i2c_tran_pointer->i2c_wbuf[0] = (uchar_t)reg; in hpc3130_get()
355 err = i2c_transfer(unitp->hpc3130_hdl, i2c_tran_pointer); in hpc3130_get()
359 i2c_transfer_free(unitp->hpc3130_hdl, i2c_tran_pointer); in hpc3130_get()
363 i2c_tran_pointer->i2c_rbuf[0])); in hpc3130_get()
365 if (ddi_copyout((caddr_t)i2c_tran_pointer->i2c_rbuf, in hpc3130_get()
372 i2c_transfer_free(unitp->hpc3130_hdl, i2c_tran_pointer); in hpc3130_get()
[all …]