Lines Matching refs:filled
108 int filled; /* index of the last char in buf */
123 priv->filled = 0;
308 if (count > (KOBIL_BUF_LENGTH - priv->filled)) {
314 memcpy(priv->buf + priv->filled, buf, count);
315 usb_serial_debug_data(&port->dev, __func__, count, priv->buf + priv->filled);
316 priv->filled = priv->filled + count;
320 if (((priv->device_type != KOBIL_ADAPTER_B_PRODUCT_ID) && (priv->filled > 2) && (priv->filled >= (priv->buf[1] + 3))) ||
321 ((priv->device_type == KOBIL_ADAPTER_B_PRODUCT_ID) && (priv->filled > 3) && (priv->filled >= (priv->buf[2] + 4)))) {
327 todo = priv->filled - priv->cur_pos;
341 todo = priv->filled - priv->cur_pos;
347 priv->filled = 0;