Lines Matching refs:filled
107 int filled; /* index of the last char in buf */
122 priv->filled = 0;
309 if (count > (KOBIL_BUF_LENGTH - priv->filled)) {
315 memcpy(priv->buf + priv->filled, buf, count);
316 usb_serial_debug_data(&port->dev, __func__, count, priv->buf + priv->filled);
317 priv->filled = priv->filled + count;
321 if (((priv->device_type != KOBIL_ADAPTER_B_PRODUCT_ID) && (priv->filled > 2) && (priv->filled >= (priv->buf[1] + 3))) ||
322 ((priv->device_type == KOBIL_ADAPTER_B_PRODUCT_ID) && (priv->filled > 3) && (priv->filled >= (priv->buf[2] + 4)))) {
328 todo = priv->filled - priv->cur_pos;
342 todo = priv->filled - priv->cur_pos;
348 priv->filled = 0;