Lines Matching refs:cmdbuf
221 const void *cmdbuf, size_t cmdlen, void *databuf, size_t datalen, int flags)
240 if (cmdbuf != NULL &&
251 if (cmdbuf == NULL &&
260 * cmdbuf and databuf which can use the chip's ability to add to a
262 * cmdbuf or the databuf, in which case, just figure out if a stop
266 if (cmdbuf != NULL &&
279 DS28E17IIC_DC_WD, maddr, cmdlen, __UNCONST(cmdbuf), 0, crc16, &i2c_status);
311 /* Either the cmdbuf or databuf has something, figure out which
314 if (cmdbuf != NULL) {
315 buf = __UNCONST(cmdbuf);
419 const void *cmdbuf, size_t cmdlen, void *databuf, size_t datalen, int flags)
435 if (cmdbuf != NULL &&
445 if (cmdbuf == NULL &&
470 __UNCONST(cmdbuf), datalen, crc16, &i2c_status);
499 ds28e17iic_i2c_exec(void *v, i2c_op_t op, i2c_addr_t addr, const void *cmdbuf,
522 /* A write may include the cmdbuf and/or the databuf */
523 err = ds28e17iic_i2c_write(sc, op, addr, cmdbuf, cmdlen, databuf, datalen, flags);
527 /* If a read includes a cmdbuf, then this is a write+read operation */
528 if (cmdbuf != NULL)
529 err = ds28e17iic_i2c_write_read(sc, op, addr, cmdbuf, cmdlen, databuf, datalen, flags);
534 cmdbuf != NULL ? "WRITE-READ" : "READ", addr, err));