Home
last modified time | relevance | path

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

/freebsd/sys/dev/iicbus/rtc/
H A Dpcf85063.c89 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 Drx8803.c92 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, &reg, sizeof(uint8_t), IIC_WAIT); in rx8803_settime()
167 rc = iicdev_writeto(dev, RX8803_CTRL, &reg, sizeof(uint8_t), IIC_WAIT); in rx8803_settime()
175 IIC_WAIT); in rx8803_settime()
181 rc = iicdev_writeto(dev, RX8803_CTRL, &reg, sizeof(uint8_t), IIC_WAIT); in rx8803_settime()
186 rc = iicdev_readfrom(dev, RX8803_FLAGS, &reg, sizeof(uint8_t), IIC_WAIT); in rx8803_settime()
191 rc = iicdev_writeto(dev, RX8803_FLAGS, &reg, sizeof(uint8_t), IIC_WAIT); in rx8803_settime()
H A Drv3032.c179 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 Drtc8583.c118 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 Dds13rtc.c207 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 Dhym8563.c96 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 Disl12xx.c147 #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 Ds35390a.c170 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 Dnxprtc.c226 #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 Dda9063_iic.c84 error = iicdev_readfrom(sc->dev, DA9063_PAGE_CON, &reg, 1, IIC_WAIT); in da9063_iic_select_page()
93 error = iicdev_writeto(sc->dev, DA9063_PAGE_CON, &reg, 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, &reg, 1, IIC_WAIT); in da9063_iic_attach()
/freebsd/sys/dev/iicbus/
H A Diiconf.h44 #define IIC_WAIT 0x1 macro
46 #define IIC_INTRWAIT (IIC_INTR | IIC_WAIT)
H A Diic.c289 (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 Diiconf.c112 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 Diicbus_if.m61 # 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 Diichid.c534 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()
H A Dif_ic.c230 IIC_WAIT | IIC_INTR))) in icioctl()
H A Diicsmb.c454 error = iicbus_request_bus(parent, dev, IIC_WAIT | IIC_RECURSIVE); in iicsmb_bread()
H A Dacpi_iicbus.c185 error = iicbus_request_bus(parent, dev, IIC_WAIT); in acpi_iicbus_bread()
/freebsd/sys/dev/iicbus/mux/
H A Dltc430x.c201 IIC_WAIT); in ltc430x_attach()
206 IIC_WAIT); in ltc430x_attach()
/freebsd/sys/dev/iicbus/gpio/
H A Dpcf8574.c97 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 Dtca64xx.c183 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 Dads111x.c184 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 Drtl8366rb.c394 err = iicbus_request_bus(iicbus, dev, IIC_WAIT); in smi_probe()
452 sleep == RTL_WAITOK ? IIC_WAIT : IIC_DONTWAIT); in smi_acquire()
/freebsd/sys/dev/cyapa/
H A Dcyapa.c1268 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 Dig4_iic.c720 if ((how & IIC_WAIT) == 0) { in ig4iic_callback()