Lines Matching refs:filled
137 int filled; /* index of the last char in buf */
157 priv->filled = 0;
425 if (count > (KOBIL_BUF_LENGTH - priv->filled)) {
431 memcpy(priv->buf + priv->filled, buf, count);
433 priv->buf + priv->filled);
434 priv->filled = priv->filled + count;
438 if (((priv->device_type != KOBIL_ADAPTER_B_PRODUCT_ID) && (priv->filled > 2) && (priv->filled >= (priv->buf[1] + 3))) ||
439 ((priv->device_type == KOBIL_ADAPTER_B_PRODUCT_ID) && (priv->filled > 3) && (priv->filled >= (priv->buf[2] + 4)))) {
445 todo = priv->filled - priv->cur_pos;
468 todo = priv->filled - priv->cur_pos;
474 priv->filled = 0;