/freebsd/sys/dev/iicbus/rtc/ |
H A D | pcf85063.c | 89 error = iicdev_readfrom(dev, PCF85063_TIME_REG, &flags, 1, IIC_WAIT); in pcf85063_check_status() 135 sizeof(uint8_t), IIC_WAIT); in pcf85063_get_time() 141 sizeof(struct pcf85063_time), IIC_WAIT); in pcf85063_get_time() 181 sizeof(uint8_t), IIC_WAIT); in pcf85063_set_time() 200 sizeof(uint8_t), IIC_WAIT); in pcf85063_set_time() 209 sizeof(uint8_t), IIC_WAIT); in pcf85063_set_time() 215 sizeof(struct pcf85063_time), IIC_WAIT); in pcf85063_set_time() 222 sizeof(uint8_t), IIC_WAIT); in pcf85063_set_time() 228 sizeof(uint8_t), IIC_WAIT); in pcf85063_set_time() 235 sizeof(uint8_t), IIC_WAIT); in pcf85063_set_time()
|
H A D | rx8803.c | 92 rc = iicdev_readfrom(dev, RX8803_FLAGS, &flags, 1, IIC_WAIT); in rx8803_check_status() 118 IIC_WAIT); in rx8803_gettime() 161 rc = iicdev_readfrom(dev, RX8803_CTRL, ®, sizeof(uint8_t), IIC_WAIT); in rx8803_settime() 167 rc = iicdev_writeto(dev, RX8803_CTRL, ®, sizeof(uint8_t), IIC_WAIT); in rx8803_settime() 175 IIC_WAIT); in rx8803_settime() 181 rc = iicdev_writeto(dev, RX8803_CTRL, ®, sizeof(uint8_t), IIC_WAIT); in rx8803_settime() 186 rc = iicdev_readfrom(dev, RX8803_FLAGS, ®, sizeof(uint8_t), IIC_WAIT); in rx8803_settime() 191 rc = iicdev_writeto(dev, RX8803_FLAGS, ®, sizeof(uint8_t), IIC_WAIT); in rx8803_settime()
|
H A D | rv3032.c | 179 if ((rv = iicdev_readfrom(sc->dev, reg, &data, 1, IIC_WAIT)) != 0) in rv3032_update_register() 183 if ((rv = iicdev_writeto(sc->dev, reg, &data, 1, IIC_WAIT)) != 0) in rv3032_update_register() 195 if ((rv = iicdev_readfrom(sc->dev, RV3032_TEMP_LSB, &data, sizeof(data), IIC_WAIT)) != 0) in rv3032_eeprom_wait() 230 if ((rv = iicdev_writeto(sc->dev, RV3032_EEPROM_COMMAND, &data, sizeof(data), IIC_WAIT)) != 0) in rv3032_eeprom_update() 270 if ((rv = iicdev_readfrom(sc->dev, RV3032_TEMP_LSB, &data, sizeof(data), IIC_WAIT)) != 0) in rv3032_temp_read() 383 if ((rv = iicdev_readfrom(sc->dev, RV3032_STATUS, &status, sizeof(status), IIC_WAIT)) != 0) in rv3032_gettime() 387 if ((rv = iicdev_readfrom(sc->dev, RV3032_SECS, &time_regs, sizeof(time_regs), IIC_WAIT)) != 0) in rv3032_gettime() 411 if ((rv = iicdev_readfrom(sc->dev, RV3032_STATUS, &status, sizeof(status), IIC_WAIT)) != 0) in rv3032_settime() 423 if ((rv = iicdev_writeto(sc->dev, RV3032_SECS, &time_regs, sizeof(time_regs), IIC_WAIT)) != 0) in rv3032_settime() 428 if ((rv = iicdev_writeto(sc->dev, RV3032_STATUS, &status, sizeof(status), IIC_WAIT)) != 0) in rv3032_settime()
|
H A D | rtc8583.c | 118 return (iicdev_readfrom(sc->dev, reg, data, 1, IIC_WAIT)); in rtc8583_read1() 125 return (rtc8583_writeto(sc->dev, reg, &val, 1, IIC_WAIT)); in rtc8583_write1() 202 IIC_WAIT)) != 0) in rtc8583_gettime() 224 if ((err = iicbus_request_bus(sc->busdev, sc->dev, IIC_WAIT)) != 0) in rtc8583_gettime() 268 if ((err = iicbus_request_bus(sc->busdev, sc->dev, IIC_WAIT)) != 0) in rtc8583_settime() 271 sizeof(tregs), IIC_WAIT); in rtc8583_settime()
|
H A D | ds13rtc.c | 207 return (iicdev_readfrom(sc->dev, reg, val, sizeof(*val), IIC_WAIT)); in read_reg() 214 return (iicdev_writeto(sc->dev, reg, &val, sizeof(val), IIC_WAIT)); in write_reg() 223 sizeof(*tregs), IIC_WAIT)) != 0) in read_timeregs() 234 sizeof(*tregs), IIC_WAIT)); in write_timeregs() 244 IIC_WAIT)) == 0) in read_timeword() 257 IIC_WAIT)); in write_timeword()
|
H A D | hym8563.c | 96 return (iicdev_readfrom(sc->dev, reg, buf, buflen, IIC_WAIT)); in hym8563_read_buf() 104 return (iicdev_writeto(sc->dev, reg, buf, buflen, IIC_WAIT)); in hym8563_write_buf() 111 return (iicdev_readfrom(sc->dev, reg, data, 1, IIC_WAIT)); in hym8563_read_1() 118 return (iicdev_writeto(sc->dev, reg, &val, 1, IIC_WAIT)); in hym8563_write_1()
|
H A D | isl12xx.c | 147 #define WAITFLAGS (IIC_WAIT | IIC_RECURSIVE) 244 if ((err = iicbus_request_bus(sc->busdev, sc->dev, IIC_WAIT)) == 0) { in isl12xx_gettime() 320 if ((err = iicbus_request_bus(sc->busdev, sc->dev, IIC_WAIT)) != 0) in isl12xx_settime()
|
H A D | s35390a.c | 170 error = iicbus_transfer_excl(dev, msg, 1, IIC_WAIT); in s390rtc_read() 199 return (iicbus_transfer_excl(dev, msg, 1, IIC_WAIT)); in s390rtc_write()
|
H A D | nxprtc.c | 226 #define WAITFLAGS (IIC_WAIT | IIC_RECURSIVE) 756 if ((err = iicbus_request_bus(sc->busdev, sc->dev, IIC_WAIT)) == 0) { in nxprtc_gettime() 826 if ((err = iicbus_request_bus(sc->busdev, sc->dev, IIC_WAIT)) != 0) in nxprtc_settime()
|
/freebsd/sys/dev/dialog/da9063/ |
H A D | da9063_iic.c | 84 error = iicdev_readfrom(sc->dev, DA9063_PAGE_CON, ®, 1, IIC_WAIT); in da9063_iic_select_page() 93 error = iicdev_writeto(sc->dev, DA9063_PAGE_CON, ®, 1, IIC_WAIT); in da9063_iic_select_page() 117 IIC_WAIT); in da9063_iic_read() 142 IIC_WAIT); in da9063_iic_write() 169 IIC_WAIT); in da9063_iic_modify() 179 IIC_WAIT); in da9063_iic_modify() 214 error = iicdev_readfrom(dev, DA9063_PAGE_CON, ®, 1, IIC_WAIT); in da9063_iic_attach()
|
/freebsd/sys/dev/iicbus/ |
H A D | iiconf.h | 44 #define IIC_WAIT 0x1 macro 46 #define IIC_INTRWAIT (IIC_INTR | IIC_WAIT)
|
H A D | iic.c | 289 (ioflag & O_NONBLOCK) ? IIC_DONTWAIT : (IIC_WAIT | IIC_INTR)); in iicuio() 407 (flags & O_NONBLOCK) ? IIC_DONTWAIT : (IIC_WAIT | IIC_INTR)); in iicrdwr() 480 (flags & O_NONBLOCK) ? IIC_DONTWAIT : (IIC_WAIT | IIC_INTR)); in iicioctl() 510 (flags & O_NONBLOCK) ? IIC_DONTWAIT : (IIC_WAIT | IIC_INTR)); in iicioctl()
|
H A D | iiconf.c | 112 case IIC_WAIT | IIC_INTR: in iicbus_poll() 116 case IIC_WAIT | IIC_NOINTR: in iicbus_poll() 573 (waithow & IIC_WAIT) ? M_WAITOK : M_NOWAIT); in iicdev_writeto()
|
H A D | iicbus_if.m | 61 # data: pointer to int containing IIC_WAIT or IIC_DONTWAIT and either IIC_INTR or IIC_NOINTR 62 # This function is allowed to sleep if *data contains IIC_WAIT.
|
H A D | iichid.c | 534 if (iicbus_request_bus(parent, sc->dev, IIC_WAIT) != 0) in iichid_sampling_task() 636 how_request = how_open == IICHID_PS_NULL ? IIC_WAIT : IIC_INTRWAIT; in iichid_set_power_state() 779 error = iicbus_request_bus(parent, sc->dev, IIC_WAIT); in iichid_sysctl_sampling_rate_handler() 923 error = iicbus_request_bus(parent, sc->dev, IIC_WAIT); in iichid_read() 1208 iicbus_request_bus(device_get_parent(dev), dev, IIC_WAIT); in iichid_attach()
|
H A D | if_ic.c | 228 IIC_WAIT | IIC_INTR))) in icioctl()
|
H A D | iicsmb.c | 454 error = iicbus_request_bus(parent, dev, IIC_WAIT | IIC_RECURSIVE); in iicsmb_bread()
|
H A D | acpi_iicbus.c | 185 error = iicbus_request_bus(parent, dev, IIC_WAIT); in acpi_iicbus_bread()
|
/freebsd/sys/dev/iicbus/mux/ |
H A D | ltc430x.c | 201 IIC_WAIT); in ltc430x_attach() 206 IIC_WAIT); in ltc430x_attach()
|
/freebsd/sys/dev/iicbus/gpio/ |
H A D | pcf8574.c | 97 error = iicbus_transfer_excl(sc->dev, &msg, 1, IIC_WAIT); in pcf8574_read() 112 error = iicbus_transfer_excl(sc->dev, &msg, 1, IIC_WAIT); in pcf8574_write()
|
H A D | tca64xx.c | 183 error = iicbus_transfer_excl(dev, msgs, 2, IIC_WAIT); in tca64xx_read() 202 error = iicbus_transfer_excl(dev, &msg, 1, IIC_WAIT); in tca64xx_write()
|
/freebsd/sys/dev/iicbus/adc/ |
H A D | ads111x.c | 184 return (iicbus_transfer_excl(sc->dev, msgs, nitems(msgs), IIC_WAIT)); in ads111x_write_2() 193 err = iic2errno(iicdev_readfrom(sc->dev, reg, data, 2, IIC_WAIT)); in ads111x_read_2()
|
/freebsd/sys/dev/etherswitch/rtl8366/ |
H A D | rtl8366rb.c | 388 err = iicbus_request_bus(iicbus, dev, IIC_WAIT); in smi_probe() 446 sleep == RTL_WAITOK ? IIC_WAIT : IIC_DONTWAIT); in smi_acquire()
|
/freebsd/sys/dev/cyapa/ |
H A D | cyapa.c | 1268 error = iicbus_request_bus(bus, sc->dev, IIC_WAIT); in cyapa_poll_thread() 1649 error = iicbus_request_bus(bus, sc->dev, IIC_WAIT); in cyapa_set_power_mode()
|
/freebsd/sys/dev/ichiic/ |
H A D | ig4_iic.c | 720 if ((how & IIC_WAIT) == 0) { in ig4iic_callback()
|