Lines Matching refs:sent
61 * result: number of bytes sent or error code < 0
68 int sent = -EOPNOTSUPP;
81 sent = tty->ops->write(tty, skb->data, skb->len);
82 gig_dbg(DEBUG_OUTPUT, "write_modem: sent %d", sent);
83 if (sent < 0) {
86 return sent;
88 skb_pull(skb, sent);
90 /* skb sent completely */
98 return sent;
103 * result: number of bytes sent or error code < 0
110 int sent = 0;
121 sent = tty->ops->write(tty, cb->buf + cb->offset, cb->len);
122 if (sent < 0) {
124 gig_dbg(DEBUG_OUTPUT, "send_cb: write error %d", sent);
126 return sent;
128 cb->offset += sent;
129 cb->len -= sent;
130 gig_dbg(DEBUG_OUTPUT, "send_cb: sent %d, left %u, queued %u",
131 sent, cb->len, cs->cmdbytes);
152 return sent;
166 int sent = 0;
178 /* no skb is being sent; send command if any */
179 sent = send_cb(cs);
180 gig_dbg(DEBUG_OUTPUT, "%s: send_cb -> %d", __func__, sent);
181 if (sent)
182 /* something sent or error */
289 * return number of characters waiting to be sent