/illumos-gate/usr/src/uts/sun4u/io/i2c/clients/ |
H A D | lm75.c | 221 i2c_transfer_t *i2c_tran_pointer; local 226 (void) i2c_transfer_alloc(unitp->lm75_hdl, &i2c_tran_pointer, 228 if (i2c_tran_pointer == NULL) { 230 "i2c_tran_pointer not allocated\n", 235 i2c_tran_pointer->i2c_flags = I2C_WR_RD; 236 i2c_tran_pointer->i2c_wbuf[0] = (uchar_t)reg; 238 err = i2c_transfer(unitp->lm75_hdl, i2c_tran_pointer); 243 i2c_transfer_free(unitp->lm75_hdl, i2c_tran_pointer); 248 unitp->lm75_name, i2c_tran_pointer->i2c_rbuf[0], 249 i2c_tran_pointer 276 i2c_transfer_t *i2c_tran_pointer; local 326 i2c_transfer_t *i2c_tran_pointer; local [all...] |
H A D | pic16f819.c | 148 i2c_transfer_t *i2c_tran_pointer; local 151 (void) i2c_transfer_alloc(unitp->pic16f819_hdl, &i2c_tran_pointer, 153 if (i2c_tran_pointer == NULL) { 157 i2c_tran_pointer->i2c_flags = I2C_WR_RD; 158 i2c_tran_pointer->i2c_wbuf[0] = (uchar_t)reg; 159 err = i2c_transfer(unitp->pic16f819_hdl, i2c_tran_pointer); 164 *byte = i2c_tran_pointer->i2c_rbuf[0]; 167 i2c_transfer_free(unitp->pic16f819_hdl, i2c_tran_pointer); 174 i2c_transfer_t *i2c_tran_pointer; local 177 (void) i2c_transfer_alloc(unitp->pic16f819_hdl, &i2c_tran_pointer, [all...] |
H A D | pcf8591.c | 231 i2c_transfer_t *i2c_tran_pointer; local 260 (void) i2c_transfer_alloc(unitp->pcf8591_hdl, &i2c_tran_pointer, 262 if (i2c_tran_pointer == NULL) { 264 "i2c_tran_pointer not allocated\n", 275 i2c_transfer_free(unitp->pcf8591_hdl, i2c_tran_pointer); 284 i2c_transfer_free(unitp->pcf8591_hdl, i2c_tran_pointer); 291 i2c_tran_pointer->i2c_flags = I2C_WR_RD; 292 i2c_tran_pointer->i2c_wbuf[0] = control; 294 err = i2c_transfer(unitp->pcf8591_hdl, i2c_tran_pointer); 299 i2c_transfer_free(unitp->pcf8591_hdl, i2c_tran_pointer); [all...] |
H A D | pcf8574.c | 222 i2c_transfer_t *i2c_tran_pointer; local 227 (void) i2c_transfer_alloc(unitp->pcf8574_hdl, &i2c_tran_pointer, 229 if (i2c_tran_pointer == NULL) { 231 "i2c_tran_pointer not allocated\n", 236 i2c_tran_pointer->i2c_flags = I2C_RD; 237 err = i2c_transfer(unitp->pcf8574_hdl, i2c_tran_pointer); 241 i2c_transfer_free(unitp->pcf8574_hdl, i2c_tran_pointer); 246 i2c_tran_pointer->i2c_rbuf[0])); 247 *byte = i2c_tran_pointer->i2c_rbuf[0]; 249 i2c_transfer_free(unitp->pcf8574_hdl, i2c_tran_pointer); 255 i2c_transfer_t *i2c_tran_pointer; local [all...] |
H A D | adm1026.c | 384 i2c_transfer_t *i2c_tran_pointer = NULL; local 387 (void) i2c_transfer_alloc(unitp->adm1026_hdl, &i2c_tran_pointer, 389 if (i2c_tran_pointer == NULL) 392 i2c_tran_pointer->i2c_flags = I2C_WR_RD; 393 i2c_tran_pointer->i2c_wbuf[0] = (uchar_t)reg; 394 err = i2c_transfer(unitp->adm1026_hdl, i2c_tran_pointer); 399 *val = i2c_tran_pointer->i2c_rbuf[0]; 403 i2c_transfer_free(unitp->adm1026_hdl, i2c_tran_pointer); 411 i2c_transfer_t *i2c_tran_pointer = NULL; local 416 (void) i2c_transfer_alloc(unitp->adm1026_hdl, &i2c_tran_pointer, [all...] |
H A D | ltc1427.c | 228 i2c_transfer_t *i2c_tran_pointer; local 276 &i2c_tran_pointer, 2, 0, I2C_SLEEP); 277 if (i2c_tran_pointer == NULL) { 285 i2c_tran_pointer->i2c_flags = I2C_WR; 286 i2c_tran_pointer->i2c_wbuf[0] = 288 i2c_tran_pointer->i2c_wbuf[1] = 291 err = i2c_transfer(unitp->ltc1427_hdl, i2c_tran_pointer); 296 i2c_transfer_free(unitp->ltc1427_hdl, i2c_tran_pointer);
|
H A D | ssc050.c | 256 i2c_transfer_t *i2c_tran_pointer; local 259 (void) i2c_transfer_alloc(unitp->hdl, &i2c_tran_pointer, 261 if (i2c_tran_pointer == NULL) { 265 i2c_tran_pointer->i2c_flags = I2C_WR_RD; 266 i2c_tran_pointer->i2c_wbuf[0] = (uchar_t)reg; 267 err = i2c_transfer(unitp->hdl, i2c_tran_pointer); 272 *byte = i2c_tran_pointer->i2c_rbuf[0]; 275 i2c_transfer_free(unitp->hdl, i2c_tran_pointer); 282 i2c_transfer_t *i2c_tran_pointer; local 285 (void) i2c_transfer_alloc(unitp->hdl, &i2c_tran_pointer, [all...] |
H A D | ssc100.c | 227 i2c_transfer_t *i2c_tran_pointer; local 230 (void) i2c_transfer_alloc(unitp->ssc100_hdl, &i2c_tran_pointer, 232 if (i2c_tran_pointer == NULL) { 234 "i2c_tran_pointer not allocated", 239 i2c_tran_pointer->i2c_flags = flag; 241 i2c_tran_pointer->i2c_wbuf[0] = input; 244 err = i2c_transfer(unitp->ssc100_hdl, i2c_tran_pointer); 249 *byte = i2c_tran_pointer->i2c_rbuf[0]; 252 i2c_transfer_free(unitp->ssc100_hdl, i2c_tran_pointer); 665 "i2c_tran_pointer no [all...] |
/illumos-gate/usr/src/uts/sun4u/littleneck/io/ |
H A D | pcf8574_lneck.c | 233 i2c_transfer_t *i2c_tran_pointer; local 238 (void) i2c_transfer_alloc(unitp->pcf8574_hdl, &i2c_tran_pointer, 240 if (i2c_tran_pointer == NULL) { 242 "i2c_tran_pointer not allocated\n", 247 i2c_tran_pointer->i2c_flags = I2C_RD; 249 err = i2c_transfer(unitp->pcf8574_hdl, i2c_tran_pointer); 253 i2c_transfer_free(unitp->pcf8574_hdl, i2c_tran_pointer); 258 i2c_tran_pointer->i2c_rbuf[0])); 259 *byte = i2c_tran_pointer->i2c_rbuf[0]; 261 i2c_transfer_free(unitp->pcf8574_hdl, i2c_tran_pointer); 267 i2c_transfer_t *i2c_tran_pointer; local [all...] |
/illumos-gate/usr/src/uts/sun4u/daktari/io/ |
H A D | hpc3130_dak.c | 336 i2c_transfer_t *i2c_tran_pointer; local 344 (void) i2c_transfer_alloc(unitp->hpc3130_hdl, &i2c_tran_pointer, 346 if (i2c_tran_pointer == NULL) { 348 " i2c_tran_pointer not allocated")); 352 i2c_tran_pointer->i2c_flags = I2C_WR_RD; 353 i2c_tran_pointer->i2c_wbuf[0] = (uchar_t)reg; 355 err = i2c_transfer(unitp->hpc3130_hdl, i2c_tran_pointer); 359 i2c_transfer_free(unitp->hpc3130_hdl, i2c_tran_pointer); 363 i2c_tran_pointer->i2c_rbuf[0])); 365 if (ddi_copyout((caddr_t)i2c_tran_pointer 379 i2c_transfer_t *i2c_tran_pointer; local 421 i2c_transfer_t *i2c_tran_pointer; local 1153 i2c_transfer_t *i2c_tran_pointer; local [all...] |