/freebsd/sys/dev/iicbus/ |
H A D | iicsmb.c | 312 { slave, how == SMB_QWRITE ? IIC_M_WR : IIC_M_RD, 0, NULL }, in iicsmb_quick() 344 { slave, IIC_M_RD, 1, byte }, in iicsmb_recvb() 383 { slave, IIC_M_RD, 1, byte }, in iicsmb_readb() 397 { slave, IIC_M_RD, nitems(buf), buf }, in iicsmb_readw() 414 { slave, IIC_M_RD, nitems(out), out }, in iicsmb_pcall() 445 { slave, IIC_M_RD | IIC_M_NOSTOP, 1, count }, in iicsmb_bread() 448 { slave, IIC_M_RD | IIC_M_NOSTART, 0, buf }, in iicsmb_bread()
|
H A D | iic.h | 40 #define IIC_M_RD 0x0001 /* read vs write */ macro
|
H A D | iiconf.c | 484 if (msgs[i].flags & IIC_M_RD) in iicbus_transfer_gen() 499 if (msgs[i].flags & IIC_M_RD) in iicbus_transfer_gen() 539 msgs[1].flags = IIC_M_RD; in iicdev_readfrom()
|
H A D | iichid.c | 276 { sc->addr, IIC_M_RD | IIC_M_NOSTOP, sizeof(actbuf), actbuf }, in iichid_cmd_read() 289 { sc->addr, IIC_M_RD | IIC_M_NOSTART, 1, actbuf }; in iichid_cmd_read() 300 { sc->addr, IIC_M_RD | IIC_M_NOSTART, actlen, buf }; in iichid_cmd_read() 347 { sc->addr, IIC_M_RD, sizeof(*hid_desc), (uint8_t *)hid_desc }, in iichid_cmd_get_hid_desc() 398 { sc->addr, IIC_M_RD, len, buf }, in iichid_cmd_get_report_desc() 441 { sc->addr, IIC_M_RD | IIC_M_NOSTOP, 2, actbuf }, in iichid_cmd_get_report() 442 { sc->addr, IIC_M_RD | IIC_M_NOSTART, maxlen, buf }, in iichid_cmd_get_report()
|
H A D | acpi_iicbus.c | 107 { slave, IIC_M_RD, 1, &buf }, in acpi_iicbus_recvb() 137 { slave, IIC_M_RD, buflen, NULL }, in acpi_iicbus_read() 176 { slave, IIC_M_RD | IIC_M_NOSTOP, 1, &len }, in acpi_iicbus_bread() 179 { slave, IIC_M_RD | IIC_M_NOSTART, 0, NULL }, in acpi_iicbus_bread()
|
H A D | icee.c | 224 { 0, IIC_M_RD, 0, data }, in icee_read() 285 { 0, IIC_M_RD, 1, data }, in icee_write()
|
/freebsd/sys/dev/iicbus/sensor/ |
H A D | htu21.c | 138 msgs[1].flags = IIC_M_RD; in htu21_get_measurement() 163 msgs[1].flags = IIC_M_RD; in htu21_get_measurement_nohold() 269 msgs[1].flags = IIC_M_RD; in htu21_get_cfg() 365 msgs[1].flags = IIC_M_RD; in htu21_get_serial() 388 msgs[1].flags = IIC_M_RD; in htu21_get_serial()
|
H A D | max44009.c | 85 msgs[1].flags = IIC_M_RD | IIC_M_NOSTOP; in max44009_get_reading() 93 msgs[3].flags = IIC_M_RD; in max44009_get_reading()
|
H A D | ds1631.c | 150 { addr, IIC_M_RD, 1, buf }, in ds1631_read_1() 178 { addr, IIC_M_RD, 2, buf }, in ds1631_read_2()
|
H A D | max6690.c | 114 { addr, IIC_M_RD, 1, busy }, in max6690_read() 116 { addr, IIC_M_RD, 1, buf }, in max6690_read()
|
/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_i2c.c | 188 msgs[0].flags & IIC_M_RD) { in i2c_check_for_quirks() 195 !(msgs[1].flags & IIC_M_RD)) { in i2c_check_for_quirks() 242 if (msgs[i].flags & IIC_M_RD) { in i2c_check_for_quirks() 299 if (msgs[i].flags & IIC_M_RD) { in lkpi_i2c_transfer()
|
/freebsd/sys/dev/iicbus/controller/rockchip/ |
H A D | rk_i2c.c | 512 ((msgs[i].flags & IIC_M_RD) != in rk_i2c_transfer() 513 (msgs[i + 1].flags & IIC_M_RD) || in rk_i2c_transfer() 522 * next pure IIC_M_RD (no other flags allowed). Both in rk_i2c_transfer() 528 (msgs[i + 1].flags & IIC_M_RD) == IIC_M_RD && in rk_i2c_transfer() 547 if (msgs[i].flags & IIC_M_RD) { in rk_i2c_transfer()
|
/freebsd/sys/dev/iicbus/adc/ |
H A D | ad7418.c | 141 { AD7418_ADDR, IIC_M_RD, 1, data }, in ad7418_read_1() 185 { AD7418_ADDR, IIC_M_RD, 2, data }, in ad7418_read_2()
|
H A D | ad7417.c | 159 { addr, IIC_M_RD, 1, buf }, in ad7417_read_1() 187 { addr, IIC_M_RD, 2, buf }, in ad7417_read_2() 218 { addr, IIC_M_RD, 2, buf }, in ad7417_write_read()
|
/freebsd/sys/dev/iicbus/pmic/ |
H A D | act8846.c | 78 {0, IIC_M_RD, 1, val}, in act8846_read() 102 {0, IIC_M_RD, size, buf}, in act8846_read_buf()
|
/freebsd/sys/dev/usb/misc/ |
H A D | cp2112.c | 1113 if ((msgs[i].flags & IIC_M_RD) != 0 && in cp2112iic_transfer() 1118 if ((msgs[i].flags & IIC_M_RD) == 0 && in cp2112iic_transfer() 1128 (msgs[i].flags & IIC_M_RD) != 0) { in cp2112iic_transfer() 1149 (msgs[i].flags & IIC_M_RD) == 0) { in cp2112iic_transfer() 1172 KASSERT((msgs[i].flags & IIC_M_RD) == 0, in cp2112iic_transfer() 1174 KASSERT((msgs[i + 1].flags & IIC_M_RD) != 0, in cp2112iic_transfer() 1189 } else if ((msgs[i].flags & IIC_M_RD) != 0) { in cp2112iic_transfer()
|
/freebsd/sys/arm/ti/twl/ |
H A D | twl.c | 190 msg[1].flags = IIC_M_RD; in twl_read() 277 msg.flags = IIC_M_RD; in twl_test_present()
|
/freebsd/sys/arm/nvidia/ |
H A D | tegra_i2c.c | 439 (sc->msg != NULL) && (sc->msg->flags & IIC_M_RD)) { in tegra_i2c_intr() 447 (sc->msg != NULL) && !(sc->msg->flags & IIC_M_RD)) { in tegra_i2c_intr() 496 if (msg->flags & IIC_M_RD) { in tegra_i2c_start_msg() 506 if (msg->flags & IIC_M_RD) in tegra_i2c_start_msg()
|
H A D | as3722.c | 83 {0, IIC_M_RD, 1, val}, in as3722_read() 107 {0, IIC_M_RD, size, buf}, in as3722_read_buf()
|
/freebsd/sys/arm64/nvidia/tegra210/ |
H A D | max77620_rtc.c | 106 {0, IIC_M_RD, 1, val}, in max77620_rtc_read() 131 {0, IIC_M_RD, size, buf}, in max77620_rtc_read_buf()
|
H A D | max77620.c | 82 {0, IIC_M_RD, 1, val}, in max77620_read() 106 {0, IIC_M_RD, size, buf}, in max77620_read_buf()
|
/freebsd/sys/dev/iicbus/controller/twsi/ |
H A D | twsi.c | 582 if (sc->msgs[sc->msg_idx].flags & IIC_M_RD) in twsi_intr() 742 KASSERT((sc->msgs[sc->msg_idx].flags & IIC_M_RD) == in twsi_intr() 743 (sc->msgs[sc->msg_idx - 1].flags & IIC_M_RD), in twsi_intr() 748 if ((sc->msgs[sc->msg_idx].flags & IIC_M_RD) == 0) { in twsi_intr()
|
/freebsd/sys/powerpc/powermac/ |
H A D | kiic.c | 381 if (msgs[i+1].flags & IIC_M_RD) in kiic_transfer() 399 if (msgs[i].flags & IIC_M_RD) { in kiic_transfer()
|
/freebsd/sys/dev/iicbus/rtc/ |
H A D | ds1672.c | 75 { DS1672_ADDR, IIC_M_RD, size, data } in ds1672_read()
|
/freebsd/sys/arm/ti/am335x/ |
H A D | tda19988.c | 278 { sc->sc_cec_addr, IIC_M_RD, 1, data }, in tda19988_cec_read() 312 { sc->sc_addr, IIC_M_RD, len, data }, in tda19988_block_read() 333 { sc->sc_addr, IIC_M_RD, 1, data }, in tda19988_reg_read()
|