Home
last modified time | relevance | path

Searched refs:ioctl_bit (Results 1 – 4 of 4) sorted by relevance

/illumos-gate/usr/src/uts/sun4u/io/i2c/clients/
H A Dpcf8574.c295 i2c_bit_t ioctl_bit; in pcf8574_ioctl() local
368 if (ddi_copyin((caddr_t)arg, (caddr_t)&ioctl_bit, in pcf8574_ioctl()
377 if (ioctl_bit.bit_num > 7) { in pcf8574_ioctl()
395 ioctl_bit.bit_value = (boolean_t)PCF8574_BIT_READ_MASK(byte, in pcf8574_ioctl()
396 ioctl_bit.bit_num); in pcf8574_ioctl()
400 if (ddi_copyout((caddr_t)&ioctl_bit, (caddr_t)arg, in pcf8574_ioctl()
410 if (ddi_copyin((caddr_t)arg, (caddr_t)&ioctl_bit, in pcf8574_ioctl()
419 if (ioctl_bit.bit_num > 7) { in pcf8574_ioctl()
437 byte = PCF8574_BIT_WRITE_MASK(byte, ioctl_bit.bit_num, in pcf8574_ioctl()
438 ioctl_bit.bit_value); in pcf8574_ioctl()
H A Dssc050.c315 i2c_bit_t ioctl_bit; in ssc050_ioctl() local
474 if (ddi_copyin((caddr_t)arg, (caddr_t)&ioctl_bit, in ssc050_ioctl()
480 if (ioctl_bit.bit_num > 7) { in ssc050_ioctl()
485 reg = (uchar_t)SSC050_BIT_REG(port, ioctl_bit.bit_num); in ssc050_ioctl()
488 if (ioctl_bit.direction == DIR_INPUT) { in ssc050_ioctl()
514 ioctl_bit.bit_value = (boolean_t)val8; in ssc050_ioctl()
515 if (ddi_copyout((caddr_t)&ioctl_bit, (caddr_t)arg, in ssc050_ioctl()
522 if (ddi_copyin((caddr_t)arg, (caddr_t)&ioctl_bit, in ssc050_ioctl()
528 if (ioctl_bit.bit_num > 7) { in ssc050_ioctl()
533 reg = (uchar_t)SSC050_BIT_REG(port, ioctl_bit.bit_num); in ssc050_ioctl()
[all …]
H A Dssc100.c304 i2c_bit_t ioctl_bit; in ssc100_ioctl() local
373 if (ddi_copyin((caddr_t)arg, (caddr_t)&ioctl_bit, in ssc100_ioctl()
381 if (ioctl_bit.bit_num > 7) { in ssc100_ioctl()
398 ioctl_bit.bit_value = (boolean_t)SSC100_BIT_READ_MASK(byte, in ssc100_ioctl()
399 ioctl_bit.bit_num); in ssc100_ioctl()
403 if (ddi_copyout((caddr_t)&ioctl_bit, (caddr_t)arg, in ssc100_ioctl()
412 if (ddi_copyin((caddr_t)arg, (caddr_t)&ioctl_bit, in ssc100_ioctl()
420 if (ioctl_bit.bit_num > 7) { in ssc100_ioctl()
437 byte = SSC100_BIT_WRITE_MASK(byte, ioctl_bit.bit_num, in ssc100_ioctl()
438 ioctl_bit.bit_value); in ssc100_ioctl()
/illumos-gate/usr/src/uts/sun4u/littleneck/io/
H A Dpcf8574_lneck.c305 i2c_bit_t ioctl_bit; in pcf8574_ioctl() local
378 if (ddi_copyin((caddr_t)arg, (caddr_t)&ioctl_bit, in pcf8574_ioctl()
387 if (ioctl_bit.bit_num > 7) { in pcf8574_ioctl()
405 ioctl_bit.bit_value = (boolean_t)PCF8574_BIT_READ_MASK(byte, in pcf8574_ioctl()
406 ioctl_bit.bit_num); in pcf8574_ioctl()
410 if (ddi_copyout((caddr_t)&ioctl_bit, (caddr_t)arg, in pcf8574_ioctl()
420 if (ddi_copyin((caddr_t)arg, (caddr_t)&ioctl_bit, in pcf8574_ioctl()
429 if (ioctl_bit.bit_num > 7) { in pcf8574_ioctl()
447 byte = PCF8574_BIT_WRITE_MASK(byte, ioctl_bit.bit_num, in pcf8574_ioctl()
448 ioctl_bit.bit_value); in pcf8574_ioctl()