Home
last modified time | relevance | path

Searched refs:IIC_M_RD (Results 1 – 25 of 54) sorted by relevance

123

/freebsd/sys/dev/iicbus/
H A Diicsmb.c312 { 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 Diic.h40 #define IIC_M_RD 0x0001 /* read vs write */ macro
H A Diiconf.c484 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 Diichid.c276 { 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 Dacpi_iicbus.c107 { 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 Dicee.c224 { 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 Dhtu21.c138 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 Dmax44009.c85 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 Dds1631.c150 { addr, IIC_M_RD, 1, buf }, in ds1631_read_1()
178 { addr, IIC_M_RD, 2, buf }, in ds1631_read_2()
H A Dmax6690.c114 { 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 Dlinux_i2c.c188 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 Drk_i2c.c512 ((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 Dad7418.c141 { 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 Dad7417.c159 { 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 Dact8846.c78 {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 Dcp2112.c1113 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 Dtwl.c190 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 Dtegra_i2c.c439 (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 Das3722.c83 {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 Dmax77620_rtc.c106 {0, IIC_M_RD, 1, val}, in max77620_rtc_read()
131 {0, IIC_M_RD, size, buf}, in max77620_rtc_read_buf()
H A Dmax77620.c82 {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 Dtwsi.c582 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 Dkiic.c381 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 Dds1672.c75 { DS1672_ADDR, IIC_M_RD, size, data } in ds1672_read()
/freebsd/sys/arm/ti/am335x/
H A Dtda19988.c278 { 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()

123