Lines Matching refs:wrfilled
96 short wrfilled; /* Overall data size we already got */ member
111 priv->wrfilled = 0; in cyberjack_port_probe()
145 priv->wrfilled = 0; in cyberjack_open()
179 if (count+priv->wrfilled > sizeof(priv->wrbuf)) { in cyberjack_write()
181 priv->wrfilled = 0; in cyberjack_write()
188 memcpy(priv->wrbuf + priv->wrfilled, buf, count); in cyberjack_write()
190 usb_serial_debug_data(dev, __func__, count, priv->wrbuf + priv->wrfilled); in cyberjack_write()
191 priv->wrfilled += count; in cyberjack_write()
193 if (priv->wrfilled >= 3) { in cyberjack_write()
199 if (priv->wrfilled >= wrexpected) { in cyberjack_write()
220 priv->wrfilled = 0; in cyberjack_write()
228 dev_dbg(dev, "%s - priv->wrfilled=%d\n", __func__, priv->wrfilled); in cyberjack_write()
230 if (priv->wrsent >= priv->wrfilled) { in cyberjack_write()
233 priv->wrfilled = 0; in cyberjack_write()
370 if (priv->wrfilled) { in cyberjack_write_bulk_callback()
375 length = ((priv->wrfilled - priv->wrsent) > port->bulk_out_size) ? in cyberjack_write_bulk_callback()
376 port->bulk_out_size : (priv->wrfilled - priv->wrsent); in cyberjack_write_bulk_callback()
391 priv->wrfilled = 0; in cyberjack_write_bulk_callback()
399 dev_dbg(dev, "%s - priv->wrfilled=%d\n", __func__, priv->wrfilled); in cyberjack_write_bulk_callback()
403 if (priv->wrsent >= priv->wrfilled || in cyberjack_write_bulk_callback()
407 priv->wrfilled = 0; in cyberjack_write_bulk_callback()