Lines Matching refs:sent
63 * result: number of bytes sent or error code < 0
70 int sent;
82 sent = tty->driver->write(tty, skb->data, skb->len);
83 gig_dbg(DEBUG_OUTPUT, "write_modem: sent %d", sent);
84 if (sent < 0) {
87 return sent;
89 skb_pull(skb, sent);
91 /* skb sent completely */
99 return sent;
104 * result: number of bytes sent or error code < 0
111 int sent = 0;
122 sent = tty->driver->write(tty, cb->buf + cb->offset, cb->len);
123 if (sent < 0) {
125 gig_dbg(DEBUG_OUTPUT, "send_cb: write error %d", sent);
127 return sent;
129 cb->offset += sent;
130 cb->len -= sent;
131 gig_dbg(DEBUG_OUTPUT, "send_cb: sent %d, left %u, queued %u",
132 sent, cb->len, cs->cmdbytes);
153 return sent;
166 int sent = 0;
173 /* no skb is being sent; send command if any */
174 sent = send_cb(cs);
175 gig_dbg(DEBUG_OUTPUT, "%s: send_cb -> %d", __func__, sent);
176 if (sent)
177 /* something sent or error */
298 * return number of characters waiting to be sent