Lines Matching refs:DSI
8 * dsi_stream_send: send a DSI header + data.
9 * dsi_stream_receive: read a DSI header + data.
52 static int dsi_peek(DSI *dsi)
78 LOG(log_note, logtype_dsi, "dsi_peek: dsireadbuf: %d, DSI quantum: %d, effective buffer size: %d",
131 static size_t from_buf(DSI *dsi, u_int8_t *buf, size_t count)
136 /* afpd master has no DSI buffering */
166 static ssize_t buf_read(DSI *dsi, u_int8_t *buf, size_t count)
190 static size_t dsi_buffered_stream_read(DSI *dsi, u_int8_t *data, const size_t length)
222 static void block_sig(DSI *dsi)
229 static void unblock_sig(DSI *dsi)
248 int dsi_disconnect(DSI *dsi)
263 ssize_t dsi_stream_write(DSI *dsi, void *data, const size_t length, int mode)
322 ssize_t dsi_stream_read_file(DSI *dsi, int fromfd, off_t offset, const size_t length)
397 size_t dsi_stream_read(DSI *dsi, void *data, const size_t length)
442 int dsi_stream_send(DSI *dsi, void *buf, size_t length)
464 LOG(log_maxdebug, logtype_dsi, "dsi_stream_send(%u bytes): DSI header, no data", sizeof(block));
517 * Read DSI command and data
519 * @param dsi (rw) DSI handle
521 * @return DSI function on success, 0 on failure
523 int dsi_stream_receive(DSI *dsi)
553 LOG(log_debug, logtype_dsi, "dsi_stream_receive: DSI cmdlen: %zd", dsi->cmdlen);